File tree Expand file tree Collapse file tree 2 files changed +16
-4
lines changed
Expand file tree Collapse file tree 2 files changed +16
-4
lines changed Original file line number Diff line number Diff line change 11name : Benchmarks
22
3- # Runs benchmarks on-demand (manual dispatch) to track performance
4- # and detect regressions in the Event Scanner.
3+ # Runs benchmarks to track performance and detect regressions.
4+ # - On push to main: automatically updates baseline in Bencher
5+ # - On manual dispatch: run specific benchmarks on-demand
56
67on :
8+ push :
9+ branches : [main]
10+ paths :
11+ # Only run benchmarks if relevant code changes
12+ - " src/**"
13+ - " benches/**"
14+ - " Cargo.toml"
15+ - " Cargo.lock"
716 workflow_dispatch :
817 inputs :
918 benchmark :
2837 benchmark_historic :
2938 name : Run Historic Benchmarks
3039 runs-on : ubuntu-latest
31- if : ${{ inputs.benchmark == 'all' || inputs.benchmark == 'historic_scanning' }}
40+ # Run on push to main, or when manually selecting 'all' or 'historic_scanning'
41+ if : ${{ github.event_name == 'push' || inputs.benchmark == 'all' || inputs.benchmark == 'historic_scanning' }}
3242
3343 steps :
3444 - name : Harden the runner (Audit all outbound calls)
8292 benchmark_latest :
8393 name : Run Latest Events Benchmarks
8494 runs-on : ubuntu-latest
85- if : ${{ inputs.benchmark == 'all' || inputs.benchmark == 'latest_events_scanning' }}
95+ # Run on push to main, or when manually selecting 'all' or 'latest_events_scanning'
96+ if : ${{ github.event_name == 'push' || inputs.benchmark == 'all' || inputs.benchmark == 'latest_events_scanning' }}
8697
8798 steps :
8899 - name : Harden the runner (Audit all outbound calls)
Original file line number Diff line number Diff line change 7676 --adapter rust_criterion \
7777 --github-actions "${{ secrets.GITHUB_TOKEN }}" \
7878 --ci-number "$PR_NUMBER" \
79+ --ci-only \
7980 --file "$BENCHMARK_RESULTS"
You can’t perform that action at this time.
0 commit comments