Phoenix.pm: re: mod_perl thanks
Lowell Hamilton
syz at broken-bit.com
Thu Mar 28 03:42:09 CST 2002
Thanks a bunch for the input all... converted a couple scripts over with
great success. In reality, to make a cgi into an apache module, it's 5
lines of cut/paste and a regex to change the $q->parm('') to $param{''}
(not using CGI at all), installing into site_perl and a quick edit to
httpd.conf.
Excellent performance as well (This is a p3 1ghz linux box using apache
bench locally, 10 concurrent requests, total of 1000 requests)
Straight CGI:
Requests per second: 2.78 [#/sec] (mean)
Apache::PerlRun:
Requests per second: 9.50 [#/sec] (mean)
Registry script:
Requests per second: 61.40 [#/sec] (mean)
Apache module:
Requests per second: 80.84 [#/sec] (mean)
I'll take the 5 minutes of work to get 8x the speed :>
Lowell
--
: Lowell Hamilton syz at b r o k e n - b i t . c o m :
: Linux OpenBSD IDS/firewall Security QMail Perl :
More information about the Phoenix-pm
mailing list