git.delta.rocks / unique-network / refs/commits / 4d4a023748fc

difftreelog

source

pallets/scheduler/src/weights.rs16.4 KiBsourcehistory
1// Template adopted from https://github.com/paritytech/substrate/blob/master/.maintain/frame-weight-template.hbs23//! Autogenerated weights for pallet_unique_scheduler4//!5//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev6//! DATE: 2022-09-14, STEPS: `50`, REPEAT: 80, LOW RANGE: `[]`, HIGH RANGE: `[]`7//! EXECUTION: None, WASM-EXECUTION: Compiled, CHAIN: None, DB CACHE: 102489// Executed Command:10// target/release/unique-collator11// benchmark12// pallet13// --pallet14// pallet-unique-scheduler15// --wasm-execution16// compiled17// --extrinsic18// *19// --template20// .maintain/frame-weight-template.hbs21// --steps=5022// --repeat=8023// --heap-pages=409624// --output=./pallets/scheduler/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_unique_scheduler.36pub trait WeightInfo {37	fn on_initialize_periodic_named_resolved(s: u32, ) -> Weight;38	fn on_initialize_named_resolved(s: u32, ) -> Weight;39	fn on_initialize_periodic(s: u32, ) -> Weight;40	fn on_initialize_periodic_resolved(s: u32, ) -> Weight;41	fn on_initialize_aborted(s: u32, ) -> Weight;42	fn on_initialize_named_aborted(s: u32, ) -> Weight;43	fn on_initialize_named(s: u32, ) -> Weight;44	fn on_initialize(s: u32, ) -> Weight;45	fn on_initialize_resolved(s: u32, ) -> Weight;46	fn schedule_named(s: u32, ) -> Weight;47	fn cancel_named(s: u32, ) -> Weight;48	fn change_named_priority(s: u32, ) -> Weight;49}5051/// Weights for pallet_unique_scheduler using the Substrate node and recommended hardware.52pub struct SubstrateWeight<T>(PhantomData<T>);53impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {54	// Storage: Scheduler Agenda (r:2 w:2)55	// Storage: System Account (r:1 w:1)56	// Storage: System AllExtrinsicsLen (r:1 w:1)57	// Storage: System BlockWeight (r:1 w:1)58	// Storage: Configuration WeightToFeeCoefficientOverride (r:1 w:0)59	// Storage: TransactionPayment NextFeeMultiplier (r:1 w:0)60	// Storage: Scheduler Lookup (r:1 w:1)61	fn on_initialize_periodic_named_resolved(s: u32, ) -> Weight {62		Weight::from_ref_time(26_641_000)63			// Standard Error: 9_00064			.saturating_add(Weight::from_ref_time(8_547_000).saturating_mul(s as u64))65			.saturating_add(T::DbWeight::get().reads(4 as u64))66			.saturating_add(T::DbWeight::get().reads((1 as u64).saturating_mul(s as u64)))67			.saturating_add(T::DbWeight::get().writes(4 as u64))68			.saturating_add(T::DbWeight::get().writes((2 as u64).saturating_mul(s as u64)))69	}70	// Storage: Scheduler Agenda (r:1 w:1)71	// Storage: System Account (r:1 w:1)72	// Storage: System AllExtrinsicsLen (r:1 w:1)73	// Storage: System BlockWeight (r:1 w:1)74	// Storage: Configuration WeightToFeeCoefficientOverride (r:1 w:0)75	// Storage: TransactionPayment NextFeeMultiplier (r:1 w:0)76	// Storage: Scheduler Lookup (r:0 w:1)77	fn on_initialize_named_resolved(s: u32, ) -> Weight {78		Weight::from_ref_time(23_941_000)79			// Standard Error: 17_00080			.saturating_add(Weight::from_ref_time(5_282_000).saturating_mul(s as u64))81			.saturating_add(T::DbWeight::get().reads(4 as u64))82			.saturating_add(T::DbWeight::get().writes(4 as u64))83			.saturating_add(T::DbWeight::get().writes((1 as u64).saturating_mul(s as u64)))84	}85	// Storage: Scheduler Agenda (r:2 w:2)86	// Storage: System Account (r:1 w:1)87	// Storage: System AllExtrinsicsLen (r:1 w:1)88	// Storage: System BlockWeight (r:1 w:1)89	// Storage: Configuration WeightToFeeCoefficientOverride (r:1 w:0)90	// Storage: TransactionPayment NextFeeMultiplier (r:1 w:0)91	// Storage: Scheduler Lookup (r:1 w:1)92	fn on_initialize_periodic(s: u32, ) -> Weight {93		Weight::from_ref_time(24_858_000)94			// Standard Error: 7_00095			.saturating_add(Weight::from_ref_time(8_657_000).saturating_mul(s as u64))96			.saturating_add(T::DbWeight::get().reads(4 as u64))97			.saturating_add(T::DbWeight::get().reads((1 as u64).saturating_mul(s as u64)))98			.saturating_add(T::DbWeight::get().writes(4 as u64))99			.saturating_add(T::DbWeight::get().writes((2 as u64).saturating_mul(s as u64)))100	}101	// Storage: Scheduler Agenda (r:2 w:2)102	// Storage: System Account (r:1 w:1)103	// Storage: System AllExtrinsicsLen (r:1 w:1)104	// Storage: System BlockWeight (r:1 w:1)105	// Storage: Configuration WeightToFeeCoefficientOverride (r:1 w:0)106	// Storage: TransactionPayment NextFeeMultiplier (r:1 w:0)107	// Storage: Scheduler Lookup (r:1 w:1)108	fn on_initialize_periodic_resolved(s: u32, ) -> Weight {109		Weight::from_ref_time(25_515_000)110			// Standard Error: 14_000111			.saturating_add(Weight::from_ref_time(8_656_000).saturating_mul(s as u64))112			.saturating_add(T::DbWeight::get().reads(4 as u64))113			.saturating_add(T::DbWeight::get().reads((1 as u64).saturating_mul(s as u64)))114			.saturating_add(T::DbWeight::get().writes(4 as u64))115			.saturating_add(T::DbWeight::get().writes((2 as u64).saturating_mul(s as u64)))116	}117	// Storage: Scheduler Agenda (r:2 w:2)118	// Storage: Scheduler Lookup (r:0 w:1)119	fn on_initialize_aborted(s: u32, ) -> Weight {120		Weight::from_ref_time(7_584_000)121			// Standard Error: 1_000122			.saturating_add(Weight::from_ref_time(2_065_000).saturating_mul(s as u64))123			.saturating_add(T::DbWeight::get().reads(2 as u64))124			.saturating_add(T::DbWeight::get().writes(2 as u64))125			.saturating_add(T::DbWeight::get().writes((1 as u64).saturating_mul(s as u64)))126	}127	// Storage: Scheduler Agenda (r:1 w:1)128	// Storage: System Account (r:1 w:1)129	// Storage: System AllExtrinsicsLen (r:1 w:1)130	// Storage: System BlockWeight (r:1 w:1)131	// Storage: Configuration WeightToFeeCoefficientOverride (r:1 w:0)132	// Storage: TransactionPayment NextFeeMultiplier (r:1 w:0)133	// Storage: Scheduler Lookup (r:0 w:1)134	fn on_initialize_named_aborted(s: u32, ) -> Weight {135		Weight::from_ref_time(25_552_000)136			// Standard Error: 4_000137			.saturating_add(Weight::from_ref_time(5_187_000).saturating_mul(s as u64))138			.saturating_add(T::DbWeight::get().reads(4 as u64))139			.saturating_add(T::DbWeight::get().writes(4 as u64))140			.saturating_add(T::DbWeight::get().writes((1 as u64).saturating_mul(s as u64)))141	}142	// Storage: Scheduler Agenda (r:2 w:2)143	// Storage: Scheduler Lookup (r:0 w:1)144	fn on_initialize_named(s: u32, ) -> Weight {145		Weight::from_ref_time(8_980_000)146			// Standard Error: 12_000147			.saturating_add(Weight::from_ref_time(2_050_000).saturating_mul(s as u64))148			.saturating_add(T::DbWeight::get().reads(2 as u64))149			.saturating_add(T::DbWeight::get().writes(2 as u64))150			.saturating_add(T::DbWeight::get().writes((1 as u64).saturating_mul(s as u64)))151	}152	// Storage: Scheduler Agenda (r:1 w:1)153	// Storage: System Account (r:1 w:1)154	// Storage: System AllExtrinsicsLen (r:1 w:1)155	// Storage: System BlockWeight (r:1 w:1)156	// Storage: Configuration WeightToFeeCoefficientOverride (r:1 w:0)157	// Storage: TransactionPayment NextFeeMultiplier (r:1 w:0)158	// Storage: Scheduler Lookup (r:0 w:1)159	fn on_initialize(s: u32, ) -> Weight {160		Weight::from_ref_time(24_482_000)161			// Standard Error: 4_000162			.saturating_add(Weight::from_ref_time(5_249_000).saturating_mul(s as u64))163			.saturating_add(T::DbWeight::get().reads(4 as u64))164			.saturating_add(T::DbWeight::get().writes(4 as u64))165			.saturating_add(T::DbWeight::get().writes((1 as u64).saturating_mul(s as u64)))166	}167	// Storage: Scheduler Agenda (r:1 w:1)168	// Storage: System Account (r:1 w:1)169	// Storage: System AllExtrinsicsLen (r:1 w:1)170	// Storage: System BlockWeight (r:1 w:1)171	// Storage: Configuration WeightToFeeCoefficientOverride (r:1 w:0)172	// Storage: TransactionPayment NextFeeMultiplier (r:1 w:0)173	// Storage: Scheduler Lookup (r:0 w:1)174	fn on_initialize_resolved(s: u32, ) -> Weight {175		Weight::from_ref_time(25_187_000)176			// Standard Error: 4_000177			.saturating_add(Weight::from_ref_time(5_216_000).saturating_mul(s as u64))178			.saturating_add(T::DbWeight::get().reads(4 as u64))179			.saturating_add(T::DbWeight::get().writes(4 as u64))180			.saturating_add(T::DbWeight::get().writes((1 as u64).saturating_mul(s as u64)))181	}182	// Storage: Scheduler Lookup (r:1 w:1)183	// Storage: Scheduler Agenda (r:1 w:1)184	fn schedule_named(s: u32, ) -> Weight {185		Weight::from_ref_time(17_316_000)186			// Standard Error: 3_000187			.saturating_add(Weight::from_ref_time(82_000).saturating_mul(s as u64))188			.saturating_add(T::DbWeight::get().reads(2 as u64))189			.saturating_add(T::DbWeight::get().writes(2 as u64))190	}191	// Storage: Scheduler Lookup (r:1 w:1)192	// Storage: Scheduler Agenda (r:1 w:1)193	fn cancel_named(s: u32, ) -> Weight {194		Weight::from_ref_time(15_652_000)195			// Standard Error: 1_000196			.saturating_add(Weight::from_ref_time(436_000).saturating_mul(s as u64))197			.saturating_add(T::DbWeight::get().reads(2 as u64))198			.saturating_add(T::DbWeight::get().writes(2 as u64))199	}200	// Storage: Scheduler Lookup (r:1 w:1)201	// Storage: Scheduler Agenda (r:1 w:1)202	fn change_named_priority(s: u32, ) -> Weight {203		Weight::from_ref_time(8_642_000)204			// Standard Error: 0205			.saturating_add(Weight::from_ref_time(431_000).saturating_mul(s as u64))206			.saturating_add(T::DbWeight::get().reads(2 as u64))207			.saturating_add(T::DbWeight::get().writes(2 as u64))208	}209}210211// For backwards compatibility and tests212impl WeightInfo for () {213	// Storage: Scheduler Agenda (r:2 w:2)214	// Storage: System Account (r:1 w:1)215	// Storage: System AllExtrinsicsLen (r:1 w:1)216	// Storage: System BlockWeight (r:1 w:1)217	// Storage: Configuration WeightToFeeCoefficientOverride (r:1 w:0)218	// Storage: TransactionPayment NextFeeMultiplier (r:1 w:0)219	// Storage: Scheduler Lookup (r:1 w:1)220	fn on_initialize_periodic_named_resolved(s: u32, ) -> Weight {221		Weight::from_ref_time(26_641_000)222			// Standard Error: 9_000223			.saturating_add(Weight::from_ref_time(8_547_000).saturating_mul(s as u64))224			.saturating_add(RocksDbWeight::get().reads(4 as u64))225			.saturating_add(RocksDbWeight::get().reads((1 as u64).saturating_mul(s as u64)))226			.saturating_add(RocksDbWeight::get().writes(4 as u64))227			.saturating_add(RocksDbWeight::get().writes((2 as u64).saturating_mul(s as u64)))228	}229	// Storage: Scheduler Agenda (r:1 w:1)230	// Storage: System Account (r:1 w:1)231	// Storage: System AllExtrinsicsLen (r:1 w:1)232	// Storage: System BlockWeight (r:1 w:1)233	// Storage: Configuration WeightToFeeCoefficientOverride (r:1 w:0)234	// Storage: TransactionPayment NextFeeMultiplier (r:1 w:0)235	// Storage: Scheduler Lookup (r:0 w:1)236	fn on_initialize_named_resolved(s: u32, ) -> Weight {237		Weight::from_ref_time(23_941_000)238			// Standard Error: 17_000239			.saturating_add(Weight::from_ref_time(5_282_000).saturating_mul(s as u64))240			.saturating_add(RocksDbWeight::get().reads(4 as u64))241			.saturating_add(RocksDbWeight::get().writes(4 as u64))242			.saturating_add(RocksDbWeight::get().writes((1 as u64).saturating_mul(s as u64)))243	}244	// Storage: Scheduler Agenda (r:2 w:2)245	// Storage: System Account (r:1 w:1)246	// Storage: System AllExtrinsicsLen (r:1 w:1)247	// Storage: System BlockWeight (r:1 w:1)248	// Storage: Configuration WeightToFeeCoefficientOverride (r:1 w:0)249	// Storage: TransactionPayment NextFeeMultiplier (r:1 w:0)250	// Storage: Scheduler Lookup (r:1 w:1)251	fn on_initialize_periodic(s: u32, ) -> Weight {252		Weight::from_ref_time(24_858_000)253			// Standard Error: 7_000254			.saturating_add(Weight::from_ref_time(8_657_000).saturating_mul(s as u64))255			.saturating_add(RocksDbWeight::get().reads(4 as u64))256			.saturating_add(RocksDbWeight::get().reads((1 as u64).saturating_mul(s as u64)))257			.saturating_add(RocksDbWeight::get().writes(4 as u64))258			.saturating_add(RocksDbWeight::get().writes((2 as u64).saturating_mul(s as u64)))259	}260	// Storage: Scheduler Agenda (r:2 w:2)261	// Storage: System Account (r:1 w:1)262	// Storage: System AllExtrinsicsLen (r:1 w:1)263	// Storage: System BlockWeight (r:1 w:1)264	// Storage: Configuration WeightToFeeCoefficientOverride (r:1 w:0)265	// Storage: TransactionPayment NextFeeMultiplier (r:1 w:0)266	// Storage: Scheduler Lookup (r:1 w:1)267	fn on_initialize_periodic_resolved(s: u32, ) -> Weight {268		Weight::from_ref_time(25_515_000)269			// Standard Error: 14_000270			.saturating_add(Weight::from_ref_time(8_656_000).saturating_mul(s as u64))271			.saturating_add(RocksDbWeight::get().reads(4 as u64))272			.saturating_add(RocksDbWeight::get().reads((1 as u64).saturating_mul(s as u64)))273			.saturating_add(RocksDbWeight::get().writes(4 as u64))274			.saturating_add(RocksDbWeight::get().writes((2 as u64).saturating_mul(s as u64)))275	}276	// Storage: Scheduler Agenda (r:2 w:2)277	// Storage: Scheduler Lookup (r:0 w:1)278	fn on_initialize_aborted(s: u32, ) -> Weight {279		Weight::from_ref_time(7_584_000)280			// Standard Error: 1_000281			.saturating_add(Weight::from_ref_time(2_065_000).saturating_mul(s as u64))282			.saturating_add(RocksDbWeight::get().reads(2 as u64))283			.saturating_add(RocksDbWeight::get().writes(2 as u64))284			.saturating_add(RocksDbWeight::get().writes((1 as u64).saturating_mul(s as u64)))285	}286	// Storage: Scheduler Agenda (r:1 w:1)287	// Storage: System Account (r:1 w:1)288	// Storage: System AllExtrinsicsLen (r:1 w:1)289	// Storage: System BlockWeight (r:1 w:1)290	// Storage: Configuration WeightToFeeCoefficientOverride (r:1 w:0)291	// Storage: TransactionPayment NextFeeMultiplier (r:1 w:0)292	// Storage: Scheduler Lookup (r:0 w:1)293	fn on_initialize_named_aborted(s: u32, ) -> Weight {294		Weight::from_ref_time(25_552_000)295			// Standard Error: 4_000296			.saturating_add(Weight::from_ref_time(5_187_000).saturating_mul(s as u64))297			.saturating_add(RocksDbWeight::get().reads(4 as u64))298			.saturating_add(RocksDbWeight::get().writes(4 as u64))299			.saturating_add(RocksDbWeight::get().writes((1 as u64).saturating_mul(s as u64)))300	}301	// Storage: Scheduler Agenda (r:2 w:2)302	// Storage: Scheduler Lookup (r:0 w:1)303	fn on_initialize_named(s: u32, ) -> Weight {304		Weight::from_ref_time(8_980_000)305			// Standard Error: 12_000306			.saturating_add(Weight::from_ref_time(2_050_000).saturating_mul(s as u64))307			.saturating_add(RocksDbWeight::get().reads(2 as u64))308			.saturating_add(RocksDbWeight::get().writes(2 as u64))309			.saturating_add(RocksDbWeight::get().writes((1 as u64).saturating_mul(s as u64)))310	}311	// Storage: Scheduler Agenda (r:1 w:1)312	// Storage: System Account (r:1 w:1)313	// Storage: System AllExtrinsicsLen (r:1 w:1)314	// Storage: System BlockWeight (r:1 w:1)315	// Storage: Configuration WeightToFeeCoefficientOverride (r:1 w:0)316	// Storage: TransactionPayment NextFeeMultiplier (r:1 w:0)317	// Storage: Scheduler Lookup (r:0 w:1)318	fn on_initialize(s: u32, ) -> Weight {319		Weight::from_ref_time(24_482_000)320			// Standard Error: 4_000321			.saturating_add(Weight::from_ref_time(5_249_000).saturating_mul(s as u64))322			.saturating_add(RocksDbWeight::get().reads(4 as u64))323			.saturating_add(RocksDbWeight::get().writes(4 as u64))324			.saturating_add(RocksDbWeight::get().writes((1 as u64).saturating_mul(s as u64)))325	}326	// Storage: Scheduler Agenda (r:1 w:1)327	// Storage: System Account (r:1 w:1)328	// Storage: System AllExtrinsicsLen (r:1 w:1)329	// Storage: System BlockWeight (r:1 w:1)330	// Storage: Configuration WeightToFeeCoefficientOverride (r:1 w:0)331	// Storage: TransactionPayment NextFeeMultiplier (r:1 w:0)332	// Storage: Scheduler Lookup (r:0 w:1)333	fn on_initialize_resolved(s: u32, ) -> Weight {334		Weight::from_ref_time(25_187_000)335			// Standard Error: 4_000336			.saturating_add(Weight::from_ref_time(5_216_000).saturating_mul(s as u64))337			.saturating_add(RocksDbWeight::get().reads(4 as u64))338			.saturating_add(RocksDbWeight::get().writes(4 as u64))339			.saturating_add(RocksDbWeight::get().writes((1 as u64).saturating_mul(s as u64)))340	}341	// Storage: Scheduler Lookup (r:1 w:1)342	// Storage: Scheduler Agenda (r:1 w:1)343	fn schedule_named(s: u32, ) -> Weight {344		Weight::from_ref_time(17_316_000)345			// Standard Error: 3_000346			.saturating_add(Weight::from_ref_time(82_000).saturating_mul(s as u64))347			.saturating_add(RocksDbWeight::get().reads(2 as u64))348			.saturating_add(RocksDbWeight::get().writes(2 as u64))349	}350	// Storage: Scheduler Lookup (r:1 w:1)351	// Storage: Scheduler Agenda (r:1 w:1)352	fn cancel_named(s: u32, ) -> Weight {353		Weight::from_ref_time(15_652_000)354			// Standard Error: 1_000355			.saturating_add(Weight::from_ref_time(436_000).saturating_mul(s as u64))356			.saturating_add(RocksDbWeight::get().reads(2 as u64))357			.saturating_add(RocksDbWeight::get().writes(2 as u64))358	}359360	// Storage: Scheduler Lookup (r:1 w:1)361	// Storage: Scheduler Agenda (r:1 w:1)362	fn change_named_priority(s: u32, ) -> Weight {363		Weight::from_ref_time(8_642_000)364			// Standard Error: 0365			.saturating_add(Weight::from_ref_time(431_000).saturating_mul(s as u64))366			.saturating_add(RocksDbWeight::get().reads(2 as u64))367			.saturating_add(RocksDbWeight::get().writes(2 as u64))368	}369}