Viljo Marrandi <[EMAIL PROTECTED]> writes:

> Hello,
> 
> No, these are not the white pills I'm going to ask about ;o). I made one
> simple test - 2 virtualservers under Apache and their handlers were:
>    1) mod_perl + TT
>    2) HTML::Embperl
> 
> I used very minimal html 'Hello, world' file for this test - only 85
> bytes. Now, if i run apachebench ( ab -t 10 -c 5 http://speed/ )on
> mod_perl/TT virtualhost then i get about 10 requests per second, but if
> I run bench on Embperl server then i get about 20 request per second.
> How come? No DBI, no code, no nothing, but why is Embperl more than 2
> times faster?

You should use compiled templates.  And make sure you are not
reinitializing the template object on each request.

-- 
/ Jonas  -  http://jonas.liljegren.org/myself/en/index.html


Reply via email to