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.