Skip to content

Commit 8001492

Browse files
authored
use codspeed (#108)
1 parent 0b7ed8e commit 8001492

File tree

2 files changed

+30
-1
lines changed

2 files changed

+30
-1
lines changed

.github/workflows/codspeed.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: CodSpeed
2+
3+
on:
4+
push:
5+
branches:
6+
- "main"
7+
pull_request:
8+
9+
jobs:
10+
benchmarks:
11+
name: Run benchmarks
12+
runs-on: ubuntu-latest
13+
steps:
14+
- uses: actions/checkout@v5
15+
16+
- uses: dtolnay/rust-toolchain@stable
17+
18+
- name: Install CodSpeed
19+
run: cargo install cargo-codspeed
20+
21+
- name: Build the benchmark target(s)
22+
run: cargo codspeed build
23+
24+
- name: Run the benchmarks
25+
uses: CodSpeedHQ/action@v3
26+
with:
27+
run: cargo codspeed run
28+
token: ${{ secrets.CODSPEED_TOKEN }}

Cargo.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,8 @@ num-traits = "0.2"
4141

4242

4343
[dev-dependencies]
44-
criterion = "0.5"
44+
# criterion = "0.5"
45+
criterion = { package = "codspeed-criterion-compat", version = "3.0" }
4546
tracing-tracy = "0.11"
4647
tracing-subscriber = "0.3"
4748
tracing = "0.1"

0 commit comments

Comments
 (0)