-
Notifications
You must be signed in to change notification settings - Fork 0
52 lines (43 loc) · 1.17 KB
/
Copy pathbenchmark.yml
File metadata and controls
52 lines (43 loc) · 1.17 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
name: Benchmark
on:
workflow_dispatch:
schedule:
- cron: '0 18 * * 6'
permissions:
contents: read
concurrency:
group: benchmark-${{ github.ref }}
cancel-in-progress: true
jobs:
serialization-benchmark:
name: Serialization Benchmark
runs-on: ubuntu-24.04
timeout-minutes: 20
steps:
- name: Checkout code
uses: actions/checkout@v7
- name: Set up JDK 17
uses: actions/setup-java@v6
with:
java-version: '17'
distribution: 'temurin'
cache: 'maven'
- name: Build benchmark module
run: mvn -B -ntp -pl rpc-benchmark -am clean package -DskipTests -Drpc.registry=local
- name: Run JMH serialization benchmark
run: >-
java -jar rpc-benchmark/target/benchmarks.jar
'.*SerializationBenchmark.*'
-f 1
-wi 1
-i 2
-rf json
-rff benchmark-results.json
- name: Upload benchmark result
if: always()
uses: actions/upload-artifact@v7
with:
name: serialization-benchmark
retention-days: 30
if-no-files-found: error
path: benchmark-results.json