Benchmarks #9
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
| # Optional performance smoke: run locally via `make bench`. This workflow uploads raw output for manual benchstat comparison. | |
| name: Benchmarks | |
| on: | |
| workflow_dispatch: | |
| schedule: | |
| - cron: "17 5 * * 0" # weekly Sunday 05:17 UTC | |
| jobs: | |
| bench: | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 20 | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - uses: actions/setup-go@v6 | |
| with: | |
| go-version-file: go.mod | |
| cache: true | |
| cache-dependency-path: go.sum | |
| - name: Run make bench | |
| run: make bench 2>&1 | tee bench-out.txt | |
| - name: Upload results | |
| uses: actions/upload-artifact@v7 | |
| with: | |
| name: bench-output | |
| path: bench-out.txt |