fix set_n pass

This commit is contained in:
nora 2022-04-15 23:44:09 +02:00
parent 7973d9f77b
commit d9f163ef3a
4 changed files with 11 additions and 11 deletions

View file

@ -1,4 +0,0 @@
>+++++[-]++++++++++[[-->+++++++++>+++++++++>+++++++++<<<<->]]>.>.>.
<[-]<[-]<[-]
>>>>+ >>>>> ++++++++++ <<<< <<<<<
+[[>>>>]]+[[++--[+++>>]]>.][-]

View file

@ -32,14 +32,12 @@ fn run_bf(bf: &str) {
fn optimized(c: &mut Criterion) {
let fizzbuzz = include_str!("fizzbuzz.bf");
let bench = include_str!("bench.bf");
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))));