search
HomeBackend DevelopmentPHP8PHP8.1 performance benchmark report is here! (Compare multiple versions)

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!

Statement
This article is reproduced at:开源中国. If there is any infringement, please contact admin@php.cn delete

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

Video Face Swap

Video Face Swap

Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Tools

Atom editor mac version download

Atom editor mac version download

The most popular open source editor

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

Dreamweaver Mac version

Dreamweaver Mac version

Visual web development tools

Safe Exam Browser

Safe Exam Browser

Safe Exam Browser is a secure browser environment for taking online exams securely. This software turns any computer into a secure workstation. It controls access to any utility and prevents students from using unauthorized resources.

SecLists

SecLists

SecLists is the ultimate security tester's companion. It is a collection of various types of lists that are frequently used during security assessments, all in one place. SecLists helps make security testing more efficient and productive by conveniently providing all the lists a security tester might need. List types include usernames, passwords, URLs, fuzzing payloads, sensitive data patterns, web shells, and more. The tester can simply pull this repository onto a new test machine and he will have access to every type of list he needs.