summaryrefslogtreecommitdiff
path: root/benches
diff options
context:
space:
mode:
Diffstat (limited to 'benches')
-rw-r--r--benches/bench_parsing.rs5
1 files changed, 2 insertions, 3 deletions
diff --git a/benches/bench_parsing.rs b/benches/bench_parsing.rs
index a3a17a84..4a8a7eb2 100644
--- a/benches/bench_parsing.rs
+++ b/benches/bench_parsing.rs
@@ -1,18 +1,17 @@
use criterion::{criterion_group, criterion_main, Criterion};
use typstc::syntax::parsing::parse;
-use typstc::syntax::span::Pos;
// 28 not too dense lines.
const COMA: &str = include_str!("../tests/coma.typ");
fn parsing_benchmark(c: &mut Criterion) {
c.bench_function("parse-coma-28-lines", |b| {
- b.iter(|| parse(COMA, Pos::ZERO))
+ b.iter(|| parse(COMA))
});
let long = COMA.repeat(100);
c.bench_function("parse-coma-2800-lines", |b| {
- b.iter(|| parse(&long, Pos::ZERO))
+ b.iter(|| parse(&long))
});
}