Skip to content

Commit 951d23e

Browse files
committed
add codspeed integration
1 parent 1d08600 commit 951d23e

File tree

3 files changed

+499
-47
lines changed

3 files changed

+499
-47
lines changed

.github/workflows/codspeed.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: CodSpeed Benchmarks
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
pull_request:
8+
# Allows CodSpeed to trigger backtest performance analysis
9+
# in order to generate initial baseline data.
10+
workflow_dispatch:
11+
12+
permissions:
13+
contents: read
14+
id-token: write # required for OIDC authentication with CodSpeed
15+
16+
jobs:
17+
benchmarks:
18+
name: Run benchmarks
19+
runs-on: ubuntu-latest
20+
steps:
21+
- uses: actions/checkout@v6.0.2
22+
23+
- name: Setup Rust toolchain, cache and cargo-codspeed
24+
uses: moonrepo/setup-rust@v1.3.0
25+
with:
26+
channel: stable
27+
cache-target: release
28+
bins: cargo-codspeed
29+
30+
- name: Build benchmark targets
31+
run: cargo codspeed build
32+
33+
- name: Run benchmarks
34+
uses: CodSpeedHQ/action@v6.0.2
35+
with:
36+
run: cargo codspeed run

0 commit comments

Comments
 (0)