[−][src]Trait frame_benchmarking::BenchmarkingSetupInstance
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<Box<dyn FnOnce() -> Result<(), &'static str>>, &'static str>
&self,
components: &[(BenchmarkParameter, u32)]
) -> Result<Box<dyn FnOnce() -> Result<(), &'static str>>, &'static str>
Set up the storage, and prepare a closure to run the benchmark.
fn verify(
&self,
components: &[(BenchmarkParameter, u32)]
) -> Result<Box<dyn FnOnce() -> Result<(), &'static str>>, &'static str>
&self,
components: &[(BenchmarkParameter, u32)]
) -> Result<Box<dyn FnOnce() -> Result<(), &'static str>>, &'static str>
Set up the storage, and prepare a closure to test and verify the benchmark