Generate whisker plot via CI #21
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
name: Benchmark | |
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
workflow_dispatch: | |
schedule: | |
- cron: "0 0 * * 0" | |
jobs: | |
bench: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Install cargo-binstall | |
uses: cargo-bins/cargo-binstall@main | |
- name: Install Hyperfine | |
run: cargo binstall -y hyperfine | |
- name: Install Zig | |
uses: goto-bus-stop/setup-zig@v2 | |
- name: Run benchmarks | |
shell: bash | |
run: ./bench.sh | |
- name: Generate plot | |
shell: bash | |
run: | | |
wget https://raw.githubusercontent.com/sharkdp/hyperfine/master/scripts/plot_whisker.py | |
python plot_whisker.py benchmarks.json -o plot_whisker.png |