-
Notifications
You must be signed in to change notification settings - Fork 0
71 lines (63 loc) · 2.01 KB
/
benchmarks.yml
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
name: Run Benchmarks
on:
pull_request:
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v2
- name: Set up JDK
uses: actions/setup-java@v2
with:
java-version: '21'
distribution: 'adopt'
- name: Build with Gradle
working-directory: ./
run: |
chmod +x gradlew
make binaries
make build
- name: Upload build artifacts
uses: actions/upload-artifact@v4
with:
name: pkg-build
path: ./
run_benchmark:
runs-on: ubuntu-latest
needs: build
continue-on-error: true
strategy:
matrix:
app: [SpringBootPostgres, SpringWebfluxSampleApp, SpringMVCPostgresKotlin, SpringMVCPostgresGroovy]
java-version: [ 17, 18, 19, 20, 21 ]
steps:
- name: Download build artifacts
uses: actions/download-artifact@v4
with:
name: pkg-build
- name: Set up JDK
uses: actions/setup-java@v2
with:
java-version: ${{ matrix.java-version }}
distribution: 'adopt'
- name: Start mock server
working-directory: ./end2end/server
run: |
docker build -t mock_core .
docker run --name mock_core -d -p 5000:5000 mock_core
- name: Start databases
working-directory: ./sample-apps/databases
run: docker compose up --build -d
- name: Setup IPC Folder
run: mkdir /opt/aikido && chmod a+rw /opt/aikido
- name: Start app (with and without Zen)
working-directory: ./sample-apps/${{ matrix.app }}
run: |
AIKIDO_TMP_DIR="/opt/aikido" make run
make runWithoutZen
- name: Install Python dependencies
run: python -m pip install -r end2end/requirements.txt
- name: Run benchmarks
working-directory: ./benchmarks/wrk_benchmark
run: tail -f ../../sample-apps/${{ matrix.app }}/output1.log & sleep 20 && make benchmark_${{ matrix.app }}