Support nostd benchmarks (#18) #10
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
# Benchmark HEAD in the main branch against the previous commit. | |
name: benchmark_main | |
on: | |
push: | |
branches: [main] | |
env: | |
CARGO_TERM_COLOR: always | |
jobs: | |
benchmark: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repo | |
uses: actions/checkout@v2 | |
- name: Set up Rust Cache | |
uses: Swatinem/rust-cache@v1 | |
- name: Install benchmarking utilities | |
run: cargo install critcmp | |
- name: After | |
run: cargo bench -- --noplot --save-baseline after | |
- name: Before | |
run: git checkout $(git log --no-decorate --skip 1 | head -n 1 | cut -d ' ' -f2) && cargo bench -- --noplot --save-baseline before | |
- name: Compare benchmarks | |
run: critcmp before after |