mirror of
https://github.com/Noratrieb/brainfuck.git
synced 2026-01-14 21:35:02 +01:00
fix set_n pass
This commit is contained in:
parent
7973d9f77b
commit
d9f163ef3a
4 changed files with 11 additions and 11 deletions
|
|
@ -1,4 +0,0 @@
|
|||
>+++++[-]++++++++++[[-->+++++++++>+++++++++>+++++++++<<<<->]]>.>.>.
|
||||
<[-]<[-]<[-]
|
||||
>>>>+ >>>>> ++++++++++ <<<< <<<<<
|
||||
+[[>>>>]]+[[++--[+++>>]]>.][-]
|
||||
|
|
@ -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))));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue