Joe Schaefer wrote:
>
> IME, simple mod_perl handlers typically run around 50% as fast as
> HTML static pages. Your hello world benchmark seems to be slightly
> misleading in this respect, since the content-length is small
> relative to the header size.
>
I'll send you my benchmark suite separately so you can
submit your results for http://www.chamas.com/bench. I have
never seen modperl handler faster than static HTML.
> For your HTML Static, I would guess that the headers delivered are
> significantly larger than the ones returned by your modperl handler.
> Hence for 50000 hits, there is a significant discrepancy in the
> total bytes delivered. This skews the hits/sec numbers in the
> favor of content handlers that deliver shorter headers.
>
Yes, each environment delivers different headers, but that's
just what they do. The Hello World test is to show the
overhead of running in a particular environment. Generally
people only add code from there, and not optimize HelloWorld
further.
-- Josh
_________________________________________________________________
Joshua Chamas Chamas Enterprises Inc.
NodeWorks >> free web link monitoring Huntington Beach, CA USA
http://www.nodeworks.com 1-714-625-4051