Skip to content

Commit cc0d87e

Browse files
committed
[2024] Added benchmark log to gitlab pages
1 parent d4c865c commit cc0d87e

File tree

3 files changed

+21
-2
lines changed

3 files changed

+21
-2
lines changed

2024/.gitlab-ci.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,4 +58,9 @@ bench ~ aoc-2024:
5858
needs:
5959
- test ~ aoc-2024
6060
script:
61-
- zig build benchmark -Doptimize=ReleaseFast -j1
61+
- zig build benchmark -Doptimize=ReleaseFast -j1 | tee bench.log
62+
- mkdir -p benchmarks_${AOC_YEAR}
63+
- cat bench.log | aha > benchmarks_${AOC_YEAR}/index.html
64+
artifacts:
65+
paths:
66+
- benchmarks_${AOC_YEAR}

2024/Dockerfile

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,17 @@
11
# syntax=docker/dockerfile:1
2+
FROM alpine:3.21.0 AS builder
3+
RUN apk add --no-cache alpine-sdk
4+
5+
# Build aha (Ansi HTML Adapter) 0.5.1 from source
6+
RUN \
7+
wget https://github.com/theZiz/aha/archive/refs/tags/0.5.1.tar.gz && \
8+
aha_sha512="0eb88e681208c0956e344d6574f9d7ba155d38bfb386d0a9f17022c5e925fb16d0efb6aa04804191b4cac1697a87a0f16ba51bcd97b6135cc7606046eaf89288" && \
9+
echo "$aha_sha512 0.5.1.tar.gz" | sha512sum -c - && \
10+
tar -xf 0.5.1.tar.gz && \
11+
cd aha-0.5.1 && \
12+
make
13+
214
FROM alpine:3.21.0
315
RUN apk add --no-cache bash zig
16+
17+
COPY --from=builder /aha-0.5.1/aha /usr/local/bin

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,5 @@ Challenges:
77
- [2021: Learning **Rust**](2021) [*Benchmarks*](https://acsimon33.gitlab.io/advent_of_code/2021/report/index.html)
88
- [2022: Learning **Typescript**](2022)
99
- [2023: Learning **Kotlin**](2023)
10-
- [2024: Learning **Zig**](2024)
10+
- [2024: Learning **Zig**](2024) [*Benchmarks*](https://acsimon33.gitlab.io/advent_of_code/2024/report/index.html)
1111
- 2025: ???

0 commit comments

Comments
 (0)