Your browser sucks, JavaScript disabled! Gunnar's console needs JavaScript and WebAssembly. Git over SSH on port 2222 does not.

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());