CodeIgniter Forums
CodeIgniter's 404 simple benchmark - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: CodeIgniter 4 (https://forum.codeigniter.com/forumdisplay.php?fid=28)
+--- Forum: CodeIgniter 4 Discussion (https://forum.codeigniter.com/forumdisplay.php?fid=31)
+--- Thread: CodeIgniter's 404 simple benchmark (/showthread.php?tid=89934)



CodeIgniter's 404 simple benchmark - Muzikant - 02-10-2024

Hi. I ran a simple benchmark for 404 page. Average from 10 times for 10 seconds for each group with two "cold" starts before each group. Higher is better.

Classis CI4 404 page:
31.05 requests/s (100.00%)

Overriden by controller with the same view:
29.62 requests/s (95.41%)

Overriden with caching with the same output:
30.58 requests/s (98.51%)

"Static" PHP with 404 status with the same output:
5854.84 requests/s (18858.00%)


RE: CodeIgniter's 404 simple benchmark - Muzikant - 02-11-2024

I created the same 404 page with Yii 3 (in development) and the result is:
25.74 requests/s (82.90%)