Skip to content

Commit 9854bb5

Browse files
authored
Run a stress thread for each logical core (#1675)
1 parent 7a51e75 commit 9854bb5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

stress/src/throughput.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ where
2626
STOP.store(true, Ordering::SeqCst);
2727
})
2828
.expect("Error setting Ctrl-C handler");
29-
let num_threads = num_cpus::get_physical();
29+
let num_threads = num_cpus::get();
3030
println!("Number of threads: {}", num_threads);
3131
let mut handles = Vec::with_capacity(num_threads);
3232
let func_arc = Arc::new(func);

0 commit comments

Comments
 (0)