views:

324

answers:

1

PHP is interpreted. JSPs are compiled. Yet the PHP interpreter seems tightly coupled with Apache (using mod_php). The JSPs are compiled, but it's bytecode...yet the java runtime is highly optimized...yet there is the Tomcat container and mod_jk sitting in between Apache and the runtime.

Lots of things to consider, of course. Has anyone benchmarked these two configs? Anybody have some real-world data or experiences concerning performance, whether it is a simple site, or complex, under various (preferably heavy) loads?

Any thoughts?

For best performance should I code it all in C++ using a CGI gateway? (ha ha just kidding)

+1  A: 

PHP is compiled into bytecode also. To prevent this from happening on every request, install APC. This will cache the compilation so it doesnt have to happen every time.

You might find this interesting.

ryeguy
+1 Might want to expand on "this" a bit, people don't like links with no explanation of where they link to. Interesting link, btw.
T.J. Crowder