<?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>Tech Blog &#187; benchmark</title>
	<atom:link href="http://informationideas.com/news/tag/benchmark/feed/" rel="self" type="application/rss+xml" />
	<link>http://informationideas.com/news</link>
	<description>Using technology to help your business</description>
	<lastBuildDate>Fri, 23 Jul 2010 06:24:46 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Mysql on Windows vs Linux</title>
		<link>http://informationideas.com/news/2008/05/01/mysql-on-windows-vs-linux/</link>
		<comments>http://informationideas.com/news/2008/05/01/mysql-on-windows-vs-linux/#comments</comments>
		<pubDate>Fri, 02 May 2008 04:12:56 +0000</pubDate>
		<dc:creator>frank</dc:creator>
				<category><![CDATA[Open Source]]></category>
		<category><![CDATA[System]]></category>
		<category><![CDATA[benchmark]]></category>
		<category><![CDATA[hardware]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[server]]></category>
		<category><![CDATA[centos]]></category>
		<category><![CDATA[linux server]]></category>
		<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[windows]]></category>
		<category><![CDATA[windows 2003]]></category>
		<category><![CDATA[windows server]]></category>

		<guid isPermaLink="false">http://informationideas.com/news/2008/05/01/mysql-on-windows-vs-linux/</guid>
		<description><![CDATA[I was working on optimizing a Mysql database today and accidentally stumbled upon a benchmarking exercise. The original Mysql database is hosted on a Windows Server 2003. I develop on a Mysql database server running on Ubuntu Linux. The Linux server ran the same query twice as fast as the Windows server without using caching [...]]]></description>
			<content:encoded><![CDATA[<p>I was working on optimizing a Mysql database today and accidentally stumbled upon a benchmarking exercise.  The original Mysql database is hosted on a Windows Server 2003.  I develop on a Mysql database server running on Ubuntu Linux.  The Linux server ran the same query twice as fast as the Windows server without using caching or anything.  I know that Linux does I/O caching on its own as well so I even tried running the query after a fresh reboot to rule out that factor.  Then I got help from a colleague and started tweaking with the my.cnf/my.ini to make sure they were the same and each time, the results came back about the same.  Mysql on Windows was consistently slower than Mysql on Linux.</p>
<p>Then we decided to load the database onto other servers for more data points on this Mysql performance test. We ran the same query returning 429 rows of data with 13 table joins and a couple of sub-queries.  All queries were run on the command line client on the servers themselves to avoid network lag.Â  All servers are running Mysql 5.0.x.</p>
<p><strong>Results</strong></p>
<p>1. Ubuntu Linux:                    0.70 seconds<br />
2. CentOS:                               0.78 seconds<br />
3. Windows 2003 Server:     1.40 seconds<br />
4. Windows 2003 Server:     1.42 seconds</p>
<p><strong>Server hardware</strong></p>
<p>1. Ubuntu Linux<br />
AMD ATHLON 64 X2 4200+<br />
2GB DDR400<br />
200GB 7200RPM SATA/150</p>
<p>2. CentOS<br />
Dual Opteron 240<br />
2GB DDR ECC<br />
120GB 7200RPM SATA/300</p>
<p>3. Windows 2003 Server<br />
Dual Xeon<br />
2GB DDR ECC<br />
7200RPM PATA</p>
<p>4. Windows 2003 Server<br />
2 Dual Xeon (4 CPUs)<br />
8GB DDR ECC<br />
3 73GB 10,000RPM SCSI in RAID 5</p>
<p><strong><a href="http://informationideas.com/news/2008/05/09/mysql-on-32bit-processor-vs-64bit-processor/">A followup to the benchmark that clarifies the cause of the differences</a></strong></p>


<div class="shr-bookmarks shr-bookmarks-expand shr-bookmarks-center shr-bookmarks-bg-knowledge">
<ul class="socials">
		<li class="shr-comfeed">
			<a href="http://informationideas.com/news/2008/05/01/mysql-on-windows-vs-linux/feed" rel="nofollow" class="external" title="Subscribe to the comments for this post?">Subscribe to the comments for this post?</a>
		</li>
		<li class="shr-delicious">
			<a href="http://delicious.com/post?url=http://informationideas.com/news/2008/05/01/mysql-on-windows-vs-linux/&amp;title=Mysql+on+Windows+vs+Linux" rel="nofollow" class="external" title="Share this on del.icio.us">Share this on del.icio.us</a>
		</li>
		<li class="shr-digg">
			<a href="http://digg.com/submit?phase=2&amp;url=http://informationideas.com/news/2008/05/01/mysql-on-windows-vs-linux/&amp;title=Mysql+on+Windows+vs+Linux" rel="nofollow" class="external" title="Digg this!">Digg this!</a>
		</li>
		<li class="shr-facebook">
			<a href="http://www.facebook.com/share.php?v=4&amp;src=bm&amp;u=http://informationideas.com/news/2008/05/01/mysql-on-windows-vs-linux/&amp;t=Mysql+on+Windows+vs+Linux" rel="nofollow" class="external" title="Share this on Facebook">Share this on Facebook</a>
		</li>
		<li class="shr-googlebuzz">
			<a href="http://www.google.com/buzz/post?url=http://informationideas.com/news/2008/05/01/mysql-on-windows-vs-linux/&amp;imageurl=" rel="nofollow" class="external" title="Post on Google Buzz">Post on Google Buzz</a>
		</li>
		<li class="shr-linkedin">
			<a href="http://www.linkedin.com/shareArticle?mini=true&amp;url=http://informationideas.com/news/2008/05/01/mysql-on-windows-vs-linux/&amp;title=Mysql+on+Windows+vs+Linux&amp;summary=I%20was%20working%20on%20optimizing%20a%20Mysql%20database%20today%20and%20accidentally%20stumbled%20upon%20a%20benchmarking%20exercise.%20%20The%20original%20Mysql%20database%20is%20hosted%20on%20a%20Windows%20Server%202003.%20%20I%20develop%20on%20a%20Mysql%20database%20server%20running%20on%20Ubuntu%20Linux.%20%20The%20Linux%20server%20ran%20the%20same%20query%20twice%20as%20fast%20as%20the%20Windows&amp;source=Tech Blog" rel="nofollow" class="external" title="Share this on LinkedIn">Share this on LinkedIn</a>
		</li>
		<li class="shr-technorati">
			<a href="http://technorati.com/faves?add=http://informationideas.com/news/2008/05/01/mysql-on-windows-vs-linux/" rel="nofollow" class="external" title="Share this on Technorati">Share this on Technorati</a>
		</li>
		<li class="shr-twitter">
			<a href="http://twitter.com/home?status=Mysql+on+Windows+vs+Linux+-+http://b2l.me/ab3amz&amp;source=shareaholic" rel="nofollow" class="external" title="Tweet This!">Tweet This!</a>
		</li>
</ul>
<div style="clear:both;"></div>
</div>

]]></content:encoded>
			<wfw:commentRss>http://informationideas.com/news/2008/05/01/mysql-on-windows-vs-linux/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Mysql SQL_NO_CACHE Benchmark Problem</title>
		<link>http://informationideas.com/news/2008/02/25/mysql-sql_no_cache-benchmark-problem/</link>
		<comments>http://informationideas.com/news/2008/02/25/mysql-sql_no_cache-benchmark-problem/#comments</comments>
		<pubDate>Mon, 25 Feb 2008 23:57:00 +0000</pubDate>
		<dc:creator>frank</dc:creator>
				<category><![CDATA[Open Source]]></category>
		<category><![CDATA[admin]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[benchmark]]></category>
		<category><![CDATA[cache]]></category>

		<guid isPermaLink="false">http://informationideas.com/news/2008/02/25/mysql-sql_no_cache-benchmark-problem/</guid>
		<description><![CDATA[I have been trying to benchmark the sql calls to mysql from an application without success. Even when I set the SELECT statement to SQL_NO_CACHE, the results seemed to be still cached. Apparently, Linux does its own caching of disk reads also. That was giving me incorrect benchmark results if I hit the same data [...]]]></description>
			<content:encoded><![CDATA[<p>I have been trying to benchmark the sql calls to mysql from an application without success.  Even when I set the SELECT statement to SQL_NO_CACHE, the results seemed to be still cached.  Apparently, Linux does its own caching of disk reads also.  That was giving me incorrect benchmark results if I hit the same data twice.</p>
<p>For those using Linux kernel 2.6.16 or higher, you can <a href="http://dailyvim.blogspot.com/2008/02/drop-cache.html" target="_blank">clear Linux cache</a> with the following command.<br />
echo 3 &gt; /proc/sys/vm/drop_caches</p>
<p>Unfortunately for me, I am stuck on 2.5.xx and will have to figure out another method.</p>


<div class="shr-bookmarks shr-bookmarks-expand shr-bookmarks-center shr-bookmarks-bg-knowledge">
<ul class="socials">
		<li class="shr-comfeed">
			<a href="http://informationideas.com/news/2008/02/25/mysql-sql_no_cache-benchmark-problem/feed" rel="nofollow" class="external" title="Subscribe to the comments for this post?">Subscribe to the comments for this post?</a>
		</li>
		<li class="shr-delicious">
			<a href="http://delicious.com/post?url=http://informationideas.com/news/2008/02/25/mysql-sql_no_cache-benchmark-problem/&amp;title=Mysql+SQL_NO_CACHE+Benchmark+Problem" rel="nofollow" class="external" title="Share this on del.icio.us">Share this on del.icio.us</a>
		</li>
		<li class="shr-digg">
			<a href="http://digg.com/submit?phase=2&amp;url=http://informationideas.com/news/2008/02/25/mysql-sql_no_cache-benchmark-problem/&amp;title=Mysql+SQL_NO_CACHE+Benchmark+Problem" rel="nofollow" class="external" title="Digg this!">Digg this!</a>
		</li>
		<li class="shr-facebook">
			<a href="http://www.facebook.com/share.php?v=4&amp;src=bm&amp;u=http://informationideas.com/news/2008/02/25/mysql-sql_no_cache-benchmark-problem/&amp;t=Mysql+SQL_NO_CACHE+Benchmark+Problem" rel="nofollow" class="external" title="Share this on Facebook">Share this on Facebook</a>
		</li>
		<li class="shr-googlebuzz">
			<a href="http://www.google.com/buzz/post?url=http://informationideas.com/news/2008/02/25/mysql-sql_no_cache-benchmark-problem/&amp;imageurl=" rel="nofollow" class="external" title="Post on Google Buzz">Post on Google Buzz</a>
		</li>
		<li class="shr-linkedin">
			<a href="http://www.linkedin.com/shareArticle?mini=true&amp;url=http://informationideas.com/news/2008/02/25/mysql-sql_no_cache-benchmark-problem/&amp;title=Mysql+SQL_NO_CACHE+Benchmark+Problem&amp;summary=I%20have%20been%20trying%20to%20benchmark%20the%20sql%20calls%20to%20mysql%20from%20an%20application%20without%20success.%20%20Even%20when%20I%20set%20the%20SELECT%20statement%20to%20SQL_NO_CACHE%2C%20the%20results%20seemed%20to%20be%20still%20cached.%20%20Apparently%2C%20Linux%20does%20its%20own%20caching%20of%20disk%20reads%20also.%20%20That%20was%20giving%20me%20incorrect%20benchmark%20results%20if%20I%20h&amp;source=Tech Blog" rel="nofollow" class="external" title="Share this on LinkedIn">Share this on LinkedIn</a>
		</li>
		<li class="shr-technorati">
			<a href="http://technorati.com/faves?add=http://informationideas.com/news/2008/02/25/mysql-sql_no_cache-benchmark-problem/" rel="nofollow" class="external" title="Share this on Technorati">Share this on Technorati</a>
		</li>
		<li class="shr-twitter">
			<a href="http://twitter.com/home?status=Mysql+SQL_NO_CACHE+Benchmark+Problem+-+http://b2l.me/ab3amv&amp;source=shareaholic" rel="nofollow" class="external" title="Tweet This!">Tweet This!</a>
		</li>
</ul>
<div style="clear:both;"></div>
</div>

]]></content:encoded>
			<wfw:commentRss>http://informationideas.com/news/2008/02/25/mysql-sql_no_cache-benchmark-problem/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
