Skip to content

Commit

Permalink
Include benchmark results in workflow summary
Browse files Browse the repository at this point in the history
With this change we include the benchmark results in the CI workflow's
summary. In so doing we provide quicker access compared to having to
navigate to the benchmark job and then expand the various folds first.

Signed-off-by: Daniel Müller <[email protected]>
  • Loading branch information
d-e-s-o committed Jul 21, 2023
1 parent 43d3742 commit 421a11a
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,18 @@ jobs:
- name: Install required tools
run: sudo apt-get install -y llvm-14
- uses: Swatinem/[email protected]
- run: cargo bench --features=nightly,generate-large-test-files,dont-generate-unit-test-files
- run: |
echo '```' >> $GITHUB_STEP_SUMMARY
cargo bench --features=nightly -- bench_ | tee --append $GITHUB_STEP_SUMMARY
# We use bencher format here for better relation to the above
# but also because it emits less other crap into our summary.
# Note that because libtest does not understand the
# `--output-format` option, we need to specify the benchmark
# binary (`main`) here and have a different invocation for
# libtest style benchmarks above. Sigh.
cargo bench --bench=main --features=generate-large-test-files,dont-generate-unit-test-files -- --output-format=bencher | tee --append $GITHUB_STEP_SUMMARY
echo '```' >> $GITHUB_STEP_SUMMARY
clippy:
name: Lint with clippy
runs-on: ubuntu-latest
Expand Down

0 comments on commit 421a11a

Please sign in to comment.