The vast majority of the speedup is in the compilation / interpreter
loadtime. You will not see a another 20x increase in speed switching to a
handler module. I bemoan the fact that some of our shared hosting servers
run Perl and PHP via suexec for EVERY call. Ouch!
Regards,
KAM
Firstly, real world comparison between no mod_perl and using Registry:
Simple cgi, using Apache::DBI and CGI and HTML::Template. Loading 1
template file and doing about 30 template param replacements.
Using "ab" to do 500 requests at 2 concurrents took about 47 seconds.
Simply adding ModPerl::Registry to that directory and rebooting web
server, results down to 2.3 seconds! Amazing.
Secondly, seeing such a speed increase above makes me wonder the big
differences between ModPerl::Registry and a handler module. Am I going to
see an even more significant speed increase doing as a module?