From 5844747413abe5ae67facb903b4fd1e785e68bde Mon Sep 17 00:00:00 2001 From: Ken Hibino Date: Fri, 29 Jan 2021 16:17:23 -0800 Subject: [PATCH] Tweak benchstat workflow --- .github/workflows/benchstat.yml | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/.github/workflows/benchstat.yml b/.github/workflows/benchstat.yml index eb2e4b4..51f21eb 100644 --- a/.github/workflows/benchstat.yml +++ b/.github/workflows/benchstat.yml @@ -24,10 +24,7 @@ jobs: - name: Checkout uses: actions/checkout@v2 - name: Benchmark - run: | - for i in {1..5}; do - go test -run=^$ -bench=. ./... | tee -a bench.txt - done + run: go test -run=^$ -bench=. -count=5 -timeout=60m ./... | tee -a bench.txt - name: Upload Benchmark uses: actions/upload-artifact@v2 with: @@ -50,10 +47,7 @@ jobs: with: ref: master - name: Benchmark - run: | - for i in {1..5}; do - go test -run=^$ -bench=. ./... | tee -a bench.txt - done + run: go test -run=^$ -bench=. -count=5 -timeout=60m ./... | tee -a bench.txt - name: Upload Benchmark uses: actions/upload-artifact@v2 with: