Skip to content
Unverified Commit a947cb83 authored by Alexandru Gheorghe's avatar Alexandru Gheorghe Committed by GitHub
Browse files

Add benchmark for the number of minimum cpu cores (#5127)



Fixes: https://github.com/paritytech/polkadot-sdk/issues/5122.

This PR extends the existing single core `benchmark_cpu` to also build a
score of the entire processor by spawning `EXPECTED_NUM_CORES(8)`
threads and averaging their throughput.

This is better than simply checking the number of cores, because also
covers multi-tenant environments where the OS sees a high number of
available CPUs, but because it has to share it with the rest of his
neighbours its total throughput does not satisfy the minimum
requirements.


## TODO
- [x] Obtain reference values on the reference hardware.

---------

Signed-off-by: default avatarAlexandru Gheorghe <[email protected]>
parent f6fd5bc5
Pipeline #495739 waiting for manual action with stages
in 1 hour, 10 minutes, and 19 seconds