Benchmarking Wordpress and Django
Regular readers will know that I recently migrated to lighttpd from Apache 2, to try and enable my blog to handle traffic spikes better. Out of curiosity, I decided to benchmark the new setup.
I used a dedicated server on a 100Mbit line at ovh, France to perform the tests on my 256mb Xen VPS in London.
First I installed ApacheBench, which is in the Debian package apache2-utils. Then I made it send 1000 requests, 10 concurrently, (figures I chose off the top of my head) to each of the following sites I host:
- A static file
- Wordpress with wp-cache plugin on php5-cgi with 4 processes under fastcgi
- Django eshop running in threaded mode under fastcgi
- CherryPy webpwman running under fastcgi
Now I don't claim it was a fair test, but the results are pretty shocking.:
Average time per request on ion.maniacmartin.com:
| Ping time | 12ms |
| Static | 53ms |
| Django | 113ms |
| CherryPy | 238ms |
| Wordpress | 1700ms (+539 failed requests) |
When my blog was reddited, it was Wordpress without wp-cache on Apache workers, all of which contained unncessesary mod_python Django instances. It stood no chance. Even after the optimisations I have done, Wordpress still performs shockingly bad compared to the alternatives.
I will probably be switching my blog to a Django-powered backend, such as the soon-to-be-released aeblog, that powers Aeracode.
Update: You can get a second opinion, which also shows that Django is faster, but by a much smaller margin.




comments
[...] Benchmarking: WordPress vs Django→ [...]
Well, my site got reddited too - http://www.rk.edu.pl/reddited.png - and Django made no problems with that :D
I wonder how much better you'd do using mod_wsgi instead of fcgi.
Hi, I did some speed test on fresh WordPress installation, than I turn on MySQL and PHP caching and finaly I install WP-Cache. Results were amazing. I'm not sure how your got so bad result for WordPress. My average time per request for WordPress with WP-Cache and without MySQL and PHP caching turned on is 4.26ms In other words, WordPress on shared host is able to handle 235 requests per second.
hi
Hey everyone! I'm back from New Jersey, and fully got the website up to date, and I even finished screenshotting all the catalogs I still needed to do! So starting tomorrow, I'll be working on that. I hope to be done with all the catalogs by the end of July, although I have nearly 300 MB of catalog pictures to upload.....
Anyway, we updated a ton of pages. They <a href=http://cp-memories.piczo.com/>Club Penguin fansite</a> include the following lists/guides: Club Penguin Event Log, Item List, and the Dance/Wave/Sit List
And the following pages: Servers, Elite Penguin Force, (with a new video) Issue 194, Club Penguin Blog, Desktop Backgrounds, Website Banners, and 101 Days of Fun. Enjoy!