Hey mod_perl users,

I just did a benchmarks to compare mod_perl + apache versions 1 & 2.
What I find striking is that without any optimizations, the v2
mod_perl & apache are faster.  I'm really blown away, as I was
expecting the new versions to be slower with v1 configurations.

Here's the numbers in brief:

**** Apache/1.3.26 + mod_perl/1.27 + perl 5.6.1
****
Test Name                           Test File Hits/sec  # of Hits Time(sec) secs/Hit  
Bytes/Hit Mem(KB)
---------                           --------- --------- --------- --------- --------- 
--------- ---------
HTML static                         hello.htm 1420.7    100000     70.39    0.000704  
322       5062
mod_perl handler                    hello.ben  942.5    100000    106.10    0.001061  
206       7660

**** Apache/2.0.40 + Perl/v5.8.0 + mod_perl/1.99_05-dev
****
Test Name                           Test File Hits/sec  # of Hits Time(sec) secs/Hit  
Bytes/Hit Mem(KB)
---------                           --------- --------- --------- --------- --------- 
--------- ---------
HTML static                         hello.htm 1619.7    100000     61.74    0.000617  
290       5912
mod_perl handler                    hello.ben 1210.1    100000     82.64    0.000826  
194       11070

The mod_perl benchmark was run with the Apache::compat layer
and the perl-script directive in Apache 2.x, so it was not optimized.
Further, the configs between the web servers were identical on my
linux server during the benchmarks, so Apache was not optimized
at all for v2.  & on top of that, the mod_perl2 was loaded as a DSO
while mod_perl1 was compiled statically.  Again, I'm amazed.

Obviously the apache & mod_perl development teams have done an
awesome job in building this next generation server.

Regards,

Josh

Reply via email to