Advent of Code execution times (estimated cycles)
-
Execution times shown are for Advent of Code solutions in the
github.com/fornwall/advent-of-code
repository.
-
Mean times from a
Criterion.rs
benchmark (source) are listed.
-
The benchmark is run inside GitHub CI, so times vary across runs due to
jitter in that environment.
-
The times do not include file reading, but do include string parsing.
The timed function has the signature
solve(year, day, part, input_string) -> String
.
-
Each part is run independently - part 1 is run separately from part 2,
so the latter does not reuse parsed data or computations from the
former.
-
The latest stable version of the Rust compiler is used, with
lto=true
, codegen-units=1
and no unsafe code.
- See aoc.fornwall.net.