pub trait BenchmarkingConfig {
const VOTERS: [u32; 2];
const TARGETS: [u32; 2];
const ACTIVE_VOTERS: [u32; 2];
const DESIRED_TARGETS: [u32; 2];
const SNAPSHOT_MAXIMUM_VOTERS: u32;
const MINER_MAXIMUM_VOTERS: u32;
const MAXIMUM_TARGETS: u32;
}
Expand description
Configuration for the benchmarks of the pallet.
Required Associated Constants§
sourceconst ACTIVE_VOTERS: [u32; 2]
const ACTIVE_VOTERS: [u32; 2]
Range of active voters.
sourceconst DESIRED_TARGETS: [u32; 2]
const DESIRED_TARGETS: [u32; 2]
Range of desired targets.
sourceconst SNAPSHOT_MAXIMUM_VOTERS: u32
const SNAPSHOT_MAXIMUM_VOTERS: u32
Maximum number of voters expected. This is used only for memory-benchmarking of snapshot.
sourceconst MINER_MAXIMUM_VOTERS: u32
const MINER_MAXIMUM_VOTERS: u32
Maximum number of voters expected. This is used only for memory-benchmarking of miner.
sourceconst MAXIMUM_TARGETS: u32
const MAXIMUM_TARGETS: u32
Maximum number of targets expected. This is used only for memory-benchmarking.
Object Safety§
This trait is not object safe.