About PHP
One thing you have to understand about PHP is nobody except the shared webhosts use the technologies you're using.
First of all, any serious PHP app should be using APC by default. It's the nature of how PHP works by default vs other language deployments. Second, use php-fpm + nginx web server (or at least worker mpm in Apache 2.4 with php-fpm or fastcgi).
+1
And add Zend benchmarks too, please :smile:
I understand that purpose of this benchmark was to compare your library with other solutions, but I believe PHP was not tested fairly.
- 5.3 has reached end of life and 5.4 or 5.5 branch should be used instead. From my observation, applications on 5.4 perform much better and consume less memory comparing to 5.3 version, I have not tested 5.5 but it should not be worst than previous.
- PDO is a bit slower, as it has higher abstraction layer comparing to MySQLi, which is more suitable to be called RAW.
- It's important to state how do you run PHP on Apache server, as performance may vary, in my case DSO was 5 times faster than FastCGI.
- Why did you chose a CakePHP? It's cute but it is not that type of framework that can be considered as good choice for a serious project. Instead I would look in to Zend, Symfony or YII.
I also think the choice of cakePHP is very bad. it's quite well known that it's one of the slowest framework in the php world.
these benchmarks are not really recent but they give a good idea : http://symfony2.openthinklabs.com/home/cepat (based on this code : https://github.com/fabpot/framework-benchs)
I also made a more up-to-date version : https://github.com/onigoetz/framework-benchs and found that codeIgniter is even faster.
I did not update these benchmarks for a long time but I think running them now would give more or less the same results.
I would also test Laravel 4 as I heard it is faster than codeIgniter
+1
Thanks for all the comments, we're currently looking into many of your suggestions. We're going to try both PHP 5.4 with APC and 5.5 with Zend optimizer, as well as use php-fpm on Apache (nginx will be next on the list). We're hoping to have updated results sometime next week.
We're putting together the next round of numbers now, and we're going to be using PHP 5.4 with APC, php-fpm, and nginx. We're hoping to have updated results later this week.
We created some new issues to address the other recommendations.