-
Notifications
You must be signed in to change notification settings - Fork 0
92 lines (84 loc) · 2.29 KB
/
bench.yaml
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
79
80
81
82
83
84
85
86
87
88
89
90
91
92
name: benchmark
on: workflow_dispatch
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: graalvm/setup-graalvm@v1
with:
version: latest
java-version: 11
components: native-image
github-token: ${{ secrets.GITHUB_TOKEN }}
- name: build
run: mvn -B package
- name: build native image
run: native-image --install-exit-handlers --static --no-fallback -jar unknow-server-test/unknow-server-test-jar/target/server.jar server-native
- name: bench
run: java -jar unknow-server-bench/target/benchmark.jar
- uses: actions/upload-artifact@v3
if: always()
with:
name: server
path: |
unknow-server-test/unknow-server-test-jar/target/server.jar
server-native
unknow-server-test/*/target/*.war
test:
runs-on: ubuntu-latest
strategy:
matrix:
t: ['cxf', 'tomcat', 'unknow', 'native']
needs: build
steps:
- uses: actions/checkout@v3
- uses: actions/download-artifact@v3
with:
name: server
- uses: graalvm/setup-graalvm@v1
with:
version: latest
java-version: 11
components: native-image
github-token: ${{ secrets.GITHUB_TOKEN }}
- name: prepare test
run: bash bench/prepare.sh
- name: run bench
run: bash bench/run.sh ${{matrix.t}}
env:
CATALINA_HOME: "${{github.workspace}}/tomcat/"
JMETER: "${{github.workspace}}/jmeter/bin/jmeter"
- uses: actions/upload-artifact@v3
if: always()
with:
name: logs-${{matrix.t}}
path: logs/*
- uses: actions/upload-artifact@v3
if: always()
with:
name: results-${{matrix.t}}
path: out/*
result:
runs-on: ubuntu-latest
needs: test
steps:
- uses: actions/checkout@v3
- uses: actions/download-artifact@v3
with:
name: results-unknow
path: out/
- uses: actions/download-artifact@v3
with:
name: results-tomcat
path: out/
- uses: actions/download-artifact@v3
with:
name: results-native
path: out/
- uses: actions/download-artifact@v3
with:
name: results-cxf
path: out/
- name: result
run: bash bench/result.sh out