threefoldtech / cpu-benchmark-simple

Apache License 2.0
0 stars 0 forks source link

need explanation about the results #1

Open Omarabdul3ziz opened 1 year ago

Omarabdul3ziz commented 1 year ago

we used this binary in a performance test that runs periodically on zos nodes. from what I understand, the results indicate the time in seconds spent computing the crc64 on both single and multi-CPU cores.

However, there's no information about what values would be considered good or bad. could we possibly get some additional explanation or context on what we can consider a good values?

original issue: https://github.com/threefoldtech/zos/issues/2112

maxux commented 1 year ago

The best way to know what's a good or bad value is by testing and comparing different hardware. Here are some example:

1x Intel(R) Xeon(R) W-2145 CPU @ 3.70GHz (Q3'2017)

Single thread score: 0.777
Multi threads score: 13.345 [16 threads]

1x Intel(R) Pentium(R) CPU G4400 @ 3.30GHz (Q3'2015)

Single thread score: 1.028
Multi threads score: 2.089 [2 threads]

1x Intel(R) Core(TM) i5-3570 CPU @ 3.40GHz (Q2'2012)

Single thread score: 2.943
Multi threads score: 12.956 [4 threads]

2x Intel(R) Xeon(R) CPU E5-2630 v3 @ 2.40GHz (Q1'2012)

Single thread score: 1.298
Multi threads score: 44.090 [32 threads]

2x Intel(R) Xeon(R) CPU L5640 @ 2.27GHz (Q1'2010)

Single thread score: 2.504
Multi threads score: 72.452 [24 threads]

As you can see, the more recent the CPU is, the faster it is, but for a same launch period, you can see Xeon way better than regular/desktop CPU. You have to take in account the amount of threads and the time per threads.

maxux commented 1 year ago

This benchmark only do CRC64 SIMD benchmark which is only a really small part of what a CPU can do, more tests should be added in the futur to cover more stuff but this was made to provide an easy way to scale CPU quickly without impacting system load.