I have replaced Apache + modphp to nginx + HHVM. The original site was running between 1-2 seconds for the html document alone (from curl and FF). With HHVM it is now running at 14-20 seconds.
This is all operating on Ubuntu 14.04. With stock php.ini and server.ini
Here are some configs:
location ~ \.(hh|php)$ {
fastcgi_keep_conn on;
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $request_filename; // The only change
include fastcgi_params;
}
server {
#listen stuff
#root stuff
#index stuff
location / {
try_files $uri $uri/ index.php?$query_string;
}
include hhvm.conf
}
This is using CodeIgniter as the framework.