We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7a51e75 commit 9854bb5Copy full SHA for 9854bb5
stress/src/throughput.rs
@@ -26,7 +26,7 @@ where
26
STOP.store(true, Ordering::SeqCst);
27
})
28
.expect("Error setting Ctrl-C handler");
29
- let num_threads = num_cpus::get_physical();
+ let num_threads = num_cpus::get();
30
println!("Number of threads: {}", num_threads);
31
let mut handles = Vec::with_capacity(num_threads);
32
let func_arc = Arc::new(func);
0 commit comments