Skip to content

Commit 2bc26de

Browse files
committed
feat: install codspeed
1 parent 1a12f62 commit 2bc26de

4 files changed

Lines changed: 42 additions & 220 deletions

File tree

.github/workflows/benchmark.yml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: codspeed-benchmarks
2+
3+
on:
4+
# Run on pushes to the master branch
5+
push:
6+
branches:
7+
- "master"
8+
# Run on pull requests
9+
pull_request:
10+
# `workflow_dispatch` allows CodSpeed to trigger backtest
11+
# performance analysis in order to generate initial data.
12+
workflow_dispatch:
13+
14+
jobs:
15+
benchmarks:
16+
strategy:
17+
matrix:
18+
runs-on:
19+
- ubuntu-latest
20+
- codspeed-macro
21+
runs-on: ${{ matrix.runs-on }}
22+
23+
steps:
24+
- uses: actions/checkout@v4
25+
- name: Setup rust toolchain, cache and cargo-codspeed binary
26+
uses: moonrepo/setup-rust@v1
27+
with:
28+
cache-target: release
29+
bins: cargo-codspeed@2.8.0-alpha.3
30+
31+
- name: Build the benchmark target(s)
32+
run: cargo codspeed build
33+
34+
- name: Run the benchmarks
35+
uses: CodSpeedHQ/action@v3
36+
with:
37+
runner-version: 3.3.0
38+
run: cargo codspeed run

.github/workflows/ci.yml

Lines changed: 0 additions & 191 deletions
This file was deleted.

.github/workflows/gh-pages.yml

Lines changed: 0 additions & 27 deletions
This file was deleted.

Cargo.toml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,10 @@ readme = "README.md"
2020
repository = "https://github.com/rkyv/rkyv"
2121

2222
[workspace.dependencies]
23-
bytecheck = { version = "0.8", default-features = false, features = ["simdutf8"] }
24-
divan = { version = "0.1", default-features = false }
23+
bytecheck = { version = "0.8", default-features = false, features = [
24+
"simdutf8",
25+
] }
26+
divan = { package = "codspeed-divan-compat", version = "2.8.0-alpha.3", default-features = false }
2527
hashbrown = { version = "0.15", default-features = false }
2628
munge = { version = "0.4", default-features = false }
2729
proc-macro2 = { version = "1", default-features = false }

0 commit comments

Comments
 (0)