Skip to content

mr::Quat implementation #33

mr::Quat implementation

mr::Quat implementation #33

Workflow file for this run

name: Benchmarks
on:
workflow_dispatch:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
permissions:
contents: write
deployments: write
env:
BUILD_TYPE: Release
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Configure CMake
run: cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -DMR_MATH_ENABLE_BENCHMARK=ON -DMR_MATH_PRESET_BENCHMARK=ON
- name: Build
run: cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}}
- name: Run benchmark
run: ./build/mr-math-bench --benchmark_format=json | tee benchmark_result.json
- name: Download previous results
uses: actions/[email protected]
with:
path: ./cache
key: ${{ runner.os }}-benchmark
- name: Store benchmark result
uses: benchmark-action/[email protected]
with:
tool: 'googlecpp'
output-file-path: benchmark_result.json
github-token: ${{ secrets.GITHUB_TOKEN }}
auto-push: true
# Show alert with commit comment on detecting possible performance regression
alert-threshold: '120%'
comment-on-alert: true
fail-on-alert: true
alert-comment-cc-users: '@cone-forest'