Hacker News new | ask | show | jobs
by bimr 4799 days ago
In order to have an apples to apples comparison, wouldn't you at least need to have an opcode cache for the PHP frameworks?

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.

1 comments

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.

Oh. Didn't make the connection that APC was on for Codeigniter, Laravel and the other frameworks.