Skip to content

Commit 81ee246

Browse files
committed
Fix benchmarks.yml
1 parent 4e57a8b commit 81ee246

1 file changed

Lines changed: 3 additions & 6 deletions

File tree

.github/workflows/benchmarks.yml

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
name: Continuous Benchmarking
22

3-
# This workflow runs on pushes to the main branch and on pull requests that target the main branch.
43
on:
54
push:
65
branches:
@@ -21,20 +20,18 @@ jobs:
2120
- name: Checkout Code
2221
uses: actions/checkout@v4
2322

24-
2523
- name: Run Full Benchmark Suite (on main)
2624
if: github.event_name == 'push'
27-
run: cargo bench -- --nocapture > output.txt
25+
run: cargo bench -- --nocapture --output-format bencher > output.txt
2826

2927
- name: Run Lighter Benchmark Suite (on PR)
3028
if: github.event_name == 'pull_request'
31-
run: |
32-
cargo bench --bench zip_benches Core -- --nocapture >> output.txt
29+
run: cargo bench --bench zip_benches "Core" -- --nocapture --output-format bencher > output.txt
3330

3431
- name: Store and Analyze Benchmark Results
3532
uses: benchmark-action/github-action-benchmark@d48d326b4ca9ba73ca0cd0d59f108f9e02a381c7 # v1.20.4
3633
with:
3734
tool: 'cargo'
3835
output-file-path: 'output.txt'
3936
github-token: ${{ secrets.GITHUB_TOKEN }}
40-
comment-on-alert: true # Post a comment on PRs for regressions.
37+
comment-on-alert: true

0 commit comments

Comments
 (0)