-
Notifications
You must be signed in to change notification settings - Fork 0
45 lines (43 loc) · 1.21 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
name: Benchmark
on:
workflow_dispatch:
schedule:
- cron: '0 3 * * *'
jobs:
benchmark:
if: github.repository == 'poolifier/benchmark'
runs-on:
group: default
labels: [self-hosted, benchmark]
env:
BENCHER_PROJECT: poolifier-benchmark
BENCHER_API_TOKEN: ${{ secrets.BENCHER_API_TOKEN }}
BENCHER_ADAPTER: shell_hyperfine
BENCHER_TESTBED: self-hosted
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup pnpm
uses: pnpm/action-setup@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 20.x
check-latest: true
cache: 'pnpm'
- name: Install dependencies
run: pnpm install --ignore-scripts --frozen-lockfile
- uses: bencherdev/bencher@main
- name: Run benchmark
run: |
bencher run \
--branch main \
--threshold-measure latency \
--threshold-test t_test \
--threshold-max-sample-size 64 \
--threshold-upper-boundary 0.99 \
--thresholds-reset \
--file BENCH.json \
--err \
--github-actions ${{ secrets.GITHUB_TOKEN }} \
"./bench.sh"