Backend: add parallel cpu benchmarks processing (#603)

* Add parallel cpu benchmarks processing

* Expose Parallel Hashrate Score in UI (as 'Parallel CPU speed')

* Remove unused variable and fix cfg(debug)

* Fix tests after removing old_chain_name

* Update Dockerfile

* bullseye for both images

---------

Co-authored-by: Volodymyr Brazhnyk <volbr@pm.me>
This commit is contained in:
James Wilson
2025-08-28 14:52:08 +01:00
committed by GitHub
parent 635776328d
commit 4a5cd54cd8
11 changed files with 39 additions and 16 deletions
+3
View File
@@ -98,6 +98,9 @@ pub struct NodeHwBench {
pub memory_memcpy_score: u64,
pub disk_sequential_write_score: Option<u64>,
pub disk_random_write_score: Option<u64>,
pub parallel_cpu_hashrate_score: Option<u64>,
//// Dev note: this exists but isn't needed yet:
// pub parallel_cpu_cores: Option<usize>,
}
impl Payload {
+5
View File
@@ -73,6 +73,11 @@ pub struct NodeHwBench {
pub disk_sequential_write_score: Option<u64>,
/// Random disk write speed in MB/s.
pub disk_random_write_score: Option<u64>,
/// The parallel CPU speed, as measured in how many MB/s it can hash using the BLAKE2b-256 hash.
pub parallel_cpu_hashrate_score: Option<u64>,
//// Dev note: this exists but isn't needed yet:
// /// The number of cores used for the parallel CPU benchmark.
// pub parallel_cpu_cores: Option<usize>,
}
/// A couple of node statistics.