difftreelog
chore add draft scheduler weights
in: master
1 file changed
pallets/scheduler/src/weights.rsdiffbeforeafterboth1// 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-08-15, 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(clippy::unnecessary_cast)]3031use frame_support::{traits::Get, weights::{Weight, constants::RocksDbWeight}};32use sp_std::marker::PhantomData;3334/// Weight functions needed for pallet_unique_scheduler.35pub trait WeightInfo {36 fn on_initialize_periodic_named_resolved(s: u32, ) -> Weight;37 fn on_initialize_named_resolved(s: u32, ) -> Weight;38 fn on_initialize_periodic(s: u32, ) -> Weight;39 fn on_initialize_periodic_resolved(s: u32, ) -> Weight;40 fn on_initialize_aborted(s: u32, ) -> Weight;41 fn on_initialize_named_aborted(s: u32, ) -> Weight;42 fn on_initialize_named(s: u32, ) -> Weight;43 fn on_initialize(s: u32, ) -> Weight;44 fn on_initialize_resolved(s: u32, ) -> Weight;45 fn schedule_named(s: u32, ) -> Weight;46 fn cancel_named(s: u32, ) -> Weight;47}4849/// Weights for pallet_unique_scheduler using the Substrate node and recommended hardware.50pub struct SubstrateWeight<T>(PhantomData<T>);51impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {52 // Storage: Scheduler Agenda (r:2 w:2)53 // Storage: System Account (r:1 w:1)54 // Storage: System AllExtrinsicsLen (r:1 w:1)55 // Storage: System BlockWeight (r:1 w:1)56 // Storage: Scheduler Lookup (r:0 w:1)57 fn on_initialize_periodic_named_resolved(s: u32, ) -> Weight {58 Weight::from_ref_time(26_641_000)59 // Standard Error: 9_00060 .saturating_add(Weight::from_ref_time(8_547_000).saturating_mul(s as u64))61 .saturating_add(T::DbWeight::get().reads(4 as u64))62 .saturating_add(T::DbWeight::get().reads((1 as u64).saturating_mul(s as u64)))63 .saturating_add(T::DbWeight::get().writes(4 as u64))64 .saturating_add(T::DbWeight::get().writes((2 as u64).saturating_mul(s as u64)))65 }66 // Storage: Scheduler Agenda (r:1 w:1)67 // Storage: System Account (r:1 w:1)68 // Storage: System AllExtrinsicsLen (r:1 w:1)69 // Storage: System BlockWeight (r:1 w:1)70 // Storage: Scheduler Lookup (r:0 w:1)71 fn on_initialize_named_resolved(s: u32, ) -> Weight {72 Weight::from_ref_time(23_941_000)73 // Standard Error: 17_00074 .saturating_add(Weight::from_ref_time(5_282_000).saturating_mul(s as u64))75 .saturating_add(T::DbWeight::get().reads(4 as u64))76 .saturating_add(T::DbWeight::get().writes(4 as u64))77 .saturating_add(T::DbWeight::get().writes((1 as u64).saturating_mul(s as u64)))78 }79 // Storage: Scheduler Agenda (r:2 w:2)80 // Storage: System Account (r:1 w:1)81 // Storage: System AllExtrinsicsLen (r:1 w:1)82 // Storage: System BlockWeight (r:1 w:1)83 // Storage: Scheduler Lookup (r:0 w:1)84 fn on_initialize_periodic(s: u32, ) -> Weight {85 Weight::from_ref_time(24_858_000)86 // Standard Error: 7_00087 .saturating_add(Weight::from_ref_time(8_657_000).saturating_mul(s as u64))88 .saturating_add(T::DbWeight::get().reads(4 as u64))89 .saturating_add(T::DbWeight::get().reads((1 as u64).saturating_mul(s as u64)))90 .saturating_add(T::DbWeight::get().writes(4 as u64))91 .saturating_add(T::DbWeight::get().writes((2 as u64).saturating_mul(s as u64)))92 }93 // Storage: Scheduler Agenda (r:2 w:2)94 // Storage: System Account (r:1 w:1)95 // Storage: System AllExtrinsicsLen (r:1 w:1)96 // Storage: System BlockWeight (r:1 w:1)97 // Storage: Scheduler Lookup (r:0 w:1)98 fn on_initialize_periodic_resolved(s: u32, ) -> Weight {99 Weight::from_ref_time(25_515_000)100 // Standard Error: 14_000101 .saturating_add(Weight::from_ref_time(8_656_000).saturating_mul(s as u64))102 .saturating_add(T::DbWeight::get().reads(4 as u64))103 .saturating_add(T::DbWeight::get().reads((1 as u64).saturating_mul(s as u64)))104 .saturating_add(T::DbWeight::get().writes(4 as u64))105 .saturating_add(T::DbWeight::get().writes((2 as u64).saturating_mul(s as u64)))106 }107 // Storage: Scheduler Agenda (r:2 w:2)108 // Storage: Scheduler Lookup (r:0 w:1)109 fn on_initialize_aborted(s: u32, ) -> Weight {110 Weight::from_ref_time(7_584_000)111 // Standard Error: 1_000112 .saturating_add(Weight::from_ref_time(2_065_000).saturating_mul(s as u64))113 .saturating_add(T::DbWeight::get().reads(2 as u64))114 .saturating_add(T::DbWeight::get().writes(2 as u64))115 .saturating_add(T::DbWeight::get().writes((1 as u64).saturating_mul(s as u64)))116 }117 // Storage: Scheduler Agenda (r:1 w:1)118 // Storage: System Account (r:1 w:1)119 // Storage: System AllExtrinsicsLen (r:1 w:1)120 // Storage: System BlockWeight (r:1 w:1)121 // Storage: Scheduler Lookup (r:0 w:1)122 fn on_initialize_named_aborted(s: u32, ) -> Weight {123 Weight::from_ref_time(25_552_000)124 // Standard Error: 4_000125 .saturating_add(Weight::from_ref_time(5_187_000).saturating_mul(s as u64))126 .saturating_add(T::DbWeight::get().reads(4 as u64))127 .saturating_add(T::DbWeight::get().writes(4 as u64))128 .saturating_add(T::DbWeight::get().writes((1 as u64).saturating_mul(s as u64)))129 }130 // Storage: Scheduler Agenda (r:2 w:2)131 // Storage: Scheduler Lookup (r:0 w:1)132 fn on_initialize_named(s: u32, ) -> Weight {133 Weight::from_ref_time(8_980_000)134 // Standard Error: 12_000135 .saturating_add(Weight::from_ref_time(2_050_000).saturating_mul(s as u64))136 .saturating_add(T::DbWeight::get().reads(2 as u64))137 .saturating_add(T::DbWeight::get().writes(2 as u64))138 .saturating_add(T::DbWeight::get().writes((1 as u64).saturating_mul(s as u64)))139 }140 // Storage: Scheduler Agenda (r:1 w:1)141 // Storage: System Account (r:1 w:1)142 // Storage: System AllExtrinsicsLen (r:1 w:1)143 // Storage: System BlockWeight (r:1 w:1)144 // Storage: Scheduler Lookup (r:0 w:1)145 fn on_initialize(s: u32, ) -> Weight {146 Weight::from_ref_time(24_482_000)147 // Standard Error: 4_000148 .saturating_add(Weight::from_ref_time(5_249_000).saturating_mul(s as u64))149 .saturating_add(T::DbWeight::get().reads(4 as u64))150 .saturating_add(T::DbWeight::get().writes(4 as u64))151 .saturating_add(T::DbWeight::get().writes((1 as u64).saturating_mul(s as u64)))152 }153 // Storage: Scheduler Agenda (r:1 w:1)154 // Storage: System Account (r:1 w:1)155 // Storage: System AllExtrinsicsLen (r:1 w:1)156 // Storage: System BlockWeight (r:1 w:1)157 // Storage: Scheduler Lookup (r:0 w:1)158 fn on_initialize_resolved(s: u32, ) -> Weight {159 Weight::from_ref_time(25_187_000)160 // Standard Error: 4_000161 .saturating_add(Weight::from_ref_time(5_216_000).saturating_mul(s as u64))162 .saturating_add(T::DbWeight::get().reads(4 as u64))163 .saturating_add(T::DbWeight::get().writes(4 as u64))164 .saturating_add(T::DbWeight::get().writes((1 as u64).saturating_mul(s as u64)))165 }166 // Storage: Scheduler Lookup (r:1 w:1)167 // Storage: Scheduler Agenda (r:1 w:1)168 fn schedule_named(s: u32, ) -> Weight {169 Weight::from_ref_time(17_316_000)170 // Standard Error: 3_000171 .saturating_add(Weight::from_ref_time(82_000).saturating_mul(s as u64))172 .saturating_add(T::DbWeight::get().reads(2 as u64))173 .saturating_add(T::DbWeight::get().writes(2 as u64))174 }175 // Storage: Scheduler Lookup (r:1 w:1)176 // Storage: Scheduler Agenda (r:1 w:1)177 fn cancel_named(s: u32, ) -> Weight {178 Weight::from_ref_time(15_652_000)179 // Standard Error: 1_000180 .saturating_add(Weight::from_ref_time(436_000).saturating_mul(s as u64))181 .saturating_add(T::DbWeight::get().reads(2 as u64))182 .saturating_add(T::DbWeight::get().writes(2 as u64))183 }184}185186// For backwards compatibility and tests187impl WeightInfo for () {188 // Storage: Scheduler Agenda (r:2 w:2)189 // Storage: System Account (r:1 w:1)190 // Storage: System AllExtrinsicsLen (r:1 w:1)191 // Storage: System BlockWeight (r:1 w:1)192 // Storage: Scheduler Lookup (r:0 w:1)193 fn on_initialize_periodic_named_resolved(s: u32, ) -> Weight {194 Weight::from_ref_time(26_641_000)195 // Standard Error: 9_000196 .saturating_add(Weight::from_ref_time(8_547_000).saturating_mul(s as u64))197 .saturating_add(RocksDbWeight::get().reads(4 as u64))198 .saturating_add(RocksDbWeight::get().reads((1 as u64).saturating_mul(s as u64)))199 .saturating_add(RocksDbWeight::get().writes(4 as u64))200 .saturating_add(RocksDbWeight::get().writes((2 as u64).saturating_mul(s as u64)))201 }202 // Storage: Scheduler Agenda (r:1 w:1)203 // Storage: System Account (r:1 w:1)204 // Storage: System AllExtrinsicsLen (r:1 w:1)205 // Storage: System BlockWeight (r:1 w:1)206 // Storage: Scheduler Lookup (r:0 w:1)207 fn on_initialize_named_resolved(s: u32, ) -> Weight {208 Weight::from_ref_time(23_941_000)209 // Standard Error: 17_000210 .saturating_add(Weight::from_ref_time(5_282_000).saturating_mul(s as u64))211 .saturating_add(RocksDbWeight::get().reads(4 as u64))212 .saturating_add(RocksDbWeight::get().writes(4 as u64))213 .saturating_add(RocksDbWeight::get().writes((1 as u64).saturating_mul(s as u64)))214 }215 // Storage: Scheduler Agenda (r:2 w:2)216 // Storage: System Account (r:1 w:1)217 // Storage: System AllExtrinsicsLen (r:1 w:1)218 // Storage: System BlockWeight (r:1 w:1)219 // Storage: Scheduler Lookup (r:0 w:1)220 fn on_initialize_periodic(s: u32, ) -> Weight {221 Weight::from_ref_time(24_858_000)222 // Standard Error: 7_000223 .saturating_add(Weight::from_ref_time(8_657_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:2 w:2)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: Scheduler Lookup (r:0 w:1)234 fn on_initialize_periodic_resolved(s: u32, ) -> Weight {235 Weight::from_ref_time(25_515_000)236 // Standard Error: 14_000237 .saturating_add(Weight::from_ref_time(8_656_000).saturating_mul(s as u64))238 .saturating_add(RocksDbWeight::get().reads(4 as u64))239 .saturating_add(RocksDbWeight::get().reads((1 as u64).saturating_mul(s as u64)))240 .saturating_add(RocksDbWeight::get().writes(4 as u64))241 .saturating_add(RocksDbWeight::get().writes((2 as u64).saturating_mul(s as u64)))242 }243 // Storage: Scheduler Agenda (r:2 w:2)244 // Storage: Scheduler Lookup (r:0 w:1)245 fn on_initialize_aborted(s: u32, ) -> Weight {246 Weight::from_ref_time(7_584_000)247 // Standard Error: 1_000248 .saturating_add(Weight::from_ref_time(2_065_000).saturating_mul(s as u64))249 .saturating_add(RocksDbWeight::get().reads(2 as u64))250 .saturating_add(RocksDbWeight::get().writes(2 as u64))251 .saturating_add(RocksDbWeight::get().writes((1 as u64).saturating_mul(s as u64)))252 }253 // Storage: Scheduler Agenda (r:1 w:1)254 // Storage: System Account (r:1 w:1)255 // Storage: System AllExtrinsicsLen (r:1 w:1)256 // Storage: System BlockWeight (r:1 w:1)257 // Storage: Scheduler Lookup (r:0 w:1)258 fn on_initialize_named_aborted(s: u32, ) -> Weight {259 Weight::from_ref_time(25_552_000)260 // Standard Error: 4_000261 .saturating_add(Weight::from_ref_time(5_187_000).saturating_mul(s as u64))262 .saturating_add(RocksDbWeight::get().reads(4 as u64))263 .saturating_add(RocksDbWeight::get().writes(4 as u64))264 .saturating_add(RocksDbWeight::get().writes((1 as u64).saturating_mul(s as u64)))265 }266 // Storage: Scheduler Agenda (r:2 w:2)267 // Storage: Scheduler Lookup (r:0 w:1)268 fn on_initialize_named(s: u32, ) -> Weight {269 Weight::from_ref_time(8_980_000)270 // Standard Error: 12_000271 .saturating_add(Weight::from_ref_time(2_050_000).saturating_mul(s as u64))272 .saturating_add(RocksDbWeight::get().reads(2 as u64))273 .saturating_add(RocksDbWeight::get().writes(2 as u64))274 .saturating_add(RocksDbWeight::get().writes((1 as u64).saturating_mul(s as u64)))275 }276 // Storage: Scheduler Agenda (r:1 w:1)277 // Storage: System Account (r:1 w:1)278 // Storage: System AllExtrinsicsLen (r:1 w:1)279 // Storage: System BlockWeight (r:1 w:1)280 // Storage: Scheduler Lookup (r:0 w:1)281 fn on_initialize(s: u32, ) -> Weight {282 Weight::from_ref_time(24_482_000)283 // Standard Error: 4_000284 .saturating_add(Weight::from_ref_time(5_249_000).saturating_mul(s as u64))285 .saturating_add(RocksDbWeight::get().reads(4 as u64))286 .saturating_add(RocksDbWeight::get().writes(4 as u64))287 .saturating_add(RocksDbWeight::get().writes((1 as u64).saturating_mul(s as u64)))288 }289 // Storage: Scheduler Agenda (r:1 w:1)290 // Storage: System Account (r:1 w:1)291 // Storage: System AllExtrinsicsLen (r:1 w:1)292 // Storage: System BlockWeight (r:1 w:1)293 // Storage: Scheduler Lookup (r:0 w:1)294 fn on_initialize_resolved(s: u32, ) -> Weight {295 Weight::from_ref_time(25_187_000)296 // Standard Error: 4_000297 .saturating_add(Weight::from_ref_time(5_216_000).saturating_mul(s as u64))298 .saturating_add(RocksDbWeight::get().reads(4 as u64))299 .saturating_add(RocksDbWeight::get().writes(4 as u64))300 .saturating_add(RocksDbWeight::get().writes((1 as u64).saturating_mul(s as u64)))301 }302 // Storage: Scheduler Lookup (r:1 w:1)303 // Storage: Scheduler Agenda (r:1 w:1)304 fn schedule_named(s: u32, ) -> Weight {305 Weight::from_ref_time(17_316_000)306 // Standard Error: 3_000307 .saturating_add(Weight::from_ref_time(82_000).saturating_mul(s as u64))308 .saturating_add(RocksDbWeight::get().reads(2 as u64))309 .saturating_add(RocksDbWeight::get().writes(2 as u64))310 }311 // Storage: Scheduler Lookup (r:1 w:1)312 // Storage: Scheduler Agenda (r:1 w:1)313 fn cancel_named(s: u32, ) -> Weight {314 Weight::from_ref_time(15_652_000)315 // Standard Error: 1_000316 .saturating_add(Weight::from_ref_time(436_000).saturating_mul(s as u64))317 .saturating_add(RocksDbWeight::get().reads(2 as u64))318 .saturating_add(RocksDbWeight::get().writes(2 as u64))319 }320}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}