2025-03-09 22:35:57 -03:00
|
|
|
use criterion::{criterion_group, criterion_main, Criterion};
|
|
|
|
|
2024-12-22 20:56:52 -03:00
|
|
|
|
|
|
|
pub fn api_benchmark(c: &mut Criterion) {
|
|
|
|
let mut group = c.benchmark_group("API");
|
|
|
|
|
|
|
|
group.bench_function("create_instance", |b| {
|
|
|
|
b.iter(|| {
|
|
|
|
// Benchmark implementation
|
|
|
|
})
|
|
|
|
});
|
|
|
|
|
|
|
|
group.finish();
|
|
|
|
}
|
|
|
|
|
|
|
|
criterion_group!(benches, api_benchmark);
|
|
|
|
criterion_main!(benches);
|