new(rs): fully by-hand expression simplification #912
Workflow file for this run
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
on: | |
push: | |
branches: [main] | |
pull_request: | |
name: Benchmark | |
jobs: | |
benchmark: | |
name: Run benchmarks | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [ubuntu-latest, windows-latest, macOS-latest] | |
rust: | |
- stable | |
steps: | |
- name: Checkout sources | |
uses: actions/checkout@v2 | |
with: | |
submodules: recursive | |
- name: Install toolchain | |
uses: actions-rs/toolchain@v1 | |
with: | |
toolchain: ${{ matrix.rust }} | |
override: true | |
- uses: Swatinem/rust-cache@v1 | |
- name: Download benchmark artifacts | |
uses: dawidd6/action-download-artifact@v2 | |
with: | |
workflow: bench.yml | |
name: benchmarks-${{ matrix.os }} | |
path: target/criterion | |
continue-on-error: true | |
- name: Run cargo benchmark | |
uses: actions-rs/cargo@v1 | |
with: | |
command: bench | |
args: --bench parser --bench simplification -- --warm-up-time=2 --measurement-time=3 --sample-size=500 --color=always | |
- name: Archive benchmark results | |
if: ${{ github.ref == 'refs/heads/main'}} | |
uses: actions/upload-artifact@v3 | |
with: | |
name: benchmarks-${{ matrix.os }} | |
path: target/criterion | |