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