mirror of
https://github.com/RussellChamp/advent-of-code-2024-rust.git
synced 2026-10-28 07:52:30 +00:00
Update README.md
This commit is contained in:
commit
ecd453fca8
1 file changed
+13
-8
@@ -7,10 +7,11 @@
|
||||
Solutions for [Advent of Code](https://adventofcode.com/) in [Rust](https://www.rust-lang.org/).
|
||||
|
||||
<!--- advent_readme_stars table --->
|
||||
|
||||
## 2024 Results
|
||||
|
||||
| Day | Part 1 | Part 2 |
|
||||
| :---: | :---: | :---: |
|
||||
| :--------------------------------------------: | :----: | :----: |
|
||||
| [Day 1](https://adventofcode.com/2024/day/1) | ⭐ | ⭐ |
|
||||
| [Day 2](https://adventofcode.com/2024/day/2) | ⭐ | ⭐ |
|
||||
| [Day 3](https://adventofcode.com/2024/day/3) | ⭐ | ⭐ |
|
||||
@@ -22,13 +23,16 @@ Solutions for [Advent of Code](https://adventofcode.com/) in [Rust](https://www.
|
||||
| [Day 10](https://adventofcode.com/2024/day/10) | ⭐ | |
|
||||
| [Day 11](https://adventofcode.com/2024/day/11) | ⭐ | |
|
||||
| [Day 12](https://adventofcode.com/2024/day/12) | ⭐ | |
|
||||
| [Day 13](https://adventofcode.com/2024/day/13) | ⭐ | |
|
||||
|
||||
<!--- advent_readme_stars table --->
|
||||
|
||||
<!--- benchmarking table --->
|
||||
|
||||
## Benchmarks
|
||||
|
||||
| Day | Part 1 | Part 2 |
|
||||
| :---: | :---: | :---: |
|
||||
| :-----------------------: | :-------: | :-------: |
|
||||
| [Day 1](./src/bin/01.rs) | `126.9µs` | `218.4µs` |
|
||||
| [Day 2](./src/bin/02.rs) | `190.5µs` | `487.3µs` |
|
||||
| [Day 3](./src/bin/03.rs) | `524.3µs` | `678.5µs` |
|
||||
@@ -44,6 +48,7 @@ Solutions for [Advent of Code](https://adventofcode.com/) in [Rust](https://www.
|
||||
| [Day 13](./src/bin/13.rs) | `2.7ms` | `719.8µs` |
|
||||
|
||||
**Total: 1980.71ms**
|
||||
|
||||
<!--- benchmarking table --->
|
||||
|
||||
---
|
||||
@@ -173,9 +178,9 @@ The `cargo time` command allows you to benchmark your code and store timings in
|
||||
|
||||
`cargo time` has three modes of execution:
|
||||
|
||||
1. `cargo time` without arguments incrementally benches solutions that do not have been stored in the readme yet and skips the rest.
|
||||
2. `cargo time <day>` benches a single solution.
|
||||
3. `cargo time --all` benches all solutions.
|
||||
1. `cargo time` without arguments incrementally benches solutions that do not have been stored in the readme yet and skips the rest.
|
||||
2. `cargo time <day>` benches a single solution.
|
||||
3. `cargo time --all` benches all solutions.
|
||||
|
||||
By default, `cargo time` does not write to the readme. In order to do so, append the `--store` flag: `cargo time --store`.
|
||||
|
||||
@@ -211,9 +216,9 @@ cargo read <day>
|
||||
|
||||
During december, the `today` shorthand command can be used to:
|
||||
|
||||
- scaffold a solution for the current day
|
||||
- download its input
|
||||
- and read the puzzle
|
||||
- scaffold a solution for the current day
|
||||
- download its input
|
||||
- and read the puzzle
|
||||
|
||||
in one go.
|
||||
|
||||
|
||||
Reference in new issue
Block a user