不同cpu在linux下CPU性能测试

使用的软件为:sysbench

安装方法: sudo apt-get install sysbench / yum install sysbench

测试命令:sysbench –num-threads=1 –test=cpu –cpu-max-prime=20000 run

单线程性能大概为E3 1230V2 = 1.5倍 I3 3100M = 1.4倍  E3-1275 v5(VPS) = 24倍 树莓派3b

线程全开的话 E3 1230V2 = 3倍 I3 3100M = 70倍 树莓派3b

树莓派3b被秒=_=

raspberry pi 3b 树莓派3b

 

sysbench 0.4.12:  multi-threaded system evaluation benchmark

Running the test with following options:
Number of threads: 1

Doing CPU performance benchmark

Threads started!
Done.

Maximum prime number checked in CPU test: 20000


Test execution summary:
    total time:                          479.5988s
    total number of events:              10000
    total time taken by event execution: 479.5900
    per-request statistics:
         min:                                 47.75ms
         avg:                                 47.96ms
         max:                                 98.43ms
         approx.  95 percentile:              47.82ms

Threads fairness:
    events (avg/stddev):           10000.0000/0.00
    execution time (avg/stddev):   479.5900/0.00

bandwagon openvz vps 单核 内存512M /proc/cpuinfo查询到的cpu 型号 E3-1275 v5

sysbench 0.4.12:  multi-threaded system evaluation benchmark

Running the test with following options:
Number of threads: 1

Doing CPU performance benchmark

Threads started!
Done.

Maximum prime number checked in CPU test: 20000


Test execution summary:
    total time:                          30.1085s
    total number of events:              10000
    total time taken by event execution: 30.1005
    per-request statistics:
         min:                                  1.92ms
         avg:                                  3.01ms
         max:                                 17.68ms
         approx.  95 percentile:               4.80ms

Threads fairness:
    events (avg/stddev):           10000.0000/0.00
    execution time (avg/stddev):   30.1005/0.00

笔记本i3 3110m 4g

sysbench 0.4.12:  multi-threaded system evaluation benchmark

Running the test with following options:
Number of threads: 1

Doing CPU performance benchmark

Threads started!
Done.

Maximum prime number checked in CPU test: 20000


Test execution summary:
    total time:                          34.9960s
    total number of events:              10000
    total time taken by event execution: 34.9948
    per-request statistics:
         min:                                  3.49ms
         avg:                                  3.50ms
         max:                                  6.11ms
         approx.  95 percentile:               3.50ms

Threads fairness:
    events (avg/stddev):           10000.0000/0.00
    execution time (avg/stddev):   34.9948/0.00

E3 1230V2 16G

sysbench 0.4.12:  multi-threaded system evaluation benchmark

Running the test with following options:
Number of threads: 1

Doing CPU performance benchmark

Threads started!
Done.

Maximum prime number checked in CPU test: 20000


Test execution summary:
    total time:                          22.8711s
    total number of events:              10000
    total time taken by event execution: 22.8703
    per-request statistics:
         min:                                  2.27ms
         avg:                                  2.29ms
         max:                                  6.24ms
         approx.  95 percentile:               2.34ms

Threads fairness:
    events (avg/stddev):           10000.0000/0.00
    execution time (avg/stddev):   22.8703/0.00

I3 3110M4线程(全开)测试

sysbench 0.4.12:  multi-threaded system evaluation benchmark

Running the test with following options:
Number of threads: 4

Doing CPU performance benchmark

Threads started!
Done.

Maximum prime number checked in CPU test: 20000


Test execution summary:
    total time:                          10.1403s
    total number of events:              10000
    total time taken by event execution: 40.5361
    per-request statistics:
         min:                                  3.50ms
         avg:                                  4.05ms
         max:                                 14.04ms
         approx.  95 percentile:               4.06ms

Threads fairness:
    events (avg/stddev):           2500.0000/3.67
    execution time (avg/stddev):   10.1340/0.01

E3 1230V2 8线程(全开)测试

sysbench 0.4.12:  multi-threaded system evaluation benchmark

Running the test with following options:
Number of threads: 8

Doing CPU performance benchmark

Threads started!
Done.

Maximum prime number checked in CPU test: 20000


Test execution summary:
    total time:                          3.5308s
    total number of events:              10000
    total time taken by event execution: 28.2140
    per-request statistics:
         min:                                  2.72ms
         avg:                                  2.82ms
         max:                                 13.84ms
         approx.  95 percentile:               2.78ms

Threads fairness:
    events (avg/stddev):           1250.0000/1.50
    execution time (avg/stddev):   3.5268/0.00

树莓派3b 4线程(全开)测试

sysbench 0.4.12:  multi-threaded system evaluation benchmark

Running the test with following options:
Number of threads: 4

Doing CPU performance benchmark

Threads started!
Done.

Maximum prime number checked in CPU test: 20000


Test execution summary:
    total time:                          232.9799s
    total number of events:              10000
    total time taken by event execution: 931.7261
    per-request statistics:
         min:                                 47.69ms
         avg:                                 93.17ms
         max:                                218.42ms
         approx.  95 percentile:              96.36ms

Threads fairness:
    events (avg/stddev):           2500.0000/10.98
    execution time (avg/stddev):   232.9315/0.03

发表评论

邮箱地址不会被公开。 必填项已用*标注