Skip to content

Commit

Permalink
Update benchmark data and graphs
Browse files Browse the repository at this point in the history
  • Loading branch information
maneatingape committed Jul 14, 2024
1 parent 501e3c1 commit 8f076d7
Show file tree
Hide file tree
Showing 3 changed files with 74 additions and 18 deletions.
11 changes: 7 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Advent of Code [![checks-badge]][checks-link] [![docs-badge]][docs-link]

Complete 2023 to 2019 and 2016 to 2015 entries for the annual [Advent of Code] challenge,
Complete 2023 to 2019 and 2017 to 2015 entries for the annual [Advent of Code] challenge,
written in performant Rust.

## Features
Expand Down Expand Up @@ -54,8 +54,8 @@ Place input files in `input/yearYYYY/dayDD.txt` including leading zeroes. For ex
## Performance

Benchmarks are measured using the built-in `cargo bench` tool run on an [Apple M2 Max][apple-link].
All 175 solutions from 2023 to 2019 and also 2016 to 2015 complete sequentially in **1.1 seconds**.
Interestingly 90% of the total time is spent on just 5 solutions.
All 200 solutions from 2023 to 2019 and also 2017 to 2015 complete sequentially in **1.6 seconds**.
Interestingly 93% of the total time is spent on just 8 solutions.
Performance is reasonable even on older hardware, for example a 2011 MacBook Pro with an
[Intel i7-2720QM][intel-link] processor takes 4.1 seconds to run the same 175 solutions.

Expand All @@ -68,7 +68,7 @@ Performance is reasonable even on older hardware, for example a 2011 MacBook Pro
| [2021](#2021) | 10 |
| [2020](#2020) | 286 |
| [2019](#2019) | 22 |
| [2017](#2017) | in progress |
| [2017](#2017) | 515 |
| [2016](#2016) | 663 |
| [2015](#2015) | 87 |

Expand Down Expand Up @@ -234,6 +234,8 @@ Performance is reasonable even on older hardware, for example a 2011 MacBook Pro

## 2017

![pie-2017]

| Day | Problem | Solution | Benchmark (μs) |
| --- | --- | --- | --: |
| 1 | [Inverse Captcha](https://adventofcode.com/2017/day/1) | [Source](src/year2017/day01.rs) | 1 |
Expand Down Expand Up @@ -339,5 +341,6 @@ Performance is reasonable even on older hardware, for example a 2011 MacBook Pro
[pie-2021]: docs/pie-2021.svg
[pie-2020]: docs/pie-2020.svg
[pie-2019]: docs/pie-2019.svg
[pie-2017]: docs/pie-2017.svg
[pie-2016]: docs/pie-2016.svg
[pie-2015]: docs/pie-2015.svg
46 changes: 46 additions & 0 deletions docs/pie-2017.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
35 changes: 21 additions & 14 deletions docs/pie-all.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 8f076d7

Please sign in to comment.