-
Notifications
You must be signed in to change notification settings - Fork 8
78 lines (75 loc) · 2.52 KB
/
benchmarkSkywalkingJava.yaml
File metadata and controls
78 lines (75 loc) · 2.52 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
72
73
74
75
76
77
78
name: Benchmark Skywalking-java
on:
workflow_dispatch:
schedule:
- cron: "0 3 * * 1"
permissions:
contents: write
deployments: write
jobs:
benchmark:
name: Performance measurement
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: r-lib/actions/setup-r@v2
with:
r-version: '3.5.3'
- uses: actions/setup-go@v4
with:
go-version: "stable"
- name: Set up JDK ${{ matrix.java }}
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: 21
- name: Start ssh-agent and add private key
uses: webfactory/ssh-agent@v0.9.1
with:
ssh-private-key: ${{ secrets.DEPLOY_KEY_MOOBENCH_DATA }}
- name: Add github.com to known_hosts
run: |
mkdir -p ~/.ssh
ssh-keyscan github.com >> ~/.ssh/known_hosts
chmod 600 ~/.ssh/known_hosts
- name: Execute MooBench Benchmark
run: |
./setup.sh
cd frameworks/Skywalking-java/
export MOOBENCH_CONFIGURATIONS="0 1 2 3"
export NUM_OF_LOOPS=10
./benchmark.sh
cd results-Skywalking-java
unzip results.zip
pwd
ls
../../../analysis/getGHActionsFormat.sh &> output.json
cat output.json
mv output.json ../../../
- name: Configure git user
run: |
git config --global user.email "ci-bot@kieker.org"
git config --global user.name "Kieker CI"
- name: Get old data
run: |
git clone -b gh-pages git@github.com:kieker-monitoring/moobench-data.git ../moobench-data
sed '1s/^window\.BENCHMARK_DATA = //' ../moobench-data/dev/bench/data.js > ../moobench-data/dev/bench/data2.js
- name: Store benchmark result
uses: benchmark-action/github-action-benchmark@v1
with:
name: 'Skywalking-java'
tool: 'customSmallerIsBetter'
external-data-json-path: ../moobench-data/dev/bench/data2.js
output-file-path: output.json
fail-on-alert: true
github-token: ${{ secrets.GITHUB_TOKEN }}
skip-fetch-gh-pages: false
auto-push: false
- name: Push data
run: |
cd ../moobench-data
git remote -v
sed '1s/^/window.BENCHMARK_DATA = /' dev/bench/data2.js > dev/bench/data.js
git add dev/bench/data.js
git commit -m "Benchmark Results $GITHUB_SHA"
git push origin gh-pages