Home  >  Article  >  Backend Development  >  PHP5.X major version performance comparison test_PHP tutorial

PHP5.X major version performance comparison test_PHP tutorial

WBOY
WBOYOriginal
2016-07-13 17:53:211114browse

The following figure shows the performance test of different versions of PHP, using the bench.php test script (this script has been available since PHP 5.1). The vertical axis is the time to complete the test, so the smaller the number, the better the score.

PHP5.X major version performance comparison test_PHP tutorial

Rough test steps:

  1. Get the latest code for each version from PHP 5.1 to 5.4
  2. Compile using the most basic default configuration without any extensions
  3. Run bench.php 10 times and collect data
  4. Take the average and display it using Google Chart

The original data is as follows:

PHP5.X major version performance comparison test_PHP tutorial

So what you can see is that PHP 5.4 has significant performance improvements compared to the previous version. Why not upgrade?

www.bkjia.comtruehttp: //www.bkjia.com/PHPjc/478041.htmlTechArticleThe following figure shows the performance test of different versions of PHP, using the bench.php test script (this script Available since PHP 5.1). The ordinate is the time to complete the test, so the number...
Statement:
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