Skip to content

Commit

Permalink
build: extend benchmark timeout, skip fetching branch for results
Browse files Browse the repository at this point in the history
  • Loading branch information
adamdecaf committed Oct 2, 2024
1 parent bb9fe16 commit c2fe468
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/bench.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ jobs:
benchmark:
name: Benchmark
runs-on: ubuntu-latest
timeout-minutes: 30

steps:
- uses: actions/checkout@v4

Expand All @@ -20,7 +22,7 @@ jobs:
go-version: "stable"

- name: Run benchmark
run: go test ./... -bench Benchmark -benchmem | tee output.txt
run: go test ./... -timeout 20m -bench Benchmark -benchmem | tee output.txt

- name: Store benchmark result
uses: benchmark-action/github-action-benchmark@v1
Expand All @@ -29,6 +31,7 @@ jobs:
tool: 'go'
output-file-path: output.txt
github-token: ${{ secrets.GITHUB_TOKEN }}
skip-fetch-gh-pages: true
auto-push: true
# Show alert with commit comment on detecting possible performance regression
alert-threshold: '120%'
Expand Down

0 comments on commit c2fe468

Please sign in to comment.