<?xml version="1.0" encoding="utf-8" ?>

<rss version="2.0" 
   xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
   xmlns:admin="http://webns.net/mvcb/"
   xmlns:dc="http://purl.org/dc/elements/1.1/"
   xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
   xmlns:wfw="http://wellformedweb.org/CommentAPI/"
   xmlns:content="http://purl.org/rss/1.0/modules/content/"
   >
<channel>
    <title>darh|blog - optimization</title>
    <link>http://blog.arh.cc/</link>
    <description>webtech, dba, coding, usability, life in general</description>
    <dc:language>en</dc:language>
    <generator>Serendipity 1.2.1 - http://www.s9y.org/</generator>
    
    

<item>
    <title>HTTP server comparison #2</title>
    <link>http://blog.arh.cc/index.php?/archives/9-HTTP-server-comparison-2.html</link>
            <category>optimization</category>
    
    <comments>http://blog.arh.cc/index.php?/archives/9-HTTP-server-comparison-2.html#comments</comments>
    <wfw:comment>http://blog.arh.cc/wfwcomment.php?cid=9</wfw:comment>

    <slash:comments>0</slash:comments>
    <wfw:commentRss>http://blog.arh.cc/rss.php?version=2.0&amp;type=comments&amp;cid=9</wfw:commentRss>
    

    <author>nospam@example.com (Denis Arh)</author>
    <content:encoded>
    
&lt;p&gt;As &lt;a href=&quot;http://blog.arh.cc/index.php?/archives/6-HTTP-server-comparison.html&quot; title=&quot;HTTP Server comparison&quot;&gt;promised&lt;/a&gt; (well, I&#039;ve posted link to the &amp;quot;article&amp;quot; on nginx mailing list, so it was about time..) I&#039;m posting &lt;a href=&quot;http://blog.arh.cc/uploads/2008-02-13_webservers_benchmark/configs.tar.bz2&quot;&gt;configuration files (.tar.bz2)&lt;/a&gt; and &lt;a href=&quot;http://blog.arh.cc/uploads/2008-02-13_webservers_benchmark/web_server_benchmark.sh.txt&quot; title=&quot;Bash script&quot;&gt;script (.sh.txt)&lt;/a&gt; that helped me with my benchmarks.&lt;/p&gt;&lt;p /&gt;&lt;p&gt;About &lt;b&gt;configuration files&lt;/b&gt;: Most of them are basic, out-of-the-box (or debian package) configurations, trimmed down to minimum. I don&#039;t say they are fully optimized, and I will appreciate any constructive comment or change suggestion.&lt;/p&gt;&lt;p&gt;About &lt;b&gt;the script&lt;/b&gt;: this is my first &amp;quot;bigger&amp;quot; (longer then 10 lines, with functions, conditions and loops, all in one) bash shell script, so be gentle ;&amp;gt;&lt;/p&gt;&lt;p /&gt;&lt;p&gt;Some interesting issues were raised on the mailing lists, as: &lt;/p&gt;&lt;ul&gt;&lt;li&gt;serving such a small file I was mostly measuring connection and http protocol overhead -- point taken, I&#039;ll try to repeat tests with biger file.&lt;/li&gt;&lt;li&gt;number of failed requests (if any) -- will add this.&lt;/li&gt;&lt;li&gt;average time request and time for longest request -- will add this to.&lt;/li&gt;&lt;/ul&gt;&lt;p /&gt;&lt;p&gt;And some additional details about the test:&lt;/p&gt;&lt;ul&gt;&lt;li&gt;Tests were ran on same machine as web servers&lt;/li&gt;&lt;li&gt;ApacheBenchmark was used&lt;/li&gt;&lt;li&gt;Before each test all web-servers were shutdown and killed &lt;img src=&quot;http://blog.arh.cc/templates/default/img/emoticons/smile.png&quot; alt=&quot;:-)&quot; style=&quot;display: inline; vertical-align: bottom;&quot; class=&quot;emoticon&quot; /&gt;&lt;/li&gt;&lt;li&gt;VPS software: VMWare Workstation 6.0.1 build-55017&lt;/li&gt;&lt;/ul&gt;&lt;p /&gt;&lt;p&gt;I&#039;ll try to make another test by the end of this week.&lt;/p&gt;&lt;br /&gt;&lt;p /&gt;&lt;p /&gt;&lt;p&gt;
&lt;/p&gt; 
    </content:encoded>

    <pubDate>Thu, 13 Mar 2008 19:39:13 +0000</pubDate>
    <guid isPermaLink="false">http://blog.arh.cc/index.php?/archives/9-guid.html</guid>
    
</item>
<item>
    <title>File include performance in PHP</title>
    <link>http://blog.arh.cc/index.php?/archives/8-File-include-performance-in-PHP.html</link>
            <category>optimization</category>
    
    <comments>http://blog.arh.cc/index.php?/archives/8-File-include-performance-in-PHP.html#comments</comments>
    <wfw:comment>http://blog.arh.cc/wfwcomment.php?cid=8</wfw:comment>

    <slash:comments>0</slash:comments>
    <wfw:commentRss>http://blog.arh.cc/rss.php?version=2.0&amp;type=comments&amp;cid=8</wfw:commentRss>
    

    <author>nospam@example.com (Denis Arh)</author>
    <content:encoded>
    
&lt;p&gt;I did a little comparison of /(include|require)(_once)?/ methods in PHP 5.2.5 (mostly to prove my coworker wrong).&lt;/p&gt;&lt;p&gt;This are values in microseconds, result is an average of 100 executions of each method&lt;/p&gt;&lt;p&gt;&lt;table height=&quot;163&quot; cellspacing=&quot;1&quot; cellpadding=&quot;1&quot; border=&quot;0&quot; width=&quot;884&quot;&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td style=&quot;width: 120px;&quot;&gt; &lt;/td&gt;&lt;td&gt;&lt;b&gt;empty txt file&lt;/b&gt;&lt;/td&gt;&lt;td&gt;&lt;b&gt;empty php file*&lt;/b&gt;&lt;/td&gt;&lt;td&gt;&lt;b&gt;&amp;quot;real&amp;quot; php file**&lt;/b&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;&lt;b&gt;include&lt;/b&gt;&lt;/td&gt;&lt;td&gt;19.52&lt;/td&gt;&lt;td&gt;&lt;font color=&quot;#006600&quot;&gt;25.12&lt;/font&gt;&lt;/td&gt;&lt;td&gt;1247.75&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;&lt;b&gt;require&lt;/b&gt;&lt;/td&gt;&lt;td&gt;40.42&lt;/td&gt;&lt;td&gt;45.81&lt;/td&gt;&lt;td&gt;1162.59&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;&lt;font color=&quot;#000000&quot;&gt;&lt;b&gt;include_once&lt;/b&gt;&lt;/font&gt;&lt;/td&gt;&lt;td&gt;&lt;font color=&quot;#000000&quot;&gt;34.61&lt;/font&gt;&lt;/td&gt;&lt;td&gt;&lt;font color=&quot;#000000&quot;&gt;31.65&lt;/font&gt;&lt;/td&gt;&lt;td&gt;&lt;font color=&quot;#000000&quot;&gt;42.59&lt;/font&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;&lt;b&gt;require_once&lt;/b&gt;&lt;/td&gt;&lt;td&gt;&lt;font color=&quot;#006600&quot;&gt;11.45&lt;/font&gt;&lt;/td&gt;&lt;td&gt;36.84&lt;/td&gt;&lt;td&gt;&lt;font color=&quot;#003300&quot;&gt;13.96&lt;/font&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/p&gt;

&lt;p&gt;&lt;br /&gt;* only &amp;lt;?php and ?&amp;gt;&lt;/p&gt;&lt;p&gt;** with class definition and class_exists check&lt;/p&gt; &lt;br /&gt;&lt;a href=&quot;http://blog.arh.cc/index.php?/archives/8-File-include-performance-in-PHP.html#extended&quot;&gt;Continue reading &quot;File include performance in PHP&quot;&lt;/a&gt;
    </content:encoded>

    <pubDate>Sat, 23 Feb 2008 18:00:58 +0000</pubDate>
    <guid isPermaLink="false">http://blog.arh.cc/index.php?/archives/8-guid.html</guid>
    
</item>
<item>
    <title>HTTP server comparison</title>
    <link>http://blog.arh.cc/index.php?/archives/6-HTTP-server-comparison.html</link>
            <category>optimization</category>
    
    <comments>http://blog.arh.cc/index.php?/archives/6-HTTP-server-comparison.html#comments</comments>
    <wfw:comment>http://blog.arh.cc/wfwcomment.php?cid=6</wfw:comment>

    <slash:comments>0</slash:comments>
    <wfw:commentRss>http://blog.arh.cc/rss.php?version=2.0&amp;type=comments&amp;cid=6</wfw:commentRss>
    

    <author>nospam@example.com (Denis Arh)</author>
    <content:encoded>
    &lt;p&gt;For my speech in &lt;a title=&quot;Kiberpipa.org&quot; target=&quot;_blank&quot; href=&quot;http://www.kiberpipa.org/&quot;&gt;Kiberpipa (Cyber-pipe)&lt;/a&gt; I&#039;ve presented five &amp;quot;light-weight&amp;quot; HTTP servers: Boa, Cherokee, Lighttpd, Nginx and Thttpd, Apache (1.3, 2.2) and LiteSpeed: benchmark &lt;a title=&quot;Comparing HTTP servers - keep-alive on&quot; href=&quot;http://blog.arh.cc/uploads/2008-02-13_webservers_benchmark/keepalive_on.png&quot;&gt;with keep-alive enabled&lt;/a&gt; and &lt;a title=&quot;Comparing HTTP servers - keep-alive off&quot; href=&quot;http://blog.arh.cc/uploads/2008-02-13_webservers_benchmark/keepalive_off.png&quot;&gt;with keep-alive disabled&lt;/a&gt;.

&lt;/p&gt;
&lt;p&gt;Tests were made on my desktop PC (Intel Core2 CPU 6700 @ 2.66GHz) inside VMWare environment (memory: 256 MB, Debian Etch) with apache-benchmark tool, fetching 32 B long static text file.&lt;/p&gt;&lt;p&gt;Compared versions (configuration files will follow soon):&lt;/p&gt;

&lt;p&gt;&lt;table width=&quot;506&quot; cellspacing=&quot;0&quot; cellpadding=&quot;0&quot; border=&quot;0&quot;&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td style=&quot;width: 50%;&quot;&gt;Apache&lt;/td&gt;&lt;td style=&quot;width: 50%;&quot;&gt;1.3.34&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td style=&quot;width: 50%;&quot;&gt;Apache 2 (worker)&lt;/td&gt;&lt;td style=&quot;width: 50%;&quot;&gt;2.2.3&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td style=&quot;width: 50%;&quot;&gt;
Litespeed               &lt;/td&gt;&lt;td style=&quot;width: 50%;&quot;&gt;3.3.4&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td style=&quot;width: 50%;&quot;&gt;thttpd &lt;/td&gt;&lt;td style=&quot;width: 50%;&quot;&gt;2.23beta1-5&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td style=&quot;width: 50%;&quot;&gt;Nginx&lt;/td&gt;&lt;td style=&quot;width: 50%;&quot;&gt;
0.5.35&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td style=&quot;width: 50%;&quot;&gt;Lighttpd&lt;/td&gt;&lt;td style=&quot;width: 50%;&quot;&gt;
1.4.13&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td style=&quot;width: 50%;&quot;&gt;Cherokee&lt;/td&gt;&lt;td style=&quot;width: 50%;&quot;&gt;
0.5.5 &lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td valign=&quot;top&quot;&gt;Boa&lt;/td&gt;&lt;td valign=&quot;top&quot;&gt;0.94.14rc21-0.2&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;p /&gt; 
    </content:encoded>

    <pubDate>Thu, 14 Feb 2008 21:21:18 +0000</pubDate>
    <guid isPermaLink="false">http://blog.arh.cc/index.php?/archives/6-guid.html</guid>
    
</item>

</channel>
</rss>