Skip to content

Commit dc9f95f

Browse files
committed
add header to performance report
1 parent 05aaa23 commit dc9f95f

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

.github/workflows/performance.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,11 +52,18 @@ jobs:
5252
run: make test/performance > benchmark-pr.txt
5353

5454
- name: "Compare results"
55-
run: make bench/compare > performance-report.md
55+
run: |
56+
echo -e \
57+
"# Perf tests comparison: \`${{ github.event.repository.default_branch }}\` VS \`${{ github.ref_name }}\`\n" \
58+
> performance-report.md
59+
make bench/compare >> performance-report.md
5660
5761
- uses: "mshick/add-pr-comment@v2"
5862
with:
5963
message-path: "performance-report.md"
64+
message-id: "performance-comment-pr-${{github.event.pull_request.number }}"
65+
refresh-message-position: true
66+
6067

6168
update-performance-cache:
6269
if: ${{ github.event_name == 'push' && github.ref_name == github.event.repository.default_branch }}

build/ci/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ bench/prepare:
2323

2424
old_bench ?= benchmark-master.txt
2525
new_bench ?= benchmark-pr.txt
26-
alert_threshold ?= 5
26+
alert_threshold ?= 7
2727
aggregation_method ?= "mean"
2828

2929
bench/compare:

0 commit comments

Comments
 (0)