當(dāng)前位置:
首頁(yè) >
MySql性能测试工具-sysbench
發(fā)布時(shí)間:2024/3/26
57
豆豆
生活随笔
收集整理的這篇文章主要介紹了
MySql性能测试工具-sysbench
小編覺(jué)得挺不錯(cuò)的,現(xiàn)在分享給大家,幫大家做個(gè)參考.
轉(zhuǎn)自:MySql性能測(cè)試工具-sysbench — 沒(méi)那么簡(jiǎn)單的博客
雖然mysql默認(rèn)的有mysqlslap這個(gè)性能測(cè)試工具,但和sysbench比較來(lái)說(shuō),還遜色不少。
7.開(kāi)始測(cè)試
shell> sysbench --test=oltp --oltp_tables_count=10 --oltp-table-size=100000 --mysql-user=root --mysql-password=123456 --num-threads=20 --max-time=120 --max-requests=0 --oltp-test-mode=complex run >> /tmp/log/sysbench_oltpx_20161121.log#執(zhí)行結(jié)束后查看測(cè)試報(bào)告 shell> less /tmp/log/sysbench_oltpx_20161121.log sysbench 1.0: multi-threaded system evaluation benchmark#報(bào)告內(nèi)容如下: Running the test with following options: Number of threads: 20 Initializing random number generator from current timeInitializing worker threads...Threads started!OLTP test statistics:queries performed:read: 935592 --讀總數(shù)write: 267295 --寫(xiě)總數(shù)other: 133650 --其他操作(CURD之外的操作,例如COMMIT)total: 1336537 --全部總數(shù)transactions: 66822 (556.77 per sec.) --總事務(wù)數(shù)(每秒事務(wù)數(shù))read/write requests: 1202887 (10022.55 per sec.) --讀寫(xiě)總數(shù)(每秒讀寫(xiě)次數(shù))other operations: 133650 (1113.58 per sec.) --其他操作總數(shù)(每秒其他操作次數(shù))ignored errors: 6 (0.05 per sec.) --總忽略錯(cuò)誤總數(shù)(每秒忽略錯(cuò)誤次數(shù))reconnects: 0 (0.00 per sec.) --重連總數(shù)(每秒重連次數(shù))General statistics: --常規(guī)統(tǒng)計(jì)total time: 120.0180s --總耗時(shí)total number of events: 66822 --共發(fā)生多少事務(wù)數(shù)total time taken by event execution: 2399.7900s --所有事務(wù)耗時(shí)相加(不考慮并行因素)response time:min: 2.76ms --最小耗時(shí)avg: 35.91ms --平均耗時(shí)max: 1435.19ms --最長(zhǎng)耗時(shí)approx. 95 percentile: 84.22ms --超過(guò)95%平均耗時(shí)Threads fairness: --并發(fā)統(tǒng)計(jì)events (avg/stddev): 3341.1000/37.54 --總處理事件數(shù)/標(biāo)準(zhǔn)偏差execution time (avg/stddev): 119.9895/0.02 --總執(zhí)行時(shí)間/標(biāo)準(zhǔn)偏差總結(jié)
以上是生活随笔為你收集整理的MySql性能测试工具-sysbench的全部?jī)?nèi)容,希望文章能夠幫你解決所遇到的問(wèn)題。
- 上一篇: 极路由2运行python安装_极路由4p
- 下一篇: 普通高中计算机装备标准,福建省普通高中图