sfyhip 发表于 2018-9-27 09:17:38

MySQL压测--TPCC安装,测试

开始压测指定仓库10个,并发32个,预热10s,持续120s,每隔10s生成报告,并生成日志文件tpccdb20170315.log:  
(这里的测试是自己的虚拟机,硬件配置不太好,所以测试参数没有设置过大,只是为了能有个结果供我们学习分析,不具有参考意义)
  

  
# ./tpcc_start -S /tmp/mysql.sock -hlocalhost -dtpccdb -uroot -p147258 -w10 -c32 -r10 -l120 -ftpccdb20170315.log
  
***************************************
  
*** ###easy### TPC-C Load Generator ***
  
***************************************
  
option S (socket) with value '/tmp/mysql.sock'
  
option h with value 'localhost'
  
option d with value 'tpccdb'
  
option u with value 'root'
  
option p with value '147258'
  
option w with value '10'
  
option c with value '32'
  
option r with value '10'
  
option l with value '120'
  
option f with value 'tpccdb20170315.log'
  

  
   : localhost
  
   : 3306
  
   : tpccdb
  
       : root
  
       : 147258
  
: 10
  
: 32
  
   : 10 (sec.)   --预热时长
  
    : 120 (sec.)   --测试时长
  
RAMP-UP TIME.(10 sec.)             --预热结束
  
MEASURING START.            --测试开始
  
10, trx: 13, 95%: 15137.766, 99%: 18323.255, max_rt: 18325.580, 14|13748.201, 0|1574.186, 0|0.000, 0|0.000
  
20, trx: 13, 95%: 21680.204, 99%: 22399.251, max_rt: 22399.842, 10|23612.802, 2|6979.888, 0|0.000, 0|0.000
  
30, trx: 14, 95%: 21550.797, 99%: 24865.887, max_rt: 24863.416, 8|19415.285, 0|0.000, 1|34375.755, 0|0.000
  
40, trx: 6, 95%: 30071.479, 99%: 30071.479, max_rt: 30070.638, 13|21700.073, 2|1556.698, 0|0.000, 0|0.000
  
50, trx: 16, 95%: 16555.115, 99%: 18088.917, max_rt: 18089.462, 15|10727.610, 1|985.788, 2|44921.254, 0|0.000
  
60, trx: 6, 95%: 20426.460, 99%: 20426.460, max_rt: 20427.254, 7|16342.486, 0|0.000, 0|0.000, 0|0.000
  
70, trx: 7, 95%: 20840.263, 99%: 20840.263, max_rt: 20842.583, 6|17685.274, 0|0.000, 2|71371.553, 1|73601.007
  
80, trx: 12, 95%: 19331.825, 99%: 21961.066, max_rt: 21963.506, 12|16032.869, 2|6187.316, 0|0.000, 0|0.000
  
90, trx: 10, 95%: 14917.352, 99%: 14917.352, max_rt: 14915.321, 8|11906.947, 1|3237.487, 1|56860.851, 1|73551.862
  
100, trx: 8, 95%: 19061.751, 99%: 19061.751, max_rt: 19061.873, 9|14089.579, 1|433.691, 2|54415.280, 3|106539.602
  
110, trx: 16, 95%: 16076.521, 99%: 16270.171, max_rt: 16268.213, 3|11618.824, 1|92.480, 1|8790.656, 0|0.000
  
120, trx: 10, 95%: 13437.587, 99%: 13437.587, max_rt: 13437.183, 22|31044.348, 1|5419.699, 2|53726.988, 0|0.000
  
STOPPING THREADS................................                  --结束压测
  
                                          --第一次统计结果
  
sc:0 lt:131rt:0fl:0 avg_rt: 13862.8 (5)      --new-order,新订单业务成功次数(success),延迟次数(late),重试次数(retry),失败次数(failure),平均重试次数
  
sc:0 lt:127rt:0fl:0 avg_rt: 8024.2 (5)         --payment,支付业务统计
  
sc:0 lt:11rt:0fl:0 avg_rt: 3254.7 (5)         --order-status,订单状态业务统计
  
sc:0 lt:11rt:0fl:0 avg_rt: 56329.9 (80)      --delivery 发货业务统计
  
sc:0 lt:5rt:0fl:0 avg_rt: 208602.8 (20)      --stock-level库存业务统计
  
in 120 sec.
  
                                             --第二次测试结果
  
sc:0lt:131rt:0fl:0
  
sc:0lt:127rt:0fl:0
  
sc:0lt:11rt:0fl:0
  
sc:0lt:11rt:0fl:0
  
sc:0lt:5rt:0fl:0
  
(all must be )       --所有的都必须OK才行
  

  
      Payment: 44.56% (>=43.0%)    --支付成功次数,结果大于43%,为OK,结果小于43%,为NG;
  
   Order-Status: 3.86% (>= 4.0%) *    --订单状态
  
       Delivery: 3.86% (>= 4.0%) *--发货状态
  
    Stock-Level: 1.75% (>= 4.0%) *   --库存状态
  
      --响应耗时指标必须超过90%通过才行
  
      New-Order: 0.00% *       --表示not good
  
      Payment: 0.00% *
  
   Order-Status: 0.00% *
  
       Delivery: 0.00% *
  
    Stock-Level: 0.00% *
  

  
               65.500 TpmC    --TpmC结果值(每分钟事务数,该值是第一次统计结果中的新订单事务数除以总耗时分钟数,例如本例中是:131/2=65.5),TpmC/60=tps


页: [1]
查看完整版本: MySQL压测--TPCC安装,测试