Fix benchmark
This commit is contained in:
parent
834dacdb72
commit
09fd5b2d35
@ -22,7 +22,7 @@ fn test1(b: &mut Bencher) {
|
||||
let includes: Vec<PathBuf> = Vec::new();
|
||||
let path = get_path("test1.sv");
|
||||
b.iter(|| {
|
||||
let _ = parse_sv(&path, &defines, &includes);
|
||||
let _ = parse_sv(&path, &defines, &includes, false);
|
||||
});
|
||||
}
|
||||
|
||||
@ -32,6 +32,6 @@ fn test2(b: &mut Bencher) {
|
||||
let includes: Vec<PathBuf> = Vec::new();
|
||||
let path = get_path("test2.sv");
|
||||
b.iter(|| {
|
||||
let _ = parse_sv(&path, &defines, &includes);
|
||||
let _ = parse_sv(&path, &defines, &includes, false);
|
||||
});
|
||||
}
|
||||
|
@ -26,7 +26,7 @@ fn gen_benchmark_group(c: &mut Criterion, s: &str) {
|
||||
let mut group = c.benchmark_group(s);
|
||||
group.throughput(Throughput::Bytes(size));
|
||||
group.bench_function(s, |b| {
|
||||
b.iter_with_large_drop(|| parse_sv(&path, &defines, &includes))
|
||||
b.iter_with_large_drop(|| parse_sv(&path, &defines, &includes, false))
|
||||
});
|
||||
group.finish();
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user