Skip to content

Commit 34753fe

Browse files
authored
Merge pull request #455 from XantreDev/benchmarks
Implemented benchmarks
2 parents a72f2f4 + 3d6525b commit 34753fe

File tree

6 files changed

+10187
-0
lines changed

6 files changed

+10187
-0
lines changed

.github/workflows/benchmarks.yml

+31
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: benchmarks
2+
3+
on:
4+
push:
5+
branches:
6+
- 'main'
7+
pull_request:
8+
workflow_dispatch:
9+
10+
jobs:
11+
benchmarks:
12+
runs-on: ubuntu-latest
13+
steps:
14+
- uses: actions/checkout@v4
15+
- name: Use Node.js 20
16+
uses: actions/setup-node@v4
17+
with:
18+
node-version: 20.11.1
19+
- name: Use node_modules cache
20+
uses: actions/cache@v4
21+
with:
22+
path: node_modules
23+
key: yarn-node-20-lock-${{ hashFiles('yarn.lock') }}
24+
restore-keys: |
25+
yarn-node-20-lock-
26+
- run: yarn install --frozen-lockfile
27+
- name: Run benchmarks
28+
uses: CodSpeedHQ/action@v3
29+
with:
30+
token: ${{ secrets.CODSPEED_TOKEN }}
31+
run: 'yarn bench'

0 commit comments

Comments
 (0)