Skip to content

Commit

Permalink
Merge pull request #16 from con/fail-on-slow
Browse files Browse the repository at this point in the history
Make benchmark workflow fail if a benchmark slowed down too much
  • Loading branch information
yarikoptic authored Nov 18, 2020
2 parents 5e8d0f7 + d41cc82 commit 3bb9d0c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/benchmark.yml
Original file line number Diff line number Diff line change
Expand Up @@ -81,3 +81,7 @@ jobs:

- name: Compare benchmarks on previous & newest code
run: asv compare refs/bm/merge-target refs/bm/pr

- name: Fail if any benchmarks have slowed down too much
run: |
! asv compare --factor 1.2 --split refs/bm/merge-target refs/bm/pr | grep -q "got worse"

0 comments on commit 3bb9d0c

Please sign in to comment.