Skip to content

fix(mill-io): compute pool queue depth metrics race and improve testi… #36

fix(mill-io): compute pool queue depth metrics race and improve testi…

fix(mill-io): compute pool queue depth metrics race and improve testi… #36

Workflow file for this run

name: Bench
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
bench:
runs-on: ubuntu-latest
strategy:
matrix:
rust: [stable, nightly]
steps:
- uses: actions/checkout@v4
- name: Install Rust
uses: dtolnay/rust-toolchain@master
with:
toolchain: ${{ matrix.rust }}
components: rustfmt
- name: Cache cargo dependencies
uses: actions/cache@v4
with:
path: |
~/.cargo/bin/
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
target/
key: ${{ runner.os }}-cargo-${{ matrix.rust }}-${{ hashFiles('**/Cargo.lock') }}
restore-keys: |
${{ runner.os }}-cargo-${{ matrix.rust }}-
${{ runner.os }}-cargo-
- name: Build
run: cargo build --release
- name: Run benchmarks for mill-io
run: cargo bench -p mill-io
- name: Run benchmarks for mill-net
run: cargo bench -p mill-net
- name: Upload benchmark results
uses: actions/upload-artifact@v4
with:
name: benchmark-results-${{ matrix.rust }}
path: target/criterion