时间:2021-07-01 10:21:17 帮助过:3人阅读
为了每次测试结果的客观性,应该重启数据库实例,并清除操作系统的cache:echo 3 > /proc/sys/vm/drop_caches
各个测试表的数据量情况:
select count(w_id) from warehouse; ---1000
select count(d_w_id) from district; ---10000
select count(c_w_id) from customer; ---30000000
select count(h_c_id) from history; ---30000000
select count(no_w_id) from new_orders; ---9000000
select count(o_w_id) from orders; ---30000000
select count(ol_w_id) from order_line; ---299985497
select count(i_id) from item; ---100000
select count(s_w_id) from stock; ---100000000
测试命令:tpcc_start -h127.0.0.1 -P10044 -dtpcc1000 -uroot -w1000 -c32 -r300 -l1800
初步测试结果:
线程数 | Tpmc |
32 | 36547.5 |
64 | 35288.77 |
128 | 31155.97 |
256 | 28148.03 |
512 | 33274.93 |
直观图:
以上测试结果是基于默认IO调度(cfg)所得,后续将测试sdb磁盘IO调度为[noop]时的Tpmc的趋势图:
Ps:感谢叶老师(叶金荣)的支持
tpcc-mysql测试mysql5.6
标签: