Skip to content

Commit 7d9b281

Browse files
add benchmarks and run in codspeed
1 parent eec734c commit 7d9b281

8 files changed

Lines changed: 554 additions & 14 deletions

File tree

.github/workflows/bench.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: bench
2+
3+
on:
4+
pull_request:
5+
push:
6+
branches: [main]
7+
workflow_dispatch:
8+
9+
jobs:
10+
benchmarks:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@v5
14+
with:
15+
persist-credentials: false
16+
17+
- uses: moonrepo/setup-rust@v1
18+
with:
19+
channel: stable
20+
cache-target: release
21+
bins: cargo-codspeed
22+
23+
- name: Build the benchmark target(s)
24+
run: cargo codspeed build
25+
26+
- name: Run the benchmarks
27+
uses: CodSpeedHQ/action@v4
28+
with:
29+
mode: instrumentation
30+
run: cargo codspeed run

0 commit comments

Comments
 (0)