All the PHP tests were done with the APC opcode cache, running within PHP-FPM.
http://www.techempower.com/benchmarks/#section=environment
If this can be improved, please let us know. A pull request would be ideal.
http://www.techempower.com/benchmarks/#section=environment
If this can be improved, please let us know. A pull request would be ideal.
PHP has to live and die upon each request, but Java culls all of its classes together on the first request and from then on it is running from RAM.
Many PHP deployments, and most serious ones, will opcode cache in addition to database and page cache. You could rerun these tests with opcode cache only, leaving page and database caches for your "cache" round of tests. That will at least approximate the dramatic differences in architecture between Java and PHP.