From 5c6f4194acfcf1b7b778b1a496c3ed315dd5da19 Mon Sep 17 00:00:00 2001 From: Skye Gill Date: Fri, 24 Feb 2023 10:35:11 +0000 Subject: [PATCH] chore: use -short flag in benchmark tests Signed-off-by: Skye Gill --- .github/workflows/build.yaml | 2 +- .github/workflows/publish-benchmark.yaml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 2ae8ce5ff..42d2dae90 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -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 diff --git a/.github/workflows/publish-benchmark.yaml b/.github/workflows/publish-benchmark.yaml index d985190b3..d3b414b08 100644 --- a/.github/workflows/publish-benchmark.yaml +++ b/.github/workflows/publish-benchmark.yaml @@ -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