Struct frame_benchmarking_cli::BenchmarkCmd[][src]

pub struct BenchmarkCmd {
    pub pallet: String,
    pub extrinsic: String,
    pub steps: Vec<u32>,
    pub lowest_range_values: Vec<u32>,
    pub highest_range_values: Vec<u32>,
    pub repeat: u32,
    pub raw_data: bool,
    pub no_median_slopes: bool,
    pub no_min_squares: bool,
    pub output: Option<PathBuf>,
    pub header: Option<PathBuf>,
    pub template: Option<PathBuf>,
    pub heap_pages: Option<u64>,
    pub no_verify: bool,
    pub extra: bool,
    pub shared_params: SharedParams,
    pub execution: Option<ExecutionStrategy>,
    pub wasm_method: WasmExecutionMethod,
    pub database_cache_size: u32,
}

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.

shared_params: SharedParamsexecution: 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]

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]

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[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]

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]

pub fn from_ref(outer: &Outer) -> &T[src]

Get a reference to the inner from the outer.

pub fn from_mut(outer: &mut Outer) -> &mut T[src]

Get a mutable reference to the inner from the outer.

impl<T> MaybeDebug for T where
    T: Debug
[src]

impl<T> MaybeDebug for T where
    T: Debug
[src]

impl<T> MaybeRefUnwindSafe for T where
    T: RefUnwindSafe
[src]

impl<T> Pointable for T[src]

type Init = T

The type for initializers.

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]

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>, 
[src]

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

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 
[src]

impl<T> WithSubscriber for T[src]