Gunther Birznieks wrote:
> But it's a shame that the only way to
> get faster than PHP is to write a raw Mod_perl handler according to the
> benchmarks. All the other mod_perl tools seem slower.
It makes sense though. All the other tools do more setup work on each
request: parsing input, manipulating it into objects, etc.
> JSP seems to also blow away mod_perl and PHP (except being almost
> equivalent to mod_perl handler speed).
Hmm... To me that means it's equivalent, not blowing away mod_perl.
> I assume Resin is precompiling JSP
> to Java classes and that maybe the JRE you are using does some very good
> hotspot on-the-fly machine-code compiling type technology?
The IBM JDK has a JIT, but no Hotspot equivalent. They have the fastest
JVM on x86 though. Check out the scores here:
http://www.volano.com/report.html
One thing I discovered when testing Caucho's JSP last year is that they
do a really good job of generating efficient servlets from JSP. I was
not able to write a faster "hello world" servlet than the one they
auto-generated from a JSP page.
By the way, as a cautionary tale on "hello world" tests:
These tests appear to show mod_include handling SSI pages twice as fast
as Apache::SSI. However, in tests we've done with real production pages
(30-60K, half dozen or so includes per page) Apache::SSI was actually a
little bit faster. Of course this was about a year ago so the tables
may have turned since then.
- Perrin