AdventOfCode.jl

December 15, 2025 · View on GitHub

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

DayProblemTotal TimeTime (algo)Total MemoryMemory (algo)Source
01Secret Entrance437.100 μs83.900 μs257.33 KiB36.57 KiB:white_check_mark:
02Gift Shop174.400 μs37.700 μs40.61 KiB39.39 KiB:white_check_mark:
03Lobby216.900 μs58.500 μs35.90 KiB4.41 KiB:white_check_mark:
04Printing Department667.400 μs531.100 μs362.90 KiB334.69 KiB:white_check_mark:
05Cafeteria271.100 μs68.600 μs96.63 KiB39.03 KiB:white_check_mark:
06Trash Compactor249.200 μs81.500 μs120.49 KiB100.60 KiB:white_check_mark:
07Laboratories186.600 μs32.300 μs39.22 KiB10.54 KiB:white_check_mark:
08Playground4.086 ms3.909 ms203.58 KiB140.33 KiB:white_check_mark:
09Movie Theater- s- s- KiB- KiB:x:
10Factory- s- s- KiB- KiB:x:
11Reactor- s- s- KiB- KiB:x:
12Christmas Tree Farm- s- s- KiB- KiB:x:

* 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