diff --git a/rust/benches/producer.rs b/rust/benches/producer.rs index 4c81cd3e64..6694a0101e 100644 --- a/rust/benches/producer.rs +++ b/rust/benches/producer.rs @@ -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();