Today I saw on Weibo that phpng, that is, php7, was merged into master. Everyone knows that I prefer to explore the latest version of things and see what features it has, so I couldn’t help but upgrade. In the past, I The PHP version was 5.5.19 and then I started.
Then compile the configuration parameters. My blog server is Tencent Cloud Server because the blog configuration is relatively low. As follows:
The following is a test for php5.5 and phpNG versions. Of course, I am online and affected by the network environment. You can just take a look. The benchmark is wrong.
My test simulates the ab stress test of 100 concurrency and 100 requests
php5
php7
The QPS of php5 is 2.09
The QPS of php7 is 3.67
Of course during the test, the highest load of php5 was 3.0, and the highest load of php7 was 2.05. Of course, it is still php7-dev
So you can see the performance of PHP7, but my server configuration is not good enough for the test results. You can test it yourself