summaryrefslogtreecommitdiff
path: root/bench
diff options
context:
space:
mode:
authorLaurenz <laurmaedje@gmail.com>2021-06-01 12:46:01 +0200
committerLaurenz <laurmaedje@gmail.com>2021-06-01 12:55:07 +0200
commit7218892c722ca583297c0ebbda350bdf6f16d3ce (patch)
tree27ebbfaf0662c1e0dd01e7c5e9e360ab288cae4d /bench
parent9bdb0bdeffa5e4b6da9e3f6d3c1b79c506005fc5 (diff)
Refactor path handling
Diffstat (limited to 'bench')
-rw-r--r--bench/src/bench.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/bench/src/bench.rs b/bench/src/bench.rs
index 2a901490..d4e297bf 100644
--- a/bench/src/bench.rs
+++ b/bench/src/bench.rs
@@ -41,16 +41,16 @@ fn benchmarks(c: &mut Criterion) {
// Prepare intermediate results, run warm and fill caches.
let src = std::fs::read_to_string(&path).unwrap();
let tree = Rc::new(parse(&src).output);
- let evaluated = eval(&mut loader, &mut cache, &path, tree.clone(), &scope);
+ let evaluated = eval(&mut loader, &mut cache, Some(&path), tree.clone(), &scope);
let executed = exec(&evaluated.output.template, state.clone());
let layouted = layout(&mut loader, &mut cache, &executed.output);
// Bench!
bench!("parse": parse(&src));
- bench!("eval": eval(&mut loader, &mut cache, &path, tree.clone(), &scope));
+ bench!("eval": eval(&mut loader, &mut cache, Some(&path), tree.clone(), &scope));
bench!("exec": exec(&evaluated.output.template, state.clone()));
bench!("layout": layout(&mut loader, &mut cache, &executed.output));
- bench!("typeset": typeset(&mut loader, &mut cache, &path, &src, &scope, state.clone()));
+ bench!("typeset": typeset(&mut loader, &mut cache, Some(&path), &src, &scope, state.clone()));
bench!("pdf": pdf(&cache, &layouted));
}
}