Skip to content

feat(440): Hard

feat(440): Hard #134

Workflow file for this run

name: Go Benchmark
on:
push:
branches: [ "**" ]
permissions:
contents: write
deployments: write
jobs:
benchmark:
name: Run Go benchmark
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v4
with:
go-version: "1.23.0"
- name: Run benchmark
run: go test -bench=. ./... | tee benchmarks.txt
- name: Store benchmark result
uses: benchmark-action/github-action-benchmark@v1
with:
name: Go Benchmark
tool: 'go'
output-file-path: ./benchmarks.txt
github-token: ${{ secrets.BENCH_TOKEN }}
auto-push: true
# Show alert with commit comment on detecting possible performance regression
alert-threshold: '160%'
comment-on-alert: true
fail-on-alert: true
alert-comment-cc-users: '@dziedzicgrzegorz'
- name: Store benchmark result - separate results repo
uses: benchmark-action/github-action-benchmark@v1
with:
name: Go Benchmark
tool: 'go'
output-file-path: ./benchmarks.txt
github-token: ${{ secrets.BENCH_TOKEN }}
auto-push: true
# Show alert with commit comment on detecting possible performance regression
alert-threshold: '160%'
comment-on-alert: true
fail-on-alert: true
alert-comment-cc-users: '@dziedzicgrzegorz'