You are viewing a plain text version of this content. The canonical link for it is here.
Posted to modperl@perl.apache.org by Doug MacEachern <do...@covalent.net> on 2000/04/01 00:35:34 UTC

Re: what's the apache mod_perl speedup factor?

tom, my direct reply to you bounced, but this should probably be on the
list anyhow...
   ----- Transcript of session follows -----
... while talking to mail.perl.com.:
>>> MAIL From:<do...@covalent.net>
<<< 550 Your site is blacklisted as a spam haven.
554 <tc...@chthon.perl.com>... Service unavailable


On Fri, 31 Mar 2000, Tom Christiansen wrote:

> Any rough rule-of-thumb scaling factor for how much faster running
> an averaged sized CGI script under mod_perl is compared with firing
> it up each time?  For example, 2x? 5x? 10x? 20x? 40x?  Obviously this
> depends on a lot of factors, but perhaps there's something on can say
> that's more generally true than it is false?
> 
> --tom
> 

there's an attempt at benchmarking mod_perl vs. foo here:
http://www.chamas.com/bench/index.html

and a simple test you can run in the mod_perl-x.xx directory:

% ../apache-1.3/src/httpd -d `pwd`/t -f `pwd`/t/conf/httpd.conf
% perl benchmark/lwp-simple.pod
Benchmark: timing 50 iterations of cgi, perl...
       cgi: 16 wallclock secs ( 0.63 usr +  0.10 sys =  0.73 CPU) @ 68.49/s (n=50)
      perl:  1 wallclock secs ( 0.31 usr +  0.05 sys =  0.36 CPU) @ 138.89/s (n=50)
            (warning: too few iterations for a reliable count)
% kill `cat t/logs/httpd.pid`

that runs 50 requests each to /cgi-bin (mod_cgi) and /perl (mod_perl) for
the same script, t/net/perl/cgi.pl

i don't have enough data to support a statement that mod_perl is x times
faster that mod_cgi, like you say, it depends on a lot of factors.