Advent of Code 2021
Run tests:
cargo test
Run some specific solution:
cargo run --release -- dayX::partY
Run parts of some specific day:
cargo run --release -- dayX
Run all days:
cargo run --release -- --all
Benchmarks
Benchmarks run with the full input, and not just the test input.
Run all benchmarks:
cargo install cargo-criterion # Only needs to be run once
cargo criterion
Run the benchmark for some specific solution:
cargo criterion -- dayX::partY
Run the benchmark for some specific day:
cargo criterion -- dayX