Skip to content
Merged
Show file tree
Hide file tree
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
53 changes: 53 additions & 0 deletions .github/workflows/bench.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
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
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ resolver = "2"

[workspace.package]
version = "2.0.1"
authors = ["Citadel-tech", "Mohamed Emad <hulxxv@gmail.com>"]
authors = ["Citadel-tech", "Mohamed Emad"]
license = "Apache-2.0"
edition = "2021"
rust-version = "1.70"
Expand Down
7 changes: 6 additions & 1 deletion mill-io/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,16 @@ parking_lot.workspace = true
serde = { version = "1.0.219", features = ["derive"] }
serde_json = "1.0.141"
mill-net = { path = "../mill-net" }
criterion.workspace = true

[features]
default = []
unstable-mpmc = []
unstable = ["unstable-mpmc"]

[target.'cfg(target_os = "linux")'.dev-dependencies]
inotify = "0.10"
inotify = "0.10"

[[bench]]
name = "comprehensive"
harness = false
Loading