Home arrow PHP arrow Page 3 - 7 PHP Frameworks Tested For Speed

PHP Framework Benchmarking Test Results - PHP

In this article, we will look at seven great, lightweight PHP frameworks. Each framework has been tested for speed and useability. We will be looking at the following frameworks: Cakephp, CodeIgnitor, Symfony, yii, RainFramework, Doophp, and Kohana.

TABLE OF CONTENTS:
  1. 7 PHP Frameworks Tested For Speed
  2. Benchmarking PHP Frameworks
  3. PHP Framework Benchmarking Test Results
By: Codex-M
Rating: starstarstarstarstar / 25
May 04, 2011

print this article
SEARCH DEV SHED

TOOLS YOU CAN USE

advertisement

Results of the First Test and Second Test

Below are the results for the first test:

Results:

Doophp 1.4.1 is the fastest of the 7 tested PHP frameworks, followed by Rainframework and then CodeIgniter.

Below are the results for the second test:

This time, on a Linux machine, Rainframework is the fastest PHP framework, followed by Doophp, then Codeigniter.

Results of the Third Test (Command Line in Linux)

The first and second test were done using a PHP script and using the PHP Exec function to execute ab. Now the Apache benchmark utility will be installed on Ubuntu OS independent on the XAMPP localhost and PHP. The tests are carried out using a command line method, for example for CakePHP the localhost URL: Cakephp-1.3.7: http://localhost/cakephp-1.3.7/index.php/hello

The command line test method will be:

ab -n 500 -c 50 http://localhost/cakephp-1.3.7/index.php/hello 

Below are the detailed steps:

Step1.) Install Apache2 utils in Ubuntu to be used in benchmarking (if you don't have it already):

codex-m@codex-m-desktop:~$ sudo apt-get install apache2-utils

Step2.) Execute all the benchmark tests for all the PHP frameworks and reboot the server for each trial.

Step3.) Gather the results and average them.

Below are the results of the third test:

RainFramework is on top, followed by Doophp with 543 ms, and CodeIgniter with 888ms.

Final Advice: There is more to consider than speed when selecting a PHP framework; other factors such as security, ease of installation and database support have to be examined as well. Other frameworks may be slower but have greater and wider community support, in case you have some trouble with the framework there are lots of users that could help who have working experience with that framework. This is true with CakePHP, Symfony and Zend framework, all of which are very popular among PHP developers.



 
 
>>> More PHP Articles          >>> More By Codex-M
 

blog comments powered by Disqus
escort Bursa Bursa escort Antalya eskort
   

PHP ARTICLES

- Hackers Compromise PHP Sites to Launch Attac...
- Red Hat, Zend Form OpenShift PaaS Alliance
- PHP IDE News
- BCD, Zend Extend PHP Partnership
- PHP FAQ Highlight
- PHP Creator Didn't Set Out to Create a Langu...
- PHP Trends Revealed in Zend Study
- PHP: Best Methods for Running Scheduled Jobs
- PHP Array Functions: array_change_key_case
- PHP array_combine Function
- PHP array_chunk Function
- PHP Closures as View Helpers: Lazy-Loading F...
- Using PHP Closures as View Helpers
- PHP File and Operating System Program Execut...
- PHP: Effects of Wrapping Code in Class Const...

Developer Shed Affiliates

 


Dev Shed Tutorial Topics: