make stmt a single word big

This commit is contained in:
nora 2022-04-15 19:04:43 +02:00
parent 1e1a2a277b
commit 7dd2c82fa4
4 changed files with 22 additions and 17 deletions

View file

@ -35,12 +35,14 @@ fn optimized(c: &mut Criterion) {
let loopremove = include_str!("loopremove.bf");
let twinkle = include_str!("twinkle.bf");
let bottles = include_str!("bottles.bf");
let hanoi = include_str!("hanoi.bf");
c.bench_function("fizzbuzz", |b| b.iter(|| run_bf(black_box(fizzbuzz))));
c.bench_function("bench", |b| b.iter(|| run_bf(black_box(bench))));
c.bench_function("loopremove", |b| b.iter(|| run_bf(black_box(loopremove))));
c.bench_function("twinkle", |b| b.iter(|| run_bf(black_box(twinkle))));
c.bench_function("bottles", |b| b.iter(|| run_bf(black_box(bottles))));
c.bench_function("hanoi", |b| b.iter(|| run_bf(black_box(hanoi))));
}
criterion_group!(benches, optimized);