How fast is Laravel 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 | Laravel Framework 8.5.16 |
Lucinda Framework 3.2.0 |
HTML | 346.78 | 12510.76 |
JSON | 153.22 | 13830.21 |
Results show that Lucinda is 36.1 times faster in answering to HTML requests and 90.3 times faster in answering to JSON requests
% | Laravel Framework 8.5.16 |
Lucinda Framework 3.2.0 |
||
HTML | JSON | HTML | JSON | |
50 | 11 | 11 | 1 | 1 |
66 | 14 | 13 | 1 | 1 |
75 | 17 | 16 | 1 | 1 |
80 | 19 | 19 | 1 | 1 |
90 | 22 | 22 | 1 | 1 |
95 | 29 | 30 | 1 | 1 |
98 | 47 | 1337 | 1 | 1 |
99 | 768 | 2547 | 1 | 1 |
100 | 1986 | 3973 | 13 | 19 |
Results show that in 95% of cases Lucinda is 29 times faster answering to HTML requests and 30 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 | Laravel Framework 8.5.16 |
Symfony Framework 5.2.99 |
HTML | 346.78 | 3175.6 |
JSON | 153.22 | 3499.42 |
Results show that Symfony is 9.2 times faster in answering to HTML requests and 22.8 times faster in answering to JSON requests
% | Laravel Framework 8.5.16 |
Symfony Framework 5.2.99 |
||
HTML | JSON | HTML | JSON | |
50 | 11 | 11 | 3 | 2 |
66 | 14 | 13 | 3 | 3 |
75 | 17 | 16 | 4 | 3 |
80 | 19 | 19 | 4 | 4 |
90 | 22 | 22 | 5 | 4 |
95 | 29 | 30 | 5 | 5 |
98 | 47 | 1337 | 7 | 6 |
99 | 768 | 2547 | 8 | 7 |
100 | 1986 | 3973 | 26 | 23 |
Results show that in 95% of cases Symfony is 5.8 times faster answering to HTML requests and 6 times faster for JSON requests
Based on raw ApacheBench results obtained here, it is clear that CodeIgniter is times faster on all criteria measured.
Rendering | Laravel Framework 8.5.16 |
CodeIgniter Framework 4.1.1 |
HTML | 346.78 | 1419.98 |
JSON | 153.22 | 1389.03 |
Results show that CodeIgniter is 4.1 times faster in answering to HTML requests and 9.1 times faster in answering to JSON requests
% | Laravel Framework 8.5.16 |
CodeIgniter Framework 4.1.1 |
||
HTML | JSON | HTML | JSON | |
50 | 11 | 11 | 6 | 6 |
66 | 14 | 13 | 6 | 6 |
75 | 17 | 16 | 7 | 7 |
80 | 19 | 19 | 9 | 9 |
90 | 22 | 22 | 11 | 11 |
95 | 29 | 30 | 12 | 13 |
98 | 47 | 1337 | 16 | 17 |
99 | 768 | 2547 | 17 | 18 |
100 | 1986 | 3973 | 44 | 54 |
Results show that in 95% of cases CodeIgniter is 2.4 times faster answering to HTML requests and 2.3 times faster for JSON requests