MySQL8.0.12 TPCC测试

使用的软件:
注意使用perona发布的sysbench需要sysbench1.0.14版本及之后的版本。
支持InnoDB、rocksdb 存储引擎。
#wget http://repo.percona.com/release/7/RPMS/x86_64/sysbench-1.0.15-2.el7.x86_64.rpm
#wget http://repo.percona.com/release/7/RPMS/x86_64/sysbench-tpcc-1.0.15-2.el7.x86_64.rpm
#yum -y localinstall sysbench-tpcc-1.0.15-2.el7.x86_64.rpm
1.登录数据库创建一个库名sbt:
create database sbt;
2.进行压力测试:准备、运行、删除。
测试的步骤和之前使用sysbench类似:
/usr/share/sysbench/tpcc.lua --mysql-host=10.19.85.149 --mysql-user=backup --mysql-password=backup --mysql-port=3306 --mysql-db=sbt --time=300 --threads=64 --report-interval=1 --tables=10 --scale=100 --db-driver=mysql prepare

/usr/share/sysbench/tpcc.lua --mysql-host=10.19.85.149 --mysql-user=backup --mysql-password=backup --mysql-port=3306 --mysql-db=sbt --time=300 --threads=64 --report-interval=10 --tables=10 --scale=100 --db-driver=mysql run

/usr/share/sysbench/tpcc.lua --mysql-host=10.19.85.149 --mysql-user=backup --mysql-password=backup --mysql-port=3306 --mysql-db=sbt --time=300 --threads=64 --report-interval=10 --tables=10 --scale=100 --db-driver=mysql clean

3.测试数据呈现的形式和sysbench保持一致:
Running the test with following options:
Number of threads: 64
Report intermediate results every 10 second(s)
Initializing random number generator from current time


Initializing worker threads...

Threads started!

[ 10s ] thds: 64 tps: 1930.31 qps: 55307.55 (r/w/o: 25248.01/26179.72/3879.82) lat (ms,95%): 101.13 err/s 9.20 reconn/s: 0.00
[ 20s ] thds: 64 tps: 1902.92 qps: 54301.29 (r/w/o: 24774.25/25721.21/3805.84) lat (ms,95%): 104.84 err/s 7.20 reconn/s: 0.00
[ 30s ] thds: 64 tps: 2206.02 qps: 63305.05 (r/w/o: 28899.01/29994.01/4412.03) lat (ms,95%): 90.78 err/s 8.90 reconn/s: 0.00
[ 40s ] thds: 64 tps: 2338.69 qps: 66133.20 (r/w/o: 30157.96/31297.86/4677.38) lat (ms,95%): 84.47 err/s 9.30 reconn/s: 0.00
[ 50s ] thds: 64 tps: 2358.30 qps: 67090.11 (r/w/o: 30608.60/31764.90/4716.60) lat (ms,95%): 86.00 err/s 9.90 reconn/s: 0.00
[ 60s ] thds: 64 tps: 1998.80 qps: 56537.38 (r/w/o: 25764.36/26775.41/3997.61) lat (ms,95%): 106.75 err/s 9.70 reconn/s: 0.00
[ 70s ] thds: 64 tps: 2013.64 qps: 57123.75 (r/w/o: 26059.70/27036.77/4027.28) lat (ms,95%): 104.84 err/s 5.60 reconn/s: 0.00
[ 80s ] thds: 64 tps: 2055.65 qps: 58630.01 (r/w/o: 26729.71/27788.99/4111.31) lat (ms,95%): 101.13 err/s 8.80 reconn/s: 0.00
[ 90s ] thds: 64 tps: 2134.74 qps: 60460.93 (r/w/o: 27584.72/28606.73/4269.48) lat (ms,95%): 97.55 err/s 9.30 reconn/s: 0.00
[ 100s ] thds: 64 tps: 2212.71 qps: 61877.66 (r/w/o: 28197.67/29254.57/4425.43) lat (ms,95%): 95.81 err/s 10.40 reconn/s: 0.00
[ 110s ] thds: 64 tps: 2124.57 qps: 60488.96 (r/w/o: 27589.22/28650.60/4249.14) lat (ms,95%): 99.33 err/s 9.60 reconn/s: 0.00
[ 120s ] thds: 64 tps: 2170.29 qps: 62329.20 (r/w/o: 28424.91/29563.80/4340.49) lat (ms,95%): 95.81 err/s 9.30 reconn/s: 0.00
[ 130s ] thds: 64 tps: 2082.17 qps: 59126.86 (r/w/o: 26992.55/27969.88/4164.43) lat (ms,95%): 101.13 err/s 6.70 reconn/s: 0.00
[ 140s ] thds: 64 tps: 2209.25 qps: 62489.73 (r/w/o: 28495.33/29575.90/4418.50) lat (ms,95%): 94.10 err/s 9.60 reconn/s: 0.00
[ 150s ] thds: 64 tps: 2156.51 qps: 61198.96 (r/w/o: 27908.17/28977.77/4313.03) lat (ms,95%): 99.33 err/s 8.90 reconn/s: 0.00
[ 160s ] thds: 64 tps: 2099.50 qps: 59684.30 (r/w/o: 27240.70/28244.60/4199.00) lat (ms,95%): 101.13 err/s 9.70 reconn/s: 0.00
[ 170s ] thds: 64 tps: 2235.95 qps: 63260.90 (r/w/o: 28848.71/29940.29/4471.91) lat (ms,95%): 92.42 err/s 9.20 reconn/s: 0.00
[ 180s ] thds: 64 tps: 2164.34 qps: 61878.26 (r/w/o: 28245.60/29303.97/4328.68) lat (ms,95%): 101.13 err/s 7.50 reconn/s: 0.00
[ 190s ] thds: 64 tps: 2157.36 qps: 60603.17 (r/w/o: 27645.86/28642.59/4314.72) lat (ms,95%): 99.33 err/s 8.60 reconn/s: 0.00
[ 200s ] thds: 64 tps: 2232.18 qps: 63570.36 (r/w/o: 29003.60/30102.49/4464.27) lat (ms,95%): 94.10 err/s 11.20 reconn/s: 0.00
[ 210s ] thds: 64 tps: 2078.02 qps: 59101.09 (r/w/o: 26965.42/27979.53/4156.13) lat (ms,95%): 102.97 err/s 9.40 reconn/s: 0.00
[ 220s ] thds: 64 tps: 2106.29 qps: 59791.05 (r/w/o: 27297.53/28280.93/4212.59) lat (ms,95%): 102.97 err/s 9.70 reconn/s: 0.00
[ 230s ] thds: 64 tps: 2168.73 qps: 61930.17 (r/w/o: 28261.54/29331.16/4337.47) lat (ms,95%): 94.10 err/s 10.80 reconn/s: 0.00
[ 240s ] thds: 64 tps: 2089.42 qps: 60257.17 (r/w/o: 27517.36/28560.97/4178.84) lat (ms,95%): 97.55 err/s 8.10 reconn/s: 0.00
[ 250s ] thds: 64 tps: 2041.85 qps: 57940.91 (r/w/o: 26431.17/27426.14/4083.60) lat (ms,95%): 102.97 err/s 9.80 reconn/s: 0.00
[ 260s ] thds: 64 tps: 2088.59 qps: 59165.90 (r/w/o: 27010.71/27977.91/4177.29) lat (ms,95%): 102.97 err/s 10.70 reconn/s: 0.00
[ 270s ] thds: 64 tps: 2036.45 qps: 57104.97 (r/w/o: 26039.17/26993.30/4072.51) lat (ms,95%): 104.84 err/s 8.80 reconn/s: 0.00
[ 280s ] thds: 64 tps: 2052.10 qps: 58718.72 (r/w/o: 26791.41/27822.71/4104.60) lat (ms,95%): 99.33 err/s 9.30 reconn/s: 0.00
[ 290s ] thds: 64 tps: 1967.68 qps: 55960.36 (r/w/o: 25514.61/26510.60/3935.16) lat (ms,95%): 106.75 err/s 9.70 reconn/s: 0.00
[ 300s ] thds: 64 tps: 1841.18 qps: 52845.67 (r/w/o: 24101.91/25061.20/3682.56) lat (ms,95%): 112.67 err/s 7.80 reconn/s: 0.00
SQL statistics:
    queries performed:
        read:                            8204046
        write:                           8513971
        other:                           1265350
        total:                           17983367
    transactions:                        632611 (2108.52 per sec.)
    queries:                             17983367 (59939.43 per sec.)
    ignored errors:                      2727   (9.09 per sec.)
    reconnects:                          0      (0.00 per sec.)

General statistics:
    total time:                          300.0236s
    total number of events:              632611

Latency (ms):
         min:                                    0.68
         avg:                                   30.35
         max:                                  534.25
         95th percentile:                       99.33
         sum:                             19199337.47

Threads fairness:
    events (avg/stddev):           9884.5469/90.41
    execution time (avg/stddev):   299.9896/0.01

参考:
https://github.com/Percona-Lab/sysbench-tpcc

 

你可能感兴趣的:(MySQL)