Skip to content

Commit

Permalink
feat: add CodSpeed to the project
Browse files Browse the repository at this point in the history
  • Loading branch information
adriencaccia authored and CodSpeed Install Bot committed Aug 20, 2024
1 parent d425379 commit 5f4f3a5
Show file tree
Hide file tree
Showing 6 changed files with 32 additions and 132 deletions.
29 changes: 0 additions & 29 deletions .github/workflows/audit.yml

This file was deleted.

31 changes: 31 additions & 0 deletions .github/workflows/benchmark.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: codspeed-benchmarks

on:
# Run on pushes to the main branch
push:
branches:
- "main"
# Run on pull requests
pull_request:
# `workflow_dispatch` allows CodSpeed to trigger backtest
# performance analysis in order to generate initial data.
workflow_dispatch:

jobs:
benchmarks:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup rust toolchain, cache and cargo-codspeed binary
uses: moonrepo/setup-rust@v1
with:
cache-target: release
bins: cargo-codspeed

- name: Build the benchmark target(s)
run: cargo codspeed build -p pingora-ketama simple

- name: Run the benchmarks
uses: CodSpeedHQ/action@v2
with:
run: cargo codspeed run
53 changes: 0 additions & 53 deletions .github/workflows/build.yml

This file was deleted.

26 changes: 0 additions & 26 deletions .github/workflows/docs.yml

This file was deleted.

23 changes: 0 additions & 23 deletions .github/workflows/mark-stale.yaml

This file was deleted.

2 changes: 1 addition & 1 deletion pingora-ketama/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ keywords = ["hash", "hashing", "consistent", "pingora"]
crc32fast = "1.3"

[dev-dependencies]
criterion = "0.4"
criterion = { package="codspeed-criterion-compat", version = "2.6.0" }
csv = "1.2"
dhat = "0.3"
env_logger = "0.9"
Expand Down

0 comments on commit 5f4f3a5

Please sign in to comment.