Add a benchmark for parsing pipes-on-pipes (#678)

This commit is contained in:
Adam Chalmers
2023-09-20 22:13:07 -05:00
committed by GitHub
parent 0553cd4621
commit 04e1b92a5b

View File

@ -5,6 +5,9 @@ pub fn criterion_benchmark(c: &mut Criterion) {
c.bench_function("parse + lex big kitt", |b| { c.bench_function("parse + lex big kitt", |b| {
b.iter(|| lex_and_parse(include_str!("../../tests/executor/inputs/kittycad_svg.kcl"))) b.iter(|| lex_and_parse(include_str!("../../tests/executor/inputs/kittycad_svg.kcl")))
}); });
c.bench_function("parse + lex pipes_on_pipes", |b| {
b.iter(|| lex_and_parse(include_str!("../../tests/executor/inputs/pipes_on_pipes.kcl")))
});
} }
fn lex_and_parse(program: &str) { fn lex_and_parse(program: &str) {