MySql性能测试工具-sysbench
生活随笔
收集整理的這篇文章主要介紹了
MySql性能测试工具-sysbench
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
轉自:MySql性能測試工具-sysbench — 沒那么簡單的博客
雖然mysql默認的有mysqlslap這個性能測試工具,但和sysbench比較來說,還遜色不少。
7.開始測試
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#執行結束后查看測試報告 shell> less /tmp/log/sysbench_oltpx_20161121.log sysbench 1.0: multi-threaded system evaluation benchmark#報告內容如下: 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 --讀總數write: 267295 --寫總數other: 133650 --其他操作(CURD之外的操作,例如COMMIT)total: 1336537 --全部總數transactions: 66822 (556.77 per sec.) --總事務數(每秒事務數)read/write requests: 1202887 (10022.55 per sec.) --讀寫總數(每秒讀寫次數)other operations: 133650 (1113.58 per sec.) --其他操作總數(每秒其他操作次數)ignored errors: 6 (0.05 per sec.) --總忽略錯誤總數(每秒忽略錯誤次數)reconnects: 0 (0.00 per sec.) --重連總數(每秒重連次數)General statistics: --常規統計total time: 120.0180s --總耗時total number of events: 66822 --共發生多少事務數total time taken by event execution: 2399.7900s --所有事務耗時相加(不考慮并行因素)response time:min: 2.76ms --最小耗時avg: 35.91ms --平均耗時max: 1435.19ms --最長耗時approx. 95 percentile: 84.22ms --超過95%平均耗時Threads fairness: --并發統計events (avg/stddev): 3341.1000/37.54 --總處理事件數/標準偏差execution time (avg/stddev): 119.9895/0.02 --總執行時間/標準偏差總結
以上是生活随笔為你收集整理的MySql性能测试工具-sysbench的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 极路由2运行python安装_极路由4p
- 下一篇: C++智能指针原理