From de6c33f6a425288855ebb3f37bb81cd9783eb63b Mon Sep 17 00:00:00 2001 From: Kris Kwiatkowski Date: Sat, 3 Jul 2021 00:15:52 +0100 Subject: [PATCH] Adds continues benchmarking --- .github/workflows/main.yml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index e97ddf93..24a37827 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -102,3 +102,23 @@ jobs: - name: run tests run: | cd build && ./ut + SPEED: + name: Continues Benchmarking + runs-on: [ubuntu-20.04] + steps: + - uses: actions/checkout@v1 + with: + submodules: true + - uses: rhysd/github-action-benchmark@v1 + with: + tool: 'googlecpp' + output-file-path: benchmark_result.json + - name: build + run: | + mkdir -p build + cd build + CC=clang CXX=clang++ cmake -DCMAKE_BUILD_TYPE=Release .. + make + - name: run benchmarks + run: | + ./test/bench/bench --benchmark_format=json | tee benchmark_result.json \ No newline at end of file