difftreelog
fix bench scheduler v2
in: master
1 file changed
pallets/scheduler-v2/src/weights.rsdiffbeforeafterboth1// Template adopted from https://github.com/paritytech/substrate/blob/master/.maintain/frame-weight-template.hbs23//! Autogenerated weights for pallet_unique_scheduler_v24//!5//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev6//! DATE: 2022-10-28, 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-scheduler-v215// --wasm-execution16// compiled17// --extrinsic18// *19// --template20// .maintain/frame-weight-template.hbs21// --steps=5022// --repeat=8023// --heap-pages=409624// --output=./pallets/scheduler-v2/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_v2.36pub trait WeightInfo {37 fn service_agendas_base() -> Weight;38 fn service_agenda_base(s: u32, ) -> Weight;39 fn service_task_base() -> Weight;40 fn service_task_named() -> Weight;41 fn service_task_periodic() -> Weight;42 fn execute_dispatch_signed() -> Weight;43 fn execute_dispatch_unsigned() -> Weight;44 fn schedule(s: u32, ) -> Weight;45 fn cancel(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_v2 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 IncompleteSince (r:1 w:1)55 fn service_agendas_base() -> Weight {56 Weight::from_ref_time(5_253_000 as u64)57 .saturating_add(T::DbWeight::get().reads(1 as u64))58 .saturating_add(T::DbWeight::get().writes(1 as u64))59 }60 // Storage: Scheduler Agenda (r:1 w:1)61 fn service_agenda_base(s: u32, ) -> Weight {62 Weight::from_ref_time(3_858_000 as u64)63 // Standard Error: 2_61764 .saturating_add(Weight::from_ref_time(579_704 as u64).saturating_mul(s as u64))65 .saturating_add(T::DbWeight::get().reads(1 as u64))66 .saturating_add(T::DbWeight::get().writes(1 as u64))67 }68 // Storage: System LastRuntimeUpgrade (r:1 w:0)69 fn service_task_base() -> Weight {70 Weight::from_ref_time(10_536_000 as u64)71 .saturating_add(T::DbWeight::get().reads(1 as u64))72 }73 // Storage: System LastRuntimeUpgrade (r:1 w:0)74 // Storage: Scheduler Lookup (r:0 w:1)75 fn service_task_named() -> Weight {76 Weight::from_ref_time(12_018_000 as u64)77 .saturating_add(T::DbWeight::get().reads(1 as u64))78 .saturating_add(T::DbWeight::get().writes(1 as u64))79 }80 // Storage: System LastRuntimeUpgrade (r:1 w:0)81 fn service_task_periodic() -> Weight {82 Weight::from_ref_time(10_669_000 as u64)83 .saturating_add(T::DbWeight::get().reads(1 as u64))84 }85 // Storage: System Account (r:1 w:1)86 // Storage: System AllExtrinsicsLen (r:1 w:1)87 // Storage: System BlockWeight (r:1 w:1)88 // Storage: Configuration WeightToFeeCoefficientOverride (r:1 w:0)89 // Storage: TransactionPayment NextFeeMultiplier (r:1 w:0)90 fn execute_dispatch_signed() -> Weight {91 Weight::from_ref_time(36_083_000 as u64)92 .saturating_add(T::DbWeight::get().reads(5 as u64))93 .saturating_add(T::DbWeight::get().writes(3 as u64))94 }95 fn execute_dispatch_unsigned() -> Weight {96 Weight::from_ref_time(4_386_000 as u64)97 }98 // Storage: Scheduler Agenda (r:1 w:1)99 fn schedule(s: u32, ) -> Weight {100 Weight::from_ref_time(17_257_000 as u64)101 // Standard Error: 2_791102 .saturating_add(Weight::from_ref_time(574_832 as u64).saturating_mul(s as u64))103 .saturating_add(T::DbWeight::get().reads(1 as u64))104 .saturating_add(T::DbWeight::get().writes(1 as u64))105 }106 // Storage: Scheduler Agenda (r:1 w:1)107 // Storage: Scheduler Lookup (r:0 w:1)108 fn cancel(s: u32, ) -> Weight {109 Weight::from_ref_time(19_803_000 as u64)110 // Standard Error: 1_177111 .saturating_add(Weight::from_ref_time(475_027 as u64).saturating_mul(s as u64))112 .saturating_add(T::DbWeight::get().reads(1 as u64))113 .saturating_add(T::DbWeight::get().writes(2 as u64))114 }115 // Storage: Scheduler Lookup (r:1 w:1)116 // Storage: Scheduler Agenda (r:1 w:1)117 fn schedule_named(s: u32, ) -> Weight {118 Weight::from_ref_time(18_746_000 as u64)119 // Standard Error: 2_997120 .saturating_add(Weight::from_ref_time(635_697 as u64).saturating_mul(s as u64))121 .saturating_add(T::DbWeight::get().reads(2 as u64))122 .saturating_add(T::DbWeight::get().writes(2 as u64))123 }124 // Storage: Scheduler Lookup (r:1 w:1)125 // Storage: Scheduler Agenda (r:1 w:1)126 fn cancel_named(s: u32, ) -> Weight {127 Weight::from_ref_time(20_983_000 as u64)128 // Standard Error: 1_850129 .saturating_add(Weight::from_ref_time(518_812 as u64).saturating_mul(s as u64))130 .saturating_add(T::DbWeight::get().reads(2 as u64))131 .saturating_add(T::DbWeight::get().writes(2 as u64))132 }133 // Storage: Scheduler Lookup (r:1 w:0)134 // Storage: Scheduler Agenda (r:1 w:1)135 fn change_named_priority(s: u32, ) -> Weight {136 Weight::from_ref_time(21_591_000 as u64)137 // Standard Error: 4_187138 .saturating_add(Weight::from_ref_time(531_231 as u64).saturating_mul(s as u64))139 .saturating_add(T::DbWeight::get().reads(2 as u64))140 .saturating_add(T::DbWeight::get().writes(1 as u64))141 }142}143144// For backwards compatibility and tests145impl WeightInfo for () {146 // Storage: Scheduler IncompleteSince (r:1 w:1)147 fn service_agendas_base() -> Weight {148 Weight::from_ref_time(5_253_000 as u64)149 .saturating_add(RocksDbWeight::get().reads(1 as u64))150 .saturating_add(RocksDbWeight::get().writes(1 as u64))151 }152 // Storage: Scheduler Agenda (r:1 w:1)153 fn service_agenda_base(s: u32, ) -> Weight {154 Weight::from_ref_time(3_858_000 as u64)155 // Standard Error: 2_617156 .saturating_add(Weight::from_ref_time(579_704 as u64).saturating_mul(s as u64))157 .saturating_add(RocksDbWeight::get().reads(1 as u64))158 .saturating_add(RocksDbWeight::get().writes(1 as u64))159 }160 // Storage: System LastRuntimeUpgrade (r:1 w:0)161 fn service_task_base() -> Weight {162 Weight::from_ref_time(10_536_000 as u64)163 .saturating_add(RocksDbWeight::get().reads(1 as u64))164 }165 // Storage: System LastRuntimeUpgrade (r:1 w:0)166 // Storage: Scheduler Lookup (r:0 w:1)167 fn service_task_named() -> Weight {168 Weight::from_ref_time(12_018_000 as u64)169 .saturating_add(RocksDbWeight::get().reads(1 as u64))170 .saturating_add(RocksDbWeight::get().writes(1 as u64))171 }172 // Storage: System LastRuntimeUpgrade (r:1 w:0)173 fn service_task_periodic() -> Weight {174 Weight::from_ref_time(10_669_000 as u64)175 .saturating_add(RocksDbWeight::get().reads(1 as u64))176 }177 // Storage: System Account (r:1 w:1)178 // Storage: System AllExtrinsicsLen (r:1 w:1)179 // Storage: System BlockWeight (r:1 w:1)180 // Storage: Configuration WeightToFeeCoefficientOverride (r:1 w:0)181 // Storage: TransactionPayment NextFeeMultiplier (r:1 w:0)182 fn execute_dispatch_signed() -> Weight {183 Weight::from_ref_time(36_083_000 as u64)184 .saturating_add(RocksDbWeight::get().reads(5 as u64))185 .saturating_add(RocksDbWeight::get().writes(3 as u64))186 }187 fn execute_dispatch_unsigned() -> Weight {188 Weight::from_ref_time(4_386_000 as u64)189 }190 // Storage: Scheduler Agenda (r:1 w:1)191 fn schedule(s: u32, ) -> Weight {192 Weight::from_ref_time(17_257_000 as u64)193 // Standard Error: 2_791194 .saturating_add(Weight::from_ref_time(574_832 as u64).saturating_mul(s as u64))195 .saturating_add(RocksDbWeight::get().reads(1 as u64))196 .saturating_add(RocksDbWeight::get().writes(1 as u64))197 }198 // Storage: Scheduler Agenda (r:1 w:1)199 // Storage: Scheduler Lookup (r:0 w:1)200 fn cancel(s: u32, ) -> Weight {201 Weight::from_ref_time(19_803_000 as u64)202 // Standard Error: 1_177203 .saturating_add(Weight::from_ref_time(475_027 as u64).saturating_mul(s as u64))204 .saturating_add(RocksDbWeight::get().reads(1 as u64))205 .saturating_add(RocksDbWeight::get().writes(2 as u64))206 }207 // Storage: Scheduler Lookup (r:1 w:1)208 // Storage: Scheduler Agenda (r:1 w:1)209 fn schedule_named(s: u32, ) -> Weight {210 Weight::from_ref_time(18_746_000 as u64)211 // Standard Error: 2_997212 .saturating_add(Weight::from_ref_time(635_697 as u64).saturating_mul(s as u64))213 .saturating_add(RocksDbWeight::get().reads(2 as u64))214 .saturating_add(RocksDbWeight::get().writes(2 as u64))215 }216 // Storage: Scheduler Lookup (r:1 w:1)217 // Storage: Scheduler Agenda (r:1 w:1)218 fn cancel_named(s: u32, ) -> Weight {219 Weight::from_ref_time(20_983_000 as u64)220 // Standard Error: 1_850221 .saturating_add(Weight::from_ref_time(518_812 as u64).saturating_mul(s as u64))222 .saturating_add(RocksDbWeight::get().reads(2 as u64))223 .saturating_add(RocksDbWeight::get().writes(2 as u64))224 }225 // Storage: Scheduler Lookup (r:1 w:0)226 // Storage: Scheduler Agenda (r:1 w:1)227 fn change_named_priority(s: u32, ) -> Weight {228 Weight::from_ref_time(21_591_000 as u64)229 // Standard Error: 4_187230 .saturating_add(Weight::from_ref_time(531_231 as u64).saturating_mul(s as u64))231 .saturating_add(RocksDbWeight::get().reads(2 as u64))232 .saturating_add(RocksDbWeight::get().writes(1 as u64))233 }234}