Today, I saw the micro-blog said Phpng is PHP7 merged into master, we all know that I am more like to explore the latest version of things to see what the characteristics, I can not help but upgrade to the previous version of my PHP is 5.5.19, and then I began.
Copy Code code as follows:
Yum Install git
git clone https://github.com/php/php-src.git
Then compile the configuration parameters, my blog server is Tencent Cloud Server, because the blog is relatively low configuration. As follows:
Copy Code code as follows:
Single-core Intel (R) Xeon (r) CPU e5-2630 v2 @ 2.60GHz
Memory 2G
Below is for the php5.5 and phpng version of the test, of course, I this is online, but also by the network environment interference, we look at the benchmark is wrong ha.
My test simulation was then started with 100 concurrent, 100 requests for AB pressure measurement
PhP5
Php7
PHP5 's QPS is 2.09.
PHP7 's QPS is 3.67.
Of course, at the time of the test, when the maximum load of the PHP5 3.0,PHP7 2.05, of course, it is still php7-dev
So the performance of PHP7 can be seen, but my server configuration does not give force test this result, you can test yourself to see