-
Notifications
You must be signed in to change notification settings - Fork 25
53 lines (41 loc) · 1.3 KB
/
benchmark.yml
File metadata and controls
53 lines (41 loc) · 1.3 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
name: Benchmark
on:
workflow_dispatch:
jobs:
benchmark:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: true
matrix:
os: [ubuntu-latest]
steps:
- name: Checkout Repository
uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version-file: .github/files/.nvmrc
- name: Corepack
run: corepack enable
- name: Install Dependencies
run: yarn
- name: Build
run: yarn build
- name: Start KurrentDB
run: docker compose -f packages/benchmark/docker-compose.yml up -d
- name: Load Events
run: yarn nx run benchmark:loadEvents
- name: Run Benchmarks
run: |
echo "Number of events: 10k"
echo "Size of each event: 23bytes"
echo "Node.js version: $(node --version)"
echo "1 warmup iteration"
echo "20 iterations"
yarn nx run benchmark:benchmark | tee benchmark-bridge-client-output-${{ matrix.os }}.txt
- name: Upload Benchmark Results
uses: actions/upload-artifact@v4
with:
name: benchmark-results
path: benchmark-bridge-client-output-${{ matrix.os }}.txt
- name: Shutdown KurrentDB
run: docker compose -f packages/benchmark/docker-compose.yml down