[][src]Struct frame_benchmarking_cli::BenchmarkCmd

pub struct BenchmarkCmd {
    pub pallet: String,
    pub extrinsic: String,
    pub steps: Vec<u32>,
    pub repeat: u32,
    pub shared_params: SharedParams,
    pub execution: Option<ExecutionStrategy>,
    pub wasm_method: WasmExecutionMethod,
}

The benchmark command used to benchmark FRAME Pallets.

Fields

pallet: String

Select a FRAME Pallet to benchmark.

extrinsic: String

Select an extrinsic to benchmark.

steps: Vec<u32>

Select how many samples we should take across the variable components.

repeat: u32

Select how many repetitions of this benchmark should run.

shared_params: SharedParamsexecution: Option<ExecutionStrategy>

The execution strategy that should be used for benchmarks

wasm_method: WasmExecutionMethod

Method for executing Wasm runtime code.

Methods

impl BenchmarkCmd[src]

pub fn init(&self, version: &VersionInfo) -> Result<()>[src]

Initialize

pub fn run<G, E, BB, ExecDispatch>(
    self,
    config: Configuration<G, E>
) -> Result<()> where
    G: RuntimeGenesis,
    E: ChainSpecExtension,
    BB: BlockT + Debug,
    <<<BB as BlockT>::Header as HeaderT>::Number as FromStr>::Err: Debug,
    <BB as BlockT>::Hash: FromStr,
    ExecDispatch: NativeExecutionDispatch + 'static, 
[src]

Runs the command and benchmarks the chain.

pub fn update_config<G, E>(
    &self,
    config: &mut Configuration<G, E>,
    spec_factory: impl FnOnce(&str) -> Result<Option<ChainSpec<G, E>>, String>,
    version: &VersionInfo
) -> Result<()> where
    G: RuntimeGenesis,
    E: ChainSpecExtension, 
[src]

Update and prepare a Configuration with command line parameters

Trait Implementations

impl Clone for BenchmarkCmd[src]

impl Debug for BenchmarkCmd[src]

impl StructOpt for BenchmarkCmd[src]

impl StructOptInternal for BenchmarkCmd[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> CheckedConversion for T[src]

impl<T> Erased for T

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, Outer> IsWrappedBy<Outer> for T where
    Outer: AsRef<T> + AsMut<T> + From<T>,
    T: From<Outer>, 

fn from_ref(outer: &Outer) -> &T

Get a reference to the inner from the outer.

fn from_mut(outer: &mut Outer) -> &mut T

Get a mutable reference to the inner from the outer.

impl<T> MaybeDebug for T where
    T: Debug

impl<T> MaybeDebug for T where
    T: Debug

impl<T> MaybeRefUnwindSafe for T where
    T: RefUnwindSafe

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> SaturatedConversion for T

impl<T> SendSyncUnwindSafe for T where
    T: Send + Sync + UnwindSafe + ?Sized

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<S, T> UncheckedInto<T> for S where
    T: UncheckedFrom<S>, 

impl<T, S> UniqueSaturatedInto<T> for S where
    S: TryInto<T>,
    T: Bounded

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,