8000 GitHub - Qronicle/advent-of-code-2024: Advent Of Code 2024 - PHP Solutions
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Qronicle/advent-of-code-2024

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

47 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Advent of Code 2024 ~ PHP

Benchmarks

Day Part 1 Part 2 Total
1 0.00059 sec
0.10 MB
0.00034 sec
0.10 MB
0.00093 sec
0.20 MB
2 0.00110 sec
0.06 MB
0.00264 sec
0.06 MB
0.00374 sec
0.12 MB
3 0.00013 sec
0.13 MB
0.00014 sec
0.18 MB
0.00027 sec
0.31 MB
4 0.00587 sec
1.74 MB
0.00171 sec
1.74 MB
0.00758 sec
3.48 MB
5 0.00162 sec
0.23 MB
0.00288 sec
0.23 MB
0.00450 sec
0.46 MB
6 0.00103 sec
1.57 MB
0.57224 sec
4.13 MB
0.57327 sec
5.70 MB
7 0.00350 sec
0.07 MB
0.00972 sec
0.10 MB
0.01322 sec
0.17 MB
8 0.00053 sec
0.10 MB
0.00093 sec
0.21 MB
0.00146 sec
0.31 MB
9 0.10969 sec
1.11 MB
2.11735 sec
2.85 MB
2.22704 sec
3.96 MB
10 0.00188 sec
0.07 MB
0.00217 sec
0.07 MB
0.00405 sec
0.14 MB
11 0.00119 sec
0.05 MB
0.05634 sec
0.39 MB
0.05753 sec
0.44 MB
12 0.01912 sec
2.11 MB
0.02305 sec
2.13 MB
0.04217 sec
4.24 MB
13 0.00077 sec
0.04 MB
0.00076 sec
0.04 MB
0.00153 sec
0.08 MB
14 0.00066 sec
0.04 MB
1.52412 sec
0.37 MB
1.52478 sec
0.41 MB
15 0.00439 sec
1.28 MB
0.00631 sec
1.40 MB
0.01070 sec
2.68 MB
16 0.03519 sec
4.31 MB
0.14220 sec
27.34 MB
0.17739 sec
31.65 MB
17 0.00004 sec
0.04 MB
0.00491 sec
0.04 MB
0.00495 sec
0.08 MB
18 0.00298 sec
0.60 MB
0.02472 sec
0.50 MB
0.02770 sec
1.10 MB
19 1.37870 sec
0.10 MB
1.02103 sec
2.83 MB
2.39973 sec
2.93 MB
20 0.01112 sec
1.77 MB
2.71477 sec
1.77 MB
2.72589 sec
3.54 MB
21 0.00018 sec
0.08 MB
0.00066 sec
0.13 MB
0.00084 sec
0.21 MB
22 0.99805 sec
0.10 MB
2.71073 sec
260.83 MB
3.70878 sec
260.93 MB
23 0.03001 sec
3.90 MB
0.05178 sec
0.76 MB
0.08179 sec
4.66 MB
24 0.00028 sec
0.12 MB
0.00024 sec
0.15 MB
0.00052 sec
0.27 MB
25 0.00866 sec
0.17 MB
0.00000 sec
0.04 MB
0.00866 sec
0.21 MB
TOTAL 2.61728 sec
19.89 MB
10.99174 sec
308.39 MB
13.60902 sec
328.28 MB

Usage

Installation

composer install

Running a solution

bin/console run 5.1

This will run day 5 part 1 using the var/input/raw/day05.txt file as input

Running a solution with a test file

bin/console run 11.2 test

This will run day 11 part 2 using the var/input/variations/day11-test.txt file as input. Note that 'test' can be any string, as long as an input file exists for that day, with that suffix.

Running a custom solution method

bin/console run 15.animate test

This will run the animate method of the day 15 solution class. Input can still be specified as before. Note that the referenced method must be public.

Creating a solution class for a specific day

bin/console create 5

This will create a AdventOfCode\Solutions\Day05 class, and input files in var/input when the AOC_SESSION_ID is defined by the .env file.

Generating benchmarks

bin/console benchmark

This will create benchmark all solutions (run each part up to 10 times, stop after 10 seconds) and update the results in this readme file.

It is possible to only benchmark a single day and update the readme:

bin/console benchmark 13

Note that totals will always be recalculated.

About

Advent Of Code 2024 - PHP Solutions

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

0