nordisk/edda
crates/nornir-testmatrix/tests/fixtures/inventory/alpha/src/bench.rs
//! Bench the alpha hot path — one registered nornir-bench arm.
/// The arm. A unit struct whose `id()` returns the literal the runner logs.
#[derive(Default)]
pub struct AlphaFold;
impl nornir_bench::api::Bencher for AlphaFold {
fn id(&self) -> &'static str {
"alpha.fold"
}
fn run(&self) -> Result<(), ()> {
Ok(())
}
}
nornir_bench::register_bench!(AlphaFold::default());