Skip to content

scrot/aoc2023

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

44 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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