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 4.0.0-dev6//! DATE: 2023-03-30, STEPS: `50`, REPEAT: 80, LOW RANGE: `[]`, HIGH RANGE: `[]`7//! WORST CASE MAP SIZE: `1000000`8//! EXECUTION: None, WASM-EXECUTION: Compiled, CHAIN: None, DB CACHE: 1024910// Executed Command:11// target/release/unique-collator12// benchmark13// pallet14// --pallet15// pallet-configuration16// --wasm-execution17// compiled18// --extrinsic19// *20// --template=.maintain/frame-weight-template.hbs21// --steps=5022// --repeat=8023// --heap-pages=409624// --output=./pallets/configuration/src/weights.rs2526#![cfg_attr(rustfmt, rustfmt_skip)]27#![allow(unused_parens)]28#![allow(unused_imports)]29#![allow(missing_docs)]30#![allow(clippy::unnecessary_cast)]3132use frame_support::{traits::Get, weights::{Weight, constants::RocksDbWeight}};33use sp_std::marker::PhantomData;3435/// Weight functions needed for pallet_configuration.36pub trait WeightInfo {37 fn set_weight_to_fee_coefficient_override() -> Weight;38 fn set_min_gas_price_override() -> Weight;39 fn set_app_promotion_configuration_override() -> Weight;40 fn set_collator_selection_desired_collators() -> Weight;41 fn set_collator_selection_license_bond() -> Weight;42 fn set_collator_selection_kick_threshold() -> Weight;43}4445/// Weights for pallet_configuration using the Substrate node and recommended hardware.46pub struct SubstrateWeight<T>(PhantomData<T>);47impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {48 /// Storage: Configuration WeightToFeeCoefficientOverride (r:0 w:1)49 /// Proof: Configuration WeightToFeeCoefficientOverride (max_values: Some(1), max_size: Some(8), added: 503, mode: MaxEncodedLen)50 fn set_weight_to_fee_coefficient_override() -> Weight {51 // Proof Size summary in bytes:52 // Measured: `0`53 // Estimated: `0`54 // Minimum execution time: 1_565_000 picoseconds.55 Weight::from_parts(1_636_000, 0)56 .saturating_add(T::DbWeight::get().writes(1_u64))57 }58 /// Storage: Configuration MinGasPriceOverride (r:0 w:1)59 /// Proof: Configuration MinGasPriceOverride (max_values: Some(1), max_size: Some(8), added: 503, mode: MaxEncodedLen)60 fn set_min_gas_price_override() -> Weight {61 // Proof Size summary in bytes:62 // Measured: `0`63 // Estimated: `0`64 // Minimum execution time: 1_695_000 picoseconds.65 Weight::from_parts(1_798_000, 0)66 .saturating_add(T::DbWeight::get().writes(1_u64))67 }68 /// Storage: Configuration AppPromomotionConfigurationOverride (r:0 w:1)69 /// Proof: Configuration AppPromomotionConfigurationOverride (max_values: Some(1), max_size: Some(17), added: 512, mode: MaxEncodedLen)70 fn set_app_promotion_configuration_override() -> Weight {71 // Proof Size summary in bytes:72 // Measured: `0`73 // Estimated: `0`74 // Minimum execution time: 2_546_000 picoseconds.75 Weight::from_parts(2_796_000, 0)76 .saturating_add(T::DbWeight::get().writes(1_u64))77 }78 /// Storage: Configuration CollatorSelectionDesiredCollatorsOverride (r:0 w:1)79 /// Proof: Configuration CollatorSelectionDesiredCollatorsOverride (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)80 fn set_collator_selection_desired_collators() -> Weight {81 // Proof Size summary in bytes:82 // Measured: `0`83 // Estimated: `0`84 // Minimum execution time: 7_323_000 picoseconds.85 Weight::from_parts(8_251_000, 0)86 .saturating_add(T::DbWeight::get().writes(1_u64))87 }88 /// Storage: Configuration CollatorSelectionLicenseBondOverride (r:0 w:1)89 /// Proof: Configuration CollatorSelectionLicenseBondOverride (max_values: Some(1), max_size: Some(16), added: 511, mode: MaxEncodedLen)90 fn set_collator_selection_license_bond() -> Weight {91 // Proof Size summary in bytes:92 // Measured: `0`93 // Estimated: `0`94 // Minimum execution time: 4_286_000 picoseconds.95 Weight::from_parts(4_442_000, 0)96 .saturating_add(T::DbWeight::get().writes(1_u64))97 }98 /// Storage: Configuration CollatorSelectionKickThresholdOverride (r:0 w:1)99 /// Proof: Configuration CollatorSelectionKickThresholdOverride (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)100 fn set_collator_selection_kick_threshold() -> Weight {101 // Proof Size summary in bytes:102 // Measured: `0`103 // Estimated: `0`104 // Minimum execution time: 4_216_000 picoseconds.105 Weight::from_parts(4_389_000, 0)106 .saturating_add(T::DbWeight::get().writes(1_u64))107 }108}109110// For backwards compatibility and tests111impl WeightInfo for () {112 /// Storage: Configuration WeightToFeeCoefficientOverride (r:0 w:1)113 /// Proof: Configuration WeightToFeeCoefficientOverride (max_values: Some(1), max_size: Some(8), added: 503, mode: MaxEncodedLen)114 fn set_weight_to_fee_coefficient_override() -> Weight {115 // Proof Size summary in bytes:116 // Measured: `0`117 // Estimated: `0`118 // Minimum execution time: 1_565_000 picoseconds.119 Weight::from_parts(1_636_000, 0)120 .saturating_add(RocksDbWeight::get().writes(1_u64))121 }122 /// Storage: Configuration MinGasPriceOverride (r:0 w:1)123 /// Proof: Configuration MinGasPriceOverride (max_values: Some(1), max_size: Some(8), added: 503, mode: MaxEncodedLen)124 fn set_min_gas_price_override() -> Weight {125 // Proof Size summary in bytes:126 // Measured: `0`127 // Estimated: `0`128 // Minimum execution time: 1_695_000 picoseconds.129 Weight::from_parts(1_798_000, 0)130 .saturating_add(RocksDbWeight::get().writes(1_u64))131 }132 /// Storage: Configuration AppPromomotionConfigurationOverride (r:0 w:1)133 /// Proof: Configuration AppPromomotionConfigurationOverride (max_values: Some(1), max_size: Some(17), added: 512, mode: MaxEncodedLen)134 fn set_app_promotion_configuration_override() -> Weight {135 // Proof Size summary in bytes:136 // Measured: `0`137 // Estimated: `0`138 // Minimum execution time: 2_546_000 picoseconds.139 Weight::from_parts(2_796_000, 0)140 .saturating_add(RocksDbWeight::get().writes(1_u64))141 }142 /// Storage: Configuration CollatorSelectionDesiredCollatorsOverride (r:0 w:1)143 /// Proof: Configuration CollatorSelectionDesiredCollatorsOverride (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)144 fn set_collator_selection_desired_collators() -> Weight {145 // Proof Size summary in bytes:146 // Measured: `0`147 // Estimated: `0`148 // Minimum execution time: 7_323_000 picoseconds.149 Weight::from_parts(8_251_000, 0)150 .saturating_add(RocksDbWeight::get().writes(1_u64))151 }152 /// Storage: Configuration CollatorSelectionLicenseBondOverride (r:0 w:1)153 /// Proof: Configuration CollatorSelectionLicenseBondOverride (max_values: Some(1), max_size: Some(16), added: 511, mode: MaxEncodedLen)154 fn set_collator_selection_license_bond() -> Weight {155 // Proof Size summary in bytes:156 // Measured: `0`157 // Estimated: `0`158 // Minimum execution time: 4_286_000 picoseconds.159 Weight::from_parts(4_442_000, 0)160 .saturating_add(RocksDbWeight::get().writes(1_u64))161 }162 /// Storage: Configuration CollatorSelectionKickThresholdOverride (r:0 w:1)163 /// Proof: Configuration CollatorSelectionKickThresholdOverride (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)164 fn set_collator_selection_kick_threshold() -> Weight {165 // Proof Size summary in bytes:166 // Measured: `0`167 // Estimated: `0`168 // Minimum execution time: 4_216_000 picoseconds.169 Weight::from_parts(4_389_000, 0)170 .saturating_add(RocksDbWeight::get().writes(1_u64))171 }172}173difftreelog
source
pallets/configuration/src/weights.rs7.3 KiBsourcehistory