Migrate PHP versions to php7_php tips

Source: Internet
Author: User
Tags git clone

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.