diff --git a/.github/workflows/benchmark.yml b/.github/workflows/benchmark.yml index a6cad7e11..46c2359a0 100644 --- a/.github/workflows/benchmark.yml +++ b/.github/workflows/benchmark.yml @@ -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: @@ -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