Module frame_benchmarking::v1
source · Expand description
Macros for benchmarking a FRAME runtime.
Re-exports§
pub use benchmark_backend;
pub use benchmarks_iter;
pub use impl_bench_case_tests;
pub use impl_bench_name_tests;
pub use impl_benchmark;
pub use impl_benchmark_test;
pub use impl_test_function;
pub use selected_benchmark;
pub use to_origin;
pub use super::*;
Macros§
- This macro adds pallet benchmarks to a
Vec<BenchmarkBatch>
object. - Construct pallet benchmarks for weighing dispatchables.
- Same as
benchmarks
but for instantiable module. - Same as
benchmarks
but for instantiable pallet declaredframe_support::pallet
. - Defines pallet configs that
add_benchmarks
andlist_benchmarks
use. Should be preferred instead of having a repetitive list of configs inadd_benchmark
andlist_benchmark
. - This creates a test suite which runs the module’s benchmarks.
- This macro allows users to easily generate a list of benchmarks for the pallets configured in the runtime.
- Whitelist the given account.
Functions§
- show error message and debugging info for the case of an error happening during a benchmark