about summary refs log tree commit diff
path: root/tvix/eval/benches/eval.rs
blob: a05c04f03e29b49379ff1bed0dfdab6157e4e6d4 (plain) (blame)
1
2
3
4
5
6
7
8
9
use criterion::{black_box, criterion_group, criterion_main, Criterion};
use tvix_eval::interpret;

fn eval_literals(c: &mut Criterion) {
    c.bench_function("int", |b| b.iter(|| black_box(interpret("42", None))));
}

criterion_group!(benches, eval_literals);
criterion_main!(benches);