From 29ce1fcb7f75f2fab9628b0816392ce0392c7e39 Mon Sep 17 00:00:00 2001 From: Jon Gjengset Date: Wed, 26 Feb 2020 17:40:38 -0500 Subject: [PATCH] Test with more cores --- Cargo.toml | 2 +- benches/bustle.rs | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index d556e773..6f7f3e44 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -35,7 +35,7 @@ default-features = false rand = "0.7" rayon = "1.3" criterion = "0.3" -bustle = "0.2" +bustle = "0.3" [profile.bench] debug = true diff --git a/benches/bustle.rs b/benches/bustle.rs index d3e4bd2f..e110334e 100644 --- a/benches/bustle.rs +++ b/benches/bustle.rs @@ -76,5 +76,7 @@ where } fn main() { - Workload::new(1, Mix::read_heavy()).run::>(); + for n in 1..=num_cpus::get() { + Workload::new(n, Mix::read_heavy()).run::>(); + } }