Trait benchy::BenchmarkFn

source ·
pub trait BenchmarkFn {
    type ParamType: Clone;

    // Required methods
    fn name() -> String;
    fn params() -> Option<Vec<(String, Self::ParamType)>>;

    // Provided methods
    fn run(_b: &mut BenchmarkRun, _p: Self::ParamType) { ... }
    fn run_without_param(_b: &mut BenchmarkRun) { ... }
}

Required Associated Types§

Required Methods§

Provided Methods§

Implementors§