Skip to content

Titas22/AdventOfCode.jl

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

406 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AdventOfCode.jl

Julia 1.12.2 Total: 119 License: MIT Code Style: Blue ColPrac: Contributor's Guide on Collaborative Practices for Community Packages Badge Repo Size

My Advent of Code submissions in Julia.

Running

include("./scripts/init.jl") # Run once to set up and activate the environment

include("./src/AoC_2025/AoC_2025_xx.jl") # use to run & re-run the actual script

# Benchmarking - median times taken
@benchmark (part1, part2) = AoC_2025_xx.solve(use_input_cache=false) # Full benchmark including parsing the file
@benchmark (part1, part2) = AoC_2025_xx.solve(use_input_cache=true) # Algo only benchmark (cached inputs)

# For profiling
@profview for _ in 1:1000; AoC_2025_xx.solve(use_input_cache=true); end

Summary

16/24 Runtime: 6.288ms Memory: 1.103MiB

Day Problem Total Time Time (algo) Total Memory Memory (algo) Source
01 Secret Entrance 437.100 μs 83.900 μs 257.33 KiB 36.57 KiB
02 Gift Shop 174.400 μs 37.700 μs 40.61 KiB 39.39 KiB
03 Lobby 216.900 μs 58.500 μs 35.90 KiB 4.41 KiB
04 Printing Department 667.400 μs 531.100 μs 362.90 KiB 334.69 KiB
05 Cafeteria 271.100 μs 68.600 μs 96.63 KiB 39.03 KiB
06 Trash Compactor 249.200 μs 81.500 μs 120.49 KiB 100.60 KiB
07 Laboratories 186.600 μs 32.300 μs 39.22 KiB 10.54 KiB
08 Playground 4.086 ms 3.909 ms 203.58 KiB 140.33 KiB
09 Movie Theater - s - s - KiB - KiB
10 Factory - s - s - KiB - KiB
11 Reactor - s - s - KiB - KiB
12 Christmas Tree Farm - s - s - KiB - KiB

* Algo time/memory shows the results of solution without the time taken to read the inputs from file. Parsing of the inputs is still included (from the Vector{String} format)


The benchmarks have been measured on this machine:

Julia Version 1.12.2
Commit ca9b6662be (2025-11-20 16:25 UTC)
Platform Info:
    Model:  MSI GE66 Raider 10SFS
    OS:     Windows 11 Home 64-bit (10.0, Build 26100)
    CPU:    Intel(R) Core(TM) i9-10980HK CPU @ 2.40GHz (16 CPUs), ~3.1GHz
    GPU:    NVIDIA GeForce RTX 2070 Super
    Memory: 64.0 GB DDR4-3200 SDRAM

    LLVM: libLLVM-18.1.7 (ORCJIT, skylake)

Previous Years

  • 2024: 50/50
  • 2023: 45/50
  • 2022: 28/50

About

My Advent of Code submissions in Julia.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages