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 Sep 1, 2024
1 parent 37e2bec commit a5abd78
Show file tree
Hide file tree
Showing 4 changed files with 75 additions and 20 deletions.
14 changes: 8 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
# Advent of Code [![checks-badge]][checks-link] [![docs-badge]][docs-link]

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

## Features

Expand Down Expand Up @@ -54,10 +53,10 @@ 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 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.
All 225 solutions from 2023 to to 2015 complete sequentially in **1.7 seconds**.
Interestingly 93% of the total time is spent on just 9 solutions.
Performance is reasonable even on older hardware, for example a 2011 MacBook Pro with an
[Intel i7-2720QM][intel-link] processor takes 4.8 seconds to run the same 200 solutions.
[Intel i7-2720QM][intel-link] processor takes 4.9 seconds to run the same 225 solutions.

![pie-all]

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

## 2018

![pie-2018]

| Day | Problem | Solution | Benchmark (μs) |
| --- | --- | --- | --: |
| 1 | [Chronal Calibration](https://adventofcode.com/2018/day/1) | [Source](src/year2018/day01.rs) | 15 |
Expand Down Expand Up @@ -372,6 +373,7 @@ 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-2018]: docs/pie-2018.svg
[pie-2017]: docs/pie-2017.svg
[pie-2016]: docs/pie-2016.svg
[pie-2015]: docs/pie-2015.svg
4 changes: 2 additions & 2 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.
53 changes: 53 additions & 0 deletions docs/pie-2018.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
24 changes: 12 additions & 12 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 a5abd78

Please sign in to comment.