Home  >  Article  >  Database  >  MySQL5.5与MySQL5.1 性能(比较)对比测试

MySQL5.5与MySQL5.1 性能(比较)对比测试

WBOY
WBOYOriginal
2016-06-07 16:32:10894browse

作者:谭俊青@MySQL实验室 测试日期:2010/01/28 硬件环境: - CPU: Intel(R) Xeon(R) CPU E5620 @ 2.40 GHz ( x 2) Memory: 32GB Disk: 300GB*4, Raid 10 , BBU(wb) - MySQL配置: innodb_buffer_pool_size = 8G innodb_additional_mem_pool_size = 20M inn

作者:谭俊青@MySQL实验室
测试日期:2010/01/28

硬件环境:
– ———————————————————————-
CPU: Intel(R) Xeon(R) CPU E5620 @ 2.40 GHz ( x 2)
Memory: 32GB
Disk: 300GB*4, Raid 10 , BBU(wb)
– ———————————————————————-

MySQL配置:
– ———————————————————————
innodb_buffer_pool_size = 8G
innodb_additional_mem_pool_size = 20M
innodb_log_file_size = 128M
innodb_log_buffer_size = 8M
innodb_flush_log_at_trx_commit = 2
innodb_lock_wait_timeout = 50
innodb_file_per_table = 1
innodb_thread_concurrency = 0
query_cache_size = 0
– ———————————————————————

sysbench r/w 测试
– ———————————————————————
oltp-table-size=1000000
oltp-test-mode=complex
– ———————————————————————

测试结果如下:
– ———————————————————————

– ———————————————————————

结论:
– ———————————————————————
在低并发情况下,MySQL5.1跟MySQL5.5性能持平,而实际应用中大部分并发数都低于10,因此绝大部分用户没有必要立即更换至5.5版本;
在高并发情况下,MySQL5.5的性能优势明显。

Related posts:

  1. MySQL 5.5-m2的可伸缩性
  2. MySQL5.6发布及其新特性
  3. Innodb如何查看剩余表空间?
  4. MySQL5.5复制/同步的新特性及改进
  5. MySQL5.4引起的一些争议

? 谭俊青 发布在 MySQL性能、MySQL Cluster集群、MySQL HA高可用等研究 - MySQL实验室, 2011.
可以任意转载, 但转载时务必以超链接形式标明文章原始出处 和 作者信息。
链接: http://www.mysqlab.net/blog/2011/02/mysql-5-5-vs-mysql-5-1-performance/

标签: MySQL 5.1, MySQL 5.5, Performance, Sysbench, 性能

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn