-
Notifications
You must be signed in to change notification settings - Fork 0
71 lines (60 loc) · 2.27 KB
/
Copy pathbenchmark.yml
File metadata and controls
71 lines (60 loc) · 2.27 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
name: zThread Continuous Performance Benchmark Suite
on:
workflow_dispatch:
jobs:
# Single benchmark job — runs all JMH suites sequentially
benchmarks:
runs-on: ubuntu-latest
permissions:
contents: write
timeout-minutes: 45
steps:
- uses: actions/checkout@v7
with:
token: ${{ secrets.AUTO_COMMIT_PAT || github.token }}
- name: Set up JDK 25
uses: actions/setup-java@v6
with:
java-version: '25'
distribution: 'temurin'
- name: Compile Benchmark Module
run: ./mvnw compile test-compile -pl zthread-benchmark --also-make -DskipTests=true
- name: Run JMH Microbenchmarks
run: |
for suite in throughput eventfd inotify timers; do
echo "::group::Running $suite benchmarks"
./mvnw test -pl zthread-benchmark --also-make -DskipTests=false -Dbenchmark.suite=$suite || true
echo "::endgroup::"
done
continue-on-error: true
- name: Run Scaling & Idle Benchmarks
run: |
for suite in scaling idle; do
echo "::group::Running $suite benchmarks"
./mvnw test -pl zthread-benchmark --also-make -DskipTests=false -Dbenchmark.suite=$suite || true
echo "::endgroup::"
done
continue-on-error: true
- name: Upload Benchmark Results
uses: actions/upload-artifact@v7
if: always()
with:
name: benchmark-results
path: zthread-benchmark/target/benchmark-results/*.json
if-no-files-found: ignore
- name: Set up Python
uses: actions/setup-python@v7
with:
python-version: '3.12'
- name: Install Charting Dependencies
run: pip install matplotlib pandas seaborn tabulate
- name: Generate SVG Charts and Update README.md
run: python3 scripts/generate_report.py
if: github.ref == 'refs/heads/master'
continue-on-error: true
- name: Commit & Push Updated README & Benchmark Assets
if: github.ref == 'refs/heads/master'
uses: stefanzweifel/git-auto-commit-action@v7
with:
commit_message: "chrono(benchmark): auto-update performance dashboard & SVG charts"
file_pattern: "README.md assets/benchmarks/*"