Conversation
|
For anyone interested, this is some comparitive benchmarks between hhvm and standard PHP. Batcached pageHHVM FastCGIPHP-FPMUncached page (with object cache)HHVM FastCGIPHP-FPM |
|
So it looks as if php-fpm is better without caching, and presumably most WP sites don't have any caching on them right? |
|
@owaincuvelier right, to be honest, I need to dig into it more, as it should be faster. However, there is also |
|
Very interesting @joehoyle. Subscribing to this one :) |
|
Hi, I made some further ApacheBench Test. You can see them here: It is in german, but the numbers are speaking for themselves ;-) |
|
Is this something we'll look to merge into master at some point? |
|
Nope, just for demo On Tuesday, February 25, 2014, Tom Willmot notifications@github.com wrote:
|
Remove Sticky Custom Post Types. Fixes #68
As some may have heard, HHVM just announced support for FastCGI (http://www.hhvm.com/blog/1817/fastercgi-with-hhvm), this makes it a lot easier to run with something like WordPress, as you can use the exact same Nginx configuration and then proxy_pass requests to PHP files to the hhvm-fastcgi daemon.
Why would you want to do this? Anyone's guess, I wanted to try out the new toys, and see what the performance improvement over PHP-FPM was. For anyeone wondering, so far I havn't managed to make it perform faster than PHP-FPM (unlike what the article above seems to say). I assume this is because typically a WordPress page load is 80% DB / Network IO where something like HHVM is not going to make a difference.
To actually try this out, you still need to do a few things after highstating. Firstly, PHP-FPM will be running on port
9000- rather than running much HHVM and FPM side-by-side it's easier to just stop FPM so you don't have to make any alterations to the Nginx conf:Now you are free to start
hhvm-fastcgi, however - with the current config,hhvmneeds to be started in the dir you want to run the site from, as Nginx is not currently passing the path to different web roots. For example, to run hhvm on the base wordpress trunk install:All requests to the hhvm will now be serving WordPress.