From b06466af2b237f6bd38a86fd589be8fbe43f2528 Mon Sep 17 00:00:00 2001 From: Joris Bayer <joris.bayer@sentry.io> Date: Tue, 19 Nov 2024 09:23:48 +0100 Subject: [PATCH] test(buffer): Allow benchmarking with < 1 KiB (#4264) Verify whether performance degrades when the majority of envelopes are small (e.g. sessions). --- 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 e46e3bec13f..dd36416779f 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),