Skip to content

Commit fa851d6

Browse files
adriencacciacodspeedbot
authored andcommitted
feat: add CodSpeed to the project
1 parent acffb8a commit fa851d6

6 files changed

Lines changed: 32 additions & 132 deletions

File tree

.github/workflows/audit.yml

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

.github/workflows/benchmark.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: codspeed-benchmarks
2+
3+
on:
4+
# Run on pushes to the main branch
5+
push:
6+
branches:
7+
- "main"
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+
runs-on: ubuntu-latest
17+
steps:
18+
- uses: actions/checkout@v4
19+
- name: Setup rust toolchain, cache and cargo-codspeed binary
20+
uses: moonrepo/setup-rust@v1
21+
with:
22+
cache-target: release
23+
bins: cargo-codspeed
24+
25+
- name: Build the benchmark target(s)
26+
run: cargo codspeed build -p pingora-ketama simple
27+
28+
- name: Run the benchmarks
29+
uses: CodSpeedHQ/action@v2
30+
with:
31+
run: cargo codspeed run

.github/workflows/build.yml

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

.github/workflows/docs.yml

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

.github/workflows/mark-stale.yaml

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

pingora-ketama/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ keywords = ["hash", "hashing", "consistent", "pingora"]
1313
crc32fast = "1.3"
1414

1515
[dev-dependencies]
16-
criterion = "0.4"
16+
criterion = { package="codspeed-criterion-compat", version = "2.6.0" }
1717
csv = "1.2"
1818
dhat = "0.3"
1919
env_logger = "0.9"

0 commit comments

Comments
 (0)