Skip to content

Commit

Permalink
ensure workflow fails if benchmark degredation >10%
Browse files Browse the repository at this point in the history
  • Loading branch information
lapp0 committed Jun 3, 2024
1 parent 8ff2cdd commit f1e2bbb
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/workflows/asv_benchmark_pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,4 +49,9 @@ jobs:
--no-stats --interleave-rounds -a repeat=3 || true
- name: BENCHMARK RESULTS
run: asv compare --factor=1.1 --no-stats --split upstream/main HEAD
run: |
asv compare --factor=1.1 --no-stats --split upstream/main HEAD | tee ${{ env.BENCHMARKS_OUTPUT }}
if grep -q "Benchmarks that have got worse" "${{ env.BENCHMARKS_OUTPUT }}"; then
echo "Performance degradation detected!"
exit 1
fi

0 comments on commit f1e2bbb

Please sign in to comment.