Advent of Code 2015 solution in Python
Run all the challenges with the command python -m main -a
Update the README.md
Results
section with python -m main -r
Run the tests with the command python -m pytest
Moreover, you can get the coverage with
python -m coverage run -m pytest
python -m coverage html
open htmlcov/index.html
export DD_SERVICE="advent-of-code-2015"
export DD_ENV="prod"
export DD_VERSION=0.1.0
export DD_TRACE_AGENT_URL=http://localhost:8136
export DD_GIT_COMMIT_SHA=$(git rev-parse HEAD)
export DD_GIT_REPOSITORY_URL=$(git config --get remote.origin.url | sed -e 's/:/\//' -e 's/^git@/https:\/\//' -e 's/\.git$//')
export DD_PROFILING_ENABLE_CODE_PROVENANCE=true
export DD_PROFILING_STACK_V2_ENABLED=true
ddtrace-run -p python -m main -a
Day | Star | Result | Elapsed Time, ms |
---|---|---|---|
1 | 1st | 232 | 0.345 |
1 | 2nd | 1783 | 0.109 |
2 | 1st | 1586300 | 1.465 |
2 | 2nd | 3737498 | 0.906 |