<?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>MySQL支持 &#187; 测试</title>
	<atom:link href="http://www.mysqlsupport.cn/category/base/%e6%b5%8b%e8%af%95/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.mysqlsupport.cn</link>
	<description>MySQL支持，提供专业技术支持性能调优，架构设计</description>
	<lastBuildDate>Wed, 26 Oct 2011 12:23:33 +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>MySQL不同分支版本的压力测试</title>
		<link>http://www.mysqlsupport.cn/mysql-benchmark/</link>
		<comments>http://www.mysqlsupport.cn/mysql-benchmark/#comments</comments>
		<pubDate>Wed, 17 Mar 2010 07:12:35 +0000</pubDate>
		<dc:creator>wubx</dc:creator>
				<category><![CDATA[MySQL基础]]></category>
		<category><![CDATA[测试]]></category>
		<category><![CDATA[MySQL测试]]></category>

		<guid isPermaLink="false">http://www.mysqlsupport.cn/?p=142</guid>
		<description><![CDATA[作者：吴炳锡　来源:http://www.mysqlsupport.cn/ 联系方式： wubingxi#gmail.com 转载请注:译者和出处，并且不能用于商业用途，违者必究. 压力测试的目的： 通过压力测试了解一下不同发行版本的性能区别。 MySQL不的版本测试,MySQL同样的配置 具体版本如下： MySQL-5.1.42企业版＋innodb-plugin MySQL-5.1.42企业版＋默认的innodb MySQL-5.1.43开源版+ innodb-plugin MySQL-5.1.43 Percona 操作系统： Redhat Enterprise 5.4 硬件： Dell R710，RAM：48G，硬盘：6块SAS做Radid10 压力设置 创建一个1kw的Innodb表,使用16个并发去进行读取写入更新事务方面的操作. 测试工具: Sysbench 测试方法: 创建数据: time sysbench --mysql-user=root --mysql-host=localhost --test=oltp --oltp-test-mode=complex --mysql-table-engine=innodb --oltp-table-size=10000000 --mysql-db=test --oltp-table-name=innodb_1kw --num-threads=16 --max-requests=500000 preware 测试: time sysbench --mysql-user=root --mysql-host=localhost --test=oltp --oltp-test-mode=complex --mysql-table-engine=innodb --oltp-table-size=10000000 --mysql-db=test --oltp-table-name=innodb_1kw --num-threads=16 --max-requests=500000 run MySQL的基本配置 [...]]]></description>
			<content:encoded><![CDATA[<p><strong>作者：吴炳锡　来源:http://www.mysqlsupport.cn/ 联系方式： wubingxi#gmail.com 转载请注:译者和出处，并且不能用于商业用途，违者必究.</strong></p>
<p><strong>压力测试的目的：</strong><br />
通过压力测试了解一下不同发行版本的性能区别。<br />
MySQL不的版本测试,MySQL同样的配置<br />
<strong>具体版本如下：</strong><br />
MySQL-5.1.42企业版＋innodb-plugin<br />
MySQL-5.1.42企业版＋默认的innodb<br />
MySQL-5.1.43开源版+ innodb-plugin<br />
MySQL-5.1.43 Percona<br />
操作系统：<br />
Redhat Enterprise 5.4<br />
硬件： Dell R710，RAM：48G，硬盘：6块SAS做Radid10</p>
<p><strong>压力设置</strong><br />
创建一个1kw的Innodb表,使用16个并发去进行读取写入更新事务方面的操作.<br />
测试工具:<br />
Sysbench<br />
<strong>测试方法:</strong><br />
创建数据:</p>

<div class="wp_syntax"><div class="code"><pre class="shell" style="font-family:monospace;">time sysbench --mysql-user=root --mysql-host=localhost --test=oltp --oltp-test-mode=complex --mysql-table-engine=innodb --oltp-table-size=10000000 --mysql-db=test --oltp-table-name=innodb_1kw --num-threads=16 --max-requests=500000 preware</pre></div></div>

<p><strong>测试:</strong></p>

<div class="wp_syntax"><div class="code"><pre class="shell" style="font-family:monospace;">time sysbench --mysql-user=root --mysql-host=localhost --test=oltp --oltp-test-mode=complex --mysql-table-engine=innodb --oltp-table-size=10000000 --mysql-db=test --oltp-table-name=innodb_1kw --num-threads=16 --max-requests=500000 run</pre></div></div>

<p><strong>MySQL的基本配置</strong></p>
<p>innodb_buffer_pool_size = 30G<br />
innodb_data_file_path = ibdata1:1G:autoextend<br />
transaction_isolation = READ-COMMITTED<br />
innodb_thread_concurrency = 16<br />
innodb_flush_log_at_trx_commit = 1<br />
innodb_log_buffer_size = 8M<br />
innodb_log_file_size = 256M<br />
innodb_log_files_in_group = 3<br />
innodb_log_group_home_dir=/u1/mysqlp/logs/<br />
innodb_max_dirty_pages_pct = 75<br />
innodb_flush_method=O_DIRECT<br />
innodb_lock_wait_timeout = 20<br />
innodb_file_per_table = 1<br />
启用innodb-plugin,innodb-plugin的版本号为：1.0.6</p>
<p><strong>测试结果</strong><br />
分别测试三次,取平均值:</p>
<table border="1" cellspacing="0" cellpadding="0">
<tbody>
<tr>
<td width="160" valign="top">版本</td>
<td width="160" valign="top">事务/秒</td>
<td width="160" valign="top">写入读取/秒</td>
<td width="160" valign="top">其它操作/秒</td>
</tr>
<tr>
<td width="160" valign="top">MySQL企业版Innodb</td>
<td width="160" valign="top">1882.32</td>
<td width="160" valign="top">35764.1</td>
<td width="160" valign="top">3764.64</td>
</tr>
<tr>
<td width="160" valign="top">MySQL企业版Innodb-plugin</td>
<td width="160" valign="top">2395.073</td>
<td width="160" valign="top">45506.45</td>
<td width="160" valign="top">4790.15</td>
</tr>
<tr>
<td width="160" valign="top">MySQL开源版innodb-plugin</td>
<td width="160" valign="top">2288.09</td>
<td width="160" valign="top">43473.72</td>
<td width="160" valign="top">4576.18</td>
</tr>
<tr>
<td width="160" valign="top">Precona-MySQL</td>
<td width="160" valign="top">2754.24</td>
<td width="160" valign="top">52330.52</td>
<td width="160" valign="top">5508.48</td>
</tr>
</tbody>
</table>
<p>1kw 写入的速度</p>
<table border="1" cellspacing="0" cellpadding="0" width="515">
<tbody>
<tr>
<td width="195">版本</td>
<td width="153">写入1kw数据总时间</td>
<td width="87">用户</td>
<td width="80">系统</td>
</tr>
<tr>
<td width="195">MySQL企业版Innodb</td>
<td width="153">3m25.318s</td>
<td width="87">0m1.953s</td>
<td width="80">0m0.177s</td>
</tr>
<tr>
<td width="195">MySQL企业版Innodb-plugin</td>
<td width="153">3m0.077s</td>
<td width="87">0m1.783s</td>
<td width="80">0m0.081s</td>
</tr>
<tr>
<td width="195">MySQL开源版Innodb-plugin</td>
<td width="153">3m0.169s</td>
<td width="87">0m1.882s</td>
<td width="80">0m0.125s</td>
</tr>
<tr>
<td width="195">Precona-MySQL</td>
<td width="153">3m0.030s</td>
<td width="87">0m1.979s</td>
<td width="80">0m0.192s</td>
</tr>
</tbody>
</table>
<p>结果分析<br />
事务对比:<br />
<img class="alignnone size-full wp-image-143" title="transcation" src="http://www.mysqlsupport.cn/wp-content/uploads/2010/03/transcation.JPG" alt="transcation" width="526" height="346" /><br />
写入读取对比:<br />
<img class="alignnone size-full wp-image-144" title="readwrite" src="http://www.mysqlsupport.cn/wp-content/uploads/2010/03/readwrite.JPG" alt="readwrite" width="524" height="351" /><br />
其它操作对比:<br />
<img class="alignnone size-full wp-image-145" title="other" src="http://www.mysqlsupport.cn/wp-content/uploads/2010/03/other.JPG" alt="other" width="516" height="376" /><br />
MySQL的开源版和企业版的Innodb性能相差不大，所以这里不在单独比较。总的来看Precona的MySQL性能表现良好。针对Innodb－plugin的的比较MySQL的企业版少表现比较好一点。从数据上来看选择不同的版本性能上最大的区别基本接近2倍。</p>
]]></content:encoded>
			<wfw:commentRss>http://www.mysqlsupport.cn/mysql-benchmark/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>

