Skip to content

Commit

Permalink
chore: Add a benchmark for compiling the lisp example fully
Browse files Browse the repository at this point in the history
  • Loading branch information
Marwes committed Jan 27, 2019
1 parent 4faf41b commit 0201530
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions benches/check.rs
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,14 @@ fn typecheck_benchmark(c: &mut Criterion) {
c.bench_function("typecheck_only_24", move |b| {
typecheck_file(b, "examples/24.glu")
});

c.bench_function("compile_lisp", move |b| {
b.iter(|| {
let vm = new_vm();
let mut compiler = Compiler::new();
compiler.load_file(&vm, "examples/lisp/lisp.glu").unwrap()
})
});
}

criterion_group!(
Expand Down

0 comments on commit 0201530

Please sign in to comment.