From 9854bb54a9b02ac6551df5f5faf6357c08559cde Mon Sep 17 00:00:00 2001 From: Tom Tan Date: Mon, 22 Apr 2024 11:38:33 -0700 Subject: [PATCH] Run a stress thread for each logical core (#1675) --- stress/src/throughput.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stress/src/throughput.rs b/stress/src/throughput.rs index cbd813e5d1..821a5eff74 100644 --- a/stress/src/throughput.rs +++ b/stress/src/throughput.rs @@ -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);