HHVM, useless ?!

Source: Internet
Author: User
Tags hhvm
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.

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.