rhai/.github/workflows/benchmark.yml

31 lines
1.0 KiB
YAML
Raw Normal View History

name: Benchmark
on:
push:
branches:
- master
2023-03-18 02:27:47 +01:00
- perf
jobs:
benchmark:
name: Run Rust benchmark
runs-on: ubuntu-latest
steps:
2024-04-30 15:55:51 +02:00
- uses: actions/checkout@v4
- run: rustup toolchain update nightly && rustup default nightly
- name: Run benchmark
2022-02-02 07:47:46 +01:00
run: cargo +nightly bench --features decimal,metadata,serde,debugging | tee output.txt
- name: Store benchmark result
uses: rhysd/github-action-benchmark@v1
with:
name: Rust Benchmark
tool: 'cargo'
output-file-path: output.txt
# Use personal access token instead of GITHUB_TOKEN due to https://github.community/t5/GitHub-Actions/Github-action-not-triggering-gh-pages-upon-push/td-p/26869/highlight/false
github-token: ${{ secrets.RHAI }}
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: '@schungx'