From a8554236680357028395bf1735b1806c93f858c8 Mon Sep 17 00:00:00 2001 From: Thomas Sieverding Date: Mon, 27 Mar 2023 12:25:18 -0700 Subject: [PATCH] Update benches --- benches/bench.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/benches/bench.rs b/benches/bench.rs index 3aae278..edb86fb 100644 --- a/benches/bench.rs +++ b/benches/bench.rs @@ -6,7 +6,7 @@ use redis_swapplex::{get, ConnectionManagerContext, EnvConnection}; use tokio::runtime::Builder; fn bench_redis(c: &mut Criterion) { - let rt = Builder::new_multi_thread() + let rt = Builder::new_current_thread() .enable_io() .build() .expect("Unable to create Tokio runtime"); @@ -52,7 +52,7 @@ fn bench_redis(c: &mut Criterion) { }); }); - for n in 0..=9 { + for n in 4..10 { let batch_size: u64 = 1 << n; bench_multiplexed.bench_with_input(