[HacktionLab] HHVM vs PHP-FPM (was Re: Server efficiency slides)

johnc johnc at aktivix.org
Mon Nov 16 13:19:44 UTC 2015


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi,

I haven't tried HHVM yet but recently used another PHP accelerator on a
wordpress based site:

apc. (php-apc package on debian)

This improved page load time significantly and didn't seem to cause any
problems. You could alternatively try the zend one if that doesn't work
out for you.

I also improved performance by using this static html caching plug-in
with really good results:

https://wordpress.org/plugins/wp-super-cache/

I also optimized image size on the wordpress site by using this plug-in:

https://wordpress.org/plugins/ewww-image-optimizer/changelog/

I've been using these tools to benchmark:
https://developers.google.com/speed/pagespeed/insights/
http://www.webpagetest.org

The latter allows emulation of different browsers which is nice. Both
provide tips on improving performance for your site/server.

Doing the above was really easy, didn't break anything and improved
performance significantly.

HTH.

Cheers,
John



On 15/11/15 12:17, Marcus Valentine wrote:
> Following up on Daniel's and Ben's thought-provoking talk at Barncamp
> on this Summer, I've been experimenting with a server build intended
> to serve PHP stuff* (specifically wordpress) more effectively.
> 
> My build is
> 
> Debian GNU/Linux 8.2 (jessie)
> nginx version: nginx/1.6.2
> HipHop VM 3.10.1 (rel)
> MariaDB Server version: 10.0.22-MariaDB-0+deb8u1 (Debian)
> 
> This build plays nicely with current wordpress (4.3.1).
> 
> The test VM has 4GB of RAM and uses 2 CPU (from a total of 6) from a
> AMD Phenom II X4 20 Processor
> 
> Running the apache stress test on a minimal wordpress front page
> 
>  ab -c 50 -n 1000 http://mytestsite.local
> 
> I get
> 
> Requests per second:    84.66 [#/sec] (mean)
> 
> For comparison, on my production server, (16 GB RAM, AMD Phenom II X6
> 1055T Processor), running a conventional LAMP stack. I get
> 
> Requests per second:    8.58 [#/sec] (mean)
> 
> So far so good. Moving onto other php stuff, phpmyadmin works fine.
> 
> Unfortunately Roundcubemail doesn't work:
> 
> https://github.com/facebook/hhvm/issues/5185
> 
> Nor does Owncloud
> 
> https://github.com/owncloud/core/issues/10837
> 
> It seems roundcube and owncloud _will_ play nicely with php-fpm. So my
> options include running php-fpm in parallel with HHVM, or abandoning
> HHVM and just going with php-fpm.
> 
> Thoughts?
> 
> Safe
> 
> Marcus
> 
> 
> * Struggling for the correct word
> 
> On 06/07/2015 17:38, daniel wrote:
>> Hey guys, Here are the slides and lecture notes from the talk on
>> server efficiency and optimization. I am soooooooooooooooooo sorry
>> it took so long to get them sent off. Been super busy. I'd put it
>> on the wiki but I'm having a brain freeze and can't figure out how
>> to register a new account. Please do let me know if you guys have
>> any further thoughts, comments, questions, or corrections about any
>>  of the stuff on here. I think that we and the rest of the team at
>> Noflag had a fantastic time and we're looking forward to the next
>> one. Let's keep in touch about the possibility of having the Winter
>> Gathering in Scotland this time, eh! All the best, Daniel
> 
>> http://noflag.org.uk/server-efficiency.pdf 
>> https://noflag.org.uk/noflag-server.odp
> 
> 
> _______________________________________________
> HacktionLab mailing list
> HacktionLab at lists.aktivix.org
> https://lists.aktivix.org/mailman/listinfo/hacktionlab
> 

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1

iQIcBAEBAgAGBQJWSdfvAAoJELy1jPQ1KER79QsQAJuAfQhajR0OciAJR7hL1RzO
VEpKqIXrpsPuJuLrj7OGLl/iaqRBI5eoPLLud92LK0U/GCd1x66f0VCZgkBqer6I
ZIfSTB48TOZHDWEUDxAeIT96IKWqMcjJxRSONSPX8SwpEIkEtQVz5KKIt/cDgpwJ
jRZuSUy3J7NqAjHuKB+zbTC933qUBaoBxV9o4CPS5du9PyTEArx9CTa6kvj4Gvcf
1aV8veu9LGX1s6sUnCPL7XJENjuxdDzRjLCTiwjicuCc2WBbfIgRlXYFi77iMwpL
P/AiOQ5nalTCpYXdIy/4e/2IWzST4BR75IsyQ2LuBOAYdXYL+I7jWK3ftZw+vCnq
7BeXw7wmbKIbjKpEUcYLGuyaf1jBBwfh9r3Fvpz1ZJtgbx+mHhnHYjD9+QTFsh2L
oJZJw65c4Q6AcXT7xfbN3zfcfyHLH5uZ447tagd+C98ET/5uPD0vEslw2BWx12qT
s9oliNxWOGFPuo2Pyw4uj+hA+8RkSDNyr0ju5usuhdSp6aCogvLywM1+4Sf31KAB
I7RzWuysx0DJjFoMlgYR+GUIgzawDGRZWBRBxqMveZGinD3i7PauFyJqw3P/mP6Y
ZTwH9VKExieyBakESpC+1+VAomSqnb6Zr2sy60xmszkjs907rE5gacAwu71nBv8Z
sjmYjeJkmWGW/ZBl2z4m
=sVjp
-----END PGP SIGNATURE-----



More information about the HacktionLab mailing list