-
Notifications
You must be signed in to change notification settings - Fork 0
54 lines (45 loc) · 1.5 KB
/
benchmark.yml
File metadata and controls
54 lines (45 loc) · 1.5 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
name: Benchmarks
on:
schedule:
- cron: '0 20 * * *' # 22:00 CEST / 21:00 CET
workflow_dispatch:
jobs:
benchmark:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: actions/checkout@v4
- name: Set up Azul Zulu JDK 25
uses: actions/setup-java@v4
with:
distribution: zulu
java-version: '25'
- name: Cache Maven repository
uses: actions/cache@v4
with:
path: ~/.m2/repository
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
restore-keys: |
${{ runner.os }}-maven-
- name: Install protobuf compiler
run: sudo apt-get install -y protobuf-compiler
- name: Install flatc 25.12.19
run: |
curl -fsSL -o flatc.zip https://github.com/google/flatbuffers/releases/download/v25.12.19/Linux.flatc.binary.g++-13.zip
unzip -j flatc.zip flatc
sudo install -m 755 flatc /usr/local/bin/flatc
- name: Run benchmarks
run: ./bench "RustVsJava" -wi 1 -i 3 -f 1
- name: Store benchmark results
uses: benchmark-action/github-action-benchmark@v1
with:
tool: jmh
output-file-path: performance/target/benchmark-result.json
github-token: ${{ secrets.GITHUB_TOKEN }}
auto-push: true
alert-threshold: '130%'
comment-on-alert: true
fail-on-alert: false
gh-pages-branch: gh-pages
benchmark-data-dir-path: dev/bench