Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
33 changes: 31 additions & 2 deletions .github/workflows/benchmarks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ concurrency:

jobs:
benchmarks:
name: Run benchmarks (CodSpeed)
name: Run performance benchmarks (CodSpeed)
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
Expand All @@ -37,11 +37,40 @@ jobs:
shell: bash
run: cargo codspeed build

- name: Run benchmarks
- name: Run performance benchmarks
uses: CodSpeedHQ/action@v4
env:
CODSPEED_LOG: debug
with:
mode: simulation
run: cargo codspeed run > /dev/null
token: ${{ secrets.CODSPEED_TOKEN }}

memory-benchmarks:
name: Run memory benchmarks (CodSpeed)
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
with:
persist-credentials: false

- uses: dtolnay/rust-toolchain@stable

- uses: Swatinem/rust-cache@v2

- name: Install cargo-codspeed
shell: bash
run: cargo install cargo-codspeed --locked

- name: Build benchmarks for memory analysis
shell: bash
run: cargo codspeed build -m analysis

- name: Run memory benchmarks
uses: CodSpeedHQ/action@v4
env:
CODSPEED_LOG: debug
with:
mode: memory
run: cargo codspeed run > /dev/null
token: ${{ secrets.CODSPEED_TOKEN }}
Loading