1// Template adopted from https://github.com/paritytech/substrate/blob/master/.maintain/frame-weight-template.hbs23//! Autogenerated weights for pallet_configuration4//!5//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 29.0.06//! DATE: 2023-11-29, STEPS: `50`, REPEAT: `80`, LOW RANGE: `[]`, HIGH RANGE: `[]`7//! WORST CASE MAP SIZE: `1000000`8//! HOSTNAME: `bench-host`, CPU: `Intel(R) Core(TM) i7-8700 CPU @ 3.20GHz`9//! EXECUTION: , WASM-EXECUTION: Compiled, CHAIN: None, DB CACHE: 10241011// Executed Command:12// ./target/production/unique-collator13// benchmark14// pallet15// --pallet16// pallet-configuration17// --wasm-execution18// compiled19// --extrinsic20// *21// --template=.maintain/frame-weight-template.hbs22// --steps=5023// --repeat=8024// --heap-pages=409625// --output=./pallets/configuration/src/weights.rs2627#![cfg_attr(rustfmt, rustfmt_skip)]28#![allow(unused_parens)]29#![allow(unused_imports)]3031use frame_support::{traits::Get, weights::{Weight, constants::RocksDbWeight}};32use sp_std::marker::PhantomData;3334/// Weight functions needed for pallet_configuration.35pub trait WeightInfo {36 fn set_weight_to_fee_coefficient_override() -> Weight;37 fn set_min_gas_price_override() -> Weight;38 fn set_app_promotion_configuration_override() -> Weight;39 fn set_collator_selection_desired_collators() -> Weight;40 fn set_collator_selection_license_bond() -> Weight;41 fn set_collator_selection_kick_threshold() -> Weight;42}4344/// Weights for pallet_configuration using the Substrate node and recommended hardware.45pub struct SubstrateWeight<T>(PhantomData<T>);46impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {47 /// Storage: `Configuration::WeightToFeeCoefficientOverride` (r:0 w:1)48 /// Proof: `Configuration::WeightToFeeCoefficientOverride` (`max_values`: Some(1), `max_size`: Some(8), added: 503, mode: `MaxEncodedLen`)49 fn set_weight_to_fee_coefficient_override() -> Weight {50 // Proof Size summary in bytes:51 // Measured: `0`52 // Estimated: `0`53 // Minimum execution time: 2_112_000 picoseconds.54 Weight::from_parts(2_234_000, 0)55 .saturating_add(T::DbWeight::get().writes(1_u64))56 }57 /// Storage: `Configuration::MinGasPriceOverride` (r:0 w:1)58 /// Proof: `Configuration::MinGasPriceOverride` (`max_values`: Some(1), `max_size`: Some(8), added: 503, mode: `MaxEncodedLen`)59 /// Storage: UNKNOWN KEY `0xc1fef3b7207c11a52df13c12884e772609bc3a1e532c9cb85d57feed02cbff8e` (r:0 w:1)60 /// Proof: UNKNOWN KEY `0xc1fef3b7207c11a52df13c12884e772609bc3a1e532c9cb85d57feed02cbff8e` (r:0 w:1)61 /// Storage: UNKNOWN KEY `0xc1fef3b7207c11a52df13c12884e77263864ade243c642793ebcfe9e16f454ca` (r:0 w:1)62 /// Proof: UNKNOWN KEY `0xc1fef3b7207c11a52df13c12884e77263864ade243c642793ebcfe9e16f454ca` (r:0 w:1)63 fn set_min_gas_price_override() -> Weight {64 // Proof Size summary in bytes:65 // Measured: `0`66 // Estimated: `0`67 // Minimum execution time: 3_176_000 picoseconds.68 Weight::from_parts(3_330_000, 0)69 .saturating_add(T::DbWeight::get().writes(3_u64))70 }71 /// Storage: `Configuration::AppPromomotionConfigurationOverride` (r:0 w:1)72 /// Proof: `Configuration::AppPromomotionConfigurationOverride` (`max_values`: Some(1), `max_size`: Some(17), added: 512, mode: `MaxEncodedLen`)73 fn set_app_promotion_configuration_override() -> Weight {74 // Proof Size summary in bytes:75 // Measured: `0`76 // Estimated: `0`77 // Minimum execution time: 2_237_000 picoseconds.78 Weight::from_parts(2_385_000, 0)79 .saturating_add(T::DbWeight::get().writes(1_u64))80 }81 /// Storage: `Configuration::CollatorSelectionDesiredCollatorsOverride` (r:0 w:1)82 /// Proof: `Configuration::CollatorSelectionDesiredCollatorsOverride` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)83 fn set_collator_selection_desired_collators() -> Weight {84 // Proof Size summary in bytes:85 // Measured: `0`86 // Estimated: `0`87 // Minimum execution time: 7_118_000 picoseconds.88 Weight::from_parts(7_350_000, 0)89 .saturating_add(T::DbWeight::get().writes(1_u64))90 }91 /// Storage: `Configuration::CollatorSelectionLicenseBondOverride` (r:0 w:1)92 /// Proof: `Configuration::CollatorSelectionLicenseBondOverride` (`max_values`: Some(1), `max_size`: Some(16), added: 511, mode: `MaxEncodedLen`)93 fn set_collator_selection_license_bond() -> Weight {94 // Proof Size summary in bytes:95 // Measured: `0`96 // Estimated: `0`97 // Minimum execution time: 4_669_000 picoseconds.98 Weight::from_parts(4_865_000, 0)99 .saturating_add(T::DbWeight::get().writes(1_u64))100 }101 /// Storage: `Configuration::CollatorSelectionKickThresholdOverride` (r:0 w:1)102 /// Proof: `Configuration::CollatorSelectionKickThresholdOverride` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)103 fn set_collator_selection_kick_threshold() -> Weight {104 // Proof Size summary in bytes:105 // Measured: `0`106 // Estimated: `0`107 // Minimum execution time: 4_691_000 picoseconds.108 Weight::from_parts(4_866_000, 0)109 .saturating_add(T::DbWeight::get().writes(1_u64))110 }111}112113// For backwards compatibility and tests114impl WeightInfo for () {115 /// Storage: `Configuration::WeightToFeeCoefficientOverride` (r:0 w:1)116 /// Proof: `Configuration::WeightToFeeCoefficientOverride` (`max_values`: Some(1), `max_size`: Some(8), added: 503, mode: `MaxEncodedLen`)117 fn set_weight_to_fee_coefficient_override() -> Weight {118 // Proof Size summary in bytes:119 // Measured: `0`120 // Estimated: `0`121 // Minimum execution time: 2_112_000 picoseconds.122 Weight::from_parts(2_234_000, 0)123 .saturating_add(RocksDbWeight::get().writes(1_u64))124 }125 /// Storage: `Configuration::MinGasPriceOverride` (r:0 w:1)126 /// Proof: `Configuration::MinGasPriceOverride` (`max_values`: Some(1), `max_size`: Some(8), added: 503, mode: `MaxEncodedLen`)127 /// Storage: UNKNOWN KEY `0xc1fef3b7207c11a52df13c12884e772609bc3a1e532c9cb85d57feed02cbff8e` (r:0 w:1)128 /// Proof: UNKNOWN KEY `0xc1fef3b7207c11a52df13c12884e772609bc3a1e532c9cb85d57feed02cbff8e` (r:0 w:1)129 /// Storage: UNKNOWN KEY `0xc1fef3b7207c11a52df13c12884e77263864ade243c642793ebcfe9e16f454ca` (r:0 w:1)130 /// Proof: UNKNOWN KEY `0xc1fef3b7207c11a52df13c12884e77263864ade243c642793ebcfe9e16f454ca` (r:0 w:1)131 fn set_min_gas_price_override() -> Weight {132 // Proof Size summary in bytes:133 // Measured: `0`134 // Estimated: `0`135 // Minimum execution time: 3_176_000 picoseconds.136 Weight::from_parts(3_330_000, 0)137 .saturating_add(RocksDbWeight::get().writes(3_u64))138 }139 /// Storage: `Configuration::AppPromomotionConfigurationOverride` (r:0 w:1)140 /// Proof: `Configuration::AppPromomotionConfigurationOverride` (`max_values`: Some(1), `max_size`: Some(17), added: 512, mode: `MaxEncodedLen`)141 fn set_app_promotion_configuration_override() -> Weight {142 // Proof Size summary in bytes:143 // Measured: `0`144 // Estimated: `0`145 // Minimum execution time: 2_237_000 picoseconds.146 Weight::from_parts(2_385_000, 0)147 .saturating_add(RocksDbWeight::get().writes(1_u64))148 }149 /// Storage: `Configuration::CollatorSelectionDesiredCollatorsOverride` (r:0 w:1)150 /// Proof: `Configuration::CollatorSelectionDesiredCollatorsOverride` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)151 fn set_collator_selection_desired_collators() -> Weight {152 // Proof Size summary in bytes:153 // Measured: `0`154 // Estimated: `0`155 // Minimum execution time: 7_118_000 picoseconds.156 Weight::from_parts(7_350_000, 0)157 .saturating_add(RocksDbWeight::get().writes(1_u64))158 }159 /// Storage: `Configuration::CollatorSelectionLicenseBondOverride` (r:0 w:1)160 /// Proof: `Configuration::CollatorSelectionLicenseBondOverride` (`max_values`: Some(1), `max_size`: Some(16), added: 511, mode: `MaxEncodedLen`)161 fn set_collator_selection_license_bond() -> Weight {162 // Proof Size summary in bytes:163 // Measured: `0`164 // Estimated: `0`165 // Minimum execution time: 4_669_000 picoseconds.166 Weight::from_parts(4_865_000, 0)167 .saturating_add(RocksDbWeight::get().writes(1_u64))168 }169 /// Storage: `Configuration::CollatorSelectionKickThresholdOverride` (r:0 w:1)170 /// Proof: `Configuration::CollatorSelectionKickThresholdOverride` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)171 fn set_collator_selection_kick_threshold() -> Weight {172 // Proof Size summary in bytes:173 // Measured: `0`174 // Estimated: `0`175 // Minimum execution time: 4_691_000 picoseconds.176 Weight::from_parts(4_866_000, 0)177 .saturating_add(RocksDbWeight::get().writes(1_u64))178 }179}180difftreelog
source
pallets/configuration/src/weights.rs8.3 KiBsourcehistory