Crate orml_benchmarking
source ·Expand description
Macro for benchmarking a Substrate runtime. A fork of frame-benchmarking
pallet.
Modules§
- Interface that provides functions for benchmarking the runtime.
Macros§
- This macro adds pallet benchmarks to a
Vec<BenchmarkBatch>
object. - Callback for
define_benchmarks
to calladd_benchmark
. - Callback for
define_benchmarks
to calllist_benchmark
. - 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.
- Construct pallet benchmarks for weighing dispatchables.
- Same as [
benchmarks
] but for instantiable module. - Whitelist the given account.
Structs§
- The results of a single of benchmark.
- Configuration used to setup and run runtime benchmarks.
- A list of benchmarks available for a particular pallet and instance.
- Result 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§
- Possible errors returned from the benchmarking pipeline.
- An alphabet of possible parameters to use for benchmarking.
Traits§
- The pallet benchmarking trait.
- The required setup for creating a benchmark.
Functions§
- show error message and debugging info for the case of an error happening during a benchmark
- This caller account is automatically whitelisted for DB reads/writes by the benchmarking macro.