From adab66d2b0aa381c9bee797c053cef8fbd32807e Mon Sep 17 00:00:00 2001 From: Joris Bayer Date: Tue, 19 Nov 2024 08:56:41 +0100 Subject: [PATCH] test(buffer): Allow benchmarking with < 1 KiB --- tools/bench-buffer/src/main.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tools/bench-buffer/src/main.rs b/tools/bench-buffer/src/main.rs index e46e3bec13..dd36416779 100644 --- a/tools/bench-buffer/src/main.rs +++ b/tools/bench-buffer/src/main.rs @@ -23,7 +23,7 @@ enum Mode { #[derive(Parser, Debug)] struct Args { #[arg(long)] - envelope_size_kib: usize, + envelope_size_bytes: usize, #[arg(long)] compression_ratio: f64, #[arg(long)] @@ -45,7 +45,7 @@ async fn main() { let args = Args::parse(); println!("{:?}", &args); let Args { - envelope_size_kib, + envelope_size_bytes, compression_ratio, batch_size_kib, implementation, @@ -87,7 +87,7 @@ async fn main() { Mode::Sequential => { run_sequential( buffer, - envelope_size_kib * 1024, + envelope_size_bytes, compression_ratio, projects, Duration::from_secs(duration_secs), @@ -97,7 +97,7 @@ async fn main() { Mode::Interleaved => { run_interleaved( buffer, - envelope_size_kib * 1024, + envelope_size_bytes, compression_ratio, projects, Duration::from_secs(duration_secs),