Skip to content

Commit 95f3b3a

Browse files
committed
ci: Add performance tests with Bencher
1 parent 3f4a9f9 commit 95f3b3a

File tree

1 file changed

+38
-0
lines changed

1 file changed

+38
-0
lines changed

.github/workflows/bencher.yml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: Bencher
2+
3+
on:
4+
push:
5+
branches: main
6+
7+
jobs:
8+
benchmark_base_branch:
9+
name: Continuous Benchmarking with Bencher
10+
permissions:
11+
checks: write
12+
runs-on: ubuntu-latest
13+
steps:
14+
- uses: actions/checkout@v6
15+
16+
- name: Install Rust
17+
uses: actions-rust-lang/setup-rust-toolchain@v1
18+
19+
- name: Rust Cache
20+
uses: swatinem/rust-cache@v2
21+
22+
- uses: bencherdev/bencher@main
23+
- name: Track base branch benchmarks with Bencher
24+
run: |
25+
bencher run \
26+
--project argusdb \
27+
--token '${{ secrets.BENCHER_API_TOKEN }}' \
28+
--branch main \
29+
--testbed ubuntu-latest \
30+
--threshold-measure latency \
31+
--threshold-test t_test \
32+
--threshold-max-sample-size 64 \
33+
--threshold-upper-boundary 0.99 \
34+
--thresholds-reset \
35+
--err \
36+
--adapter rust_criterion \
37+
--github-actions '${{ secrets.GITHUB_TOKEN }}' \
38+
cargo bench

0 commit comments

Comments
 (0)