akopytov / sysbench

Scriptable database and system performance benchmark
GNU General Public License v2.0
6.15k stars 1.08k forks source link

AMD Ryzen5 3600 too much worse than Intel i5 11300H when run CPU test #447

Open xxsrobin opened 2 years ago

xxsrobin commented 2 years ago

Hi, My PC use AMD Ryzen5 3600 and my laptop use Intel i5 11300H,both have 16G memories. I run the same CPU test in them that running on WIN10 WSL2 ubuntu. Here is the results. Why the "events per seconde" in AMD Ryzen5 3600 is worse than Intel i5 11300H over 50%? I'm very confused because these two CPUs should be very closed in performance.

Intel i5 11300H cpu test result

 Number of threads: 1
Initializing random number generator from current time

Prime numbers limit: 10000

Initializing worker threads...

Threads started!

CPU speed:
    events per second:  3724.10

General statistics:
    total time:                          10.0004s
    total number of events:              37247

Latency (ms):
         min:                                  0.26
         avg:                                  0.27
         max:                                  0.75
         95th percentile:                      0.29
         sum:                               9993.82

Threads fairness:
    events (avg/stddev):           37247.0000/0.00
    execution time (avg/stddev):   9.9938/0.00

Ryzen5 3600 cpu test result

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

Prime numbers limit: 10000

Initializing worker threads...

Threads started!

CPU speed:
    events per second:  2055.28

General statistics:
    total time:                          10.0003s
    total number of events:              20555

Latency (ms):
         min:                                    0.47
         avg:                                    0.49
         max:                                    1.11
         95th percentile:                        0.50
         sum:                                 9995.43

Threads fairness:
    events (avg/stddev):           20555.0000/0.00
    execution time (avg/stddev):   9.9954/0.00
xxsrobin commented 2 years ago

Maybe it's the reason, AMD Zen2 is slower than Intel Tiger Lake in 64bit integer division

image

image

image