Write literal values to memory at compile-time #86
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: Benchmarks | |
on: | |
push: | |
branches: [main] | |
pull_request: | |
types: | |
- opened | |
- reopened | |
- synchronize | |
- ready_for_review | |
branches: [main] | |
merge_group: | |
types: [checks_requested] | |
permissions: | |
contents: write | |
deployments: write | |
jobs: | |
comparison_benchmark: | |
name: Comparison Benchmark | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out repository | |
uses: actions/checkout@v4 | |
- name: Setup Rust toolchain | |
uses: dtolnay/rust-toolchain@stable | |
- name: Run comparison benchmark | |
run: cargo bench --bench comparison -- --output-format bencher | tee benchmark.txt | |
- name: Store benchmark result | |
uses: benchmark-action/github-action-benchmark@v1 | |
with: | |
tool: cargo | |
output-file-path: benchmark.txt | |
github-token: ${{ secrets.GITHUB_TOKEN }} | |
auto-push: true | |
comment-on-alert: true |