Skip to content

tsunaminoai/aoc2024

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

92 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Getting Started

This project uses devbox to manage its development environment.

Install devbox:

curl -fsSL https://get.jetpack.io/devbox | bash

Start the devbox shell:

devbox shell

Run a script in the devbox environment:

devbox run <script>

Scripts

Scripts are custom commands that can be run using this project's environment. This project has the following scripts:

Shell Init Hook

The Shell Init Hook is a script that runs whenever the devbox environment is instantiated. It runs on devbox shell and on devbox run.

echo 'Welcome to devbox!' > /dev/null

Packages

Script Details

devbox run debug

zig build -Doptimize=Debug run

devbox run fast

zig build -Doptimize=ReleaseFast run

devbox run safe

zig build -Doptimize=ReleaseSafe run

devbox run small

zig build -Doptimize=ReleaseSmall run

devbox run test

zig build -Doptimize=Debug test

devbox run test-watch

zig build --watch test

Benchmark Results

Day 1 (100 iterations)

Part Avg Min Max
1 507.098µs 495.167µs 752.833µs
2 507.967µs 495.334µs 754.458µs

Day 4 (100 iterations)

Part Avg Min Max
1 2.461ms 2.317ms 3.587ms
2 53.926ms 52.383ms 97.696ms

Day 5 (100 iterations)

Part Avg Min Max
1 1.540ms 1.508ms 1.833ms
2 381.384µs 368.416µs 478.709µs

Day 7 (100 iterations)

Part Avg Min Max
1 323.309µs 214.042µs 1.172ms
2 5.340ms 4.884ms 6.933ms

Packages

No packages published