-
Notifications
You must be signed in to change notification settings - Fork 16
68 lines (56 loc) · 1.88 KB
/
Copy pathbench.yml
File metadata and controls
68 lines (56 loc) · 1.88 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: {}
jobs:
bench:
name: Bench (ubuntu-latest)
runs-on: ubuntu-latest
steps:
- name: Checkout (with submodules)
uses: actions/checkout@v4
with:
submodules: recursive
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: "22"
cache: npm
- name: Install
run: npm ci
- name: Setup Rust (stable)
uses: dtolnay/rust-toolchain@stable
- name: Build TypeScript
run: npm run build
- name: Build native addon
run: npm run build:native
- name: Run reduced Rezi benchmark suite (with perf instrumentation)
env:
REZI_PERF: "1"
REZI_PERF_DETAIL: "1"
run: npm run bench:ci -- --output-dir .artifacts/bench/ci
- name: Compare reduced benchmark results against baseline
run: |
npm run bench:ci:compare -- \
--baseline benchmarks/ci-baseline/results.json \
--current .artifacts/bench/ci/results.json \
--config benchmarks/ci-baseline/config.json \
--report-json .artifacts/bench/ci/compare.json \
--report-md .artifacts/bench/ci/compare.md
- name: Display results summary
if: ${{ always() }}
run: |
echo "=== Benchmark Results ==="
if [ -f .artifacts/bench/ci/results.md ]; then
echo "--- .artifacts/bench/ci/results.md ---"
sed -n '1,200p' .artifacts/bench/ci/results.md
fi
if [ -f .artifacts/bench/ci/compare.md ]; then
echo "--- .artifacts/bench/ci/compare.md ---"
sed -n '1,200p' .artifacts/bench/ci/compare.md
fi
- name: Upload results
if: ${{ always() }}
uses: actions/upload-artifact@v4
with:
name: bench-results
path: .artifacts/bench/ci/