You are viewing a plain text version of this content. The canonical link for it is here.
Posted to modperl@perl.apache.org by Matt Sergeant <ma...@sergeant.org> on 2002/04/21 13:01:58 UTC
PPerl performance example
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
In case anyone is interested in PPerl as an alternative where mod_perl might
be too hard to get installed, I have done some very *very* simplistic
benchmarking to show the performance differences. Here's the script I used:
use strict;
use Data::Dumper;
use CGI;
print CGI::header(-type => "text/plain");
print Dumper(\%ENV);
Running under three environments: Perl CGI, PPerl CGI, and mod_perl
Apache::Registry. The results of the quick benchmark over 30 seconds were:
Perl CGI: 3.43 requests/sec
PPerl CGI: 32.42 requests/sec
mod_perl: 80.85 requests/sec
Which is about what I expected.
The most interesting figures are the latency figures - pperl is around the
same latency-wise as mod_perl, where both blow plain perl CGI out of the
water, meaning your users get a *much* better experience.
Anyway, just thought you might be interested. Note that PPerl is also really
useful with stuff like Mail::Audit scripts.
- --
<:->get a SMart net</:->
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org
iEYEARECAAYFAjzCnCYACgkQVBc71ct6OyzIAQCgnREPK8Bj5RCliooqtWWrX+ab
jbgAnRHnQAByunmIIylZA0F3Tq+iDMiU
=7U2O
-----END PGP SIGNATURE-----