opts.pattern = dir.join("pattern");
opts.clean = true;
- c.bench_function("build benchmark directory", |b| {
+ c.bench_function("build dir", |b| {
if opts.build.exists() {
std::fs::remove_dir_all(&opts.build).expect("clean build dir");
}
let source = opts.source.join("benchmark.meta");
- c.bench_function("build benchmark file", |b| {
+ c.bench_function("build file", |b| {
b.iter(|| {
let string = std::fs::read_to_string(black_box(&source)).expect("read file");
let mut file = metaforge::parse_file(string, black_box(&opts)).expect("parse file");