VML wrote: > On Monday 15 April 2002 04:35 pm, you wrote: > >>VML wrote: >> >>>On Monday 15 April 2002 02:49 pm, you wrote: >>> >>>>Oh, boy, this is a wrong test :) You benchmark the code execution and >>>>not mod_perl against mod_cgi. You should use ab(8) or similar app for >>>>this. To learn how to properly do this and much more see: >>>>http://perl.apache.org/guide/performance.html >>>> >>>>p.s. also remember that doing wallclock benchmarking as in SCRIPT 1 on >>>>multitask system can give you very incorrect results, if you load is >>>>different during two subsequent benchmarks. >>> >>>Thank you for your answer. >>>Ab is Apachebench right? >>>The result is same, mod_perl slower than mod_cgi. >>> >>>% ./ab -n 100 -c 10 www.example.com/perl/test.pl >>> >>>Are there any testing method or tuning method that can show/prove >>>mod_perl is faster. >>> >>>I am newbie in mod_perl (even perl/cgi) so please as clear as posible. >>>I just got job in linux (previous windows) and my first task is to >>>migrating exiting perl script to better/faster method (now testing >>>mop_perl). Please help me... :) >> >>what's inside your test.pl? >> >>try this script: >> >>use CGI; >>print "Content-type: text/plain\n\n"; >>print "OK"; >> >>the re-load of CGI.pm in mod_cgi should make a big difference between >>mod_perl and mod_cgi. > > > Thanks!!! its show good result. > Forget about my test script :)
;) > But when I test big script I get "Segmentation Fault". > Do you know why is that? No, but read: http://perl.apache.org/preview/modperl-docs/dst_html/docs/1.0/guide/help.html#How_to_Report_Problems > I beginning to know logic behind mod_perl. > Mod_perl will show big different for script that use many module. > Am I right? Yes, see the performance chapter I've referred to earlier. p.s. please don't respond directly to me but to the list! Thanks __________________________________________________________________ Stas Bekman JAm_pH ------> Just Another mod_perl Hacker http://stason.org/ mod_perl Guide ---> http://perl.apache.org mailto:[EMAIL PROTECTED] http://use.perl.org http://apacheweek.com http://modperlbook.org http://apache.org http://ticketmaster.com