Skip to content

Static-Flow/adventOfCode2023

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

56 Commits
 
 
 
 
 
 
 
 

Repository files navigation

adventOfCode2023

Advent of Code 2023 Solutions in Golang

Each day is it's own folder under cmd so they're all indivdually buildable. Solution is spoilered to avoid ruining it while wanting to look at just the performance results.

Day 1

Problem Text: Link

Part 1: Link

Performance (AVG. Per Line):

Name                      CPU   ns/op      # bytes alloc'd per op      # of allocs per op
BenchmarkProcessLine-8    14.27 ns/op      0 B/op	               0 allocs/op

Part 2: Link

Performance (AVG. Per Line):

Name                      CPU   ns/op      # bytes alloc'd per op      # of allocs per op
BenchmarkProcessLine-8    122.6 ns/op      0 B/op	               0 allocs/op

Day 2

Problem Text: Link

Part 1: Link

Performance (AVG. Per Line):

Name                      CPU   ns/op      # bytes alloc'd per op      # of allocs per op
BenchmarkProcessGame-8    60.53	ns/op	   0 B/op	               0 allocs/op

Part 2: Link

Performance (AVG. Per Line):

Name                      CPU     ns/op      # bytes alloc'd per op      # of allocs per op
BenchmarkProcessGame-8    138.33  ns/op      0 B/op	                 0 allocs/op

Day 3

Problem Text: Link

Part 1: Link

Performance:

Name                        CPU    ns/op      # bytes alloc'd per op    # of allocs per op
BenchmarkProcessEngine-8    103517 ns/op      0 B/op	                0 allocs/op

Part 2: Link

Performance:

Name                        CPU     ns/op      # bytes alloc'd per op   # of allocs per op
BenchmarkProcessEngine-8    68783   ns/op      0 B/op	                0 allocs/opp

Day 4

Problem Text: Link

Part 1: Link

Performance (AVG. Per Line):

Run Time [ using now:=time.Now() //do_work print(time.Since(now) ]: 25µs

Name                        CPU    ns/op      # bytes alloc'd per op    # of allocs per op
BenchmarkProcessCards-8     2295   ns/op      0 B/op                    0 allocs/op

Part 2: Link

Performance (AVG. Per Line):

Run Time [ using now:=time.Now() //do_work print(time.Since(now) ]: 20µs

Benchmark:  
Name                        CPU    ns/op      # bytes alloc'd per op    # of allocs per op
BenchmarkProcessCards-8     1263   ns/op      0 B/op	                0 allocs/op

Day 5

Problem Text: Link

Part 1: Link

Performance (AVG. Per Line):

Run Time [ using now:=time.Now() //do_work print(time.Since(now) ]: 74µs

Part 2: Link

Performance (AVG. Per Line):

Run Time [ using now:=time.Now() //do_work print(time.Since(now) ]: 7 minutes....

Day 6

Problem Text: Link

Part 1: Link

Performance (AVG. Per Line):

Run Time [ using now:=time.Now() //do_work print(time.Since(now) ]: 20µs

Part 2: Link

Performance (AVG. Per Line):

Run Time [ using now:=time.Now() //do_work print(time.Since(now) ]: 4 ms

About

Advent of Code 2023 Solutions in Golang

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages