DooPHP and Kohana performance


Due to recent discussions in Kohana framework forum, I decided to test out the latest KohanaPHP which seems to have the same goal as DooPHP.

With KO3 the developers decided to focus on the core, and the core only

This applies to DooPHP too where the core is given priority while extra features like cache, XSS filter, etc. can be added on in the future easily. (Or you can use Zend Framework components, great library!).

Below is the test between DooPHP and Kohana. They are benchmarked with a simple Hello Wolrd and also database ORM.

The result:

Hello World
DooPHP 4765.03 rps
Kohana 1223.48 rps

Database Food SELECT * FROM food
DooPHP 3525.18 rps
Kohana 615.44 rps

*rps = requests per second
Both test are done with persistent connection on without any form of data caching. Configurations are optimized for production mode. The database and data can be downloaded here. It is the same as the database demo.

DooPHP test files download
Kohana test files download
*You will need to download DooPHP framework source to test.

And for those who want to know how the other frameworks are tested, there’s a thread in the forum

This benchmark is done on a different machine. Please do not compare this to the one on DooPHP’s benchmark page.

Hardware and Environment Details:

Operating System: Ubuntu Desktop 9.04
Web Server: Cherokee web server 0.99.16
PHP: 5.2.9, FastCGI mode, any non-essential extensions are disabled
CPU: Intel Quad 2 Core 2.5 Ghz
Main Memory: 2GB DDR2 800Mhz
Hard Drive: 500GB 7200 RPM SATA HDD

Previous PostNextNext Post

Leave a Reply

Your email address will not be published.