The showdown: apache vs. lighttpd
Blogging, Web Development May 7th, 2007 - 6,262 viewsIs lighttpd faster than Apache? Can Wordpress handle high traffic websites? Rumors spread like wildfire on the web, and sometimes it’s hard to separate the truth from evangelism and clever marketing. Today I’m going to put Wordpress to the test, running under Apache and lighttpd, and see if a clear winner emerges.
To find out more about how I came up with these numbers, check out my post explaining how to measure your web site’s performance.
For these tests I used ab, a popular benchmarking tool distributed as part of the Apache project. I ran each test multiple times, varying the number of concurrent connections. The results below show the maximum number of requests per second each server could handle with a default installation, with APC installed, and with WP-Cache enabled.

The results are pretty clear: lighttpd won by a longshot. I use Apache, and was actually pretty impressed with these results. It’s not that lighttpd won (that much I expected), but that the margin was so large (roughly 50% for the second two tests). It’s also fairly clear that Wordpress, properly configured, can handle a huge volume of traffic. Even six requests per second is quick enough for most blogs. Keep in mind, however, that this test was run on a fairly powerful dedicated box (Sun Ultra 20; 1.8GHz AMD64 Processor; 2.5GB RAM). If you’re using a shared hosting provider, and need to handle a lot of traffic, install WP-Cache.
One question remains: is the performance gain worth the switch? This you’ll have to answer for yourself. For me it’s not. The performance I get from Apache is sufficient, and the support and community more than compensate for deficiencies elsewhere. If performance became an issue, however, I wouldn’t hesitate to make the switch.
May 14th, 2007 at 11:07 am
[…] Update 14.05.2007: Natürlich gibt es auch einen Geschwindigkeitsvergleich! […]
July 11th, 2007 at 10:34 am
[…] for simple service of static Web pages.” This is in line with the results I found when I ran a comparison between longtime stalwart Apache and lightweight newcomer […]
August 13th, 2007 at 9:56 pm
[…] I run WP-Cache. I started using WP-Cache after my first Digg experience and, for me, the performance improvements far outweigh the compatibility issues that may arise. If you’re a real performance junkie you […]