Skip to content

Commit

Permalink
Add benchmark count of 6 for better benchstat analysis (#3176)
Browse files Browse the repository at this point in the history
  • Loading branch information
alishakawaguchi authored Jan 22, 2025
1 parent 7710aa2 commit c3fd504
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ jobs:
run: |
git fetch origin main
git checkout origin/main
go test -run=^$ -bench=. -benchmem ./... | grep -E "Benchmark" | tee main-benchmark.txt
go test -run=^$ -bench=. -benchmem -count=6 ./... | grep -E "Benchmark" | tee main-benchmark.txt
git checkout -
- name: Cache main branch benchmark results
Expand All @@ -234,7 +234,7 @@ jobs:
key: benchmarks-main

- name: Run branch benchmark
run: go test -run=^$ -bench=. -benchmem ./... | grep -E "Benchmark" | tee branch-benchmark.txt
run: go test -run=^$ -bench=. -benchmem -count=6 ./... | grep -E "Benchmark" | tee branch-benchmark.txt

- name: Compare benchmarks
run: |
Expand Down

0 comments on commit c3fd504

Please sign in to comment.