[][src]Trait frame_benchmarking::BenchmarkingSetup

pub trait BenchmarkingSetup<T, Call, RawOrigin> {
    fn components(&self) -> Vec<(BenchmarkParameter, u32, u32)>;
fn instance(
        &self,
        components: &[(BenchmarkParameter, u32)]
    ) -> Result<(Call, RawOrigin), &'static str>; }

The required setup for creating a benchmark.

Required methods

fn components(&self) -> Vec<(BenchmarkParameter, u32, u32)>

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

fn instance(
    &self,
    components: &[(BenchmarkParameter, u32)]
) -> Result<(Call, RawOrigin), &'static str>

Set up the storage, and prepare a call and caller to test in a single run of the benchmark.

Loading content...

Implementors

Loading content...