17 lines
416 B
Rust
17 lines
416 B
Rust
use criterion::{black_box, criterion_group, criterion_main, Criterion};
|
|
use gb_testing::performance;
|
|
|
|
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);
|