How fast is CodeIgniter compared to other PHP frameworks? Following frameworks have been compared:
A series of ApacheBench stress tests were conducted on my machine, reproductible on your own if you follow methodology page. Subject of testing is raw MVC performance (routing, controlling, templating), as detailed here:
Based on raw ApacheBench results obtained here, it is clear that Lucinda is times faster on all criteria measured.
| Rendering | CodeIgniter Framework 4.1.1 |
Lucinda Framework 3.2.0 |
| HTML | 1419.98 | 12510.76 |
| JSON | 1389.03 | 13830.21 |
Results show that Lucinda is 8.8 times faster in answering to HTML requests and 10 times faster in answering to JSON requests
| % | CodeIgniter Framework 4.1.1 |
Lucinda Framework 3.2.0 |
||
| HTML | JSON | HTML | JSON | |
| 50 | 6 | 6 | 1 | 1 |
| 66 | 6 | 6 | 1 | 1 |
| 75 | 7 | 7 | 1 | 1 |
| 80 | 9 | 9 | 1 | 1 |
| 90 | 11 | 11 | 1 | 1 |
| 95 | 12 | 13 | 1 | 1 |
| 98 | 16 | 17 | 1 | 1 |
| 99 | 17 | 18 | 1 | 1 |
| 100 | 44 | 54 | 13 | 19 |
Results show that in 95% of cases Lucinda is 12 times faster answering to HTML requests and 13 times faster for JSON requests
Based on raw ApacheBench results obtained here, it is clear that Symfony is times faster on all criteria measured.
| Rendering | CodeIgniter Framework 4.1.1 |
Symfony Framework 5.2.99 |
| HTML | 1419.98 | 3175.6 |
| JSON | 1389.03 | 3499.42 |
Results show that Symfony is 2.2 times faster in answering to HTML requests and 2.5 times faster in answering to JSON requests
| % | CodeIgniter Framework 4.1.1 |
Symfony Framework 5.2.99 |
||
| HTML | JSON | HTML | JSON | |
| 50 | 6 | 6 | 3 | 2 |
| 66 | 6 | 6 | 3 | 3 |
| 75 | 7 | 7 | 4 | 3 |
| 80 | 9 | 9 | 4 | 4 |
| 90 | 11 | 11 | 5 | 4 |
| 95 | 12 | 13 | 5 | 5 |
| 98 | 16 | 17 | 7 | 6 |
| 99 | 17 | 18 | 8 | 7 |
| 100 | 44 | 54 | 26 | 23 |
Results show that in 95% of cases Symfony is 2.4 times faster answering to HTML requests and 2.6 times faster for JSON requests
Based on raw ApacheBench results obtained here, it is clear that Laravel is times slower on all criteria measured.
| Rendering | CodeIgniter Framework 4.1.1 |
Laravel Framework 8.5.16 |
| HTML | 1419.98 | 346.78 |
| JSON | 1389.03 | 153.22 |
Results show that Laravel is 4.1 times slower in answering to HTML requests and 9.1 times slower in answering to JSON requests
| % | CodeIgniter Framework 4.1.1 |
Laravel Framework 8.5.16 |
||
| HTML | JSON | HTML | JSON | |
| 50 | 6 | 6 | 11 | 11 |
| 66 | 6 | 6 | 14 | 13 |
| 75 | 7 | 7 | 17 | 16 |
| 80 | 9 | 9 | 19 | 19 |
| 90 | 11 | 11 | 22 | 22 |
| 95 | 12 | 13 | 29 | 30 |
| 98 | 16 | 17 | 47 | 1337 |
| 99 | 17 | 18 | 768 | 2547 |
| 100 | 44 | 54 | 1986 | 3973 |
Results show that in 95% of cases Laravel is 2.4 times slower answering to HTML requests and 2.3 times slower for JSON requests