Experiences with compiling WordPress using Hip Hop?

What are you experiences compiling WordPress using Hip Hop? (

https://github.com/facebook/hiphop-php/wiki/running-hiphop

Read More

)

Specific:

  • is this maintainable with upgrades?
  • is the performance increase bigger than using alternatives?

update: also interesting: http://www.phpclasses.org/blog/post/168-Can-NET-make-PHP-run-faster-than-the-official-PHP-implementation.html

Related posts

Leave a Reply

2 comments

  1. Original approach of static compilation in HipHop PHP-to-C++ has been since replaced by HipHop VM just-in-time compilation.

    Facebook prominently featured WordPress as example application and it no longer requires extensive (barely any by now) core edits.


    Old answer

    There is quite extensive presentation Rasmus Lerdorf – PHP Performance that uses WP as test subject and covers HipHop among many other things.

    The summary I can formulate from that presenation is that HipHop:

    • requires WP core edits
    • has limited PHP and libraries compatibility
    • provides (on vanilla WP install at least) very mild performance gain for the effort it takes to implement. In that presentation compiling with HipHop bumped WP from 28.8 transactions per second to 33.6.

    I think more common performance improving alternatives (like reverse proxy) can easily outperform that without such downsides.

  2. There is ongoing work on making this possible, reference http://core.trac.wordpress.org/ticket/14642 as you can see it keep getting punted to future releases, bit core devs are actively involved in making it happen.

    As of WordPress 3.3 one still can’t compile directly in HPHP without core edits.

    Also worth following: http://huichen.org/en/2010/06/wordpress-three-hardened-by-hphp/ & http://huichen.org/en/2010/06/wordpress-3-benchmark-part-2/ if you’re interested in it.