referrerpolicy=no-referrer-when-downgrade

Module v1

Source
Expand description

Macros for benchmarking a FRAME runtime.

Re-exports§

pub use super::*;

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.
benchmarks_instance_pallet
Same as benchmarks but for instantiable pallet declared frame_support::pallet.
define_benchmarks
Defines pallet configs that add_benchmarks and list_benchmarks use. Should be preferred instead of having a repetitive list of configs in add_benchmark and list_benchmark.
impl_benchmark_test_suite
This creates a test suite which runs the module’s benchmarks.
list_benchmark
This macro allows users to easily generate a list of benchmarks for the pallets configured in the runtime.
whitelist
Whitelist the given account.

Functions§

show_benchmark_debug_info
show error message and debugging info for the case of an error happening during a benchmark