Skip to content

Latest commit

 

History

History
38 lines (26 loc) · 1006 Bytes

README.md

File metadata and controls

38 lines (26 loc) · 1006 Bytes

Advent of code 2023

Run solver

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

Run tests

❯ go build ./cmd/ci && ./cli test -day 1

Run benchmarks

❯ go build ./cmd/cli && ./cli benchmark -day 1

Run Profiler

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