Files
neon/libs/utils/benches/benchmarks.rs
Arpad Müller a2d0d44b42 Remove unused allow's (#6760)
These allow's became redundant some time ago so remove them, or address
them if addressing is very simple.
2024-02-14 18:16:05 +00:00

21 lines
546 B
Rust

use criterion::{criterion_group, criterion_main, Criterion};
use utils::id;
pub fn bench_id_stringify(c: &mut Criterion) {
// Can only use public methods.
let ttid = id::TenantTimelineId::generate();
c.bench_function("id.to_string", |b| {
b.iter(|| {
// FIXME measurement overhead?
//for _ in 0..1000 {
// ttid.tenant_id.to_string();
//}
ttid.tenant_id.to_string();
})
});
}
criterion_group!(benches, bench_id_stringify);
criterion_main!(benches);