Advent of Code solutions written in Swift using the Advent of Code Swift Starter Project from Apple.
For every day there is a test to execute the code with test input provided for each challenge. This can be done via the following command:
swift test --filter Day1Tests
To execute the code against real data you can use the following command:
swift run -c release AdventOfCode 1 --benchmark
The number corresponds with the day you want to execute. The benchmark
flag will also output the execution time for each challenge.