| 1 |
name: Benchmark |
| 2 |
on: |
| 3 |
push: |
| 4 |
branches: |
| 5 |
- main |
| 6 |
paths-ignore: |
| 7 |
- "**/*.md" |
| 8 |
- "**/*.txt" |
| 9 |
- "**/*.yaml" |
| 10 |
workflow_dispatch: |
| 11 |
|
| 12 |
permissions: |
| 13 |
contents: read |
| 14 |
|
| 15 |
jobs: |
| 16 |
bench: |
| 17 |
runs-on: ubuntu-24.04 |
| 18 |
steps: |
| 19 |
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd |
| 20 |
- uses: curioswitch/go-build/.github/actions/setup-go@338fc9f50df6cb664134b5c600630dcbc483d81f |
| 21 |
|
| 22 |
- name: setup re2 for cgo |
| 23 |
run: sudo apt-get update && sudo apt-get install -y libre2-dev |
| 24 |
|
| 25 |
- run: go run ./build bench-all |
| 26 |
|
| 27 |
- uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a |
| 28 |
with: |
| 29 |
name: results |
| 30 |
path: build/*bench*.txt |