Site icon David Yin's Blog

Performance compared between PHP8.2.28 and PHP8.3.13

I just upgraded one Ubuntu server from 22.04 to 24.04. Then I did a php engine upgrade from 8.2.28 to 8.3.13.

Both php are in php-fpm mode. Opcache JIT enabled.

Here are some php performance benchmark tests on the server.

Bench.php test

The average score on php8.2.28 is 0.2391.

The average score on php8.3.13 is 0.0766.

Micro-bench.php test

The average score on php8.2.28 is 1.3868.

The average score on php8.3.13 is 0.7908.

Bubble.php test

The average score on php8.2.28 is 0.066988.

The average score on php8.3.13 is 0.0319294.

 

Based on the above, I conclude that php8.3.13 is about 50% faster.

These speed tests do a lot of math calculations. It does not include the normal php webpage loading, CSS or static image files reading, or php mysql database connection.  So the PHP website loading speed on the computer browser is not that big difference.

I thought 10% is a lot.

After I published the post, I found another php test bench script.

The test results include IO,  Rand, and MySQL tests.

13.0586 Seconds on php8.2.25-FPM

9.5358 Seconds on php8.3.13-FPM.

PHP8.3.13 is 26.98% faster than PHP8.2.25. It is a WOW.

Exit mobile version