-
Notifications
You must be signed in to change notification settings - Fork 110
65 lines (62 loc) · 1.8 KB
/
benchmark.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
name: Benchmark
on:
push:
branches: ['master', 'releases/*']
pull_request:
branches: ['*']
jobs:
product:
name: Product benchmark
concurrency:
group: ${{ github.workflow }}-benchmark-product-${{ github.ref }}
cancel-in-progress: true
runs-on: ubuntu-latest
steps:
- name: Setup repository
uses: actions/checkout@v4
- name: Setup environment
uses: actions/setup-node@v4
with:
node-version: 20
- name: Install dependencies
run: npm install
- name: Prepare bundle
run: npm run bundle
- name: Benchmark (async)
run: npm run bench:product:async
- name: Benchmark (stream)
run: npm run bench:product:stream
- name: Benchmark (sync)
run: npm run bench:product:sync
regress:
name: Regress benchmark with options (${{ matrix.benchmark_options }})
concurrency:
group: ${{ github.workflow }}-benchmark-regress-${{ matrix.benchmark_options }}-${{ github.ref }}
cancel-in-progress: true
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
benchmark_options:
- '{}'
- '{ "objectMode": true }'
- '{ "absolute": true }'
env:
BENCHMARK_OPTIONS: ${{ matrix.benchmark_options }}
steps:
- name: Setup repository
uses: actions/checkout@v4
- name: Setup environment
uses: actions/setup-node@v4
with:
node-version: 20
- name: Install dependencies
run: npm install
- name: Prepare bundle
run: npm run bundle
- name: Benchmark (async)
run: npm run bench:regression:async
- name: Benchmark (stream)
run: npm run bench:regression:stream
- name: Benchmark (sync)
run: npm run bench:regression:sync