Build and run the program and use day
to select which puzzle to solve version
to select the version of the solver (if available) and part
to solve the first part or second part of the puzzle.
> go build ./cmd/cli && ./cli run -day 1 -version 1 -part 1
❯ go build ./cmd/ci && ./cli test -day 1
❯ go build ./cmd/cli && ./cli benchmark -day 1
Profile generates a pprof
cpu profile and generates a graph that is opened in the browser. it requires graphviz
to work (e.g. install it using brew install graphviz
).
The profiler uses benchmarks that are formatted BenchmarkDay1Part1V1
to generate a cpu profile.
> go build ./cmd/cli && ./cli profile -day 1 -version 1 -part 1