git.delta.rocks / unique-network / refs/commits / dc6f0e24d331

difftreelog

source

pallets/configuration/src/weights.rs7.3 KiBsourcehistory
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-04-20, 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: None, WASM-EXECUTION: Compiled, CHAIN: None, DB CACHE: 10241011// Executed Command:12// target/release/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: 1_725_000 picoseconds.54		Weight::from_parts(1_853_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	fn set_min_gas_price_override() -> Weight {60		// Proof Size summary in bytes:61		//  Measured:  `0`62		//  Estimated: `0`63		// Minimum execution time: 1_802_000 picoseconds.64		Weight::from_parts(1_903_000, 0)65			.saturating_add(T::DbWeight::get().writes(1_u64))66	}67	/// Storage: Configuration AppPromomotionConfigurationOverride (r:0 w:1)68	/// Proof: Configuration AppPromomotionConfigurationOverride (max_values: Some(1), max_size: Some(17), added: 512, mode: MaxEncodedLen)69	fn set_app_promotion_configuration_override() -> Weight {70		// Proof Size summary in bytes:71		//  Measured:  `0`72		//  Estimated: `0`73		// Minimum execution time: 2_048_000 picoseconds.74		Weight::from_parts(2_157_000, 0)75			.saturating_add(T::DbWeight::get().writes(1_u64))76	}77	/// Storage: Configuration CollatorSelectionDesiredCollatorsOverride (r:0 w:1)78	/// Proof: Configuration CollatorSelectionDesiredCollatorsOverride (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)79	fn set_collator_selection_desired_collators() -> Weight {80		// Proof Size summary in bytes:81		//  Measured:  `0`82		//  Estimated: `0`83		// Minimum execution time: 7_622_000 picoseconds.84		Weight::from_parts(8_014_000, 0)85			.saturating_add(T::DbWeight::get().writes(1_u64))86	}87	/// Storage: Configuration CollatorSelectionLicenseBondOverride (r:0 w:1)88	/// Proof: Configuration CollatorSelectionLicenseBondOverride (max_values: Some(1), max_size: Some(16), added: 511, mode: MaxEncodedLen)89	fn set_collator_selection_license_bond() -> Weight {90		// Proof Size summary in bytes:91		//  Measured:  `0`92		//  Estimated: `0`93		// Minimum execution time: 4_981_000 picoseconds.94		Weight::from_parts(5_811_000, 0)95			.saturating_add(T::DbWeight::get().writes(1_u64))96	}97	/// Storage: Configuration CollatorSelectionKickThresholdOverride (r:0 w:1)98	/// Proof: Configuration CollatorSelectionKickThresholdOverride (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)99	fn set_collator_selection_kick_threshold() -> Weight {100		// Proof Size summary in bytes:101		//  Measured:  `0`102		//  Estimated: `0`103		// Minimum execution time: 4_664_000 picoseconds.104		Weight::from_parts(4_816_000, 0)105			.saturating_add(T::DbWeight::get().writes(1_u64))106	}107}108109// For backwards compatibility and tests110impl WeightInfo for () {111	/// Storage: Configuration WeightToFeeCoefficientOverride (r:0 w:1)112	/// Proof: Configuration WeightToFeeCoefficientOverride (max_values: Some(1), max_size: Some(8), added: 503, mode: MaxEncodedLen)113	fn set_weight_to_fee_coefficient_override() -> Weight {114		// Proof Size summary in bytes:115		//  Measured:  `0`116		//  Estimated: `0`117		// Minimum execution time: 1_725_000 picoseconds.118		Weight::from_parts(1_853_000, 0)119			.saturating_add(RocksDbWeight::get().writes(1_u64))120	}121	/// Storage: Configuration MinGasPriceOverride (r:0 w:1)122	/// Proof: Configuration MinGasPriceOverride (max_values: Some(1), max_size: Some(8), added: 503, mode: MaxEncodedLen)123	fn set_min_gas_price_override() -> Weight {124		// Proof Size summary in bytes:125		//  Measured:  `0`126		//  Estimated: `0`127		// Minimum execution time: 1_802_000 picoseconds.128		Weight::from_parts(1_903_000, 0)129			.saturating_add(RocksDbWeight::get().writes(1_u64))130	}131	/// Storage: Configuration AppPromomotionConfigurationOverride (r:0 w:1)132	/// Proof: Configuration AppPromomotionConfigurationOverride (max_values: Some(1), max_size: Some(17), added: 512, mode: MaxEncodedLen)133	fn set_app_promotion_configuration_override() -> Weight {134		// Proof Size summary in bytes:135		//  Measured:  `0`136		//  Estimated: `0`137		// Minimum execution time: 2_048_000 picoseconds.138		Weight::from_parts(2_157_000, 0)139			.saturating_add(RocksDbWeight::get().writes(1_u64))140	}141	/// Storage: Configuration CollatorSelectionDesiredCollatorsOverride (r:0 w:1)142	/// Proof: Configuration CollatorSelectionDesiredCollatorsOverride (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)143	fn set_collator_selection_desired_collators() -> Weight {144		// Proof Size summary in bytes:145		//  Measured:  `0`146		//  Estimated: `0`147		// Minimum execution time: 7_622_000 picoseconds.148		Weight::from_parts(8_014_000, 0)149			.saturating_add(RocksDbWeight::get().writes(1_u64))150	}151	/// Storage: Configuration CollatorSelectionLicenseBondOverride (r:0 w:1)152	/// Proof: Configuration CollatorSelectionLicenseBondOverride (max_values: Some(1), max_size: Some(16), added: 511, mode: MaxEncodedLen)153	fn set_collator_selection_license_bond() -> Weight {154		// Proof Size summary in bytes:155		//  Measured:  `0`156		//  Estimated: `0`157		// Minimum execution time: 4_981_000 picoseconds.158		Weight::from_parts(5_811_000, 0)159			.saturating_add(RocksDbWeight::get().writes(1_u64))160	}161	/// Storage: Configuration CollatorSelectionKickThresholdOverride (r:0 w:1)162	/// Proof: Configuration CollatorSelectionKickThresholdOverride (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)163	fn set_collator_selection_kick_threshold() -> Weight {164		// Proof Size summary in bytes:165		//  Measured:  `0`166		//  Estimated: `0`167		// Minimum execution time: 4_664_000 picoseconds.168		Weight::from_parts(4_816_000, 0)169			.saturating_add(RocksDbWeight::get().writes(1_u64))170	}171}172