Skip to content

Cast keys as well as values for explicitly typed map macros #47

Cast keys as well as values for explicitly typed map macros

Cast keys as well as values for explicitly typed map macros #47

Workflow file for this run

name: Benchmark
on:
push:
branches:
- master
pull_request:
branches:
- master
permissions:
contents: write
jobs:
Benchmark:
runs-on: ubuntu-latest
container:
image: rust:latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Load cached dependencies
uses: Swatinem/rust-cache@v2
- name: Run benchmark
run: cargo bench -- --output-format bencher > bench.txt
- name: Load previous runs from cache
uses: actions/cache@v3
with:
path: cache/benchmarks
key: benchmark-${{ runner.os }}-${{ github.run_id }}
restore-keys: benchmark-${{ runner.os }}
- name: Save benchmark
uses: benchmark-action/github-action-benchmark@v1
with:
tool: 'cargo'
output-file-path: bench.txt
external-data-json-path: cache/benchmarks/benchmarks.json
github-token: ${{ secrets.GITHUB_TOKEN }}
save-data-file: ${{ github.event_name != 'pull_request' }}
summary-always: true
fail-on-alert: false
alert-threshold: '150%'