From 291b1315e4ab18e1b1518d26b04dfbc12341b25c Mon Sep 17 00:00:00 2001 From: Daniel Shiposha Date: Fri, 16 Sep 2022 13:58:45 +0000 Subject: [PATCH] chore: add draft scheduler weights --- --- a/pallets/scheduler/src/weights.rs +++ b/pallets/scheduler/src/weights.rs @@ -3,7 +3,7 @@ //! Autogenerated weights for pallet_unique_scheduler //! //! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev -//! DATE: 2022-08-15, STEPS: `50`, REPEAT: 80, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! DATE: 2022-09-14, STEPS: `50`, REPEAT: 80, LOW RANGE: `[]`, HIGH RANGE: `[]` //! EXECUTION: None, WASM-EXECUTION: Compiled, CHAIN: None, DB CACHE: 1024 // Executed Command: @@ -26,6 +26,7 @@ #![cfg_attr(rustfmt, rustfmt_skip)] #![allow(unused_parens)] #![allow(unused_imports)] +#![allow(missing_docs)] #![allow(clippy::unnecessary_cast)] use frame_support::{traits::Get, weights::{Weight, constants::RocksDbWeight}}; @@ -44,6 +45,7 @@ fn on_initialize_resolved(s: u32, ) -> Weight; fn schedule_named(s: u32, ) -> Weight; fn cancel_named(s: u32, ) -> Weight; + fn change_named_priority(s: u32, ) -> Weight; } /// Weights for pallet_unique_scheduler using the Substrate node and recommended hardware. @@ -53,7 +55,9 @@ // Storage: System Account (r:1 w:1) // Storage: System AllExtrinsicsLen (r:1 w:1) // Storage: System BlockWeight (r:1 w:1) - // Storage: Scheduler Lookup (r:0 w:1) + // Storage: Configuration WeightToFeeCoefficientOverride (r:1 w:0) + // Storage: TransactionPayment NextFeeMultiplier (r:1 w:0) + // Storage: Scheduler Lookup (r:1 w:1) fn on_initialize_periodic_named_resolved(s: u32, ) -> Weight { Weight::from_ref_time(26_641_000) // Standard Error: 9_000 @@ -67,6 +71,8 @@ // Storage: System Account (r:1 w:1) // Storage: System AllExtrinsicsLen (r:1 w:1) // Storage: System BlockWeight (r:1 w:1) + // Storage: Configuration WeightToFeeCoefficientOverride (r:1 w:0) + // Storage: TransactionPayment NextFeeMultiplier (r:1 w:0) // Storage: Scheduler Lookup (r:0 w:1) fn on_initialize_named_resolved(s: u32, ) -> Weight { Weight::from_ref_time(23_941_000) @@ -80,7 +86,9 @@ // Storage: System Account (r:1 w:1) // Storage: System AllExtrinsicsLen (r:1 w:1) // Storage: System BlockWeight (r:1 w:1) - // Storage: Scheduler Lookup (r:0 w:1) + // Storage: Configuration WeightToFeeCoefficientOverride (r:1 w:0) + // Storage: TransactionPayment NextFeeMultiplier (r:1 w:0) + // Storage: Scheduler Lookup (r:1 w:1) fn on_initialize_periodic(s: u32, ) -> Weight { Weight::from_ref_time(24_858_000) // Standard Error: 7_000 @@ -94,7 +102,9 @@ // Storage: System Account (r:1 w:1) // Storage: System AllExtrinsicsLen (r:1 w:1) // Storage: System BlockWeight (r:1 w:1) - // Storage: Scheduler Lookup (r:0 w:1) + // Storage: Configuration WeightToFeeCoefficientOverride (r:1 w:0) + // Storage: TransactionPayment NextFeeMultiplier (r:1 w:0) + // Storage: Scheduler Lookup (r:1 w:1) fn on_initialize_periodic_resolved(s: u32, ) -> Weight { Weight::from_ref_time(25_515_000) // Standard Error: 14_000 @@ -118,6 +128,8 @@ // Storage: System Account (r:1 w:1) // Storage: System AllExtrinsicsLen (r:1 w:1) // Storage: System BlockWeight (r:1 w:1) + // Storage: Configuration WeightToFeeCoefficientOverride (r:1 w:0) + // Storage: TransactionPayment NextFeeMultiplier (r:1 w:0) // Storage: Scheduler Lookup (r:0 w:1) fn on_initialize_named_aborted(s: u32, ) -> Weight { Weight::from_ref_time(25_552_000) @@ -141,6 +153,8 @@ // Storage: System Account (r:1 w:1) // Storage: System AllExtrinsicsLen (r:1 w:1) // Storage: System BlockWeight (r:1 w:1) + // Storage: Configuration WeightToFeeCoefficientOverride (r:1 w:0) + // Storage: TransactionPayment NextFeeMultiplier (r:1 w:0) // Storage: Scheduler Lookup (r:0 w:1) fn on_initialize(s: u32, ) -> Weight { Weight::from_ref_time(24_482_000) @@ -154,6 +168,8 @@ // Storage: System Account (r:1 w:1) // Storage: System AllExtrinsicsLen (r:1 w:1) // Storage: System BlockWeight (r:1 w:1) + // Storage: Configuration WeightToFeeCoefficientOverride (r:1 w:0) + // Storage: TransactionPayment NextFeeMultiplier (r:1 w:0) // Storage: Scheduler Lookup (r:0 w:1) fn on_initialize_resolved(s: u32, ) -> Weight { Weight::from_ref_time(25_187_000) @@ -181,6 +197,15 @@ .saturating_add(T::DbWeight::get().reads(2 as u64)) .saturating_add(T::DbWeight::get().writes(2 as u64)) } + // Storage: Scheduler Lookup (r:1 w:1) + // Storage: Scheduler Agenda (r:1 w:1) + fn change_named_priority(s: u32, ) -> Weight { + Weight::from_ref_time(8_642_000) + // Standard Error: 0 + .saturating_add(Weight::from_ref_time(431_000).saturating_mul(s as u64)) + .saturating_add(T::DbWeight::get().reads(2 as u64)) + .saturating_add(T::DbWeight::get().writes(2 as u64)) + } } // For backwards compatibility and tests @@ -189,7 +214,9 @@ // Storage: System Account (r:1 w:1) // Storage: System AllExtrinsicsLen (r:1 w:1) // Storage: System BlockWeight (r:1 w:1) - // Storage: Scheduler Lookup (r:0 w:1) + // Storage: Configuration WeightToFeeCoefficientOverride (r:1 w:0) + // Storage: TransactionPayment NextFeeMultiplier (r:1 w:0) + // Storage: Scheduler Lookup (r:1 w:1) fn on_initialize_periodic_named_resolved(s: u32, ) -> Weight { Weight::from_ref_time(26_641_000) // Standard Error: 9_000 @@ -203,6 +230,8 @@ // Storage: System Account (r:1 w:1) // Storage: System AllExtrinsicsLen (r:1 w:1) // Storage: System BlockWeight (r:1 w:1) + // Storage: Configuration WeightToFeeCoefficientOverride (r:1 w:0) + // Storage: TransactionPayment NextFeeMultiplier (r:1 w:0) // Storage: Scheduler Lookup (r:0 w:1) fn on_initialize_named_resolved(s: u32, ) -> Weight { Weight::from_ref_time(23_941_000) @@ -216,7 +245,9 @@ // Storage: System Account (r:1 w:1) // Storage: System AllExtrinsicsLen (r:1 w:1) // Storage: System BlockWeight (r:1 w:1) - // Storage: Scheduler Lookup (r:0 w:1) + // Storage: Configuration WeightToFeeCoefficientOverride (r:1 w:0) + // Storage: TransactionPayment NextFeeMultiplier (r:1 w:0) + // Storage: Scheduler Lookup (r:1 w:1) fn on_initialize_periodic(s: u32, ) -> Weight { Weight::from_ref_time(24_858_000) // Standard Error: 7_000 @@ -230,7 +261,9 @@ // Storage: System Account (r:1 w:1) // Storage: System AllExtrinsicsLen (r:1 w:1) // Storage: System BlockWeight (r:1 w:1) - // Storage: Scheduler Lookup (r:0 w:1) + // Storage: Configuration WeightToFeeCoefficientOverride (r:1 w:0) + // Storage: TransactionPayment NextFeeMultiplier (r:1 w:0) + // Storage: Scheduler Lookup (r:1 w:1) fn on_initialize_periodic_resolved(s: u32, ) -> Weight { Weight::from_ref_time(25_515_000) // Standard Error: 14_000 @@ -254,6 +287,8 @@ // Storage: System Account (r:1 w:1) // Storage: System AllExtrinsicsLen (r:1 w:1) // Storage: System BlockWeight (r:1 w:1) + // Storage: Configuration WeightToFeeCoefficientOverride (r:1 w:0) + // Storage: TransactionPayment NextFeeMultiplier (r:1 w:0) // Storage: Scheduler Lookup (r:0 w:1) fn on_initialize_named_aborted(s: u32, ) -> Weight { Weight::from_ref_time(25_552_000) @@ -277,6 +312,8 @@ // Storage: System Account (r:1 w:1) // Storage: System AllExtrinsicsLen (r:1 w:1) // Storage: System BlockWeight (r:1 w:1) + // Storage: Configuration WeightToFeeCoefficientOverride (r:1 w:0) + // Storage: TransactionPayment NextFeeMultiplier (r:1 w:0) // Storage: Scheduler Lookup (r:0 w:1) fn on_initialize(s: u32, ) -> Weight { Weight::from_ref_time(24_482_000) @@ -290,6 +327,8 @@ // Storage: System Account (r:1 w:1) // Storage: System AllExtrinsicsLen (r:1 w:1) // Storage: System BlockWeight (r:1 w:1) + // Storage: Configuration WeightToFeeCoefficientOverride (r:1 w:0) + // Storage: TransactionPayment NextFeeMultiplier (r:1 w:0) // Storage: Scheduler Lookup (r:0 w:1) fn on_initialize_resolved(s: u32, ) -> Weight { Weight::from_ref_time(25_187_000) @@ -317,4 +356,14 @@ .saturating_add(RocksDbWeight::get().reads(2 as u64)) .saturating_add(RocksDbWeight::get().writes(2 as u64)) } + + // Storage: Scheduler Lookup (r:1 w:1) + // Storage: Scheduler Agenda (r:1 w:1) + fn change_named_priority(s: u32, ) -> Weight { + Weight::from_ref_time(8_642_000) + // Standard Error: 0 + .saturating_add(Weight::from_ref_time(431_000).saturating_mul(s as u64)) + .saturating_add(RocksDbWeight::get().reads(2 as u64)) + .saturating_add(RocksDbWeight::get().writes(2 as u64)) + } } -- gitstuff