cpu test

cpu test using sysbench

Purpose

       Do cpu performance test base on sysbench

 

Eevironment

       RK3328 arm64 ubuntu 16.04

 

Procdeure

 

root@IOTP-EPC:/test/sysbench# sysbench --cpu-max-prime=10000  --test=cpu  --debug run 

sysbench 0.4.12:  multi-threaded system evaluation benchmark

Running the test with following options:

Number of threads: 1

Debug mode enabled.

Doing CPU performance benchmark

Threads started!

DEBUG: Runner thread started (0)!

Done.

Maximum prime number checked in CPU test: 10000

Test execution summary:

    total time:                          10.7209s

    total number of events:              10000

    total time taken by event execution: 10.7152

    per-request statistics:

         min:                                  1.07ms

         avg:                                  1.07ms

         max:                                  4.02ms

         approx.  95 percentile:               1.07ms

Threads fairness:

    events (avg/stddev):           10000.0000/0.00

    execution time (avg/stddev):   10.7152/0.00

DEBUG: Verbose per-thread statistics:

DEBUG:     thread #  0: min: 0.0011s  avg: 0.0011s  max: 0.0040s  events: 10000

DEBUG:                  total time taken by even execution: 10.7152s

原文地址:https://www.cnblogs.com/lianghong881018/p/10749582.html