Trait orml_benchmarking::BenchmarkingSetup[][src]

pub trait BenchmarkingSetup<T, I = ()> {
    pub fn components(&self) -> Vec<(BenchmarkParameter, u32, u32), Global>;
pub fn instance(
        &self,
        components: &[(BenchmarkParameter, u32)],
        verify: bool
    ) -> Result<Box<dyn FnOnce() + 'static, Global>, &'static str>; }

The required setup for creating a benchmark.

Instance generic parameter is optional and can be used in order to capture unused generics for instantiable pallets.

Required methods

pub fn components(&self) -> Vec<(BenchmarkParameter, u32, u32), Global>[src]

Return the components and their ranges which should be tested in this benchmark.

pub fn instance(
    &self,
    components: &[(BenchmarkParameter, u32)],
    verify: bool
) -> Result<Box<dyn FnOnce() + 'static, Global>, &'static str>
[src]

Set up the storage, and prepare a closure to run the benchmark.

Loading content...

Implementors

Loading content...