Skip to content

Commit

Permalink
Add 2022 and 2023 benchmark reports via aha
Browse files Browse the repository at this point in the history
  • Loading branch information
ACSimon33 committed Jan 6, 2025
1 parent c7e3f8f commit 72e324c
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 6 deletions.
5 changes: 4 additions & 1 deletion 2022/.gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,4 +65,7 @@ bench ~ aoc-2022:
needs:
- test ~ aoc-2022
script:
- npm ci && npm run tsc --workspaces && npm run benchmark --workspaces
- npm ci && npm run tsc --workspaces && npm run benchmark --workspaces | tee bench.log
- cd ${CI_PROJECT_DIR}
- mkdir -p benchmarks_${AOC_YEAR}
- cat ${AOC_YEAR}/bench.log | aha > benchmarks_${AOC_YEAR}/index.html
3 changes: 2 additions & 1 deletion 2022/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
# syntax=docker/dockerfile:1
FROM node:19.5.0

# Install git-crypt and copy symmetric key
# Install aha (Ansi HTML Adapter), git-crypt and copy symmetric key
RUN \
apt-get update && \
DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
aha \
git-crypt && \
rm -rf /var/lib/apt/lists/*

Expand Down
5 changes: 4 additions & 1 deletion 2023/.gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,4 +63,7 @@ bench ~ aoc-2023:
needs:
- test ~ aoc-2023
script:
- gradle benchmark --console plain --warning-mode none
- gradle benchmark --console plain --warning-mode none | tee bench.log
- cd ${CI_PROJECT_DIR}
- mkdir -p benchmarks_${AOC_YEAR}
- cat ${AOC_YEAR}/bench.log | aha > benchmarks_${AOC_YEAR}/index.html
3 changes: 2 additions & 1 deletion 2023/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
# syntax=docker/dockerfile:1
FROM gradle:jdk17-jammy

# Install git-crypt and copy symmetric key
# Install aha (Ansi HTML Adapter), git-crypt and copy symmetric key
RUN \
apt-get update && \
DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
aha \
git-crypt && \
rm -rf /var/lib/apt/lists/*

Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ My Advent of Code solutions starting 2021.

Languages:
- [2021: **Rust**](2021) [*Benchmarks*](https://acsimon33.gitlab.io/advent_of_code/2021/report/index.html)
- [2022: **Typescript**](2022)
- [2023: **Kotlin**](2023)
- [2022: **Typescript**](2022) [*Benchmarks*](https://acsimon33.gitlab.io/advent_of_code/2022/index.html)
- [2023: **Kotlin**](2023) [*Benchmarks*](https://acsimon33.gitlab.io/advent_of_code/2023/index.html)
- [2024: **Zig**](2024) [*Benchmarks*](https://acsimon33.gitlab.io/advent_of_code/2024/index.html)
- 2025: ???

0 comments on commit 72e324c

Please sign in to comment.