diff --git a/stress/README.md b/stress/README.md index 16832c3bd..b51c0edf8 100644 --- a/stress/README.md +++ b/stress/README.md @@ -42,5 +42,5 @@ Throughput: 5,075,400 iterations/sec "stats" - Prints memory and CPU usage. Has slight impact on throughput. ```sh -cargo run --release --bin metrics --feature=stats +cargo run --release --bin metrics --features=stats ``` diff --git a/stress/src/throughput.rs b/stress/src/throughput.rs index 559a3dc79..1d54e70e0 100644 --- a/stress/src/throughput.rs +++ b/stress/src/throughput.rs @@ -126,7 +126,7 @@ where handles.push(handle_main_thread); - for thread_index in 0..num_threads - 1 { + for thread_index in 0..num_threads { let worker_stats_shared = Arc::clone(&worker_stats_shared); let func_arc_clone = Arc::clone(&func_arc); let handle = thread::spawn(move || loop {