Move actionlint.yml symlink to repo root for Super-Linter #25
This file contains hidden or 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: benchmarks | |
| # Do not run this workflow on pull request since this workflow has permission | |
| # to modify contents. | |
| on: | |
| push: | |
| branches: | |
| - master | |
| permissions: | |
| # contents permission to update benchmark contents in gh-pages branch | |
| contents: write | |
| # deployments permission to deploy GitHub pages website | |
| deployments: write | |
| jobs: | |
| benchmark: | |
| runs-on: ${{matrix.os}} | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| include: | |
| - name: Linux Intel | |
| os: nyrkio_8 | |
| arch: x64 | |
| - name: Linux ARM64 | |
| os: ubuntu-24.04-arm | |
| arch: arm64 | |
| steps: | |
| - uses: actions/checkout@v6 | |
| with: | |
| submodules: true | |
| persist-credentials: false | |
| - name: Setup dependencies | |
| run: | | |
| sudo apt-get update | |
| sudo apt-get install -y libboost-dev | |
| - name: Configure CMake | |
| shell: bash | |
| run: | | |
| cmake -B build "$GITHUB_WORKSPACE" -DCMAKE_BUILD_TYPE=Release \ | |
| -DSTANDALONE=ON -DBENCHMARKS=ON | |
| - name: Build | |
| working-directory: ${{github.workspace}}/build | |
| run: make -j3 -k | |
| - name: Run benchmarks | |
| working-directory: ${{github.workspace}}/build/benchmark | |
| run: | | |
| ./micro_benchmark_key_prefix --benchmark_out=benchmark_key_prefix.json --benchmark_out_format=json | |
| ./micro_benchmark_n4 --benchmark_out=benchmark_n4.json --benchmark_out_format=json | |
| ./micro_benchmark_n16 --benchmark_out=benchmark_n16.json --benchmark_out_format=json | |
| ./micro_benchmark_n48 --benchmark_out=benchmark_n48.json --benchmark_out_format=json | |
| ./micro_benchmark_n256 --benchmark_out=benchmark_n256.json --benchmark_out_format=json | |
| - name: Combine benchmark results | |
| working-directory: ${{github.workspace}}/build/benchmark | |
| run: | | |
| jq -s '{ benchmarks: map(.benchmarks) | add }' \ | |
| benchmark_key_prefix.json benchmark_n4.json benchmark_n16.json \ | |
| benchmark_n48.json benchmark_n256.json > benchmark_results.json | |
| - name: Analyze benchmark results with Nyrkiö | |
| uses: nyrkio/change-detection@v2 # zizmor: ignore[unpinned-uses] | |
| with: | |
| name: UnoDB Benchmarks (${{matrix.arch}}) | |
| tool: "googlecpp" | |
| output-file-path: build/benchmark/benchmark_results.json | |
| github-token: ${{ secrets.GITHUB_TOKEN }} | |
| auto-push: true | |
| alert-threshold: "200%" | |
| comment-always: true | |
| alert-comment-cc-users: "@laurynas-biveinis" | |
| nyrkio-public: true | |
| fail-on-alert: true | |
| summary-always: true | |
| nyrkio-enable: true | |
| nyrkio-token: ${{ secrets.NYRKIO_JWT_TOKEN }} |