The LNMP environment has been installed on the Virtual Machine. As we have been paying attention to performance issues recently, we have tried to install HHVM. Because the entire machine was just installed, I did not test the performance of PHP scripts in the native state before installing HHVM (Sorry !). After everything is done, I started the test. I installed the LNMP environment on the Virtual Machine. As I have been paying attention to performance issues recently, I tried to install HHVM. Because the entire machine was just installed, I did not test the performance of PHP scripts in the native state before installing HHVM (Sorry !).
After everything is done, I started the test and executed it again under the command line.
Php-f some. php
Hhvm-f some. php
I was depressed when the execution results were executed.
Question:
1. The HHVM is not installed successfully? (However, the HHVM service has been started and webpage access is normal. Run the PHP script with hhvm)
2. After HHVM is installed, it cannot be separated from the native PHP?
Have you recently used HHVM to discuss a major issue?
Reply content:
The LNMP environment has been installed on the Virtual Machine. As we have been paying attention to performance issues recently, we have tried to install HHVM. Because the entire machine was just installed, I did not test the performance of PHP scripts in the native state before installing HHVM (Sorry !).
After everything is done, I started the test and executed it again under the command line.
Php-f some. php
Hhvm-f some. php
I was depressed when the execution results were executed.
Question:
1. The HHVM is not installed successfully? (However, the HHVM service has been started and webpage access is normal. Run the PHP script with hhvm)
2. After HHVM is installed, it cannot be separated from the native PHP?
Have you recently used HHVM to discuss a major issue?
The performance of HHVM is greatly improved when it is used to process complex business logic.
Test echo "hello world"; this simple business logic is useless.
Also, test the performance difference between native PHP and HHVM in Multi-concurrency (high pressure) mode.
Performance cannot be improved much.
I tested it on a typecho program and it took 30 ms to open the home page and the php5-fpm for the same server needed 150 ms hhvm
However, the memory occupied by hhvm is much higher.