diff --git a/.github/workflows/benchmark.go b/.github/workflows/benchmark.yml similarity index 90% rename from .github/workflows/benchmark.go rename to .github/workflows/benchmark.yml index 5953cdf..63245e6 100644 --- a/.github/workflows/benchmark.go +++ b/.github/workflows/benchmark.yml @@ -15,7 +15,7 @@ jobs: with: go-version-file: 'go.mod' - run: go install golang.org/x/perf/cmd/benchstat@latest - // Base for comparison is master branch. + # Base for comparison is master branch. - name: Checkout code uses: actions/checkout@v4.1.7 with: @@ -26,7 +26,7 @@ jobs: uses: actions/checkout@v4.1.7 - run: go test -run=none -bench=. --count=7 > /tmp/curr & - // Wait for both benchmarks to complete before comparing. + # Wait for both benchmarks to complete before comparing. - run: wait - run: RESULT="$(benchstat /tmp/prev /tmp/curr)" - uses: actions/github-script@v7