diff --git a/.github/workflows/benchmark.yml b/.github/workflows/benchmark.yml index a6cad7e11..f05525f6f 100644 --- a/.github/workflows/benchmark.yml +++ b/.github/workflows/benchmark.yml @@ -27,9 +27,24 @@ 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 \ No newline at end of file + 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 + - uses: actions/upload-artifact@v4 + with: + name: comparison + path: test/performance/report/benchmark-comparison.txt \ No newline at end of file