Categorygithub.com/joshprzybyszewski/aoc2022
repositorypackage
0.0.0-20230107130928-a6da234eeb5a
Repository: https://github.com/joshprzybyszewski/aoc2022.git
Documentation: pkg.go.dev

# Packages

No description provided by the author
No description provided by the author

# README

aoc2022

Advent of Code 2022 - golang

Here's my solutions for the Advent of Code 2022 challenge.

To run, execute go run main.go.

Results

Since the leaderboard on the aoc website is based on who can submit an answer the soonest after a problem is released, I need to find a way to compete with my friends. Hence, we are comparing the duration and heap allocations of our solutions.

See my latest results.

Results

Now that I've completed all of the puzzles, here are the benchmarks I've generated.

Benchmark Specs

goos: linux

goarch: amd64

pkg: github.com/joshprzybyszewski/aoc2022

cpu: Intel(R) Core(TM) i5-3570 CPU @ 3.40GHz

Puzzles

PuzzleDurationBytes allocated to Heap# of Heap allocations
Day 1 Part One38.13 µs00
Day 1 Part Two41.27 µs00
Day 2 Part One54.90 µs00
Day 2 Part Two57.99 µs00
Day 3 Part One27.40 µs00
Day 3 Part Two32.50 µs48641
Day 4 Part One71.20 µs00
Day 4 Part Two66.41 µs00
Day 5 Part One28.63 µs161
Day 5 Part Two27.95 µs161
Day 6 Part One3.23 µs00
Day 6 Part Two2.99 µs00
Day 7 Part One36.06 µs15361
Day 7 Part Two34.22 µs15361
Day 8 Part One65.72 µs17921
Day 8 Part Two368.05 µs17921
Day 9 Part One167.93 µs00
Day 9 Part Two832.83 µs00
Day 10 Part One2.21 µs00
Day 10 Part Two2.37 µs00
Day 11 Part One15.43 µs23048
Day 11 Part Two6.93 ms396413
Day 12 Part One79.36 µs00
Day 12 Part Two96.98 µs00
Day 13 Part One1.38 ms6877468489
Day 13 Part Two1.30 ms6877448489
Day 14 Part One955.44 µs00
Day 14 Part Two15.37 ms00
Day 15 Part One11.14 µs21046
Day 15 Part Two504.48 ms21046
Day 16 Part One2.26 ms77966235
Day 16 Part Two100.00 ms81840235
Day 17 Part One234.07 µs00
Day 17 Part Two307.84 ms26521628
Day 18 Part One155.02 µs00
Day 18 Part Two917.14 µs220608358
Day 19 Part One3.84 ms347415
Day 19 Part Two44.96 ms288816
Day 20 Part One26.29 ms2981765006
Day 20 Part Two336.86 ms2981765006
Day 21 Part One558.81 µs3416722168
Day 21 Part Two654.28 µs3416722168
Day 22 Part One5.33 ms108210415016
Day 22 Part Two4.78 ms108210715016
Day 23 Part One5.35 ms6185321
Day 23 Part Two595.35 ms907361413
Day 24 Part One18.38 ms23579392451
Day 24 Part Two58.96 ms755595661380
Day 25 Part One5.00 µs25619