Skip to content

Commit

Permalink
test(buffer): Allow benchmarking with < 1 KiB (#4264)
Browse files Browse the repository at this point in the history
Verify whether performance degrades when the majority of envelopes are
small (e.g. sessions).
  • Loading branch information
jjbayer authored Nov 19, 2024
1 parent 69c2e6a commit b06466a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tools/bench-buffer/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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)]
Expand All @@ -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,
Expand Down Expand Up @@ -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),
Expand All @@ -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),
Expand Down

0 comments on commit b06466a

Please sign in to comment.