I've seen that using eAccelerator as PHP caching system (cache 16 MB), "yii.php" is faster than "yiilite.php". Is this normal?
ab -n 1000 -c 25 http://localhost/yii/demos/helloworld/
About 295 #/s using yii.php and 220 #/s using yiilite.php
I've also compared these results to KohanaPHP (another framework), it is about 245 #/s using eAccelerator while it is slightly faster than Yii without eAccelerator (similar to your CodeIgniter results with/without APC… in fact Kohana is a fork of CodeIgniter… but there CodeIgniter + APC is faster than Yii.php + APC and slower than Yiilite.php + APC, while here the faster one is Yii.php).
I just tried eAccelerator with the same set up as described on the performance page. I got these numbers:
Yii using yii.php: 337
Yii using yiilite.php: 387
When you do the test, make sure you "stop" and "start" apache each time you begin to test a new setup. Also, you should open your browser to access the URL for a couple of times before testing. This will ensure the test is done properly without interfering each other.
I've repeated the test
yii.php + eAccelerator = about 285 #/s
yiilite.php + eAccelerator = about 215 #/s
KohanaPHP + eAccelerator = about 235 #/s
So nothing changed. I confirm eAccelerator is working fine using 16 MB of cache.
That's interesting. Maybe other people can post some results?
Apache 2.2.9, PHP 5.2.6, eAccelerator 0.9.5.3
Are you sure you restart Apache after each benchmark? It seems as you don't since the results get higher each time.
I do warm up and restart apache to reload php modules.
I suggest we use 'ab -t 30 -k' to leave out connections and multitasking.
What is the version of Yii that you are testing with?
It is interesting to see that yiilite.php is slower than yii.php in your tests when server caching is enabled. While on my windows box and linux box I saw yiilite.php is much faster than yii.php, I do observer some independent tests gave opposite results.
Anyway, the upcoming 1.0.1 version has been optimized further more to make yii.php even faster.
It is also slower for me using yiilite.php with 1.0.1.