perf: align benchmark v8 memory tunables
[poolifier.git] / .github / workflows / internal-benchmark.yml
CommitLineData
27c3ac59 1name: Internal benchmark
93874800
JB
2
3on:
2fe46fd0 4 workflow_dispatch:
f1c674cd
JB
5 push:
6 branches:
7 - master
8
93874800
JB
9jobs:
10 internal-benchmark:
4ce23281 11 if: github.repository == 'poolifier/poolifier'
702ac40b
JB
12 runs-on:
13 group: default
14 labels: [self-hosted, internal-benchmark]
59829f17
JB
15 env:
16 BENCHER_PROJECT: poolifier
17 BENCHER_API_TOKEN: ${{ secrets.BENCHER_API_TOKEN }}
18 BENCHER_ADAPTER: js_benchmark
19 BENCHER_TESTBED: self-hosted
93874800
JB
20 steps:
21 - name: Checkout
22 uses: actions/checkout@v4
93874800
JB
23 - name: Setup pnpm
24 uses: pnpm/action-setup@v2
25 with:
26 version: 8
f1c674cd 27 - name: Setup Node.js
6c527d3f 28 uses: actions/setup-node@v4
93874800 29 with:
277c49bf 30 node-version: '20.x'
93874800 31 cache: 'pnpm'
f1c674cd 32 - name: Install dependencies
c1a37d98 33 run: pnpm install --ignore-scripts --frozen-lockfile
59829f17 34 - uses: bencherdev/bencher@main
f1c674cd 35 - name: Run production benchmark
59829f17
JB
36 run: |
37 bencher run \
38 --if-branch "$GITHUB_REF_NAME" \
39 --else-if-branch "$GITHUB_BASE_REF" \
40 --else-if-branch master \
cc0ec494 41 --hash "$GITHUB_SHA" \
59829f17
JB
42 --err \
43 --github-actions ${{ secrets.GITHUB_TOKEN }} \
44 "pnpm benchmark:prod"