Skip to content

Advent of Code performance leaderboard, powered by CodSpeed

License

Notifications You must be signed in to change notification settings

CodSpeedHQ/Advent

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Cover Image 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.

Important

Only Rust solutions are supported for now. Python and Node.js are planned in the future since it's already supported by CodSpeed.

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 an impl Display.

More specifically, the following return types are allowed:

  • Integer types (i32, i64, u32, u64, usize, isize, etc.)
  • Floating-point types (f32, f64)
  • Single character (char)
  • String slice (&str) or 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 for the project structure. See this example repository for a reference.

Adding your solutions to the leaderboard

Add your repository here.

Testing your Rust solution

You can visit the 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 if you need help or want to contribute.