HHVM, no hair?!

Source: Internet
Author: User
Tags hhvm
Installed on the virtual machine LNMP environment, because recently has been concerned about the performance problem so try to put HHVM also installed. Because the whole machine was just loaded, I didn't test the performance of PHP scripts in the native state until HHVM was installed (hadn't!). )。

When it's all right, I'll start the test and execute it at the command line, respectively.
Php-f some.php
Hhvm-f some.php
Execution results about, I was depressed.
Questions:
1. Did the HHVM not succeed? (However, the HHVM service has been started and Web Access is normal.) Execute PHP script with HHVM OK)
2.HHVM can not be separated from the original PHP after loading it?

Have you recently used HHVM Daniel to come in and discuss a drawer?

Reply content:

Installed on the virtual machine LNMP environment, because recently has been concerned about the performance problem so try to put HHVM also installed. Because the whole machine was just loaded, I didn't test the performance of PHP scripts in the native state until HHVM was installed (hadn't!). )。

When it's all right, I'll start the test and execute it at the command line, respectively.
Php-f some.php
Hhvm-f some.php
Execution results about, I was depressed.
Questions:
1. Did the HHVM not succeed? (However, the HHVM service has been started and Web Access is normal.) Execute PHP script with HHVM OK)
2.HHVM can not be separated from the original PHP after loading it?

Have you recently used HHVM Daniel to come in and discuss a drawer?

Pro, HHVM is used to deal with complex business logic to get a great performance boost.
You test the echo "Hello World" separately, and the simple business logic is nothing to test.
Also, please test the performance differences between native PHP and HHVM under multiple concurrency (high pressure).

Performance does not improve much.

I tested on the Typecho program, open the first page of the same server PHP5-FPM need 150ms HHVM need 30ms
But HHVM occupies a lot more memory.

  • 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.