PHP 8.1 Benchmarks - Continuing The Nice Performance Trajectory

Written by Michael Larabel in Software on 28 November 2021 at 09:13 AM EST. Page 2 of 2. 29 Comments.
PHP 8.1 EPYC AMD Benchmarks On Linux

With the common PHPBench we see quite nicely how PHP has evolved especially well over the past half-decade plus since the introduction of PHP 5.6. PHP 8.0 to 8.1 squeezed out an extra 4% improvement in this benchmarkas another evolutionary step forward and continuing the steady improvements made during the PHP 7.x releases.

PHP 8.1 EPYC AMD Benchmarks On Linux
PHP 8.1 EPYC AMD Benchmarks On Linux

While the PHP micro-benchmarks aren't too useful, from these tests they are just another example showing the advancements of PHP over the past number of years.

PHP 8.1 EPYC AMD Benchmarks On Linux

For our own benchmark with the Phoronix Test Suite itself for exercising various code paths around XML parsing, JSON generation, and other common real-world operations, here is a look at things. With PHP 8.1 is a nice improvement after being largely flat from PHP 7.3 to PHP 8.0 on this AMD EPYC Linux server. Most of the dramatic gains were enjoyed back during late PHP 5.x and early PHP 7.x releases.

PHP 8.1 EPYC AMD Benchmarks On Linux

Such as the render tests for generating the SVG graphs as being viewed for the results in this article, PHP 8.1 continues moving in the right direction for performance.

PHP 8.1 EPYC AMD Benchmarks On Linux

Coming a bit of a surprise is PHP 8.1 even having slightly lower peak memory use than prior PHP versions.

That's the quick overview of PHP 8.1 performance, but long story short it's another nice release advancing this server-side programming language. There are some great additions on the language side with PHP 8.1 while from the performance aspect with tests across various systems there are incremental improvements to enjoy and continuing the years-long performance journey that PHP has been on to make it more competitive with other scripting languages.

If you enjoyed this article consider joining Phoronix Premium to view this site ad-free, multi-page articles on a single page, and other benefits. PayPal or Stripe tips are also graciously accepted. Thanks for your support.


Related Articles
About The Author
Michael Larabel

Michael Larabel is the principal author of Phoronix.com and founded the site in 2004 with a focus on enriching the Linux hardware experience. Michael has written more than 20,000 articles covering the state of Linux hardware support, Linux performance, graphics drivers, and other topics. Michael is also the lead developer of the Phoronix Test Suite, Phoromatic, and OpenBenchmarking.org automated benchmarking software. He can be followed via Twitter, LinkedIn, or contacted via MichaelLarabel.com.