2021: day11: bench

This commit is contained in:
Antoine Martin 2021-12-11 15:39:11 +01:00
parent 1d6ed92b36
commit fc3d23397b

View file

@ -10,6 +10,7 @@ use aoc2021::day07;
use aoc2021::day08; use aoc2021::day08;
use aoc2021::day09; use aoc2021::day09;
use aoc2021::day10; use aoc2021::day10;
use aoc2021::day11;
fn aoc2021_all(c: &mut Criterion) { fn aoc2021_all(c: &mut Criterion) {
c.bench_function("day01", |b| b.iter(|| day01::run().unwrap())); c.bench_function("day01", |b| b.iter(|| day01::run().unwrap()));
@ -22,6 +23,7 @@ fn aoc2021_all(c: &mut Criterion) {
c.bench_function("day08", |b| b.iter(|| day08::run().unwrap())); c.bench_function("day08", |b| b.iter(|| day08::run().unwrap()));
c.bench_function("day09", |b| b.iter(|| day09::run().unwrap())); c.bench_function("day09", |b| b.iter(|| day09::run().unwrap()));
c.bench_function("day10", |b| b.iter(|| day10::run().unwrap())); c.bench_function("day10", |b| b.iter(|| day10::run().unwrap()));
c.bench_function("day11", |b| b.iter(|| day11::run().unwrap()));
} }
criterion_group! { criterion_group! {