-
Notifications
You must be signed in to change notification settings - Fork 0
63 lines (54 loc) · 1.72 KB
/
benchmark.yml
File metadata and controls
63 lines (54 loc) · 1.72 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
name: Benchmark
on:
push:
branches: [main]
pull_request:
branches: [main]
permissions:
contents: write
pull-requests: write
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
build-mex:
name: Build MEX
uses: ./.github/workflows/_build-mex-octave.yml
with:
artifact-name: mex-linux-bench
benchmark:
name: Performance Benchmark
timeout-minutes: 60
needs: build-mex
runs-on: ubuntu-latest
container: gnuoctave/octave:11.1.0
env:
FASTSENSE_SKIP_BUILD: "1"
# Pin BLAS thread pools to single-threaded — eliminates contention with
# neighboring tenants on shared GitHub runners. Trades absolute throughput
# for reproducibility; benchmarks track relative regressions, not raw speed.
OMP_NUM_THREADS: "1"
OPENBLAS_NUM_THREADS: "1"
steps:
- uses: actions/checkout@v6
- name: Download MEX binaries
uses: actions/download-artifact@v8
with:
name: mex-linux-bench
- name: Run benchmark
run: |
xvfb-run octave --eval "addpath(pwd); install(); addpath('scripts'); run_ci_benchmark();"
- name: Fix git ownership
run: git config --global --add safe.directory /__w/FastSense/FastSense
- name: Store benchmark results
uses: benchmark-action/github-action-benchmark@v1.22.0
with:
name: FastSense Performance
tool: customSmallerIsBetter
output-file-path: benchmark-results.json
github-token: ${{ secrets.GITHUB_TOKEN }}
auto-push: true
alert-threshold: '110%'
comment-on-alert: true
fail-on-alert: false
alert-comment-cc-users: '@HanSur94'