MCPcopy Index your code
hub / github.com/RustPython/RustPython / run_micro_benchmark

Function run_micro_benchmark

benches/microbenchmarks.rs:171–178  ·  view source on GitHub ↗
(c: &mut Criterion, benchmark: MicroBenchmark)

Source from the content-addressed store, hash-verified

169}
170
171pub 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
180pub fn criterion_benchmark(c: &mut Criterion) {
181 let benchmark_dir = Path::new("./benches/microbenchmarks/");

Callers 1

criterion_benchmarkFunction · 0.85

Calls 3

bench_cpython_codeFunction · 0.70
bench_rustpython_codeFunction · 0.70
finishMethod · 0.45

Tested by

no test coverage detected