https://github.com/codspeedhq/advent
Advent of Code performance leaderboard, powered by CodSpeed
https://github.com/codspeedhq/advent
advent-of-code performance-testing
Last synced: 11 months ago
JSON representation
Advent of Code performance leaderboard, powered by CodSpeed
- Host: GitHub
- URL: https://github.com/codspeedhq/advent
- Owner: CodSpeedHQ
- License: mit
- Created: 2024-11-30T14:58:39.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-12-26T17:02:31.000Z (over 1 year ago)
- Last Synced: 2025-04-09T08:40:37.061Z (about 1 year ago)
- Topics: advent-of-code, performance-testing
- Language: Python
- Homepage: https://codspeed.io/advent
- Size: 1.58 MB
- Stars: 5
- Watchers: 1
- Forks: 5
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
A performance challenge based on the Advent of Code problems
Learn more about Advent of CodSpeed and how to participate on the [Advent of CodSpeed page](https://codspeed.io/advent/).
> [!IMPORTANT]
> Only Rust solutions are supported for now. Python and Node.js are planned in the future since it's already supported by [CodSpeed](https://codspeed.io).
## Repository setup
You need to expose a library that exposes a module for each day. In each module, you need to expose a `part1` and a `part2` function that takes a `&str` and returns one of the following types:
- Integer:
- Signed: `i8`, `i16`, `i32`, `i64`, `i128`, `isize`
- Unsigned: `u8`, `u16`, `u32`, `u64`, `u128`, `usize`
- Floating-point: `f32`, `f64`
- Boolean: `bool`
- Single character: `char`
- Strings `&str`, `String`
For example, to solve part 2 of day 5, we'll call: `crate::day5::part2(input)`.
> [!NOTE]
> Day numbers are not zero-padded.
We follow the standard defined in [`cargo-aoc`](https://github.com/gobanos/cargo-aoc) for the project structure. See this [example repository](https://github.com/gobanos/advent-of-code-2015) for a reference.
## Adding your solutions to the leaderboard
Add your repository [here](https://github.com/CodSpeedHQ/Advent/issues/new?assignees=&labels=repo%2Cadd&projects=&template=new.yml&title=Add+%3Crepo_name%3E+).
## Testing your Rust solution
You can visit the [rust-runner](./rust-runner/) folder to test your Rust solution locally and make sure it will be picked up by the runner if you registered your repository.
## Support
Join us on [Discord](https://discord.gg/NDa4PBKWaa) if you need help or want to contribute.