From 142d8d899bdd4d81e706401560b350048fa0708a Mon Sep 17 00:00:00 2001 From: Omar Date: Mon, 28 Aug 2023 11:05:48 +0000 Subject: [PATCH] benchmark github action --- .github/workflows/cmake-single-platform.yml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/.github/workflows/cmake-single-platform.yml b/.github/workflows/cmake-single-platform.yml index f7110f8..42006fa 100644 --- a/.github/workflows/cmake-single-platform.yml +++ b/.github/workflows/cmake-single-platform.yml @@ -36,3 +36,19 @@ jobs: - name: Test run: ${{github.workspace}}/build/banana_test + - name: Run benchmark + run: ${{github.workspace}}/build/benchmarks --benchmark_format=json > benchmarks/benchmark_results.json + + - name: Store benchmark results + uses: benchmark-action/github-action-benchmark@v1 + with: + name: C++ Benchmark + tool: 'googlecpp' + output-file-path: benchmarks/benchmark_result.json + github-token: ${{ secrets.GITHUB_TOKEN }} + auto-push: true + # Show alert with commit comment on detecting possible performance regression + alert-threshold: '200%' + comment-on-alert: true + fail-on-alert: true + alert-comment-cc-users: '@omaraflak' \ No newline at end of file