now using actual cpu score instead of just multithread
This commit is contained in:
@@ -68,7 +68,7 @@ async fn submit(
|
|||||||
let score = payload
|
let score = payload
|
||||||
.benchmark
|
.benchmark
|
||||||
.as_ref()
|
.as_ref()
|
||||||
.map(|b| b.multi_thread.score)
|
.map(|b| (b.multi_thread.score + b.single_thread.score) / 2)
|
||||||
.unwrap_or(0);
|
.unwrap_or(0);
|
||||||
|
|
||||||
let raw_json = serde_json::to_value(&payload)
|
let raw_json = serde_json::to_value(&payload)
|
||||||
|
|||||||
@@ -148,6 +148,10 @@ fn main() {
|
|||||||
scaling_color_formatter(format!("{:.2}x", multi_thread_speedup_ratio)).bold()
|
scaling_color_formatter(format!("{:.2}x", multi_thread_speedup_ratio)).bold()
|
||||||
);
|
);
|
||||||
|
|
||||||
|
let score = (multithread_benchmark.score + singlethread_benchmark.score) / 2;
|
||||||
|
|
||||||
|
println!("\nCPU Score : {score}",);
|
||||||
|
|
||||||
report.benchmark = Some(BenchmarkReport {
|
report.benchmark = Some(BenchmarkReport {
|
||||||
prime_limit: cli.prime_limit,
|
prime_limit: cli.prime_limit,
|
||||||
logical_cores: logical_core_count,
|
logical_cores: logical_core_count,
|
||||||
|
|||||||
Reference in New Issue
Block a user