WordPress Performance Guide : From 5 to 6100 requests/sec on a 1Vcpu/1GB Ram VPS

After teasing in my last post, here is the full tutorial on how to improve your WordPress performances.

This idea started last week. As a Solution Architect @Hegerys, I had to provide a new solution for Magento hosting on a unique dedicated server.
But as we all know, if Magento is a very good and competitive eCommerce Software, it is also one of the slower, if not the slowest and heavyest. Getting good performance for this kind of web application on a unique dedicated server just seemed impossible.

Then before delivering, I wanted to test out how I could improve performances on a web software without having to get my hands directly into the code.
I had this wordpress blog (the one you’re reading) on a non-optimized WordPress behing a non-optimized apache+mod_php, on a very little VPS (1VCore, 1GBram).

When I started this work, http://blog.brigato.fr was only handling 5 requests/sec. It now handles more than 6000 requests/sec.

By following this tutorial, you should be able to improve a fresh untouched Wordbress performances by a factor 1000, and an optimized (W3 Total Cache, APC Enabled…) WordPress by a factor 400.

Continue reading

WordPress 2700 rq/s on a 1Vcpu/1GB Ram VPS

Update 23 Dec
Please see my new post here.
Managed to go through 6100rq/s by playing with Keepalive requests between backends. Seems even 1 rq/s more from apache can mean up to 200+rq/s at varnish frontend.

———————————


2012, December the 22, 0h50 a.m..
I’ve done it. One whole night of work, but it’s done. Passed the 150rq/s gap. Then the 300. Then it happened.


Results are here : 2694rq/s on a 1Vcpu/1GBRam VPS for a WordPress3.3 Instance on Index page. 0.003sec Average request time.

I’ll write a real paper on this during the next week. Meanwhile, first handmade schema explains it all. Virtous circle.

Oh, and teaser:
APC Opcode Cache is slower than on-disk static files served by Nginx. More than 3 times slower than on-disk files on a poor 80 I/Ops SATA Hard-drive.