Performance Comparison of PHP 5.6 vs. 7.0 vs HHVM

Jani Tarvainen - April 20th 2016

Performance Comparison of PHP 5.6 vs. 7.0 vs HHVM

About me - Jani Tarvainen

PHP performance lately

Compatibility

Benchmark case

Frontpage

PHP HHVM

Top Stories

PHP HHVM

Projects

PHP HHVM

REST API Call

PHP HHVM

Memory usage and Response Times

Load Frontpage with empty runtime and Symfony caches

PHP HHVM

Memory usage and Response Times

Load Frontpage with empty runtime and Symfony caches

PHP HHVM

Memory usage and Response Times

Load Top Stories page

PHP HHVM

Memory usage and Response Times

Load Top Stories page

PHP HHVM

Memory usage and Response Times

Load Projects page

PHP HHVM

Memory usage and Response Times

Load Projects page

PHP HHVM

Memory usage and Response Times

Load Frontpage

PHP HHVM

Memory usage and Response Times

Load Frontpage

PHP HHVM

Requests served per second

Frontpage without Symfony Reverse Proxy

PHP HHVM

Requests served per second

Frontpage with Symfony Reverse Proxy

PHP HHVM

Requests served per second

API without Symfony Reverse Proxy

PHP HHVM

Requests served per second

API with Symfony Reverse Proxy

PHP HHVM

Requests served per second

API with Symfony Reverse Proxy

PHP HHVM

Conclusions

Adoption

What should I use?

...PHP-PM and PHPFastCGI?

PHP-FPM vs. PHP-PM

Frontpage without Symfony Reverse Proxy

PHP HHVM

PHP-FPM vs. PHP-PM

API without Symfony Reverse Proxy

PHP HHVM

Cool Links

Questions?