Is there a good modern comparison (last couple years) of how Java performs and scales relative to PHP in a modern web application environment (Twitter, Facebook, COMET push)
Is there any type of canonical web application that would be best to compare the 2 languages?
(Full disclosure: I'm primarily a Java developer and I've worked with some high performance Java web application servers like Jetty and NETTY and I have the gut feeling that it blows away the basic PHP Apache stack in terms of number of connections and low-latency response especially in COMET server push applications).
Obviously when really attempting to compare the two in a massively scalable environment you would need to include other persistence and cache tiers (MySQL, Memcached, Terracotta, MongoDB).
I'm curious pound for pound how many HTTP requests/connections can a single Java web application server (Grizzly/JETTY) versus a PHP web application server (I'm not sure what high performance options there are for Apache).
I'm also curious if the front end web application technology matters in the scalability equation or does caching and persistence play a bigger role in the scalability equation.