(c: &mut Criterion, benchmark: MicroBenchmark)
| 169 | } |
| 170 | |
| 171 | pub fn run_micro_benchmark(c: &mut Criterion, benchmark: MicroBenchmark) { |
| 172 | let mut group = c.benchmark_group("microbenchmarks"); |
| 173 | |
| 174 | bench_cpython_code(&mut group, &benchmark); |
| 175 | bench_rustpython_code(&mut group, &benchmark); |
| 176 | |
| 177 | group.finish(); |
| 178 | } |
| 179 | |
| 180 | pub fn criterion_benchmark(c: &mut Criterion) { |
| 181 | let benchmark_dir = Path::new("./benches/microbenchmarks/"); |
no test coverage detected