Skip to content

Support nostd benchmarks (#18) #10

Support nostd benchmarks (#18)

Support nostd benchmarks (#18) #10

# 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