Lets find out what is faster for Magento: PHP7 or HHVM?
PHP7 is supposed to get close to HHVM performance but how close?
Disclaimer: Magento 2 won't work with HHVM. If you have a patch please suggest. Otherwise use PHP7 with Magento 2.
- linode 2048 plan
- Debian 8 Jessie
- mysql 5.6 - http://www.debiantutorials.com/install-mysql-server-5-6-debian-7-8/
- php 7.0.13 - https://www.colinodell.com/blog/2015-12/installing-php-7-0-0
- HHVM 3.15.3 - https://docs.hhvm.com/hhvm/installation/linux#debian-8-jessie
- Magento 220.127.116.11 with sample data - https://magento.com/tech-resources/download
I picked three different URLs:
and load tested with ab (apache benchmark):
ab -k -c 35 -n 2000 http://m1.goivvy.com/
ab -k -c 35 -n 2000 http://m1.goivvy.com/customer/account/login/
ab -k -c 35 -n 2000 http://m1.goivvy.com/accessories/jewelry.html
PHP7-FPM and HHVM were with default configuration parameters.
Results are below:
Magento on HHVM beats Magento on PHP7 for every URL I tested.
Magento is still faster on HHVM than on PHP7. Have problems running HHVM? Read this tutorial.
If you find this post interesting do not hesitate to sign up for our newsletter and join the 692 people who receive Magento news, tips and tricks regularly.