Upload benchmark results #134
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: 🧪 | |
on: | |
push: | |
branches: | |
- "**" | |
pull_request: | |
branches: | |
- main | |
jobs: | |
test: | |
name: Test benchmarking scripts | |
runs-on: ubuntu-latest | |
steps: | |
- name: Set up Rust | |
uses: actions-rust-lang/setup-rust-toolchain@v1 | |
with: | |
toolchain: stable | |
- name: Set up Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: "3.12" | |
- uses: actions/checkout@v3 | |
- name: Move test-benchmark-code to bempp-rs and kifmm | |
run: | | |
cp -r test-benchmark-code kifmm | |
mv test-benchmark-code bempp-rs | |
- name: Style checks | |
run: | | |
python3 -m pip install flake8 | |
python3 -m flake8 . | |
- name: setup | |
run: cargo install cargo-criterion | |
- name: Run test benchmarks | |
run: | | |
cd bempp-rs | |
cargo criterion --message-format json > output.json | |
cd ../kifmm | |
cargo criterion --message-format json > output.json | |
- name: Run process_results.py | |
run: python3 process_results.py | |
- name: Run make_html.py with new data | |
run: | | |
python3 .github/scripts/update_data.py | |
python3 make_html.py |