Hhvm performance is similar to PHP 5.5 Ubuntu 14.04

I must have missed something. But I get the same performance with php and hhvm by running ab -n 100 -c 10 http://127.0.0.1:8080/

php -v returns:

HipHop VM 3.2.0 (rel)
Compiler: tags/HHVM-3.2.0-0-g01228273b8cf709aacbd3df1c51b1e690ecebac8
Repo schema: c52ba40f4a246d35a88f1dfc1daf959851ced8aa`

tail -3 /var/log/nginx/access.log returns

127.0.0.1 - - [13/Sep/2014:02:46:33 +0300] "GET / HTTP/1.0" 200 116 "-" "ApacheBench/2.3"
127.0.0.1 - - [13/Sep/2014:02:46:33 +0300] "GET / HTTP/1.0" 200 116 "-" "ApacheBench/2.3"
127.0.0.1 - - [13/Sep/2014:02:46:33 +0300] "GET / HTTP/1.0" 200 116 "-" "ApacheBench/2.3"`

nginx conf:

location ~ \.(hh|php)$ {
                fastcgi_keep_conn on;
                fastcgi_pass   127.0.0.1:9000;
                fastcgi_index  index.php;
                fastcgi_param  SCRIPT_FILENAME $document_root$fastcgi_script_name;
                include        fastcgi_params;
 }

this is my file /etc/hhvm/php.ini:

hhvm.log.level = Warning
hhvm.log.always_log_unhandled_exceptions = true
hhvm.log.runtime_error_reporting_level = 8191
hhvm.mysql.typed_results = false
hhvm.eval.jit_warmup_requests = 0
hhvm.eval.jit = true

and this is my file /etc/hhvm/server.ini:

pid = /var/run/hhvm/pid

; hhvm specific

hhvm.server.port = 9000
hhvm.server.type = fastcgi
hhvm.server.default_document = index.php
hhvm.log.use_log_file = true
hhvm.log.file = /var/log/hhvm/error.log
hhvm.repo.central.path = /var/run/hhvm/hhvm.hhbc
hhvm.eval.jit_warmup_requests = 0
hhvm.eval.jit = true

I definitely restarted hhvm nginxas well as rebooted my server.

+4
source share
1 answer

I am working on the HHVM team and recently I was looking at benchmarking. Several problems stand out:

  • hhvm.eval.jit_warmup_requests = 0 - why are you setting this?
  • Are you really making any warm up requests? Every jit is slow to start - I would expect php5 to beat HHVM for the first 10-50 requests.
  • -n 100 -c 10

; "" - : https://github.com/facebook/hhvm/tree/master/hphp/test/frameworks/perf/

Wordpress, .

, :

  • -n 300 -c 10 ( ab)
  • , /
  • , HHVM jit.
  • , PHP5 ( PHP-NG) -
  • -c 60 1

, ? , ; , , "" , .

+8

All Articles