pub struct BenchmarkCmd {
Show 19 fields 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,
}
Expand description

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

Runs the command and benchmarks the chain.

Trait Implementations

Get the SharedParams for this object

Get the chain ID (string). Read more

Get the ImportParams for this object

Get the PruningParams for this object

Get the KeystoreParams for this object

Get the NetworkParams for this object

Get a reference to OffchainWorkerParams for this object.

Get the NodeKeyParams for this object

Get the DatabaseParams for this object

Get the base path of the configuration (if any) Read more

Returns true if the node is for development or not Read more

Gets the role Read more

Get the transaction pool options Read more

Get the network configuration Read more

Get the keystore configuration. Read more

Get the database cache size. Read more

Get the database transaction storage scheme.

Get the database backend variant. Read more

Get the database configuration object for the parameters provided

Get the state cache size. Read more

Get the state cache child ratio (if any). Read more

Get the state pruning mode. Read more

Get the block pruning mode. Read more

Get the name of the node. Read more

Get the WASM execution method. Read more

Get the path where WASM overrides live. Read more

Get the execution strategies. Read more

Get the RPC HTTP address (None if disabled). Read more

Get the RPC IPC path (None if disabled). Read more

Get the RPC websocket address (None if disabled). Read more

Returns the RPC method set to expose. Read more

Get the RPC websockets maximum connections (None if unlimited). Read more

Get the RPC cors (None if disabled) Read more

Get the prometheus configuration (None if disabled) Read more

Get the telemetry endpoints (if any) Read more

Get the telemetry external transport Read more

Get the default value for heap pages Read more

Returns an offchain worker config wrapped in Ok(_) Read more

Returns Ok(true) if authoring should be forced Read more

Returns Ok(true) if grandpa should be disabled Read more

Get the development key seed from the current object Read more

Get the tracing targets from the current object (if any) Read more

Get the TracingReceiver value from the current object Read more

Get the node key from the current object Read more

Get maximum runtime instances Read more

Activate or not the automatic announcing of blocks after import Read more

Create a Configuration object from the current object

Get the filters for the logging. Read more

Is log reloading disabled (enabled by default)

Should the log color output be disabled?

Initialize substrate. This must be done only once per process. Read more

Formats the value using the given formatter. Read more

Returns clap::App corresponding to the struct.

Builds the struct from clap::ArgMatches. It’s guaranteed to succeed if matches originates from an App generated by StructOpt::clap called on the same type, otherwise it must panic. Read more

Builds the struct from the command line arguments (std::env::args_os). Calls clap::Error::exit on failure, printing the error message and aborting the program. Read more

Builds the struct from the command line arguments (std::env::args_os). Unlike StructOpt::from_args, returns clap::Error on failure instead of aborting the program, so calling .exit is up to you. Read more

Gets the struct from any iterator such as a Vec of your making. Print the error message and quit the program in case of failure. Read more

Gets the struct from any iterator such as a Vec of your making. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Convert from a value of T into an equivalent instance of Option<Self>. Read more

Consume self to return Some equivalent value of Option<T>. Read more

Returns the argument unchanged.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Cast reference.

Cast reference.

Cast mutable reference.

Cast mutable reference.

Get a reference to the inner from the outer.

Get a mutable reference to the inner from the outer.

The alignment of pointer.

The type for initializers.

Initializes a with the given initializer. Read more

Dereferences the given pointer. Read more

Mutably dereferences the given pointer. Read more

Drops the object pointed to by the given pointer. Read more

Should always be Self

Convert from a value of T into an equivalent instance of Self. Read more

Consume self to return an equivalent value of T. Read more

The inverse inclusion map: attempts to construct self from the equivalent element of its superset. Read more

Checks if self is actually part of its subset T (and can be converted to it).

Use with care! Same as self.to_subset but without any property checks. Always succeeds.

The inclusion map: converts self to the equivalent element of its superset.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The counterpart to unchecked_from.

Consume self to return an equivalent value of T.

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more