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 declaredframe_support::pallet
. - define_
benchmarks - Defines pallet configs that
add_benchmarks
andlist_benchmarks
use. Should be preferred instead of having a repetitive list of configs inadd_benchmark
andlist_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