<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Web Server Hacks Blog - Hacks for Dedicated/VPS Servers, SSH, and Plesk &#187; lighttpd</title>
	<atom:link href="http://webserverhacks.com/tag/lighttpd/feed/" rel="self" type="application/rss+xml" />
	<link>http://webserverhacks.com</link>
	<description>Hacks for Dedicated/VPS Servers, SSH, and Plesk</description>
	<lastBuildDate>Tue, 01 Nov 2011 23:56:45 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>WordPress Lighttpd vs. Apache Httpd Perfomance Test</title>
		<link>http://webserverhacks.com/performance-tests/wordpress-lighttpd-vs-apache-httpd-perfomance-test/</link>
		<comments>http://webserverhacks.com/performance-tests/wordpress-lighttpd-vs-apache-httpd-perfomance-test/#comments</comments>
		<pubDate>Mon, 24 Aug 2009 22:22:38 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Performance Tests]]></category>
		<category><![CDATA[ab]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[httpd]]></category>
		<category><![CDATA[lighttpd]]></category>
		<category><![CDATA[performance]]></category>
		<category><![CDATA[test]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://webserverhacks.com/?p=4</guid>
		<description><![CDATA[This is a WordPress permance test using Lighttpd (which is a faster alternative to Apache) and Apache Httpd on a test server loaded with a real blog.  All tests were done from empty load of zero. For testing, I&#8217;ve used a virtual dedicated server from MediaTemple, specifically their dv Extreme server which touts 2GB of ram and virtual quad-core CPU performance. I did an initial test with Lighttpd and  found that Lighttpd outperforms Apache Httpd by 2-10 times faster on images. If you have a blog with image on every blog post, you can probably expect a lot of performance improvements in loading times and also be able to handle 2-10 times more traffic from the same hardware. The below are my test results on a test server loaded with real-world blog with 28MB of MySQL database and 30KB image on every blog post with about 80KB of images on the homepage, which is the page this test is based on. Total bytes of the test blog homepage is 129KB. For all tests, WordPress Super Cache plugin and Super Cache Glib Compression (Php.ini zlib.output_compression = 9) was turned on. For Lighttpd, there were 2 different versions of mod rewrite to &#8230; <a href="http://webserverhacks.com/performance-tests/wordpress-lighttpd-vs-apache-httpd-perfomance-test/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>This is a WordPress permance test using <a href="http://www.lighttpd.net/">Lighttpd</a> (which is a faster alternative to Apache) and <a href="http://www.apache.org/">Apache Httpd</a> on a test server loaded with a real blog.  All tests were done from empty load of zero.</p>
<p>For testing, I&#8217;ve used a virtual dedicated server from <a href="http://webserverhacks.com/go/mediatemple">MediaTemple</a>, specifically their dv Extreme server which touts 2GB of ram and virtual quad-core CPU performance.</p>
<p>I did an initial test with Lighttpd and  found that <strong>Lighttpd outperforms Apache Httpd by 2-10 times faster on images.</strong> If you have a blog with image on every blog post, you can probably expect a lot of performance improvements in loading times and also be able to handle 2-10 times more traffic from the same hardware.</p>
<p>The below are my test results on a test server loaded with real-world blog with 28MB of MySQL database and 30KB image on every blog post with about 80KB of images on the homepage, which is the page this test is based on.</p>
<p>Total bytes of the test blog homepage is 129KB.</p>
<p>For all tests, <a href="http://wordpress.org/extend/plugins/wp-super-cache/">WordPress Super Cache plugin</a> and Super Cache Glib Compression (Php.ini zlib.output_compression = 9) was turned on.</p>
<p>For Lighttpd, there were 2 different versions of mod rewrite to make Super Cache work:</p>
<ul>
<li>Lighttpd with Mod_Rewrite and Mod_Magnet based on <a href="http://www.asteriosk.gr/blog/2009/02/19/installing-wp-super-cache-with-lighttpd/">asteriosk.gr method</a>.  This method supposedly improves upon the Tempe.st method  below but I did not notice any performance improvements.</li>
<li>Lighttpd with Mod_Magnet based on <a href="http://tempe.st/2008/05/lightning-speed-wordpress-with-lighttpd-and-supercache-part-ii/">Tempe.st method</a>.  This uses Lighttpd coupled with Mod_Magnet module, which is Lighttpd substitute/alternative to Apache&#8217;s mod rewrite .htaccess file.</li>
</ul>
<p>I&#8217;ve used the following <a href="http://linux.die.net/man/1/ab">ab</a> parameters, 1000 connections with 5 concurrent connections.</p>
<p><strong>ab -n 1000 -c 5 http://testsite.com/index.php</strong></p>
<h2>Here&#8217;s test results for Apache Httpd</h2>
<p>Only PHP was enabled for Apache, everything else turned off.  PHP and Httpd were both optimized as much  as they can be.</p>
<p><strong>Max Load: 6.37</strong></p>
<p><strong>Max Memory: 337MB</strong><br />
Time taken for tests:   86.480747 seconds<br />
<strong>Requests per second:    11.56 [#/sec] (mean)<br />
</strong>Time per request:       432.404 [ms] (mean)<br />
Time per request:       86.481 [ms] (mean, across all concurrent requests)<br />
Transfer rate:          3.33 [Kbytes/sec] received</p>
<p>Percentage of the requests served within a certain time (ms)<br />
50%    378<br />
66%    442<br />
75%    501<br />
80%    542<br />
90%    657<br />
95%    737<br />
98%    908<br />
99%   1039<br />
100%   2112 (longest request)</p>
<h2>Lighttpd with Mod_Rewrite and Mod_Magnet</h2>
<p>based on <a href="http://www.asteriosk.gr/blog/2009/02/19/installing-wp-super-cache-with-lighttpd/">asteriosk.gr method</a>.</p>
<p><strong>Max Load: 3.04</strong></p>
<p><strong>Max Memory: 264MB</strong></p>
<p>Time taken for tests:   81.85927 seconds<br />
<strong>Requests per second:    12.33 [#/sec] (mean)</strong><br />
Time per request:       405.430 [ms] (mean)<br />
Time per request:       81.086 [ms] (mean, across all concurrent requests)<br />
Transfer rate:          3.33 [Kbytes/sec] received</p>
<p>Percentage of the requests served within a certain time (ms)<br />
50%    323<br />
66%    456<br />
75%    517<br />
80%    535<br />
90%    637<br />
95%    738<br />
98%    917<br />
99%   1001<br />
100%   1357 (longest request)</p>
<h2>Lighttpd with Mod_Magnet</h2>
<p>based on <a href="http://tempe.st/2008/05/lightning-speed-wordpress-with-lighttpd-and-supercache-part-ii/">Tempe.st method</a>.</p>
<p><strong>Max Load: 3.00</strong></p>
<p><strong>Max Memory: 261MB</strong></p>
<p>Time taken for tests:   82.267440 seconds<br />
<strong>Requests per second:    12.16 [#/sec] (mean)<br />
</strong>Time per request:       411.337 [ms] (mean)<br />
Time per request:       82.267 [ms] (mean, across all concurrent requests)<br />
Transfer rate:          3.28 [Kbytes/sec] received</p>
<p>Percentage of the requests served within a certain time (ms)<br />
50%    339<br />
66%    416<br />
75%    516<br />
80%    546<br />
90%    673<br />
95%    777<br />
98%    863<br />
99%    952<br />
100%   1184 (longest request)</p>
<p>For Lighttpd, I did 2 different versions that were currently available out there for working with WordPress Super Cache&#8217;s mod rewrite code.</p>
<p>I found that the Lighttpd in general was faster, memory fluctuated at 250-265MB, and maximum load was at about 3.0 during the testing. (for both Lighttpd versions, I saw negligence in improvement of performance between the 2 codes)</p>
<p>In contrast, the Apache Httpd was much more slower and gobbled up memory.  The Httpd reached about the double load of Lighttpd at 6.37, memory kept rising from cold start 250MB to 337MB until the end of the ab test.</p>
<h2>Conclusion</h2>
<p>Lighttpd is more efficient with memory, the test server at zero load used up about 250MB of memory.  During the testing, Lighttpd never used more than 6MB of memory at max  while Httpd used 87MB of memory.  That&#8217;s about 87/6= 14.5 times better use of memory by Lighttpd.</p>
<p>For server load, I noticed that Lighttpd reached load of about 3.0 but when the test was over, the server load came down very quickly in comparison to Apache Httpd, which reached load of 6.37 and took a lot longer for the load to settle.</p>
<p>For those of you who need friendly permalinks and WordPress Super Cache, my advice is to go with the Lighttpd with Mod_Magnet based on <a href="http://tempe.st/2008/05/lightning-speed-wordpress-with-lighttpd-and-supercache-part-ii/">Tempe.st method</a>.  It seemed that this is the simplest method to make it work since you don&#8217;t need any hardcoded code.</p>
<p>I will have a step-by-step instructions on how to convert your existing Plesk server to run Lighttpd so watch out for that next.</p>
<p>Using Lighttpd could possibly save you thousands of dollars on server fees as your website will be able to handle more web traffic (possible 2-10 times more!) and your site will load much faster, meaning your blog readers/visitors will enjoy the blog more.</p>
<div id="_mcePaste" style="overflow: hidden; position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px;">ab -c 1000 -n 5 http://doyoureallywant.com/index.php</div>
]]></content:encoded>
			<wfw:commentRss>http://webserverhacks.com/performance-tests/wordpress-lighttpd-vs-apache-httpd-perfomance-test/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>

