Skip to content

Commit

Permalink
add stats bench
Browse files Browse the repository at this point in the history
  • Loading branch information
jmillan committed Oct 24, 2023
1 parent 20a1c99 commit 997240b
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions rust/benches/producer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,12 @@ pub fn criterion_benchmark(c: &mut Criterion) {
let _ = futures_lite::future::block_on(async { producer.dump().await });
})
});

group.bench_function("stats", |b| {
b.iter(|| {
let _ = futures_lite::future::block_on(async { producer.get_stats().await });
})
});
}

group.finish();
Expand Down

0 comments on commit 997240b

Please sign in to comment.