Skip to content

Commit

Permalink
Run a stress thread for each logical core (#1675)
Browse files Browse the repository at this point in the history
  • Loading branch information
ThomsonTan authored Apr 22, 2024
1 parent 7a51e75 commit 9854bb5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion stress/src/throughput.rs
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ where
STOP.store(true, Ordering::SeqCst);
})
.expect("Error setting Ctrl-C handler");
let num_threads = num_cpus::get_physical();
let num_threads = num_cpus::get();
println!("Number of threads: {}", num_threads);
let mut handles = Vec::with_capacity(num_threads);
let func_arc = Arc::new(func);
Expand Down

0 comments on commit 9854bb5

Please sign in to comment.