From e6aafcb7afa27317aa532d85aec5a1f6c3e6fe43 Mon Sep 17 00:00:00 2001 From: Kevin Vlaanderen Date: Tue, 12 Dec 2023 23:29:11 +0100 Subject: [PATCH] run benchmarks --- .github/workflows/2023.yml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/.github/workflows/2023.yml b/.github/workflows/2023.yml index 08ea1d2..8c349c3 100644 --- a/.github/workflows/2023.yml +++ b/.github/workflows/2023.yml @@ -40,3 +40,21 @@ jobs: name: 2023 test results path: 2023/report.xml reporter: java-junit + + - name: Run benchmarks + run: go test -bench . -benchmem | tee output.txt + + - name: Download previous benchmark data + uses: actions/cache@v3 + with: + path: ./cache + key: ${{ runner.os }}-benchmark + + - name: Store benchmark result + uses: benchmark-action/github-action-benchmark@v1 + with: + tool: 'go' + output-file-path: output.txt + external-data-json-path: ./cache/benchmark-data.json + github-token: ${{ secrets.GITHUB_TOKEN }} + summary-always: true