数据库性能测试:sysbench使用方法详解(4)

结果:
File operations:
    reads/s:                      98.67
    writes/s:                    66.85
    fsyncs/s:                    6.26

Throughput:    # 吞吐量
    read, MiB/s:                  1.54  # 表示读的带宽
    written, MiB/s:              1.04  # 表示读的带宽

General statistics:
    total time:                  12.7426s
    total number of events:      2117

Latency (ms):
        min:                          0.00
        avg:                        86.66
        max:                      2919.41
        95th percentile:            646.19
        sum:                    183460.80

Threads fairness:
    events (avg/stddev):          132.3125/24.19
    execution time (avg/stddev):  11.4663/1.09

再比例cpu性能测试:
[root@xuexi ~]# sysbench cpu --threads=40 --events=10000 --cpu-max-prime=20000 run
sysbench 1.0.15 (using bundled LuaJIT 2.1.0-beta2)

Running the test with following options:
Number of threads: 40
Initializing random number generator from current time


Prime numbers limit: 20000

Initializing worker threads...

Threads started!

CPU speed:
    events per second:  2127.81

General statistics:
    total time:                          4.986s
    total number of events:              10000

Latency (ms):
        min:                                    1.72
        avg:                                  18.16
        max:                                  302.17
        5th percentile:                      110.66
        sum:                              181628.49

Threads fairness:
    events (avg/stddev):          250.0000/30.81
    execution time (avg/stddev):  4.5407/0.10

内容版权声明:除非注明,否则皆为本站原创文章。

转载注明出处:https://www.heiqu.com/64041b07011b2860a70b156b93a081a6.html