(group: &mut BenchmarkGroup<WallTime>, name: &str, contents: &str)
| 39 | } |
| 40 | |
| 41 | pub fn benchmark_file_execution(group: &mut BenchmarkGroup<WallTime>, name: &str, contents: &str) { |
| 42 | group.bench_function(BenchmarkId::new(name, "cpython"), |b| { |
| 43 | bench_cpython_code(b, contents) |
| 44 | }); |
| 45 | group.bench_function(BenchmarkId::new(name, "rustpython"), |b| { |
| 46 | bench_rustpython_code(b, name, contents) |
| 47 | }); |
| 48 | } |
| 49 | |
| 50 | pub fn benchmark_file_parsing(group: &mut BenchmarkGroup<WallTime>, name: &str, contents: &str) { |
| 51 | group.throughput(Throughput::Bytes(contents.len() as u64)); |
no test coverage detected