Struct frame_benchmarking_cli::BenchmarkCmd [−][src]
The benchmark
command used to benchmark FRAME Pallets.
Fields
pallet: String
Select a FRAME Pallet to benchmark, or *
for all (in which case extrinsic
must be *
).
extrinsic: String
Select an extrinsic inside the pallet to benchmark, or *
for all.
steps: Vec<u32>
Select how many samples we should take across the variable components.
lowest_range_values: Vec<u32>
Indicates lowest values for each of the component ranges.
highest_range_values: Vec<u32>
Indicates highest values for each of the component ranges.
repeat: u32
Select how many repetitions of this benchmark should run.
raw_data: bool
Print the raw results.
no_median_slopes: bool
Don’t print the median-slopes linear regression analysis.
no_min_squares: bool
Don’t print the min-squares linear regression analysis.
output: Option<PathBuf>
Output the benchmarks to a Rust file at the given path.
header: Option<PathBuf>
Add a header file to your outputted benchmarks
template: Option<PathBuf>
Path to Handlebars template file used for outputting benchmark results. (Optional)
heap_pages: Option<u64>
Set the heap pages while running benchmarks.
no_verify: bool
Disable verification logic when running benchmarks.
extra: bool
Display and run extra benchmarks that would otherwise not be needed for weight construction.
execution: Option<ExecutionStrategy>
The execution strategy that should be used for benchmarks
wasm_method: WasmExecutionMethod
Method for executing Wasm runtime code.
database_cache_size: u32
Limit the memory the database cache can use.
Implementations
impl BenchmarkCmd
[src][−]
pub fn run<BB, ExecDispatch>(&self, config: Configuration) -> Result<()> where
BB: BlockT + Debug,
<<<BB as BlockT>::Header as HeaderT>::Number as FromStr>::Err: Debug,
<BB as BlockT>::Hash: FromStr,
ExecDispatch: NativeExecutionDispatch + 'static,
[src][−]
BB: BlockT + Debug,
<<<BB as BlockT>::Header as HeaderT>::Number as FromStr>::Err: Debug,
<BB as BlockT>::Hash: FromStr,
ExecDispatch: NativeExecutionDispatch + 'static,
Runs the command and benchmarks the chain.
Trait Implementations
impl CliConfiguration<()> for BenchmarkCmd
[src][+]
impl Debug for BenchmarkCmd
[src][+]
impl StructOpt for BenchmarkCmd
[src][+]
impl StructOptInternal for BenchmarkCmd
[src][+]
Auto Trait Implementations
impl RefUnwindSafe for BenchmarkCmd
impl Send for BenchmarkCmd
impl Sync for BenchmarkCmd
impl Unpin for BenchmarkCmd
impl UnwindSafe for BenchmarkCmd
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src][+]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src][+]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src][+]
T: ?Sized,
impl<T> CheckedConversion for T
[src][+]
impl<T> Erased for T
[src]
impl<T> From<T> for T
[src][+]
impl<T> Instrument for T
[src][+]
impl<T> Instrument for T
[src][+]
impl<T, U> Into<U> for T where
U: From<T>,
[src][+]
U: From<T>,
impl<T> IsType<T> for T
[src][+]
impl<T, Outer> IsWrappedBy<Outer> for T where
T: From<Outer>,
Outer: AsRef<T> + AsMut<T> + From<T>,
[src][+]
T: From<Outer>,
Outer: AsRef<T> + AsMut<T> + From<T>,
impl<T> MaybeDebug for T where
T: Debug,
[src]
T: Debug,
impl<T> MaybeDebug for T where
T: Debug,
[src]
T: Debug,
impl<T> MaybeRefUnwindSafe for T where
T: RefUnwindSafe,
[src]
T: RefUnwindSafe,
impl<T> Pointable for T
[src][+]
impl<T> Same<T> for T
[src]
type Output = T
Should always be Self
impl<T> SaturatedConversion for T
[src][+]
impl<SS, SP> SupersetOf<SS> for SP where
SS: SubsetOf<SP>,
[src][+]
SS: SubsetOf<SP>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src][+]
U: Into<T>,
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src][+]
U: TryFrom<T>,
impl<S, T> UncheckedInto<T> for S where
T: UncheckedFrom<S>,
[src][+]
T: UncheckedFrom<S>,
impl<T, S> UniqueSaturatedInto<T> for S where
S: TryInto<T>,
T: Bounded,
[src][+]
S: TryInto<T>,
T: Bounded,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
[src][+]
V: MultiLane<T>,