Benchmarks #584
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Benchmarks | |
| on: | |
| workflow_dispatch: | |
| workflow_call: | |
| inputs: | |
| cache-warming-only: | |
| description: "Compile test binaries only; skip test execution (for cache warming runs)" | |
| type: boolean | |
| default: false | |
| defaults: | |
| run: | |
| shell: bash | |
| jobs: | |
| benchmarks: | |
| runs-on: ubuntu-24.04 | |
| steps: | |
| - name: Checkout custom actions | |
| uses: actions/checkout@v6 | |
| with: | |
| fetch-depth: 1 | |
| # No submodules or LFS needed: benchmark functions only use | |
| # in-memory or local testdata/ files. Space cleanup is needed | |
| # for the cache-warming path (go test -run=^$ ./...) which | |
| # compiles test binaries for every package. | |
| - uses: ./.github/actions/setup-erigon | |
| id: erigon | |
| with: | |
| cleanup-space: true | |
| - name: Run benchmarks | |
| if: '!inputs.cache-warming-only' | |
| run: make test-bench | |
| - name: Build test binaries (cache warming) | |
| if: inputs.cache-warming-only | |
| run: go test -run=^$ ./... | |
| - uses: ./.github/actions/cleanup-erigon | |
| if: always() |