Hi,
I wanted to gather some impressions of the current state and ask if anybody uses SilverStripe on HHVM successfully in production?
Because we've currently tested HHVM on test servers based on production sites and are pretty impressed. Not only about the performance, but also how easy it is to install!
Our starting point:We are using a pretty optimized configuration of nginx and php-fpm on Amazon.
For the frontend we developed a pretty dynamic caching based on redis, which further allows us to use nginx' microcache. But we are still trying to get a better performance, especially for the CMS where we cannot use our dynamic caching.
Maybe a year ago, we gave HHVM a try but stopped quickly, as important extensions like mysqli and APIs for XML where not supported. Also the installation was not so easy, also in combination with our automatic deployment.
HHVM today:In the last days we gave HHVM a new chance and we are impressed how solid it seems.
Installation? 5 Minutes!There are official packages for the big linux distributions.
If you are using nginx with php-fpm you may only have to change one line (since both, php-fpm and hhvm, talk fastcgi): the line where you are setting the unix socket, you just change it from php-fpm's to hhvm's path.
Does it work? Yes!**But only on a first quick overview! We tested it with the SilverStripe 3.1.6 without modifications and we have not found any fatal error yet, but of course we only tested the frontend and the CMS by hand in the browser.
There is a fork of SilverStripe which fixed some bugs, but this is already months ago. The github project is extremely active, so I think since then there have been a lot of changes and fixes.
The fork is discussed here:
https://groups.google.com/d/topic/silverstripe-dev/l1cjYU7q4r4/discussionSilverStripe is listed on the frameworks page of HHVM:
http://hhvm.com/frameworks/Currently the status is at 97.22%
Performance? Holy s...!We've tested a small project with a small code base and a plain
SilverStripe 3.1.6 and one big project with a heavy code base (also
3.1.6, dynamic caching with redis and tagging, lot of extensions).
After a short warmup the hole CMS seems a lot faster. The CMS requests are up to
3 times faster, but at least 50%!
Are there plans to officially support HHVM?...or at least plans to do some fixes form time to time to keep the tests (
http://hhvm.com/frameworks/) at 100%?
What are your experiences with HHVM?It would be nice to see some response!
Thanks!
Stefan