-
Notifications
You must be signed in to change notification settings - Fork 0
68 lines (53 loc) · 1.77 KB
/
Copy pathbench.yml
File metadata and controls
68 lines (53 loc) · 1.77 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
name: Bench
on:
workflow_dispatch:
schedule:
- cron: "0 4 * * 6"
permissions:
contents: read
concurrency:
group: bench-${{ github.ref }}
cancel-in-progress: true
jobs:
bench:
runs-on: ${{ matrix.os }}
env:
STRESS_RUN_ID: midge-${{ github.run_id }}-${{ github.run_attempt }}-${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
fail-fast: false
timeout-minutes: 90
steps:
- name: Checkout repository
uses: actions/checkout@v7
- name: Update Rust toolchain
run: rustup update stable
- name: Cache Rust dependencies
uses: Swatinem/rust-cache@v2
with:
shared-key: "bench"
- name: Install cntryl-tools
run: cargo install --git https://github.com/cntryl/tools --rev 1ceecf1a6501793080235d2d46b2982f1424727c --locked
- name: Build all benchmarks
run: cargo bench --no-run
- name: Run Tier 1 benchmarks (hotpath)
run: cargo bench --bench 'tier1_*'
- name: Run Tier 2 benchmarks (subsystem)
run: cargo bench --bench 'tier2_*'
- name: Run Tier 3 benchmarks (system)
run: cargo bench --bench 'tier3_*'
- name: Run Tier 4 benchmarks (integration)
run: cargo bench --bench 'tier4_*'
- name: Generate benchmark summary
shell: bash
run: |
rm -f target/bench_results.json target/bench_summary.md
if ! cntryl-tools summarize-benchmarks; then
python3 scripts/validate_benchmark_summary_bootstrap.py target/bench_results.json
fi
- name: Upload benchmark summary
uses: actions/upload-artifact@v7
with:
name: bench-summary-${{ matrix.os }}
path: target/bench_summary.md