Skip to content

Add a link to the mirror config format description #1712

Add a link to the mirror config format description

Add a link to the mirror config format description #1712

Workflow file for this run

name: Benchmark Go (PR)
on:
pull_request:
branches:
- main
permissions:
contents: read
jobs:
benchmark:
name: Performance regression check
runs-on: ubuntu-latest
permissions:
# allow posting comments to pull request
pull-requests: write
steps:
- name: Fetch Repo
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
with:
persist-credentials: false
- name: Install Go
uses: actions/setup-go@b7ad1dad31e06c5925ef5d2fc7ad053ef454303e # v7.0.0
with:
go-version-file: go.mod
- name: Run benchmark
run: set -o pipefail; go test ./... -benchmem -run=^$ -bench . | tee output.txt
- name: Store benchmark result
uses: benchmark-action/github-action-benchmark@52576c92bccf6ac60c8223ec7eb2565637cae9ba # v1.22.1
with:
tool: 'go'
output-file-path: output.txt
github-token: ${{ secrets.GITHUB_TOKEN }}
auto-push: false
alert-threshold: "150%"
fail-on-alert: false # Don't make red crosses on the PR, it's almost certainly a false positive currently
comment-on-alert: true # notify on PR if alert triggers
summary-always: true # always comment on PRs to leave job summary