Skip to content

Commit 3c9b0cc

Browse files
committed
feat(benchmarks): use compare recipe instead of run on prs
1 parent 221c26d commit 3c9b0cc

File tree

1 file changed

+18
-3
lines changed

1 file changed

+18
-3
lines changed

.github/workflows/benchmark.yml

Lines changed: 18 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,24 @@ jobs:
2727
--justfile ./test/performance/justfile
2828
--working-directory ./test/performance
2929
graphs
30-
- run: kill -9 $(ps aux | grep "ledger serve"| grep -v "grep" | awk '{print $2}')
31-
if: always()
3230
- uses: actions/upload-artifact@v4
3331
with:
3432
name: graphs
35-
path: test/performance/report
33+
path: test/performance/report
34+
BenchmarkCompare:
35+
runs-on: "github-001"
36+
if: contains(github.event.pull_request.labels.*.name, 'benchmarks')
37+
steps:
38+
- uses: 'actions/checkout@v4'
39+
with:
40+
fetch-depth: 0
41+
- uses: extractions/setup-just@v2
42+
- run: >
43+
just
44+
--justfile ./test/performance/justfile
45+
--working-directory ./test/performance
46+
compare . 5 10s 5
47+
- uses: actions/upload-artifact@v4
48+
with:
49+
name: comparison
50+
path: test/performance/report/benchmark-comparison.txt

0 commit comments

Comments
 (0)