Trait frame_benchmarking::BenchmarkingSetup
source · [−]pub trait BenchmarkingSetup<T, I = ()> {
fn components(&self) -> Vec<(BenchmarkParameter, u32, u32)>ⓘNotable traits for Vec<u8, A>impl<A> Write for Vec<u8, A> where
A: Allocator,
;
fn instance(
&self,
components: &[(BenchmarkParameter, u32)],
verify: bool
) -> Result<Box<dyn FnOnce() -> Result<(), &'static str>>, &'static str>;
}
Expand description
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
Return the components and their ranges which should be tested in this benchmark.