1208 1942 1482 1888 1344 1702 1620 1327 1572 1384 1063 1685 1713 1049 1771 1534 1175 1125 1753 1208 1942 1914 1623 1053 1312 1736 1199 1600 1572 1263 1186 1307 1754 1448 1093 1500 1520 1308 1121 1907 1319 1574 1539 1778 1133 1604 1380 1195 1952 1796 1034 1784 1883 1022 1848 1648 1375 1044 1454 1707 1890 1055 1593 1220 1545 1531 1329 1269 1639 1209 1681 1019 1215 1791 1243 1600 1985 1353 1157 1550 1197 1176 1428 1735 1015 1991 1783 1519 1855 1114 1297 1370 1407 1314 1083 1777 1197 1512 1264 PHP 8.1: real-life performance benchmarks | PHPnews.io

PHPnews.io

PHP 8.1: real-life performance benchmarks

Written by Stitcher.io / Original link on Nov. 25, 2021

I did a very quick performance test because I wanted to know the impact of PHP 8.1 on my real-life projects.

These benchmarks were taken on my local machine, and only meant to measure the relative difference between PHP 8.0 and 8.1. I benchmarked a page that showed lots of data, with lots of classes loaded, as I expected that inheritance cache would have the largest performance impact.

Metric PHP 8.0 PHP 8.1
Requests per second (#/sec) 32.02 34.75
Time per request (ms) 31.232 28.777

The results seem to be in line what what Dmitry originally reported when he added this feature: a 5-8% performance increase.

Noticed a tpyo? You can submit a PR to fix it. If you want to stay up to date about what's happening on this blog, you can follow me on Twitter or subscribe to my newsletter: Email Subscribe

stitcher.io

« PHP 8.1 Is Released! - Automatically skip sponsored segments in YouTube videos with SponsorBlock »