Skip to content

Commit

Permalink
chore: use -short flag in benchmark tests
Browse files Browse the repository at this point in the history
Signed-off-by: Skye Gill <[email protected]>
  • Loading branch information
skyerus committed Feb 24, 2023
1 parent 6192ac8 commit 5c6f419
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ jobs:
with:
go-version: ${{ env.GO_VERSION }}
- name: Run benchmark
run: go test -bench . -benchtime=5s -benchmem ./... | tee output.txt
run: go test -bench=Bench -short -benchtime=5s -benchmem ./... | tee output.txt

- name: Store benchmark result
uses: benchmark-action/github-action-benchmark@v1
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/publish-benchmark.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
with:
go-version: ${{ env.GO_VERSION }}
- name: Run benchmark
run: set -o pipefail; go test -bench . -benchtime=5s -benchmem ./... | tee output.txt
run: set -o pipefail; go test -bench=Bench -short -benchtime=5s -benchmem ./... | tee output.txt

- name: Store benchmark result
uses: benchmark-action/github-action-benchmark@v1
Expand Down

0 comments on commit 5c6f419

Please sign in to comment.