[][src]Crate frame_benchmarking

Macro for benchmarking a FRAME runtime.

Re-exports

pub use frame_support;
pub use paste;

Modules

benchmarking

Interface that provides functions for benchmarking the runtime.

Macros

add_benchmark

This macro adds pallet benchmarks to a Vec<BenchmarkBatch> object.

benchmarks

Construct pallet benchmarks for weighing dispatchables.

benchmarks_instance

Same as benchmarks but for instantiable module.

Structs

Analysis
BenchmarkBatch

The results of a single of benchmark.

BenchmarkResults

Results from running benchmarks on a FRAME pallet. Contains duration of the function call in nanoseconds along with the benchmark parameters used for that benchmark result.

Enums

BenchmarkParameter

An alphabet of possible parameters to use for benchmarking.

BenchmarkSelector

Traits

Benchmark

Runtime api for benchmarking a FRAME runtime.

Benchmarking

The pallet benchmarking trait.

BenchmarkingSetup

The required setup for creating a benchmark.

BenchmarkingSetupInstance

The required setup for creating a benchmark.

Zero

Defines an additive identity element for Self.

Functions

account

Grab an account, seeded by a name and index.