Skip to content

Commit

Permalink
Declarations in ascending order
Browse files Browse the repository at this point in the history
  • Loading branch information
maneatingape committed Sep 2, 2023
1 parent e59ba42 commit fc09196
Show file tree
Hide file tree
Showing 4 changed files with 204 additions and 204 deletions.
146 changes: 73 additions & 73 deletions benches/benchmark.rs
Original file line number Diff line number Diff line change
Expand Up @@ -35,60 +35,29 @@ macro_rules! benchmark {
};
}

mod year2022 {
benchmark!(year2022, day01);
benchmark!(year2022, day02);
benchmark!(year2022, day03);
benchmark!(year2022, day04);
benchmark!(year2022, day05);
benchmark!(year2022, day06);
benchmark!(year2022, day07);
benchmark!(year2022, day08);
benchmark!(year2022, day09);
benchmark!(year2022, day10);
benchmark!(year2022, day11);
benchmark!(year2022, day12);
benchmark!(year2022, day13);
benchmark!(year2022, day14);
benchmark!(year2022, day15);
benchmark!(year2022, day16);
benchmark!(year2022, day17);
benchmark!(year2022, day18);
benchmark!(year2022, day19);
benchmark!(year2022, day20);
benchmark!(year2022, day21);
benchmark!(year2022, day22);
benchmark!(year2022, day23);
benchmark!(year2022, day24);
benchmark!(year2022, day25);
mod year2015 {
benchmark!(year2015, day01);
benchmark!(year2015, day02);
benchmark!(year2015, day03);
benchmark!(year2015, day04);
benchmark!(year2015, day05);
benchmark!(year2015, day06);
benchmark!(year2015, day07);
benchmark!(year2015, day08);
benchmark!(year2015, day09);
benchmark!(year2015, day10);
}

mod year2021 {
benchmark!(year2021, day01);
benchmark!(year2021, day02);
benchmark!(year2021, day03);
benchmark!(year2021, day04);
benchmark!(year2021, day05);
benchmark!(year2021, day06);
benchmark!(year2021, day07);
benchmark!(year2021, day08);
benchmark!(year2021, day09);
benchmark!(year2021, day10);
benchmark!(year2021, day11);
benchmark!(year2021, day12);
benchmark!(year2021, day13);
benchmark!(year2021, day14);
benchmark!(year2021, day15);
benchmark!(year2021, day16);
benchmark!(year2021, day17);
benchmark!(year2021, day18);
benchmark!(year2021, day19);
benchmark!(year2021, day20);
benchmark!(year2021, day21);
benchmark!(year2021, day22);
benchmark!(year2021, day23);
benchmark!(year2021, day24);
benchmark!(year2021, day25);
mod year2019 {
benchmark!(year2019, day01);
benchmark!(year2019, day02);
benchmark!(year2019, day03);
benchmark!(year2019, day04);
benchmark!(year2019, day05);
benchmark!(year2019, day06);
benchmark!(year2019, day07);
benchmark!(year2019, day08);
benchmark!(year2019, day09);
}

mod year2020 {
Expand Down Expand Up @@ -119,27 +88,58 @@ mod year2020 {
benchmark!(year2020, day25);
}

mod year2019 {
benchmark!(year2019, day01);
benchmark!(year2019, day02);
benchmark!(year2019, day03);
benchmark!(year2019, day04);
benchmark!(year2019, day05);
benchmark!(year2019, day06);
benchmark!(year2019, day07);
benchmark!(year2019, day08);
benchmark!(year2019, day09);
mod year2021 {
benchmark!(year2021, day01);
benchmark!(year2021, day02);
benchmark!(year2021, day03);
benchmark!(year2021, day04);
benchmark!(year2021, day05);
benchmark!(year2021, day06);
benchmark!(year2021, day07);
benchmark!(year2021, day08);
benchmark!(year2021, day09);
benchmark!(year2021, day10);
benchmark!(year2021, day11);
benchmark!(year2021, day12);
benchmark!(year2021, day13);
benchmark!(year2021, day14);
benchmark!(year2021, day15);
benchmark!(year2021, day16);
benchmark!(year2021, day17);
benchmark!(year2021, day18);
benchmark!(year2021, day19);
benchmark!(year2021, day20);
benchmark!(year2021, day21);
benchmark!(year2021, day22);
benchmark!(year2021, day23);
benchmark!(year2021, day24);
benchmark!(year2021, day25);
}

mod year2015 {
benchmark!(year2015, day01);
benchmark!(year2015, day02);
benchmark!(year2015, day03);
benchmark!(year2015, day04);
benchmark!(year2015, day05);
benchmark!(year2015, day06);
benchmark!(year2015, day07);
benchmark!(year2015, day08);
benchmark!(year2015, day09);
benchmark!(year2015, day10);
mod year2022 {
benchmark!(year2022, day01);
benchmark!(year2022, day02);
benchmark!(year2022, day03);
benchmark!(year2022, day04);
benchmark!(year2022, day05);
benchmark!(year2022, day06);
benchmark!(year2022, day07);
benchmark!(year2022, day08);
benchmark!(year2022, day09);
benchmark!(year2022, day10);
benchmark!(year2022, day11);
benchmark!(year2022, day12);
benchmark!(year2022, day13);
benchmark!(year2022, day14);
benchmark!(year2022, day15);
benchmark!(year2022, day16);
benchmark!(year2022, day17);
benchmark!(year2022, day18);
benchmark!(year2022, day19);
benchmark!(year2022, day20);
benchmark!(year2022, day21);
benchmark!(year2022, day22);
benchmark!(year2022, day23);
benchmark!(year2022, day24);
benchmark!(year2022, day25);
}
62 changes: 31 additions & 31 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -85,8 +85,35 @@ pub mod util {
pub mod slice;
}

/// # Assist the Elves on their annual jungle expedition.
pub mod year2022 {
/// # Help Santa by solving puzzles to fix the weather machine's snow function.
pub mod year2015 {
pub mod day01;
pub mod day02;
pub mod day03;
pub mod day04;
pub mod day05;
pub mod day06;
pub mod day07;
pub mod day08;
pub mod day09;
pub mod day10;
}

/// # Rescue Santa from deep space with a solar system adventure.
pub mod year2019 {
pub mod day01;
pub mod day02;
pub mod day03;
pub mod day04;
pub mod day05;
pub mod day06;
pub mod day07;
pub mod day08;
pub mod day09;
}

/// # What could go wrong trying to enjoy a well deserved vacation?
pub mod year2020 {
pub mod day01;
pub mod day02;
pub mod day03;
Expand Down Expand Up @@ -143,8 +170,8 @@ pub mod year2021 {
pub mod day25;
}

/// # What could go wrong trying to enjoy a well deserved vacation?
pub mod year2020 {
/// # Assist the Elves on their annual jungle expedition.
pub mod year2022 {
pub mod day01;
pub mod day02;
pub mod day03;
Expand All @@ -171,30 +198,3 @@ pub mod year2020 {
pub mod day24;
pub mod day25;
}

/// # Rescue Santa from deep space with a solar system adventure.
pub mod year2019 {
pub mod day01;
pub mod day02;
pub mod day03;
pub mod day04;
pub mod day05;
pub mod day06;
pub mod day07;
pub mod day08;
pub mod day09;
}

/// # Help Santa by solving puzzles to fix the weather machine's snow function.
pub mod year2015 {
pub mod day01;
pub mod day02;
pub mod day03;
pub mod day04;
pub mod day05;
pub mod day06;
pub mod day07;
pub mod day08;
pub mod day09;
pub mod day10;
}
Loading

0 comments on commit fc09196

Please sign in to comment.