Update the Guide for implementing OMMX Adapters with SamplerAdapter
#119
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: [main] | |
pull_request: | |
workflow_dispatch: | |
jobs: | |
codspeed: | |
name: CodSpeed Benchmark | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup Environment | |
uses: ./.github/actions/setup-test-environment | |
- name: Install cargo-codspeed | |
run: cargo install cargo-codspeed --locked | |
- name: Build CodSpeed Benchmark Target(s) | |
run: cargo codspeed build | |
- name: Run the benchmarks | |
uses: CodSpeedHQ/action@v3 | |
with: | |
run: cargo codspeed run | |
token: ${{ secrets.CODSPEED_TOKEN }} | |
report: | |
name: Take Benchmark Report in GitHub Runners | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup Environment | |
uses: ./.github/actions/setup-test-environment | |
- name: Run Benchmarks | |
run: cargo bench | |
- name: Collects Benchmark Results | |
run: | | |
find target/criterion -type d -name report | cut -d/ -f2- >reports.txt | |
tar caf criterion.tar.gz --directory target -T reports.txt | |
- name: Upload Benchmark Results | |
uses: actions/upload-artifact@v4 | |
with: | |
name: criterion | |
path: criterion.tar.gz |