Skip to content

Commit c394500

Browse files
committed
ci: add ci steps for running benchmark tests
Added third party gh-action for A/B testing of performance degradation. Follows up #122
1 parent 68df18f commit c394500

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

.github/workflows/testing.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,3 +44,17 @@ jobs:
4444

4545
- name: Run tests
4646
run: make test
47+
48+
# - name: Run becnchmark
49+
# run: |
50+
# make bench > a.txt &&
51+
# git checkout HEAD~1 &&
52+
# make bench > b.txt &&
53+
# go benchcmp new.txt old.txt &&
54+
55+
- uses: WillAbides/benchdiff-action@v0
56+
id: benchdiff
57+
with:
58+
benchdiff_version: 0.5.8
59+
status_name: bench-result
60+
benchdiff_args: --base-ref=origin/HEAD --count=5 --benchtime 50ms --benchstat-output markdown

0 commit comments

Comments
 (0)