Repository navigation
zThread Continuous Performance Benchmark Suite #8
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Benchmark Suite | |
| on: | |
| workflow_dispatch: | |
| permissions: | |
| contents: read | |
| jobs: | |
| benchmark: | |
| name: Run Enterprise Benchmarks | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Set up JDK 25 | |
| uses: actions/setup-java@v4 | |
| with: | |
| java-version: '25' | |
| distribution: 'temurin' | |
| cache: maven | |
| - name: Enable perf_events for async-profiler | |
| run: | | |
| sudo sysctl -w kernel.perf_event_paranoid=1 | |
| sudo sysctl -w kernel.kptr_restrict=0 | |
| - name: Set up Python | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: '3.12' | |
| - name: Install Charting Dependencies | |
| run: | | |
| python -m pip install --upgrade pip | |
| pip install matplotlib pandas seaborn | |
| - name: Build zThread | |
| run: ./mvnw clean install -DskipTests --batch-mode --no-transfer-progress | |
| - name: Run JMH Benchmarks | |
| run: ./mvnw exec:exec -pl zthread-benchmark -Dexec.executable="java" -Dexec.args="-classpath %classpath org.openjdk.jmh.Main -rf json -rff target/benchmark.json -prof gc" --batch-mode | |
| - name: Generate Charts and Report | |
| run: | | |
| cd zthread-benchmark | |
| python scripts/generate_charts.py target/benchmark.json | |
| - name: Upload Benchmark Results | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: benchmark-results | |
| path: | | |
| zthread-benchmark/target/benchmark.json | |
| zthread-benchmark/charts/ | |
| zthread-benchmark/benchmark.md | |
| retention-days: 14 |