Skip to content

Commit

Permalink
feat(benchmarks): use compare recipe instead of run on prs
Browse files Browse the repository at this point in the history
  • Loading branch information
gfyrag committed Jan 17, 2025
1 parent 221c26d commit 7d5aefe
Showing 1 changed file with 23 additions and 3 deletions.
26 changes: 23 additions & 3 deletions .github/workflows/benchmark.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ concurrency:
jobs:
Benchmark:
runs-on: "github-001"
if: contains(github.event.pull_request.labels.*.name, 'benchmarks') || github.ref == 'refs/heads/main'
if: github.ref == 'refs/heads/main'
steps:
- uses: 'actions/checkout@v4'
with:
Expand All @@ -27,8 +27,28 @@ jobs:
--justfile ./test/performance/justfile
--working-directory ./test/performance
graphs
- run: kill -9 $(ps aux | grep "ledger serve"| grep -v "grep" | awk '{print $2}')
if: always()
- uses: actions/upload-artifact@v4
with:
name: graphs
path: test/performance/report
BenchmarkCompare:
runs-on: "github-001"
if: contains(github.event.pull_request.labels.*.name, 'benchmarks')
steps:
- uses: 'actions/checkout@v4'
with:
fetch-depth: 0
- uses: extractions/setup-just@v2
- run: >
just
--justfile ./test/performance/justfile
--working-directory ./test/performance
compare . 5 10s 5
- run: >
just
--justfile ./test/performance/justfile
--working-directory ./test/performance
graphs
- uses: actions/upload-artifact@v4
with:
name: graphs
Expand Down

0 comments on commit 7d5aefe

Please sign in to comment.