Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/fspoettel/advent-of-code-2022
🦀 Rust solutions for Advent of Code 2022
https://github.com/fspoettel/advent-of-code-2022
Last synced: about 1 month ago
JSON representation
🦀 Rust solutions for Advent of Code 2022
- Host: GitHub
- URL: https://github.com/fspoettel/advent-of-code-2022
- Owner: fspoettel
- License: mit
- Created: 2022-11-26T12:05:44.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2023-11-24T08:24:13.000Z (about 1 year ago)
- Last Synced: 2024-04-13T16:12:30.575Z (9 months ago)
- Language: Rust
- Size: 302 KB
- Stars: 13
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 🎄 Advent of Code 2022
Solutions for [Advent of Code](https://adventofcode.com/) in [Rust](https://www.rust-lang.org/).
## 2022 Results
| Day | Part 1 | Part 2 |
| :---: | :---: | :---: |
| [Day 1](https://adventofcode.com/2022/day/1) | ⭐ | ⭐ |
| [Day 2](https://adventofcode.com/2022/day/2) | ⭐ | ⭐ |
| [Day 3](https://adventofcode.com/2022/day/3) | ⭐ | ⭐ |
| [Day 4](https://adventofcode.com/2022/day/4) | ⭐ | ⭐ |
| [Day 5](https://adventofcode.com/2022/day/5) | ⭐ | ⭐ |
| [Day 6](https://adventofcode.com/2022/day/6) | ⭐ | ⭐ |
| [Day 7](https://adventofcode.com/2022/day/7) | ⭐ | ⭐ |
| [Day 8](https://adventofcode.com/2022/day/8) | ⭐ | ⭐ |
| [Day 9](https://adventofcode.com/2022/day/9) | ⭐ | ⭐ |
| [Day 10](https://adventofcode.com/2022/day/10) | ⭐ | ⭐ |
| [Day 11](https://adventofcode.com/2022/day/11) | ⭐ | ⭐ |
| [Day 12](https://adventofcode.com/2022/day/12) | ⭐ | ⭐ |
| [Day 13](https://adventofcode.com/2022/day/13) | ⭐ | ⭐ |
| [Day 14](https://adventofcode.com/2022/day/14) | ⭐ | ⭐ |
| [Day 15](https://adventofcode.com/2022/day/15) | ⭐ | |
| [Day 16](https://adventofcode.com/2022/day/16) | ⭐ | |
| [Day 20](https://adventofcode.com/2022/day/20) | ⭐ | ⭐ |## Benchmarks
| Day | Parser | Part 1 | Part 2 |
| :---: | :---: | :---: | :---: |
| [Day 1](./src/bin/01.rs) | `35.7µs` | `15.0ns` | `5.2µs` |
| [Day 2](./src/bin/02.rs) | `24.2µs` | `126.0ns` | `4.8µs` |
| [Day 3](./src/bin/03.rs) | `4.4µs` | `13.7µs` | `12.8µs` |
| [Day 4](./src/bin/04.rs) | `34.6µs` | `23.0ns` | `26.0ns` |
| [Day 5](./src/bin/05.rs) | `66.7µs` | `34.5µs` | `33.1µs` |
| [Day 6](./src/bin/06.rs) | `2.9µs` | `10.3µs` | `35.3µs` |
| [Day 7](./src/bin/07.rs) | `68.6µs` | `103.0ns` | `209.0ns` |
| [Day 8](./src/bin/08.rs) | `34.1µs` | `227.6µs` | `465.3µs` |
| [Day 9](./src/bin/09.rs) | `37.0µs` | `166.3µs` | `372.8µs` |
| [Day 10](./src/bin/10.rs) | `4.0µs` | `478.0ns` | `3.3µs` |
| [Day 11](./src/bin/11.rs) | `3.6µs` | `11.0µs` | `6.3ms` |
| [Day 12](./src/bin/12.rs) | `13.7µs` | `202.5µs` | `226.0µs` |
| [Day 13](./src/bin/13.rs) | `538.3µs` | `321.0µs` | `2.6ms` |
| [Day 14](./src/bin/14.rs) | `522.2µs` | `71.4µs` | `1.6ms` |
| [Day 15](./src/bin/15.rs) | `4.7µs` | `59.9ms` | `-` |
| [Day 20](./src/bin/20.rs) | `84.4µs` | `7.4ms` | `75.1ms` |**Total: 156.60ms**
All solutions are measured (nonscientifically) via `cargo run --release` on a _M1 Macbook Air 2020_.
---
Generated from [fspoettel/advent-of-code-rust](https://github.com/fspoettel/advent-of-code-rust). See [readme](https://github.com/fspoettel/advent-of-code-rust#readme) for instructions how to setup your own.