Crate frame_benchmarking[][src]

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.

BenchmarkConfig

Configuration used to setup and run runtime benchmarks.

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.

TrackedStorageKey

Storage key with read/write tracking information.

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.

Zero

Defines an additive identity element for Self.

Functions

account

Grab an account, seeded by a name and index.

whitelisted_caller

This caller account is automatically whitelisted for DB reads/writes by the benchmarking macro.