about summary refs log blame commit diff
path: root/tvix/eval/benches/eval.rs
blob: a97adf02db5092e52db637ff8cd3033a26a9105f (plain) (tree)
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"))));
}

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