Luigit
repositories / smith

smith

There are many coding harnesses - but this one is fast

owned by admin

smith-bench/Cargo.toml

Raw
[package]
name = "smith-bench"
edition.workspace = true
version.workspace = true
license.workspace = true
publish = false

# No libtest bench harness for the fixture library: it would reject the
# runner arguments `cargo bench` passes to every selected target.
[lib]
path = "src/lib.rs"
bench = false

# Fixture builders need the benched crates as library dependencies.
[dependencies]
smith = { path = "../smith", version = "0.1.0" }
smith-core = { path = "../smith-core", version = "0.1.0" }
smith-ai = { path = "../smith-ai", version = "0.1.0" }
smith-rpc = { path = "../smith-rpc", version = "0.1.0" }
futures = { workspace = true }
serde_json = { workspace = true }

[dev-dependencies]
gungraun = { workspace = true }
criterion = { workspace = true }

# Instruction budgets: callgrind through gungraun, gated by `cargo x perf`.
[[bench]]
name = "instructions"
harness = false

[[bench]]
name = "startup"
harness = false

# Wall clock: criterion A/B through `cargo x bench`; never gates.
[[bench]]
name = "wall_clock"
harness = false