add benchmarks and submodules

This commit is contained in:
Felix Van der Jeugt 2020-12-03 17:59:49 +01:00
parent 0844c6ba34
commit c878541613
No known key found for this signature in database
GPG key ID: 58B209295023754D
22 changed files with 1598 additions and 0 deletions

45
.gitmodules vendored Normal file
View file

@ -0,0 +1,45 @@
[submodule "Lukas"]
path = Lukas
url = https://github.com/lvrossem/Advent-of-Code-2020
[submodule "Flynn"]
path = Flynn
url = https://gitlab.com/mcbloch/aoc2020
[submodule "Rien"]
path = Rien
url = https://github.com/rien/adventofcode2020
[submodule "Robbe"]
path = Robbe
url = https://github.com/Robbe7730/advent_of_code_2020
[submodule "Francis"]
path = Francis
url = https://github.com/fbegyn/aoc2020
[submodule "Timo"]
path = Timo
url = https://github.com/timodw/AoC20
[submodule "Kobe"]
path = Kobe
url = https://github.com/SchrodingersCat00/aoc2020
[submodule "Jasper"]
path = Jasper
url = https://github.com/jaspervdj/advent-of-code
[submodule "Lorin"]
path = Lorin
url = https://github.com/werthen/AoC-2020
[submodule "Felix"]
path = Felix
url = https://github.com/ninewise/adventofcode-2020
[submodule "Francis."]
path = Francis.
url = https://github.com/FKD13/AoC2020
[submodule "Mel"]
path = Mel
url = https://gitlab.com/Melsarion/adventofcode2020
[submodule "Poef"]
path = Poef
url = https://github.com/Iepoev/AoC20
[submodule "Lode"]
path = Lode
url = https://gitlab.com/Bond_009/advent-of-code-2020
[submodule "JP"]
path = JP
url = https://github.com/Jan-PieterBaert/advent-of-code

1
Felix Submodule

@ -0,0 +1 @@
Subproject commit c852cb98b10e7b5f4157809e23af2f5261bb97fe

1
Flynn Submodule

@ -0,0 +1 @@
Subproject commit 9549d5f64a37eb5a9fba6618246f820123f24a5c

1
Francis Submodule

@ -0,0 +1 @@
Subproject commit 98eb23e7eef06f65ad426c3ef420bf830e7eabd8

1
Francis. Submodule

@ -0,0 +1 @@
Subproject commit 5f36a3f98194d6dcd1dfc4c34a8a7135bd1bcca6

1
JP Submodule

@ -0,0 +1 @@
Subproject commit 3edaade5166af482e1f4d714842d9540d206f5e1

1
Jasper Submodule

@ -0,0 +1 @@
Subproject commit e3d41b2fb99872fb0742a310932aac5778c4f8f6

1
Kobe Submodule

@ -0,0 +1 @@
Subproject commit 8a8e35cf9c6b1a3d611fe5af8f15ca15014110c9

1
Lode Submodule

@ -0,0 +1 @@
Subproject commit 0f39612c19a4865dcaf5963590b985d4f29c4bd3

1
Lorin Submodule

@ -0,0 +1 @@
Subproject commit f576dea2b17b3ce797990726609956633d48ff73

1
Lukas Submodule

@ -0,0 +1 @@
Subproject commit 11f44a4be816dfdba03f8264df5c24ae278597f4

1
Mel Submodule

@ -0,0 +1 @@
Subproject commit 58422ad301fcb65bf3726a56a0a093371acdadd3

1
Poef Submodule

@ -0,0 +1 @@
Subproject commit d4811c66604fa0e42b36f893820f2155dcb10dbe

1
Rien Submodule

@ -0,0 +1 @@
Subproject commit c35f7ee1782e57bfea54945cd8556e0724b93104

1
Robbe Submodule

@ -0,0 +1 @@
Subproject commit c718fca337383b325cabcf4ea1c0c09f404d1113

1
Timo Submodule

@ -0,0 +1 @@
Subproject commit 014f1a0aed1643945c5c1a0b32e5545dd4f5942a

10
benchmark Executable file
View file

@ -0,0 +1,10 @@
#!/bin/sh
day="$(printf '%02d' "$1")"
part="$2"
inputfile="../inputs/$day-input"
[ -x "prepare" ] || exit 0
[ -x "run" ] || exit 0
./prepare "$day" "$part" "$inputfile"
hyperfine "./run '$day' '$part' '$inputfile'"

2
benchmarks Executable file
View file

@ -0,0 +1,2 @@
#!/bin/sh
git submodule foreach ../benchmark "$@"

200
inputs/01-input Normal file
View file

@ -0,0 +1,200 @@
1753
1858
1860
1978
1758
1847
2010
1679
1222
1723
1592
1992
1865
1635
1692
1653
1485
848
1301
1818
1872
1883
1464
2002
1736
1821
1851
1299
1627
1698
1713
1676
1673
1448
1939
1506
1896
1710
1677
1894
1645
1454
1972
1687
265
1923
1666
1761
1386
2006
1463
1759
1460
1722
1670
1731
1732
1976
1564
1380
1981
1998
1912
1479
1500
167
1904
1689
1810
1675
1811
1671
1535
1624
1638
1848
1646
1795
1717
1803
1867
1794
1774
1245
1915
1601
1656
1472
1700
1887
1869
1876
1561
1743
1900
1574
1400
1950
1893
1576
1903
1747
1560
1445
1652
633
1970
1812
1807
1788
1948
1588
1639
1719
1680
1773
1890
1347
1344
1456
1691
1842
1585
1953
410
1791
485
1412
1994
1799
1955
1554
1661
1708
1824
1553
1993
1911
1515
1545
856
1685
1982
1954
1480
1709
1428
1829
1606
1613
1941
1483
1513
1664
1801
1720
1984
1575
1805
1833
1418
1882
1746
483
1674
1467
1453
523
1414
1800
1403
1946
1868
1520
1861
1580
1995
1960
1625
1411
1558
1817
1854
1617
1478
735
1593
1778
1809
1584
1438
1845
1712
1655
1990
1578
1703
1895
1765
1572

1000
inputs/02-input Normal file

File diff suppressed because it is too large Load diff

323
inputs/03-input Normal file
View file

@ -0,0 +1,323 @@
....#..#.................#..#..
#..#.#.#..#.###.#..#...#..#....
.#....#......#.#.#..##...#...#.
.............#.#..#........#.#.
............##.#..#...##.###...
.....#..#......#......##.......
........##........#...........#
..................#..#.........
......#..#...#..#......###..#..
.#....#...........#.....#.##...
..#..#.#........###..#....#...#
..#..##..#..#....#..#......#...
......#....................#...
.........#..#..................
..#.#.....#......#.#....#...#..
..#..........##.......##.##....
#.......#.##.....#...#....#....
####..............###.#....#...
....#........#.#..###..#...#..#
#.#......#...#.##....#.....#...
.......#......#.....#........#.
.##.........#...#.........#....
............#....#.#........#..
#..##..#....#...#.#....#....#..
.....#....##..#................
.#...........#....#..#.....#...
......#.#...#..###.............
#...#...........#..###.#..#..#.
...................#..#....#..#
....#...#...#.#.....#....#.##..
.......#.......#.#.........#...
#..#.......#...#..#.#......#...
..##...........#....#..#.......
.#...............#...##........
.....#..........#............#.
..#.......#.#.#...........#..#.
........#..#.#.#........#.#.##.
.###..............#.#..........
.#....###.....#......#....#....
............#.#......#..#....#.
.#.#.............#........##...
.....#..###....##.....#....#..#
.##....#...#.#.........#......#
....##.......#...............##
..........##.##.......#........
......#....##.........##.#.#.#.
..............#....#..#......#.
......##.........#.........#...
.#...##...##....##..#..#.....#.
.#......#.###.#....#...#......#
.##.......................#..#.
....#......#.##..........#.###.
.#.....##..........#.#.........
....#.#.........#...#..........
.#..##.#....##.......#.......#.
.........#.......#............#
###..........#.....##.#....#...
.......###.#....#........#...##
..#..#....#.......#.#..........
.#..#..........#......#...#....
.....###.#..#.....#...#..#.....
........#.#.#..........#.#..#..
........#...##.................
...#.............#.#..#......##
......#......##......#...#.#..#
.#..#...##..........#...##.....
..#.#....####..#...#....##....#
.#..##.........#..##......#....
#....#.#.........#.............
....###..............#....#....
....#..#..#...###..#.#..#.#....
....#.....#...........###..#...
....#.#.....#...#.....#.......#
..#.......#..................#.
#...................##.........
....#.#.#.#.#.....#.....#......
...............##..#..##.#...##
..#.....#.....##.........#..#..
...#...#.....#..##..##....#..##
..#.................#....#...#.
#....##...............##..#....
..#.....#.....##.........##...#
..#.###..............#...#.....
.......................#.......
#...#..#.....##...#...#........
..........#......#.###....#...#
..#.....#.##.#..#.#.......#....
#.##...#............#..........
#........#.#.#..#...#..#.....##
#............#.#...............
.#..#.......#.#.....#.#......##
.#.#....#........#..##.........
..#....#......#.#...##...#.....
##.....#......................#
...#.......#..##.....#........#
......##..#...............##...
.....#...#......##....#.#......
.#...#....#.#.#........#...#.#.
.......#...#...##...#..........
.##..#..##........##....###.#..
..##........#........##........
............#....#......#......
.......#...........#.......#...
#.#......##.#...#....#.#.....#.
..#.#.#......##........#....#..
#.#.####.#..#..........#.......
......................#.#......
...#.......#.....#......#..#.#.
...#....#....##..........#..##.
......#......#....#.........#..
.........#....#...#.#.........#
.....#...##.#.#.#......#.....#.
........#...#......#.#....#....
.....#.........#.............#.
.#...........#.#....##.......#.
.#..#......#....#....#....#....
#.......#.#.#.#..#.......#.....
..#...#...#......#.............
.....#.......#..#.........##..#
#..##...........#.#.........#..
#..#..........#....#......#...#
#...#............#....##..#.##.
....#.#..#....#.........##..##.
.........#..........#.......##.
#...#........................#.
....#....#..#...........##...#.
.....###.###.#....#.....#.....#
.#..###..#...##..........#.....
#..#.....#...#........#........
.#..##..#......#.....#......##.
#.....##........#.#..#....#.#..
.#....#...#..#...............#.
..........#.#........#.....#...
..#.#.....#....#........#.###..
...#..#...#.##.....#..........#
..#......##....................
.....#...#....#..#....#.......#
......#............#....#...#..
.#..#....#.....#........##.....
...#..#.......#...............#
##.#..#...............#.#..##..
..#.........#.####.####........
.........#...#.#........#..###.
..###.....#.........##........#
#..##.....##.#..........#....##
.#..#....###..#.....##..#......
#...#..#........#.............#
#.#....#........#.........#.###
.....#....#.###.......#........
...........#............#..#...
..........#.#..##......###....#
..##....#...........#....#....#
..#...##.#.......#.##.......#..
.......#......#..........#....#
.........#..#..............####
#.#...#...#......#...#..#...#.#
.#.#...#.....#.......#.#..##.#.
......##..##...#...............
....#....#...##.......#.#......
.............................#.
..##...#.......#......#.......#
.#.##.##....#......##.......#..
.......##..#....#.##.#.#.......
....#.............#......#..#..
...#.........#....#..#.....#.#.
......#......#......#.........#
........#..#.#.....#.....#...#.
.#.......#.........#...#.......
#.#.##.....#...#...............
..#.......##.....#............#
.................##.#..#.....##
........#.###....#.......##.#..
....#.#..#..#.......#.#....#..#
.#..#..#..#...##....#..#.....#.
...#..#...#..........#........#
...........##....#...##.#...###
.##..#.......##.....##....#....
...#.#..#..#..##..#.....##.....
.#.....#..........#...#........
.....#..#.#..#.................
..#.......#..#.....##.......#..
............##.##.....#...#....
#......#......................#
...#..........#...#...#..#.....
......##..............##.##....
................##......#.###..
.###...#..........#...........#
#....#...#.........##......#...
.............#...............#.
.###.....#......#...#.......#..
......##..#.#.#.....#........#.
..#.#..........#.#......##.....
.#.#...#.#.....#.#..#.....#....
.......#....#.#....##..........
#.........#........####.#......
...#..#.....#..............#.#.
...#..........................#
..##....#..#..........#....#...
..##.##.#.#.#......#..#........
...#..#.#.#..#........#.......#
.....#.....#..#...#........##..
..#..#...........#...##..##..#.
#.....#.....#..#..##........#..
...#..............#......#..#..
...#.#...........###...#.#.....
..........................#.#..
....#........#..#..........#.#.
.#..#..........#.#..........#..
....#.........#......#.#....#..
..#........#.................#.
...#......#............#.......
...#.#...#..##....#........#...
......##.#....#.#......#.......
........#..........#........#..
###..#.....#...#......#...###..
..##...#..###............#...#.
#.......#..#..#............##..
#........####......#...........
#..#..#...........#.......####.
......#..##................#...
.....#..##......#.#...#..#.....
......#.....##.....#.###.......
.#.....#.........#.......#.#..#
.##...........###...#....#...#.
.#....#..#....#.##...#.........
.................##............
......#......#.............#...
.........##.#........#....#...#
..##....#.......#....##.#......
.......#.#.#.....##..#.#.......
......#.#.#.#......#...#.......
....##...#.....#..#......#.....
..............#......#.##......
#.##..###........#.##........##
#..#.........#.#......#.#......
.#..###.......#................
..............#...#..##.#.#....
.....#..#........#...##.#...#..
.#...##.....#........#..###.#..
....#.....#...#........#.......
....#.##.....#....#............
#.#..#....#....#............#..
....#....#...#.#...#...######..
.##.........#..#.....#.....#...
..##...............#...........
........##...#........#..#.....
...#................###.##..##.
.#..#..#..#...#.............#..
#.....#..##.#....#.#......#..#.
...#...#...#.....#...#...#.....
..##.###..#..#...##...........#
.#.......##........#.#..#..#...
..#.......#.###................
..#...#........##...#..#......#
...#...#............#.#......#.
..#...#.....#.#.#.#........#...
.#........#......##....##...#..
...#..##....#.........#....#.#.
....#........##...............#
.###.....#...#..#.#.....#.....#
..#...#..................#...##
#..#....###....................
...........#...#...........#...
........#.....#................
#........#...........#........#
........#..#....#...#....#..#..
#.#....#......#.......##.......
.#.....##..#...#......#.#.#....
..#..##.#.....#...#.#......#.#.
.##....#...#....#......##......
.#..#..#...##.##..#.#..#.......
.....#.#...........#.#........#
.#...#....#..................#.
...........#...#.........#.....
.#..###........##......#..#...#
.............###..##.....#.#..#
.#..#..........#......#........
..#........#.#...#.......##.#..
....#...........##......#...#..
...........#....#.....#...#.#..
...#...........#.....#.#..#..#.
......#.......#................
##.......#.....#............#.#
.##.....#.#.#..................
..........#.....##..#.#.#......
.###.#.....##...#..#.#........#
#....#........##..#..#.........
.............#.........##..#...
......##.#...#.#.#....##.......
.#.......###.#.###..##........#
..##.....#..#.............#..#.
.#...#......#.#.............#..
..##.#...#.........##....#...#.
...........#......#.#..........
.....#..#...##.....#....#..#...
#...................##...#.....
..#.................#.....#....
..............#..#.#...###.....
.......#........#...#.....#....
.............#.......#...##..#.
.#...#..#...#..#.....#......#.#
....#..#..#...#...........#....
.....#..#......##.##....#..#...
...#......#..#.#...#.....#.....
.......##..#.#.......#..#....##
#.#..#....##.##.#.#..........#.
..........#..........#....##.#.
....#.................#...#..#.
...#.....#..#...#.#...#..#.....
....#.#..###....#.............#
#....#..#.#..........#..#..#...
...#..#......#...#...#...#...#.
##....#.......#..........#.....
#......#.........#...#.........
##...##.#....#....#..#..#.#....
....#..#.....#.##.#.......#.#..
..##....##....#...#..####...#.#
..##..........#.............#..
..#......#..............#......
...#......#..#.#...#.......#...
.#............#....#...##.##..#
..##..........#...........#..#.
..#..##..#....#..#.#..#..#..#..

3
pullthemall Executable file
View file

@ -0,0 +1,3 @@
#!/bin/sh
git submodule foreach git fetch origin
git submodule foreach git reset --hard origin/HEAD > /dev/null 2>&1