-
Notifications
You must be signed in to change notification settings - Fork 3.9k
66 lines (55 loc) · 1.71 KB
/
Copy pathbenchmarks.yml
File metadata and controls
66 lines (55 loc) · 1.71 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
name: Benchmarks
on:
schedule:
- cron: '0 1 * * *'
workflow_dispatch:
permissions:
contents: write # required for auto-push
concurrency:
group: benchmarks # serialize cron + manual runs
cancel-in-progress: false
jobs:
benchmark:
name: Execute JMH benchmarks
runs-on: ubuntu-latest
timeout-minutes: 60
steps:
- uses: actions/checkout@v6
- uses: actions/setup-java@v5
with:
java-version: '8'
distribution: 'temurin'
cache: 'maven'
- name: Start Redis server
run: |
docker run --name redis-benchmark-test \
-p 6379:6379 \
-d redis:8.2.6 \
redis-server --requirepass foobared
# Wait for Redis to be ready
sleep 5
docker ps | grep redis-benchmark-test
- name: Maven offline dependencies
run: mvn -q dependency:go-offline
- name: Run JMH benchmarks
run: mvn -Pjmh clean test
env:
TERM: dumb
- name: Stop Redis server
if: always()
run: docker rm -f redis-benchmark-test || true
- name: Verify JMH output exists
run: test -s benchmarks.json
- name: Store benchmark result
uses: benchmark-action/github-action-benchmark@v1
with:
tool: 'jmh'
output-file-path: benchmarks.json
github-token: ${{ secrets.GITHUB_TOKEN }}
auto-push: true
gh-pages-branch: benchmark-data # NOT master
benchmark-data-dir-path: 'jedis' # path inside that branch
fail-on-alert: false
alert-threshold: '200%'
comment-on-alert: false
alert-comment-cc-users: '@ggivo'