Home > Backend Development > PHP8 > PHP8.1 performance benchmark report is here! (Compare multiple versions)

PHP8.1 performance benchmark report is here! (Compare multiple versions)

藏色散人
Release: 2023-02-17 12:26:01
forward
7028 people have browsed it

PHP 8.1 Performance Benchmark

PHP 8.1 was officially released last week, and technology media Phoronix immediately released a performance benchmark report for PHP 8.1.

This test was conducted on an AMD EPYC 72F3 server running Ubuntu Linux. All tested versions were rebuilt on the same system with the same packages and the same build options.

The versions used for reference comparison include: PHP 8.1, PHP 8.0.13, PHP 7.4.26, PHP 7.3.33, PHP 7.0.33 and PHP 5.6.40. PHP 7.1/7.2 was excluded due to a segmentation fault when building and running in this stack.

The test environment is as follows:

PHP8.1 performance benchmark report is here! (Compare multiple versions)

The test results are as follows:

PHP8.1 performance benchmark report is here! (Compare multiple versions)

The above picture shows the use of PHPbench Test the performance results of various versions of PHP. As you can see, the language has developed quite well in the past few years since the launch of PHP 5.6. Now, while continuing the stable improvements seen in PHP 7.

PHP8.1 performance benchmark report is here! (Compare multiple versions)

PHP8.1 performance benchmark report is here! (Compare multiple versions)

As far as PHP Micro benchmarks are concerned, Phoronix believes that although they are not too useful; but judging from the test results, they are again Highlights the progress of PHP in the past few years.

PHP8.1 performance benchmark report is here! (Compare multiple versions)

And in benchmarking various code paths around XML parsing, JSON generation, and other common real-world operations using the Phoronix Test Suite itself, there is a situation . On AMD EPYC Linux servers, PHP 8.1 represents a nice improvement after being essentially flat from PHP 7.3 to PHP 8.0. Most of the significant improvements occurred during the late PHP 5.x and early PHP 7.x releases.

PHP8.1 performance benchmark report is here! (Compare multiple versions)

In terms of rendering testing, the test results in the above figure also show that the performance of PHP 8.1 continues to develop in the right direction.

PHP8.1 performance benchmark report is here! (Compare multiple versions)

It’s worth mentioning that the peak memory usage of PHP 8.1 is even slightly lower than previous PHP versions. Overall, PHP 8.1 is another good version that promotes the development of server-side programming languages. PHP 8.1 has some great additions to the language and some incremental improvements to performance that make it more competitive with other scripting languages.

Recommended: "PHP8 Usage Tutorial"

The above is the detailed content of PHP8.1 performance benchmark report is here! (Compare multiple versions). For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:oschina.net
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template