Execution benchmark fix (#74) #53
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Benchmark | |
on: | |
push: | |
branches: | |
- main | |
permissions: | |
contents: write | |
deployments: write | |
jobs: | |
benchmark: | |
name: Run tracing benchmark | |
runs-on: ubuntu-24.04 | |
timeout-minutes: 10 | |
env: | |
CC: clang | |
CXX: clang++ | |
steps: | |
- uses: actions/checkout@v4 | |
- name: get cmake | |
uses: lukka/get-cmake@latest | |
- name: ccache | |
uses: hendrikmuhs/ccache-action@v1.2.13 | |
with: | |
key: ${{ github.job }}-${{ matrix.os }}-${{ matrix.cc }}-benchmark | |
- name: cmake | |
shell: bash | |
run: | | |
cmake -DCMAKE_BUILD_TYPE=Release -D CMAKE_C_COMPILER_LAUNCHER=ccache -D CMAKE_CXX_COMPILER_LAUNCHER=ccache -DENABLE_BENCHMARKS=ON -DENABLE_LOGGING=OFF ${{ matrix.flags }} -G Ninja -S . -B . | |
- name: build | |
shell: bash | |
run: | | |
cmake --build . --target all | |
- name: test | |
shell: bash | |
run: | | |
./nautilus/test/benchmark/nautilus-benchmarks | tee benchmark_result.txt | |
- name: Store benchmark result | |
uses: benchmark-action/github-action-benchmark@v1 | |
with: | |
name: Tracing Benchmark | |
tool: 'catch2' | |
output-file-path: benchmark_result.txt | |
github-token: ${{ secrets.GITHUB_TOKEN }} | |
auto-push: true | |
# Show alert with commit comment on detecting possible performance regression | |
alert-threshold: '200%' | |
comment-on-alert: false | |
fail-on-alert: false | |
alert-comment-cc-users: '@ktrz' | |
gh-pages-branch: 'pages' |