- Clone this repository
- Add the following files in this directory:
input.txt-> The input file for the day you want to testoutput-1.txt-> The expected output for part 1output-2.txt-> The expected output for part 2
- Bind this runner to your solution:
- For regular repositories, run:
cargo add --git <YOUR_REPO_URL> --rename solution
- If you specified a sub crate when you registered your solution, run:
cargo add --git <YOUR_REPO_URL> <YOUR_CRATE_NAME> --rename solution
- For regular repositories, run:
- If you specified a toolchain while registering your solution, set it in the
rust-toolchain.tomlfile:[toolchain] channel = "<YOUR TOOLCHAIN GOES HERE>"
- Run the following command to set the day you want to test:
export DAY_NUMBER=<day_number>
- Install
cargo-codspeed:(make sure you havecargo binstall cargo-codspeed
cargo-binstallinstalled, if not, runcargo install cargo-binstall) - Build the benchmarks:
cargo codspeed build
- Run the benchmarks locally (without instrumentation):
cargo codspeed run
If you don't see any errors, your solution is ready to be picked up by the runner and you will see the results on the leaderboard.