diff --git a/pallets/collator-selection/src/weights.rs b/pallets/collator-selection/src/weights.rs index 1a89e8d052..95ae3a2835 100644 --- a/pallets/collator-selection/src/weights.rs +++ b/pallets/collator-selection/src/weights.rs @@ -1,3 +1,4 @@ + // This file is part of Astar. // Copyright (C) 2019-2023 Stake Technologies Pte.Ltd. @@ -15,19 +16,19 @@ // See the License for the specific language governing permissions and // limitations under the License. - //! Autogenerated weights for pallet_collator_selection //! //! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev -//! DATE: 2023-04-04, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]` -//! HOSTNAME: `devserver-01`, CPU: `Intel(R) Xeon(R) E-2236 CPU @ 3.40GHz` -//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("shibuya-dev"), DB CACHE: 1024 +//! DATE: 2024-02-06, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! WORST CASE MAP SIZE: `1000000` +//! HOSTNAME: `gh-runner-01-ovh`, CPU: `Intel(R) Xeon(R) E-2236 CPU @ 3.40GHz` +//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("shiden-dev"), DB CACHE: 1024 // Executed Command: // ./target/release/astar-collator // benchmark // pallet -// --chain=shibuya-dev +// --chain=shiden-dev // --steps=50 // --repeat=20 // --pallet=pallet_collator_selection @@ -35,7 +36,7 @@ // --execution=wasm // --wasm-execution=compiled // --heap-pages=4096 -// --output=./benchmark-results/collator_selection_weights.rs +// --output=./benchmark-results/shiden-dev/collator_selection_weights.rs // --template=./scripts/templates/weight-template.hbs #![cfg_attr(rustfmt, rustfmt_skip)] @@ -43,7 +44,7 @@ #![allow(unused_imports)] use frame_support::{traits::Get, weights::{Weight, constants::RocksDbWeight}}; -use sp_std::marker::PhantomData; +use core::marker::PhantomData; /// Weight functions needed for pallet_collator_selection. pub trait WeightInfo { @@ -59,216 +60,248 @@ pub trait WeightInfo { /// Weights for pallet_collator_selection using the Substrate node and recommended hardware. pub struct SubstrateWeight(PhantomData); impl WeightInfo for SubstrateWeight { - // Storage: Session NextKeys (r:48 w:0) - // Proof Skipped: Session NextKeys (max_values: None, max_size: None, mode: Measured) - // Storage: CollatorSelection Invulnerables (r:0 w:1) - // Proof Skipped: CollatorSelection Invulnerables (max_values: Some(1), max_size: None, mode: Measured) + /// Storage: Session NextKeys (r:48 w:0) + /// Proof Skipped: Session NextKeys (max_values: None, max_size: None, mode: Measured) + /// Storage: CollatorSelection Invulnerables (r:0 w:1) + /// Proof Skipped: CollatorSelection Invulnerables (max_values: Some(1), max_size: None, mode: Measured) /// The range of component `b` is `[1, 48]`. fn set_invulnerables(b: u32, ) -> Weight { - // Minimum execution time: 14_956 nanoseconds. - Weight::from_parts(15_730_242, 0) - .saturating_add(Weight::from_parts(0, 408)) - // Standard Error: 4_959 - .saturating_add(Weight::from_parts(2_577_606, 0).saturating_mul(b.into())) + // Proof Size summary in bytes: + // Measured: `204 + b * (79 ±0)` + // Estimated: `1194 + b * (2554 ±0)` + // Minimum execution time: 13_733_000 picoseconds. + Weight::from_parts(14_576_858, 1194) + // Standard Error: 4_742 + .saturating_add(Weight::from_parts(2_507_115, 0).saturating_mul(b.into())) .saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(b.into()))) .saturating_add(T::DbWeight::get().writes(1_u64)) - .saturating_add(Weight::from_parts(0, 2633).saturating_mul(b.into())) + .saturating_add(Weight::from_parts(0, 2554).saturating_mul(b.into())) } - // Storage: CollatorSelection DesiredCandidates (r:0 w:1) - // Proof Skipped: CollatorSelection DesiredCandidates (max_values: Some(1), max_size: None, mode: Measured) + /// Storage: CollatorSelection DesiredCandidates (r:0 w:1) + /// Proof Skipped: CollatorSelection DesiredCandidates (max_values: Some(1), max_size: None, mode: Measured) fn set_desired_candidates() -> Weight { - // Minimum execution time: 7_042 nanoseconds. - Weight::from_parts(7_159_000, 0) - .saturating_add(Weight::from_parts(0, 0)) + // Proof Size summary in bytes: + // Measured: `0` + // Estimated: `0` + // Minimum execution time: 7_143_000 picoseconds. + Weight::from_parts(7_357_000, 0) .saturating_add(T::DbWeight::get().writes(1_u64)) } - // Storage: CollatorSelection CandidacyBond (r:0 w:1) - // Proof Skipped: CollatorSelection CandidacyBond (max_values: Some(1), max_size: None, mode: Measured) + /// Storage: CollatorSelection CandidacyBond (r:0 w:1) + /// Proof Skipped: CollatorSelection CandidacyBond (max_values: Some(1), max_size: None, mode: Measured) fn set_candidacy_bond() -> Weight { - // Minimum execution time: 7_245 nanoseconds. - Weight::from_parts(7_395_000, 0) - .saturating_add(Weight::from_parts(0, 0)) + // Proof Size summary in bytes: + // Measured: `0` + // Estimated: `0` + // Minimum execution time: 7_292_000 picoseconds. + Weight::from_parts(7_433_000, 0) .saturating_add(T::DbWeight::get().writes(1_u64)) } - // Storage: CollatorSelection Candidates (r:1 w:1) - // Proof Skipped: CollatorSelection Candidates (max_values: Some(1), max_size: None, mode: Measured) - // Storage: CollatorSelection DesiredCandidates (r:1 w:0) - // Proof Skipped: CollatorSelection DesiredCandidates (max_values: Some(1), max_size: None, mode: Measured) - // Storage: CollatorSelection Invulnerables (r:1 w:0) - // Proof Skipped: CollatorSelection Invulnerables (max_values: Some(1), max_size: None, mode: Measured) - // Storage: Session NextKeys (r:1 w:0) - // Proof Skipped: Session NextKeys (max_values: None, max_size: None, mode: Measured) - // Storage: CollatorSelection CandidacyBond (r:1 w:0) - // Proof Skipped: CollatorSelection CandidacyBond (max_values: Some(1), max_size: None, mode: Measured) - // Storage: CollatorSelection LastAuthoredBlock (r:0 w:1) - // Proof Skipped: CollatorSelection LastAuthoredBlock (max_values: None, max_size: None, mode: Measured) + /// Storage: CollatorSelection Candidates (r:1 w:1) + /// Proof Skipped: CollatorSelection Candidates (max_values: Some(1), max_size: None, mode: Measured) + /// Storage: CollatorSelection DesiredCandidates (r:1 w:0) + /// Proof Skipped: CollatorSelection DesiredCandidates (max_values: Some(1), max_size: None, mode: Measured) + /// Storage: CollatorSelection Invulnerables (r:1 w:0) + /// Proof Skipped: CollatorSelection Invulnerables (max_values: Some(1), max_size: None, mode: Measured) + /// Storage: DappStaking Ledger (r:1 w:0) + /// Proof: DappStaking Ledger (max_values: None, max_size: Some(310), added: 2785, mode: MaxEncodedLen) + /// Storage: Session NextKeys (r:1 w:0) + /// Proof Skipped: Session NextKeys (max_values: None, max_size: None, mode: Measured) + /// Storage: CollatorSelection CandidacyBond (r:1 w:0) + /// Proof Skipped: CollatorSelection CandidacyBond (max_values: Some(1), max_size: None, mode: Measured) + /// Storage: CollatorSelection LastAuthoredBlock (r:0 w:1) + /// Proof Skipped: CollatorSelection LastAuthoredBlock (max_values: None, max_size: None, mode: Measured) /// The range of component `c` is `[1, 148]`. fn register_as_candidate(c: u32, ) -> Weight { - // Minimum execution time: 39_356 nanoseconds. - Weight::from_parts(42_616_377, 0) - .saturating_add(Weight::from_parts(0, 9891)) - // Standard Error: 670 - .saturating_add(Weight::from_parts(39_880, 0).saturating_mul(c.into())) - .saturating_add(T::DbWeight::get().reads(5_u64)) + // Proof Size summary in bytes: + // Measured: `962 + c * (50 ±0)` + // Estimated: `4307 + c * (51 ±0)` + // Minimum execution time: 44_695_000 picoseconds. + Weight::from_parts(46_834_255, 4307) + // Standard Error: 586 + .saturating_add(Weight::from_parts(44_873, 0).saturating_mul(c.into())) + .saturating_add(T::DbWeight::get().reads(6_u64)) .saturating_add(T::DbWeight::get().writes(2_u64)) - .saturating_add(Weight::from_parts(0, 306).saturating_mul(c.into())) + .saturating_add(Weight::from_parts(0, 51).saturating_mul(c.into())) } - // Storage: CollatorSelection Candidates (r:1 w:1) - // Proof Skipped: CollatorSelection Candidates (max_values: Some(1), max_size: None, mode: Measured) - // Storage: CollatorSelection LastAuthoredBlock (r:0 w:1) - // Proof Skipped: CollatorSelection LastAuthoredBlock (max_values: None, max_size: None, mode: Measured) + /// Storage: CollatorSelection Candidates (r:1 w:1) + /// Proof Skipped: CollatorSelection Candidates (max_values: Some(1), max_size: None, mode: Measured) + /// Storage: CollatorSelection LastAuthoredBlock (r:0 w:1) + /// Proof Skipped: CollatorSelection LastAuthoredBlock (max_values: None, max_size: None, mode: Measured) /// The range of component `c` is `[6, 148]`. fn leave_intent(c: u32, ) -> Weight { - // Minimum execution time: 28_341 nanoseconds. - Weight::from_parts(30_119_984, 0) - .saturating_add(Weight::from_parts(0, 1369)) - // Standard Error: 1_581 - .saturating_add(Weight::from_parts(42_495, 0).saturating_mul(c.into())) + // Proof Size summary in bytes: + // Measured: `342 + c * (49 ±0)` + // Estimated: `1845 + c * (49 ±0)` + // Minimum execution time: 30_579_000 picoseconds. + Weight::from_parts(34_125_189, 1845) + // Standard Error: 1_048 + .saturating_add(Weight::from_parts(45_625, 0).saturating_mul(c.into())) .saturating_add(T::DbWeight::get().reads(1_u64)) .saturating_add(T::DbWeight::get().writes(2_u64)) - .saturating_add(Weight::from_parts(0, 98).saturating_mul(c.into())) + .saturating_add(Weight::from_parts(0, 49).saturating_mul(c.into())) } - // Storage: System Account (r:2 w:2) - // Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen) - // Storage: CollatorSelection LastAuthoredBlock (r:0 w:1) - // Proof Skipped: CollatorSelection LastAuthoredBlock (max_values: None, max_size: None, mode: Measured) + /// Storage: System Account (r:2 w:2) + /// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen) + /// Storage: CollatorSelection LastAuthoredBlock (r:0 w:1) + /// Proof Skipped: CollatorSelection LastAuthoredBlock (max_values: None, max_size: None, mode: Measured) fn note_author() -> Weight { - // Minimum execution time: 31_536 nanoseconds. - Weight::from_parts(31_986_000, 0) - .saturating_add(Weight::from_parts(0, 5497)) + // Proof Size summary in bytes: + // Measured: `226` + // Estimated: `6196` + // Minimum execution time: 43_377_000 picoseconds. + Weight::from_parts(43_827_000, 6196) .saturating_add(T::DbWeight::get().reads(2_u64)) .saturating_add(T::DbWeight::get().writes(3_u64)) } - // Storage: CollatorSelection Candidates (r:1 w:0) - // Proof Skipped: CollatorSelection Candidates (max_values: Some(1), max_size: None, mode: Measured) - // Storage: CollatorSelection LastAuthoredBlock (r:148 w:0) - // Proof Skipped: CollatorSelection LastAuthoredBlock (max_values: None, max_size: None, mode: Measured) - // Storage: CollatorSelection Invulnerables (r:1 w:0) - // Proof Skipped: CollatorSelection Invulnerables (max_values: Some(1), max_size: None, mode: Measured) - // Storage: System Account (r:143 w:143) - // Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen) - // Storage: CollatorSelection SlashDestination (r:1 w:0) - // Proof Skipped: CollatorSelection SlashDestination (max_values: Some(1), max_size: None, mode: Measured) + /// Storage: CollatorSelection Candidates (r:1 w:0) + /// Proof Skipped: CollatorSelection Candidates (max_values: Some(1), max_size: None, mode: Measured) + /// Storage: CollatorSelection LastAuthoredBlock (r:148 w:0) + /// Proof Skipped: CollatorSelection LastAuthoredBlock (max_values: None, max_size: None, mode: Measured) + /// Storage: CollatorSelection Invulnerables (r:1 w:0) + /// Proof Skipped: CollatorSelection Invulnerables (max_values: Some(1), max_size: None, mode: Measured) + /// Storage: System Account (r:143 w:143) + /// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen) + /// Storage: CollatorSelection SlashDestination (r:1 w:0) + /// Proof Skipped: CollatorSelection SlashDestination (max_values: Some(1), max_size: None, mode: Measured) /// The range of component `r` is `[1, 148]`. /// The range of component `c` is `[1, 148]`. fn new_session(r: u32, c: u32, ) -> Weight { - // Minimum execution time: 16_816 nanoseconds. - Weight::from_parts(17_132_000, 0) - .saturating_add(Weight::from_parts(0, 4714)) - // Standard Error: 475_405 - .saturating_add(Weight::from_parts(15_758_567, 0).saturating_mul(c.into())) + // Proof Size summary in bytes: + // Measured: `3902 + c * (97 ±0) + r * (112 ±0)` + // Estimated: `3818 + c * (2632 ±2) + r * (2599 ±0)` + // Minimum execution time: 17_957_000 picoseconds. + Weight::from_parts(18_201_000, 3818) + // Standard Error: 564_328 + .saturating_add(Weight::from_parts(18_024_338, 0).saturating_mul(c.into())) .saturating_add(T::DbWeight::get().reads(3_u64)) .saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(c.into()))) .saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(c.into()))) - .saturating_add(Weight::from_parts(0, 3131).saturating_mul(c.into())) - .saturating_add(Weight::from_parts(0, 2751).saturating_mul(r.into())) + .saturating_add(Weight::from_parts(0, 2632).saturating_mul(c.into())) + .saturating_add(Weight::from_parts(0, 2599).saturating_mul(r.into())) } } // For backwards compatibility and tests impl WeightInfo for () { - // Storage: Session NextKeys (r:48 w:0) - // Proof Skipped: Session NextKeys (max_values: None, max_size: None, mode: Measured) - // Storage: CollatorSelection Invulnerables (r:0 w:1) - // Proof Skipped: CollatorSelection Invulnerables (max_values: Some(1), max_size: None, mode: Measured) + /// Storage: Session NextKeys (r:48 w:0) + /// Proof Skipped: Session NextKeys (max_values: None, max_size: None, mode: Measured) + /// Storage: CollatorSelection Invulnerables (r:0 w:1) + /// Proof Skipped: CollatorSelection Invulnerables (max_values: Some(1), max_size: None, mode: Measured) /// The range of component `b` is `[1, 48]`. fn set_invulnerables(b: u32, ) -> Weight { - // Minimum execution time: 14_956 nanoseconds. - Weight::from_parts(15_730_242, 0) - .saturating_add(Weight::from_parts(0, 408)) - // Standard Error: 4_959 - .saturating_add(Weight::from_parts(2_577_606, 0).saturating_mul(b.into())) + // Proof Size summary in bytes: + // Measured: `204 + b * (79 ±0)` + // Estimated: `1194 + b * (2554 ±0)` + // Minimum execution time: 13_733_000 picoseconds. + Weight::from_parts(14_576_858, 1194) + // Standard Error: 4_742 + .saturating_add(Weight::from_parts(2_507_115, 0).saturating_mul(b.into())) .saturating_add(RocksDbWeight::get().reads((1_u64).saturating_mul(b.into()))) .saturating_add(RocksDbWeight::get().writes(1_u64)) - .saturating_add(Weight::from_parts(0, 2633).saturating_mul(b.into())) + .saturating_add(Weight::from_parts(0, 2554).saturating_mul(b.into())) } - // Storage: CollatorSelection DesiredCandidates (r:0 w:1) - // Proof Skipped: CollatorSelection DesiredCandidates (max_values: Some(1), max_size: None, mode: Measured) + /// Storage: CollatorSelection DesiredCandidates (r:0 w:1) + /// Proof Skipped: CollatorSelection DesiredCandidates (max_values: Some(1), max_size: None, mode: Measured) fn set_desired_candidates() -> Weight { - // Minimum execution time: 7_042 nanoseconds. - Weight::from_parts(7_159_000, 0) - .saturating_add(Weight::from_parts(0, 0)) + // Proof Size summary in bytes: + // Measured: `0` + // Estimated: `0` + // Minimum execution time: 7_143_000 picoseconds. + Weight::from_parts(7_357_000, 0) .saturating_add(RocksDbWeight::get().writes(1_u64)) } - // Storage: CollatorSelection CandidacyBond (r:0 w:1) - // Proof Skipped: CollatorSelection CandidacyBond (max_values: Some(1), max_size: None, mode: Measured) + /// Storage: CollatorSelection CandidacyBond (r:0 w:1) + /// Proof Skipped: CollatorSelection CandidacyBond (max_values: Some(1), max_size: None, mode: Measured) fn set_candidacy_bond() -> Weight { - // Minimum execution time: 7_245 nanoseconds. - Weight::from_parts(7_395_000, 0) - .saturating_add(Weight::from_parts(0, 0)) + // Proof Size summary in bytes: + // Measured: `0` + // Estimated: `0` + // Minimum execution time: 7_292_000 picoseconds. + Weight::from_parts(7_433_000, 0) .saturating_add(RocksDbWeight::get().writes(1_u64)) } - // Storage: CollatorSelection Candidates (r:1 w:1) - // Proof Skipped: CollatorSelection Candidates (max_values: Some(1), max_size: None, mode: Measured) - // Storage: CollatorSelection DesiredCandidates (r:1 w:0) - // Proof Skipped: CollatorSelection DesiredCandidates (max_values: Some(1), max_size: None, mode: Measured) - // Storage: CollatorSelection Invulnerables (r:1 w:0) - // Proof Skipped: CollatorSelection Invulnerables (max_values: Some(1), max_size: None, mode: Measured) - // Storage: Session NextKeys (r:1 w:0) - // Proof Skipped: Session NextKeys (max_values: None, max_size: None, mode: Measured) - // Storage: CollatorSelection CandidacyBond (r:1 w:0) - // Proof Skipped: CollatorSelection CandidacyBond (max_values: Some(1), max_size: None, mode: Measured) - // Storage: CollatorSelection LastAuthoredBlock (r:0 w:1) - // Proof Skipped: CollatorSelection LastAuthoredBlock (max_values: None, max_size: None, mode: Measured) + /// Storage: CollatorSelection Candidates (r:1 w:1) + /// Proof Skipped: CollatorSelection Candidates (max_values: Some(1), max_size: None, mode: Measured) + /// Storage: CollatorSelection DesiredCandidates (r:1 w:0) + /// Proof Skipped: CollatorSelection DesiredCandidates (max_values: Some(1), max_size: None, mode: Measured) + /// Storage: CollatorSelection Invulnerables (r:1 w:0) + /// Proof Skipped: CollatorSelection Invulnerables (max_values: Some(1), max_size: None, mode: Measured) + /// Storage: DappStaking Ledger (r:1 w:0) + /// Proof: DappStaking Ledger (max_values: None, max_size: Some(310), added: 2785, mode: MaxEncodedLen) + /// Storage: Session NextKeys (r:1 w:0) + /// Proof Skipped: Session NextKeys (max_values: None, max_size: None, mode: Measured) + /// Storage: CollatorSelection CandidacyBond (r:1 w:0) + /// Proof Skipped: CollatorSelection CandidacyBond (max_values: Some(1), max_size: None, mode: Measured) + /// Storage: CollatorSelection LastAuthoredBlock (r:0 w:1) + /// Proof Skipped: CollatorSelection LastAuthoredBlock (max_values: None, max_size: None, mode: Measured) /// The range of component `c` is `[1, 148]`. fn register_as_candidate(c: u32, ) -> Weight { - // Minimum execution time: 39_356 nanoseconds. - Weight::from_parts(42_616_377, 0) - .saturating_add(Weight::from_parts(0, 9891)) - // Standard Error: 670 - .saturating_add(Weight::from_parts(39_880, 0).saturating_mul(c.into())) - .saturating_add(RocksDbWeight::get().reads(5_u64)) + // Proof Size summary in bytes: + // Measured: `962 + c * (50 ±0)` + // Estimated: `4307 + c * (51 ±0)` + // Minimum execution time: 44_695_000 picoseconds. + Weight::from_parts(46_834_255, 4307) + // Standard Error: 586 + .saturating_add(Weight::from_parts(44_873, 0).saturating_mul(c.into())) + .saturating_add(RocksDbWeight::get().reads(6_u64)) .saturating_add(RocksDbWeight::get().writes(2_u64)) - .saturating_add(Weight::from_parts(0, 306).saturating_mul(c.into())) + .saturating_add(Weight::from_parts(0, 51).saturating_mul(c.into())) } - // Storage: CollatorSelection Candidates (r:1 w:1) - // Proof Skipped: CollatorSelection Candidates (max_values: Some(1), max_size: None, mode: Measured) - // Storage: CollatorSelection LastAuthoredBlock (r:0 w:1) - // Proof Skipped: CollatorSelection LastAuthoredBlock (max_values: None, max_size: None, mode: Measured) + /// Storage: CollatorSelection Candidates (r:1 w:1) + /// Proof Skipped: CollatorSelection Candidates (max_values: Some(1), max_size: None, mode: Measured) + /// Storage: CollatorSelection LastAuthoredBlock (r:0 w:1) + /// Proof Skipped: CollatorSelection LastAuthoredBlock (max_values: None, max_size: None, mode: Measured) /// The range of component `c` is `[6, 148]`. fn leave_intent(c: u32, ) -> Weight { - // Minimum execution time: 28_341 nanoseconds. - Weight::from_parts(30_119_984, 0) - .saturating_add(Weight::from_parts(0, 1369)) - // Standard Error: 1_581 - .saturating_add(Weight::from_parts(42_495, 0).saturating_mul(c.into())) + // Proof Size summary in bytes: + // Measured: `342 + c * (49 ±0)` + // Estimated: `1845 + c * (49 ±0)` + // Minimum execution time: 30_579_000 picoseconds. + Weight::from_parts(34_125_189, 1845) + // Standard Error: 1_048 + .saturating_add(Weight::from_parts(45_625, 0).saturating_mul(c.into())) .saturating_add(RocksDbWeight::get().reads(1_u64)) .saturating_add(RocksDbWeight::get().writes(2_u64)) - .saturating_add(Weight::from_parts(0, 98).saturating_mul(c.into())) + .saturating_add(Weight::from_parts(0, 49).saturating_mul(c.into())) } - // Storage: System Account (r:2 w:2) - // Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen) - // Storage: CollatorSelection LastAuthoredBlock (r:0 w:1) - // Proof Skipped: CollatorSelection LastAuthoredBlock (max_values: None, max_size: None, mode: Measured) + /// Storage: System Account (r:2 w:2) + /// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen) + /// Storage: CollatorSelection LastAuthoredBlock (r:0 w:1) + /// Proof Skipped: CollatorSelection LastAuthoredBlock (max_values: None, max_size: None, mode: Measured) fn note_author() -> Weight { - // Minimum execution time: 31_536 nanoseconds. - Weight::from_parts(31_986_000, 0) - .saturating_add(Weight::from_parts(0, 5497)) + // Proof Size summary in bytes: + // Measured: `226` + // Estimated: `6196` + // Minimum execution time: 43_377_000 picoseconds. + Weight::from_parts(43_827_000, 6196) .saturating_add(RocksDbWeight::get().reads(2_u64)) .saturating_add(RocksDbWeight::get().writes(3_u64)) } - // Storage: CollatorSelection Candidates (r:1 w:0) - // Proof Skipped: CollatorSelection Candidates (max_values: Some(1), max_size: None, mode: Measured) - // Storage: CollatorSelection LastAuthoredBlock (r:148 w:0) - // Proof Skipped: CollatorSelection LastAuthoredBlock (max_values: None, max_size: None, mode: Measured) - // Storage: CollatorSelection Invulnerables (r:1 w:0) - // Proof Skipped: CollatorSelection Invulnerables (max_values: Some(1), max_size: None, mode: Measured) - // Storage: System Account (r:143 w:143) - // Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen) - // Storage: CollatorSelection SlashDestination (r:1 w:0) - // Proof Skipped: CollatorSelection SlashDestination (max_values: Some(1), max_size: None, mode: Measured) + /// Storage: CollatorSelection Candidates (r:1 w:0) + /// Proof Skipped: CollatorSelection Candidates (max_values: Some(1), max_size: None, mode: Measured) + /// Storage: CollatorSelection LastAuthoredBlock (r:148 w:0) + /// Proof Skipped: CollatorSelection LastAuthoredBlock (max_values: None, max_size: None, mode: Measured) + /// Storage: CollatorSelection Invulnerables (r:1 w:0) + /// Proof Skipped: CollatorSelection Invulnerables (max_values: Some(1), max_size: None, mode: Measured) + /// Storage: System Account (r:143 w:143) + /// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen) + /// Storage: CollatorSelection SlashDestination (r:1 w:0) + /// Proof Skipped: CollatorSelection SlashDestination (max_values: Some(1), max_size: None, mode: Measured) /// The range of component `r` is `[1, 148]`. /// The range of component `c` is `[1, 148]`. fn new_session(r: u32, c: u32, ) -> Weight { - // Minimum execution time: 16_816 nanoseconds. - Weight::from_parts(17_132_000, 0) - .saturating_add(Weight::from_parts(0, 4714)) - // Standard Error: 475_405 - .saturating_add(Weight::from_parts(15_758_567, 0).saturating_mul(c.into())) + // Proof Size summary in bytes: + // Measured: `3902 + c * (97 ±0) + r * (112 ±0)` + // Estimated: `3818 + c * (2632 ±2) + r * (2599 ±0)` + // Minimum execution time: 17_957_000 picoseconds. + Weight::from_parts(18_201_000, 3818) + // Standard Error: 564_328 + .saturating_add(Weight::from_parts(18_024_338, 0).saturating_mul(c.into())) .saturating_add(RocksDbWeight::get().reads(3_u64)) .saturating_add(RocksDbWeight::get().reads((1_u64).saturating_mul(c.into()))) .saturating_add(RocksDbWeight::get().writes((1_u64).saturating_mul(c.into()))) - .saturating_add(Weight::from_parts(0, 3131).saturating_mul(c.into())) - .saturating_add(Weight::from_parts(0, 2751).saturating_mul(r.into())) + .saturating_add(Weight::from_parts(0, 2632).saturating_mul(c.into())) + .saturating_add(Weight::from_parts(0, 2599).saturating_mul(r.into())) } -} \ No newline at end of file +} diff --git a/pallets/dapp-staking-v3/src/weights.rs b/pallets/dapp-staking-v3/src/weights.rs index 34b8685aab..e1013f4c2f 100644 --- a/pallets/dapp-staking-v3/src/weights.rs +++ b/pallets/dapp-staking-v3/src/weights.rs @@ -20,24 +20,24 @@ //! Autogenerated weights for pallet_dapp_staking_v3 //! //! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev -//! DATE: 2024-02-06, STEPS: `5`, REPEAT: `1`, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! DATE: 2024-02-06, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` //! WORST CASE MAP SIZE: `1000000` -//! HOSTNAME: `Dinos-MacBook-Pro.local`, CPU: `` -//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("shibuya-dev"), DB CACHE: 1024 +//! HOSTNAME: `gh-runner-01-ovh`, CPU: `Intel(R) Xeon(R) E-2236 CPU @ 3.40GHz` +//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("shiden-dev"), DB CACHE: 1024 // Executed Command: // ./target/release/astar-collator // benchmark // pallet -// --chain=shibuya-dev -// --steps=5 -// --repeat=1 +// --chain=shiden-dev +// --steps=50 +// --repeat=20 // --pallet=pallet_dapp_staking_v3 // --extrinsic=* // --execution=wasm // --wasm-execution=compiled // --heap-pages=4096 -// --output=weights.rs +// --output=./benchmark-results/shiden-dev/dapp_staking_v3_weights.rs // --template=./scripts/templates/weight-template.hbs #![cfg_attr(rustfmt, rustfmt_skip)] @@ -82,8 +82,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 13_000_000 picoseconds. - Weight::from_parts(13_000_000, 0) + // Minimum execution time: 8_967_000 picoseconds. + Weight::from_parts(9_242_000, 0) } /// Storage: DappStaking IntegratedDApps (r:1 w:1) /// Proof: DappStaking IntegratedDApps (max_values: Some(65535), max_size: Some(116), added: 2096, mode: MaxEncodedLen) @@ -95,8 +95,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `3086` - // Minimum execution time: 25_000_000 picoseconds. - Weight::from_parts(25_000_000, 3086) + // Minimum execution time: 17_044_000 picoseconds. + Weight::from_parts(17_328_000, 3086) .saturating_add(T::DbWeight::get().reads(3_u64)) .saturating_add(T::DbWeight::get().writes(3_u64)) } @@ -106,8 +106,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `74` // Estimated: `3086` - // Minimum execution time: 16_000_000 picoseconds. - Weight::from_parts(16_000_000, 3086) + // Minimum execution time: 13_369_000 picoseconds. + Weight::from_parts(13_617_000, 3086) .saturating_add(T::DbWeight::get().reads(1_u64)) .saturating_add(T::DbWeight::get().writes(1_u64)) } @@ -117,8 +117,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `74` // Estimated: `3086` - // Minimum execution time: 15_000_000 picoseconds. - Weight::from_parts(15_000_000, 3086) + // Minimum execution time: 13_421_000 picoseconds. + Weight::from_parts(13_692_000, 3086) .saturating_add(T::DbWeight::get().reads(1_u64)) .saturating_add(T::DbWeight::get().writes(1_u64)) } @@ -132,8 +132,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `74` // Estimated: `3086` - // Minimum execution time: 22_000_000 picoseconds. - Weight::from_parts(22_000_000, 3086) + // Minimum execution time: 18_458_000 picoseconds. + Weight::from_parts(18_864_000, 3086) .saturating_add(T::DbWeight::get().reads(2_u64)) .saturating_add(T::DbWeight::get().writes(3_u64)) } @@ -151,8 +151,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `138` // Estimated: `4764` - // Minimum execution time: 43_000_000 picoseconds. - Weight::from_parts(43_000_000, 4764) + // Minimum execution time: 62_743_000 picoseconds. + Weight::from_parts(64_992_000, 4764) .saturating_add(T::DbWeight::get().reads(5_u64)) .saturating_add(T::DbWeight::get().writes(3_u64)) } @@ -166,10 +166,10 @@ impl WeightInfo for SubstrateWeight { /// Proof: DappStaking CurrentEraInfo (max_values: Some(1), max_size: Some(112), added: 607, mode: MaxEncodedLen) fn lock_existing_account() -> Weight { // Proof Size summary in bytes: - // Measured: `156` + // Measured: `158` // Estimated: `4764` - // Minimum execution time: 43_000_000 picoseconds. - Weight::from_parts(43_000_000, 4764) + // Minimum execution time: 38_250_000 picoseconds. + Weight::from_parts(38_835_000, 4764) .saturating_add(T::DbWeight::get().reads(4_u64)) .saturating_add(T::DbWeight::get().writes(3_u64)) } @@ -183,10 +183,10 @@ impl WeightInfo for SubstrateWeight { /// Proof: DappStaking CurrentEraInfo (max_values: Some(1), max_size: Some(112), added: 607, mode: MaxEncodedLen) fn unlock() -> Weight { // Proof Size summary in bytes: - // Measured: `156` + // Measured: `158` // Estimated: `4764` - // Minimum execution time: 41_000_000 picoseconds. - Weight::from_parts(41_000_000, 4764) + // Minimum execution time: 34_582_000 picoseconds. + Weight::from_parts(35_126_000, 4764) .saturating_add(T::DbWeight::get().reads(4_u64)) .saturating_add(T::DbWeight::get().writes(3_u64)) } @@ -198,15 +198,15 @@ impl WeightInfo for SubstrateWeight { /// Proof: Balances Locks (max_values: None, max_size: Some(1299), added: 3774, mode: MaxEncodedLen) /// Storage: DappStaking CurrentEraInfo (r:1 w:1) /// Proof: DappStaking CurrentEraInfo (max_values: Some(1), max_size: Some(112), added: 607, mode: MaxEncodedLen) - /// The range of component `x` is `[0, 8]`. + /// The range of component `x` is `[0, 16]`. fn claim_unlocked(x: u32, ) -> Weight { // Proof Size summary in bytes: - // Measured: `186` + // Measured: `191` // Estimated: `4764` - // Minimum execution time: 42_000_000 picoseconds. - Weight::from_parts(40_400_000, 4764) - // Standard Error: 616_441 - .saturating_add(Weight::from_parts(1_300_000, 0).saturating_mul(x.into())) + // Minimum execution time: 37_740_000 picoseconds. + Weight::from_parts(39_064_684, 4764) + // Standard Error: 2_750 + .saturating_add(Weight::from_parts(120_539, 0).saturating_mul(x.into())) .saturating_add(T::DbWeight::get().reads(4_u64)) .saturating_add(T::DbWeight::get().writes(3_u64)) } @@ -220,10 +220,10 @@ impl WeightInfo for SubstrateWeight { /// Proof: DappStaking CurrentEraInfo (max_values: Some(1), max_size: Some(112), added: 607, mode: MaxEncodedLen) fn relock_unlocking() -> Weight { // Proof Size summary in bytes: - // Measured: `182` + // Measured: `200` // Estimated: `4764` - // Minimum execution time: 38_000_000 picoseconds. - Weight::from_parts(38_000_000, 4764) + // Minimum execution time: 33_298_000 picoseconds. + Weight::from_parts(33_903_000, 4764) .saturating_add(T::DbWeight::get().reads(4_u64)) .saturating_add(T::DbWeight::get().writes(3_u64)) } @@ -243,10 +243,10 @@ impl WeightInfo for SubstrateWeight { /// Proof: Balances Locks (max_values: None, max_size: Some(1299), added: 3774, mode: MaxEncodedLen) fn stake() -> Weight { // Proof Size summary in bytes: - // Measured: `249` + // Measured: `251` // Estimated: `4764` - // Minimum execution time: 50_000_000 picoseconds. - Weight::from_parts(50_000_000, 4764) + // Minimum execution time: 44_905_000 picoseconds. + Weight::from_parts(45_261_000, 4764) .saturating_add(T::DbWeight::get().reads(7_u64)) .saturating_add(T::DbWeight::get().writes(5_u64)) } @@ -266,10 +266,10 @@ impl WeightInfo for SubstrateWeight { /// Proof: Balances Locks (max_values: None, max_size: Some(1299), added: 3774, mode: MaxEncodedLen) fn unstake() -> Weight { // Proof Size summary in bytes: - // Measured: `426` + // Measured: `432` // Estimated: `4764` - // Minimum execution time: 54_000_000 picoseconds. - Weight::from_parts(54_000_000, 4764) + // Minimum execution time: 48_594_000 picoseconds. + Weight::from_parts(49_441_000, 4764) .saturating_add(T::DbWeight::get().reads(7_u64)) .saturating_add(T::DbWeight::get().writes(5_u64)) } @@ -286,12 +286,12 @@ impl WeightInfo for SubstrateWeight { /// The range of component `x` is `[1, 16]`. fn claim_staker_rewards_past_period(x: u32, ) -> Weight { // Proof Size summary in bytes: - // Measured: `522` + // Measured: `541` // Estimated: `4764` - // Minimum execution time: 61_000_000 picoseconds. - Weight::from_parts(55_805_248, 4764) - // Standard Error: 284_158 - .saturating_add(Weight::from_parts(4_609_116, 0).saturating_mul(x.into())) + // Minimum execution time: 52_182_000 picoseconds. + Weight::from_parts(50_073_700, 4764) + // Standard Error: 4_907 + .saturating_add(Weight::from_parts(3_301_788, 0).saturating_mul(x.into())) .saturating_add(T::DbWeight::get().reads(5_u64)) .saturating_add(T::DbWeight::get().writes(2_u64)) } @@ -306,12 +306,12 @@ impl WeightInfo for SubstrateWeight { /// The range of component `x` is `[1, 16]`. fn claim_staker_rewards_ongoing_period(x: u32, ) -> Weight { // Proof Size summary in bytes: - // Measured: `501` + // Measured: `519` // Estimated: `4764` - // Minimum execution time: 60_000_000 picoseconds. - Weight::from_parts(54_186_464, 4764) - // Standard Error: 118_535 - .saturating_add(Weight::from_parts(4_587_016, 0).saturating_mul(x.into())) + // Minimum execution time: 49_637_000 picoseconds. + Weight::from_parts(47_809_537, 4764) + // Standard Error: 5_850 + .saturating_add(Weight::from_parts(3_304_857, 0).saturating_mul(x.into())) .saturating_add(T::DbWeight::get().reads(4_u64)) .saturating_add(T::DbWeight::get().writes(2_u64)) } @@ -323,10 +323,10 @@ impl WeightInfo for SubstrateWeight { /// Proof: DappStaking Ledger (max_values: None, max_size: Some(310), added: 2785, mode: MaxEncodedLen) fn claim_bonus_reward() -> Weight { // Proof Size summary in bytes: - // Measured: `267` + // Measured: `271` // Estimated: `3775` - // Minimum execution time: 46_000_000 picoseconds. - Weight::from_parts(46_000_000, 3775) + // Minimum execution time: 41_926_000 picoseconds. + Weight::from_parts(42_718_000, 3775) .saturating_add(T::DbWeight::get().reads(3_u64)) .saturating_add(T::DbWeight::get().writes(2_u64)) } @@ -338,8 +338,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `2584` // Estimated: `5048` - // Minimum execution time: 90_000_000 picoseconds. - Weight::from_parts(90_000_000, 5048) + // Minimum execution time: 57_183_000 picoseconds. + Weight::from_parts(58_197_000, 5048) .saturating_add(T::DbWeight::get().reads(2_u64)) .saturating_add(T::DbWeight::get().writes(1_u64)) } @@ -357,14 +357,14 @@ impl WeightInfo for SubstrateWeight { /// Proof: Balances Locks (max_values: None, max_size: Some(1299), added: 3774, mode: MaxEncodedLen) fn unstake_from_unregistered() -> Weight { // Proof Size summary in bytes: - // Measured: `313` + // Measured: `318` // Estimated: `4764` - // Minimum execution time: 64_000_000 picoseconds. - Weight::from_parts(64_000_000, 4764) + // Minimum execution time: 41_858_000 picoseconds. + Weight::from_parts(42_476_000, 4764) .saturating_add(T::DbWeight::get().reads(6_u64)) .saturating_add(T::DbWeight::get().writes(4_u64)) } - /// Storage: DappStaking StakerInfo (r:9 w:8) + /// Storage: DappStaking StakerInfo (r:17 w:16) /// Proof: DappStaking StakerInfo (max_values: None, max_size: Some(138), added: 2613, mode: MaxEncodedLen) /// Storage: DappStaking Ledger (r:1 w:1) /// Proof: DappStaking Ledger (max_values: None, max_size: Some(310), added: 2785, mode: MaxEncodedLen) @@ -372,15 +372,15 @@ impl WeightInfo for SubstrateWeight { /// Proof: Balances Freezes (max_values: None, max_size: Some(67), added: 2542, mode: MaxEncodedLen) /// Storage: Balances Locks (r:1 w:0) /// Proof: Balances Locks (max_values: None, max_size: Some(1299), added: 3774, mode: MaxEncodedLen) - /// The range of component `x` is `[1, 8]`. + /// The range of component `x` is `[1, 16]`. fn cleanup_expired_entries(x: u32, ) -> Weight { // Proof Size summary in bytes: - // Measured: `250 + x * (69 ±0)` + // Measured: `256 + x * (69 ±0)` // Estimated: `4764 + x * (2613 ±0)` - // Minimum execution time: 55_000_000 picoseconds. - Weight::from_parts(48_774_390, 4764) - // Standard Error: 2_201_253 - .saturating_add(Weight::from_parts(6_006_097, 0).saturating_mul(x.into())) + // Minimum execution time: 43_103_000 picoseconds. + Weight::from_parts(39_876_215, 4764) + // Standard Error: 8_123 + .saturating_add(Weight::from_parts(5_014_232, 0).saturating_mul(x.into())) .saturating_add(T::DbWeight::get().reads(4_u64)) .saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(x.into()))) .saturating_add(T::DbWeight::get().writes(2_u64)) @@ -391,8 +391,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 18_000_000 picoseconds. - Weight::from_parts(18_000_000, 0) + // Minimum execution time: 11_543_000 picoseconds. + Weight::from_parts(11_735_000, 0) } /// Storage: DappStaking CurrentEraInfo (r:1 w:1) /// Proof: DappStaking CurrentEraInfo (max_values: Some(1), max_size: Some(112), added: 607, mode: MaxEncodedLen) @@ -402,8 +402,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `16` // Estimated: `4254` - // Minimum execution time: 29_000_000 picoseconds. - Weight::from_parts(29_000_000, 4254) + // Minimum execution time: 17_687_000 picoseconds. + Weight::from_parts(18_283_000, 4254) .saturating_add(T::DbWeight::get().reads(2_u64)) .saturating_add(T::DbWeight::get().writes(2_u64)) } @@ -423,10 +423,10 @@ impl WeightInfo for SubstrateWeight { /// Proof: DappStaking DAppTiers (max_values: None, max_size: Some(1583), added: 4058, mode: MaxEncodedLen) fn on_initialize_build_and_earn_to_voting() -> Weight { // Proof Size summary in bytes: - // Measured: `627` + // Measured: `839` // Estimated: `4254` - // Minimum execution time: 74_000_000 picoseconds. - Weight::from_parts(74_000_000, 4254) + // Minimum execution time: 47_901_000 picoseconds. + Weight::from_parts(49_554_000, 4254) .saturating_add(T::DbWeight::get().reads(6_u64)) .saturating_add(T::DbWeight::get().writes(7_u64)) } @@ -440,8 +440,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `68` // Estimated: `4254` - // Minimum execution time: 37_000_000 picoseconds. - Weight::from_parts(37_000_000, 4254) + // Minimum execution time: 23_705_000 picoseconds. + Weight::from_parts(24_313_000, 4254) .saturating_add(T::DbWeight::get().reads(2_u64)) .saturating_add(T::DbWeight::get().writes(3_u64)) } @@ -452,12 +452,12 @@ impl WeightInfo for SubstrateWeight { /// The range of component `x` is `[0, 100]`. fn dapp_tier_assignment(x: u32, ) -> Weight { // Proof Size summary in bytes: - // Measured: `149 + x * (32 ±0)` + // Measured: `152 + x * (32 ±0)` // Estimated: `3061 + x * (2071 ±0)` - // Minimum execution time: 9_000_000 picoseconds. - Weight::from_parts(6_000_000, 3061) - // Standard Error: 187_047 - .saturating_add(Weight::from_parts(3_240_000, 0).saturating_mul(x.into())) + // Minimum execution time: 7_549_000 picoseconds. + Weight::from_parts(12_476_634, 3061) + // Standard Error: 3_594 + .saturating_add(Weight::from_parts(2_387_577, 0).saturating_mul(x.into())) .saturating_add(T::DbWeight::get().reads(2_u64)) .saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(x.into()))) .saturating_add(Weight::from_parts(0, 2071).saturating_mul(x.into())) @@ -472,8 +472,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `293` // Estimated: `4254` - // Minimum execution time: 11_000_000 picoseconds. - Weight::from_parts(11_000_000, 4254) + // Minimum execution time: 8_529_000 picoseconds. + Weight::from_parts(8_772_000, 4254) .saturating_add(T::DbWeight::get().reads(2_u64)) .saturating_add(T::DbWeight::get().writes(3_u64)) } @@ -485,8 +485,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 13_000_000 picoseconds. - Weight::from_parts(13_000_000, 0) + // Minimum execution time: 8_967_000 picoseconds. + Weight::from_parts(9_242_000, 0) } /// Storage: DappStaking IntegratedDApps (r:1 w:1) /// Proof: DappStaking IntegratedDApps (max_values: Some(65535), max_size: Some(116), added: 2096, mode: MaxEncodedLen) @@ -498,8 +498,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `0` // Estimated: `3086` - // Minimum execution time: 25_000_000 picoseconds. - Weight::from_parts(25_000_000, 3086) + // Minimum execution time: 17_044_000 picoseconds. + Weight::from_parts(17_328_000, 3086) .saturating_add(RocksDbWeight::get().reads(3_u64)) .saturating_add(RocksDbWeight::get().writes(3_u64)) } @@ -509,8 +509,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `74` // Estimated: `3086` - // Minimum execution time: 16_000_000 picoseconds. - Weight::from_parts(16_000_000, 3086) + // Minimum execution time: 13_369_000 picoseconds. + Weight::from_parts(13_617_000, 3086) .saturating_add(RocksDbWeight::get().reads(1_u64)) .saturating_add(RocksDbWeight::get().writes(1_u64)) } @@ -520,8 +520,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `74` // Estimated: `3086` - // Minimum execution time: 15_000_000 picoseconds. - Weight::from_parts(15_000_000, 3086) + // Minimum execution time: 13_421_000 picoseconds. + Weight::from_parts(13_692_000, 3086) .saturating_add(RocksDbWeight::get().reads(1_u64)) .saturating_add(RocksDbWeight::get().writes(1_u64)) } @@ -535,8 +535,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `74` // Estimated: `3086` - // Minimum execution time: 22_000_000 picoseconds. - Weight::from_parts(22_000_000, 3086) + // Minimum execution time: 18_458_000 picoseconds. + Weight::from_parts(18_864_000, 3086) .saturating_add(RocksDbWeight::get().reads(2_u64)) .saturating_add(RocksDbWeight::get().writes(3_u64)) } @@ -554,8 +554,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `138` // Estimated: `4764` - // Minimum execution time: 43_000_000 picoseconds. - Weight::from_parts(43_000_000, 4764) + // Minimum execution time: 62_743_000 picoseconds. + Weight::from_parts(64_992_000, 4764) .saturating_add(RocksDbWeight::get().reads(5_u64)) .saturating_add(RocksDbWeight::get().writes(3_u64)) } @@ -569,10 +569,10 @@ impl WeightInfo for () { /// Proof: DappStaking CurrentEraInfo (max_values: Some(1), max_size: Some(112), added: 607, mode: MaxEncodedLen) fn lock_existing_account() -> Weight { // Proof Size summary in bytes: - // Measured: `156` + // Measured: `158` // Estimated: `4764` - // Minimum execution time: 43_000_000 picoseconds. - Weight::from_parts(43_000_000, 4764) + // Minimum execution time: 38_250_000 picoseconds. + Weight::from_parts(38_835_000, 4764) .saturating_add(RocksDbWeight::get().reads(4_u64)) .saturating_add(RocksDbWeight::get().writes(3_u64)) } @@ -586,10 +586,10 @@ impl WeightInfo for () { /// Proof: DappStaking CurrentEraInfo (max_values: Some(1), max_size: Some(112), added: 607, mode: MaxEncodedLen) fn unlock() -> Weight { // Proof Size summary in bytes: - // Measured: `156` + // Measured: `158` // Estimated: `4764` - // Minimum execution time: 41_000_000 picoseconds. - Weight::from_parts(41_000_000, 4764) + // Minimum execution time: 34_582_000 picoseconds. + Weight::from_parts(35_126_000, 4764) .saturating_add(RocksDbWeight::get().reads(4_u64)) .saturating_add(RocksDbWeight::get().writes(3_u64)) } @@ -601,15 +601,15 @@ impl WeightInfo for () { /// Proof: Balances Locks (max_values: None, max_size: Some(1299), added: 3774, mode: MaxEncodedLen) /// Storage: DappStaking CurrentEraInfo (r:1 w:1) /// Proof: DappStaking CurrentEraInfo (max_values: Some(1), max_size: Some(112), added: 607, mode: MaxEncodedLen) - /// The range of component `x` is `[0, 8]`. + /// The range of component `x` is `[0, 16]`. fn claim_unlocked(x: u32, ) -> Weight { // Proof Size summary in bytes: - // Measured: `186` + // Measured: `191` // Estimated: `4764` - // Minimum execution time: 42_000_000 picoseconds. - Weight::from_parts(40_400_000, 4764) - // Standard Error: 616_441 - .saturating_add(Weight::from_parts(1_300_000, 0).saturating_mul(x.into())) + // Minimum execution time: 37_740_000 picoseconds. + Weight::from_parts(39_064_684, 4764) + // Standard Error: 2_750 + .saturating_add(Weight::from_parts(120_539, 0).saturating_mul(x.into())) .saturating_add(RocksDbWeight::get().reads(4_u64)) .saturating_add(RocksDbWeight::get().writes(3_u64)) } @@ -623,10 +623,10 @@ impl WeightInfo for () { /// Proof: DappStaking CurrentEraInfo (max_values: Some(1), max_size: Some(112), added: 607, mode: MaxEncodedLen) fn relock_unlocking() -> Weight { // Proof Size summary in bytes: - // Measured: `182` + // Measured: `200` // Estimated: `4764` - // Minimum execution time: 38_000_000 picoseconds. - Weight::from_parts(38_000_000, 4764) + // Minimum execution time: 33_298_000 picoseconds. + Weight::from_parts(33_903_000, 4764) .saturating_add(RocksDbWeight::get().reads(4_u64)) .saturating_add(RocksDbWeight::get().writes(3_u64)) } @@ -646,10 +646,10 @@ impl WeightInfo for () { /// Proof: Balances Locks (max_values: None, max_size: Some(1299), added: 3774, mode: MaxEncodedLen) fn stake() -> Weight { // Proof Size summary in bytes: - // Measured: `249` + // Measured: `251` // Estimated: `4764` - // Minimum execution time: 50_000_000 picoseconds. - Weight::from_parts(50_000_000, 4764) + // Minimum execution time: 44_905_000 picoseconds. + Weight::from_parts(45_261_000, 4764) .saturating_add(RocksDbWeight::get().reads(7_u64)) .saturating_add(RocksDbWeight::get().writes(5_u64)) } @@ -669,10 +669,10 @@ impl WeightInfo for () { /// Proof: Balances Locks (max_values: None, max_size: Some(1299), added: 3774, mode: MaxEncodedLen) fn unstake() -> Weight { // Proof Size summary in bytes: - // Measured: `426` + // Measured: `432` // Estimated: `4764` - // Minimum execution time: 54_000_000 picoseconds. - Weight::from_parts(54_000_000, 4764) + // Minimum execution time: 48_594_000 picoseconds. + Weight::from_parts(49_441_000, 4764) .saturating_add(RocksDbWeight::get().reads(7_u64)) .saturating_add(RocksDbWeight::get().writes(5_u64)) } @@ -689,12 +689,12 @@ impl WeightInfo for () { /// The range of component `x` is `[1, 16]`. fn claim_staker_rewards_past_period(x: u32, ) -> Weight { // Proof Size summary in bytes: - // Measured: `522` + // Measured: `541` // Estimated: `4764` - // Minimum execution time: 61_000_000 picoseconds. - Weight::from_parts(55_805_248, 4764) - // Standard Error: 284_158 - .saturating_add(Weight::from_parts(4_609_116, 0).saturating_mul(x.into())) + // Minimum execution time: 52_182_000 picoseconds. + Weight::from_parts(50_073_700, 4764) + // Standard Error: 4_907 + .saturating_add(Weight::from_parts(3_301_788, 0).saturating_mul(x.into())) .saturating_add(RocksDbWeight::get().reads(5_u64)) .saturating_add(RocksDbWeight::get().writes(2_u64)) } @@ -709,12 +709,12 @@ impl WeightInfo for () { /// The range of component `x` is `[1, 16]`. fn claim_staker_rewards_ongoing_period(x: u32, ) -> Weight { // Proof Size summary in bytes: - // Measured: `501` + // Measured: `519` // Estimated: `4764` - // Minimum execution time: 60_000_000 picoseconds. - Weight::from_parts(54_186_464, 4764) - // Standard Error: 118_535 - .saturating_add(Weight::from_parts(4_587_016, 0).saturating_mul(x.into())) + // Minimum execution time: 49_637_000 picoseconds. + Weight::from_parts(47_809_537, 4764) + // Standard Error: 5_850 + .saturating_add(Weight::from_parts(3_304_857, 0).saturating_mul(x.into())) .saturating_add(RocksDbWeight::get().reads(4_u64)) .saturating_add(RocksDbWeight::get().writes(2_u64)) } @@ -726,10 +726,10 @@ impl WeightInfo for () { /// Proof: DappStaking Ledger (max_values: None, max_size: Some(310), added: 2785, mode: MaxEncodedLen) fn claim_bonus_reward() -> Weight { // Proof Size summary in bytes: - // Measured: `267` + // Measured: `271` // Estimated: `3775` - // Minimum execution time: 46_000_000 picoseconds. - Weight::from_parts(46_000_000, 3775) + // Minimum execution time: 41_926_000 picoseconds. + Weight::from_parts(42_718_000, 3775) .saturating_add(RocksDbWeight::get().reads(3_u64)) .saturating_add(RocksDbWeight::get().writes(2_u64)) } @@ -741,8 +741,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `2584` // Estimated: `5048` - // Minimum execution time: 90_000_000 picoseconds. - Weight::from_parts(90_000_000, 5048) + // Minimum execution time: 57_183_000 picoseconds. + Weight::from_parts(58_197_000, 5048) .saturating_add(RocksDbWeight::get().reads(2_u64)) .saturating_add(RocksDbWeight::get().writes(1_u64)) } @@ -760,14 +760,14 @@ impl WeightInfo for () { /// Proof: Balances Locks (max_values: None, max_size: Some(1299), added: 3774, mode: MaxEncodedLen) fn unstake_from_unregistered() -> Weight { // Proof Size summary in bytes: - // Measured: `313` + // Measured: `318` // Estimated: `4764` - // Minimum execution time: 64_000_000 picoseconds. - Weight::from_parts(64_000_000, 4764) + // Minimum execution time: 41_858_000 picoseconds. + Weight::from_parts(42_476_000, 4764) .saturating_add(RocksDbWeight::get().reads(6_u64)) .saturating_add(RocksDbWeight::get().writes(4_u64)) } - /// Storage: DappStaking StakerInfo (r:9 w:8) + /// Storage: DappStaking StakerInfo (r:17 w:16) /// Proof: DappStaking StakerInfo (max_values: None, max_size: Some(138), added: 2613, mode: MaxEncodedLen) /// Storage: DappStaking Ledger (r:1 w:1) /// Proof: DappStaking Ledger (max_values: None, max_size: Some(310), added: 2785, mode: MaxEncodedLen) @@ -775,15 +775,15 @@ impl WeightInfo for () { /// Proof: Balances Freezes (max_values: None, max_size: Some(67), added: 2542, mode: MaxEncodedLen) /// Storage: Balances Locks (r:1 w:0) /// Proof: Balances Locks (max_values: None, max_size: Some(1299), added: 3774, mode: MaxEncodedLen) - /// The range of component `x` is `[1, 8]`. + /// The range of component `x` is `[1, 16]`. fn cleanup_expired_entries(x: u32, ) -> Weight { // Proof Size summary in bytes: - // Measured: `250 + x * (69 ±0)` + // Measured: `256 + x * (69 ±0)` // Estimated: `4764 + x * (2613 ±0)` - // Minimum execution time: 55_000_000 picoseconds. - Weight::from_parts(48_774_390, 4764) - // Standard Error: 2_201_253 - .saturating_add(Weight::from_parts(6_006_097, 0).saturating_mul(x.into())) + // Minimum execution time: 43_103_000 picoseconds. + Weight::from_parts(39_876_215, 4764) + // Standard Error: 8_123 + .saturating_add(Weight::from_parts(5_014_232, 0).saturating_mul(x.into())) .saturating_add(RocksDbWeight::get().reads(4_u64)) .saturating_add(RocksDbWeight::get().reads((1_u64).saturating_mul(x.into()))) .saturating_add(RocksDbWeight::get().writes(2_u64)) @@ -794,8 +794,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 18_000_000 picoseconds. - Weight::from_parts(18_000_000, 0) + // Minimum execution time: 11_543_000 picoseconds. + Weight::from_parts(11_735_000, 0) } /// Storage: DappStaking CurrentEraInfo (r:1 w:1) /// Proof: DappStaking CurrentEraInfo (max_values: Some(1), max_size: Some(112), added: 607, mode: MaxEncodedLen) @@ -805,8 +805,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `16` // Estimated: `4254` - // Minimum execution time: 29_000_000 picoseconds. - Weight::from_parts(29_000_000, 4254) + // Minimum execution time: 17_687_000 picoseconds. + Weight::from_parts(18_283_000, 4254) .saturating_add(RocksDbWeight::get().reads(2_u64)) .saturating_add(RocksDbWeight::get().writes(2_u64)) } @@ -826,10 +826,10 @@ impl WeightInfo for () { /// Proof: DappStaking DAppTiers (max_values: None, max_size: Some(1583), added: 4058, mode: MaxEncodedLen) fn on_initialize_build_and_earn_to_voting() -> Weight { // Proof Size summary in bytes: - // Measured: `627` + // Measured: `839` // Estimated: `4254` - // Minimum execution time: 74_000_000 picoseconds. - Weight::from_parts(74_000_000, 4254) + // Minimum execution time: 47_901_000 picoseconds. + Weight::from_parts(49_554_000, 4254) .saturating_add(RocksDbWeight::get().reads(6_u64)) .saturating_add(RocksDbWeight::get().writes(7_u64)) } @@ -843,8 +843,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `68` // Estimated: `4254` - // Minimum execution time: 37_000_000 picoseconds. - Weight::from_parts(37_000_000, 4254) + // Minimum execution time: 23_705_000 picoseconds. + Weight::from_parts(24_313_000, 4254) .saturating_add(RocksDbWeight::get().reads(2_u64)) .saturating_add(RocksDbWeight::get().writes(3_u64)) } @@ -855,12 +855,12 @@ impl WeightInfo for () { /// The range of component `x` is `[0, 100]`. fn dapp_tier_assignment(x: u32, ) -> Weight { // Proof Size summary in bytes: - // Measured: `149 + x * (32 ±0)` + // Measured: `152 + x * (32 ±0)` // Estimated: `3061 + x * (2071 ±0)` - // Minimum execution time: 9_000_000 picoseconds. - Weight::from_parts(6_000_000, 3061) - // Standard Error: 187_047 - .saturating_add(Weight::from_parts(3_240_000, 0).saturating_mul(x.into())) + // Minimum execution time: 7_549_000 picoseconds. + Weight::from_parts(12_476_634, 3061) + // Standard Error: 3_594 + .saturating_add(Weight::from_parts(2_387_577, 0).saturating_mul(x.into())) .saturating_add(RocksDbWeight::get().reads(2_u64)) .saturating_add(RocksDbWeight::get().reads((1_u64).saturating_mul(x.into()))) .saturating_add(Weight::from_parts(0, 2071).saturating_mul(x.into())) @@ -875,8 +875,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `293` // Estimated: `4254` - // Minimum execution time: 11_000_000 picoseconds. - Weight::from_parts(11_000_000, 4254) + // Minimum execution time: 8_529_000 picoseconds. + Weight::from_parts(8_772_000, 4254) .saturating_add(RocksDbWeight::get().reads(2_u64)) .saturating_add(RocksDbWeight::get().writes(3_u64)) } diff --git a/runtime/shibuya/src/weights/pallet_dapp_staking_v3.rs b/runtime/shibuya/src/weights/pallet_dapp_staking_v3.rs index 685ba26329..884f3ed120 100644 --- a/runtime/shibuya/src/weights/pallet_dapp_staking_v3.rs +++ b/runtime/shibuya/src/weights/pallet_dapp_staking_v3.rs @@ -55,8 +55,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 13_000_000 picoseconds. - Weight::from_parts(13_000_000, 0) + // Minimum execution time: 8_967_000 picoseconds. + Weight::from_parts(9_242_000, 0) } /// Storage: DappStaking IntegratedDApps (r:1 w:1) /// Proof: DappStaking IntegratedDApps (max_values: Some(65535), max_size: Some(116), added: 2096, mode: MaxEncodedLen) @@ -68,8 +68,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `3086` - // Minimum execution time: 25_000_000 picoseconds. - Weight::from_parts(25_000_000, 3086) + // Minimum execution time: 17_044_000 picoseconds. + Weight::from_parts(17_328_000, 3086) .saturating_add(T::DbWeight::get().reads(3_u64)) .saturating_add(T::DbWeight::get().writes(3_u64)) } @@ -79,8 +79,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `74` // Estimated: `3086` - // Minimum execution time: 16_000_000 picoseconds. - Weight::from_parts(16_000_000, 3086) + // Minimum execution time: 13_369_000 picoseconds. + Weight::from_parts(13_617_000, 3086) .saturating_add(T::DbWeight::get().reads(1_u64)) .saturating_add(T::DbWeight::get().writes(1_u64)) } @@ -90,8 +90,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `74` // Estimated: `3086` - // Minimum execution time: 15_000_000 picoseconds. - Weight::from_parts(15_000_000, 3086) + // Minimum execution time: 13_421_000 picoseconds. + Weight::from_parts(13_692_000, 3086) .saturating_add(T::DbWeight::get().reads(1_u64)) .saturating_add(T::DbWeight::get().writes(1_u64)) } @@ -105,8 +105,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `74` // Estimated: `3086` - // Minimum execution time: 22_000_000 picoseconds. - Weight::from_parts(22_000_000, 3086) + // Minimum execution time: 18_458_000 picoseconds. + Weight::from_parts(18_864_000, 3086) .saturating_add(T::DbWeight::get().reads(2_u64)) .saturating_add(T::DbWeight::get().writes(3_u64)) } @@ -124,8 +124,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `138` // Estimated: `4764` - // Minimum execution time: 43_000_000 picoseconds. - Weight::from_parts(43_000_000, 4764) + // Minimum execution time: 62_743_000 picoseconds. + Weight::from_parts(64_992_000, 4764) .saturating_add(T::DbWeight::get().reads(5_u64)) .saturating_add(T::DbWeight::get().writes(3_u64)) } @@ -139,10 +139,10 @@ impl WeightInfo for SubstrateWeight { /// Proof: DappStaking CurrentEraInfo (max_values: Some(1), max_size: Some(112), added: 607, mode: MaxEncodedLen) fn lock_existing_account() -> Weight { // Proof Size summary in bytes: - // Measured: `156` + // Measured: `158` // Estimated: `4764` - // Minimum execution time: 43_000_000 picoseconds. - Weight::from_parts(43_000_000, 4764) + // Minimum execution time: 38_250_000 picoseconds. + Weight::from_parts(38_835_000, 4764) .saturating_add(T::DbWeight::get().reads(4_u64)) .saturating_add(T::DbWeight::get().writes(3_u64)) } @@ -156,10 +156,10 @@ impl WeightInfo for SubstrateWeight { /// Proof: DappStaking CurrentEraInfo (max_values: Some(1), max_size: Some(112), added: 607, mode: MaxEncodedLen) fn unlock() -> Weight { // Proof Size summary in bytes: - // Measured: `156` + // Measured: `158` // Estimated: `4764` - // Minimum execution time: 41_000_000 picoseconds. - Weight::from_parts(41_000_000, 4764) + // Minimum execution time: 34_582_000 picoseconds. + Weight::from_parts(35_126_000, 4764) .saturating_add(T::DbWeight::get().reads(4_u64)) .saturating_add(T::DbWeight::get().writes(3_u64)) } @@ -171,15 +171,15 @@ impl WeightInfo for SubstrateWeight { /// Proof: Balances Locks (max_values: None, max_size: Some(1299), added: 3774, mode: MaxEncodedLen) /// Storage: DappStaking CurrentEraInfo (r:1 w:1) /// Proof: DappStaking CurrentEraInfo (max_values: Some(1), max_size: Some(112), added: 607, mode: MaxEncodedLen) - /// The range of component `x` is `[0, 8]`. + /// The range of component `x` is `[0, 16]`. fn claim_unlocked(x: u32, ) -> Weight { // Proof Size summary in bytes: - // Measured: `186` + // Measured: `191` // Estimated: `4764` - // Minimum execution time: 42_000_000 picoseconds. - Weight::from_parts(40_400_000, 4764) - // Standard Error: 616_441 - .saturating_add(Weight::from_parts(1_300_000, 0).saturating_mul(x.into())) + // Minimum execution time: 37_740_000 picoseconds. + Weight::from_parts(39_064_684, 4764) + // Standard Error: 2_750 + .saturating_add(Weight::from_parts(120_539, 0).saturating_mul(x.into())) .saturating_add(T::DbWeight::get().reads(4_u64)) .saturating_add(T::DbWeight::get().writes(3_u64)) } @@ -193,10 +193,10 @@ impl WeightInfo for SubstrateWeight { /// Proof: DappStaking CurrentEraInfo (max_values: Some(1), max_size: Some(112), added: 607, mode: MaxEncodedLen) fn relock_unlocking() -> Weight { // Proof Size summary in bytes: - // Measured: `182` + // Measured: `200` // Estimated: `4764` - // Minimum execution time: 38_000_000 picoseconds. - Weight::from_parts(38_000_000, 4764) + // Minimum execution time: 33_298_000 picoseconds. + Weight::from_parts(33_903_000, 4764) .saturating_add(T::DbWeight::get().reads(4_u64)) .saturating_add(T::DbWeight::get().writes(3_u64)) } @@ -216,10 +216,10 @@ impl WeightInfo for SubstrateWeight { /// Proof: Balances Locks (max_values: None, max_size: Some(1299), added: 3774, mode: MaxEncodedLen) fn stake() -> Weight { // Proof Size summary in bytes: - // Measured: `249` + // Measured: `251` // Estimated: `4764` - // Minimum execution time: 50_000_000 picoseconds. - Weight::from_parts(50_000_000, 4764) + // Minimum execution time: 44_905_000 picoseconds. + Weight::from_parts(45_261_000, 4764) .saturating_add(T::DbWeight::get().reads(7_u64)) .saturating_add(T::DbWeight::get().writes(5_u64)) } @@ -239,10 +239,10 @@ impl WeightInfo for SubstrateWeight { /// Proof: Balances Locks (max_values: None, max_size: Some(1299), added: 3774, mode: MaxEncodedLen) fn unstake() -> Weight { // Proof Size summary in bytes: - // Measured: `426` + // Measured: `432` // Estimated: `4764` - // Minimum execution time: 54_000_000 picoseconds. - Weight::from_parts(54_000_000, 4764) + // Minimum execution time: 48_594_000 picoseconds. + Weight::from_parts(49_441_000, 4764) .saturating_add(T::DbWeight::get().reads(7_u64)) .saturating_add(T::DbWeight::get().writes(5_u64)) } @@ -259,12 +259,12 @@ impl WeightInfo for SubstrateWeight { /// The range of component `x` is `[1, 16]`. fn claim_staker_rewards_past_period(x: u32, ) -> Weight { // Proof Size summary in bytes: - // Measured: `522` + // Measured: `541` // Estimated: `4764` - // Minimum execution time: 61_000_000 picoseconds. - Weight::from_parts(55_805_248, 4764) - // Standard Error: 284_158 - .saturating_add(Weight::from_parts(4_609_116, 0).saturating_mul(x.into())) + // Minimum execution time: 52_182_000 picoseconds. + Weight::from_parts(50_073_700, 4764) + // Standard Error: 4_907 + .saturating_add(Weight::from_parts(3_301_788, 0).saturating_mul(x.into())) .saturating_add(T::DbWeight::get().reads(5_u64)) .saturating_add(T::DbWeight::get().writes(2_u64)) } @@ -279,12 +279,12 @@ impl WeightInfo for SubstrateWeight { /// The range of component `x` is `[1, 16]`. fn claim_staker_rewards_ongoing_period(x: u32, ) -> Weight { // Proof Size summary in bytes: - // Measured: `501` + // Measured: `519` // Estimated: `4764` - // Minimum execution time: 60_000_000 picoseconds. - Weight::from_parts(54_186_464, 4764) - // Standard Error: 118_535 - .saturating_add(Weight::from_parts(4_587_016, 0).saturating_mul(x.into())) + // Minimum execution time: 49_637_000 picoseconds. + Weight::from_parts(47_809_537, 4764) + // Standard Error: 5_850 + .saturating_add(Weight::from_parts(3_304_857, 0).saturating_mul(x.into())) .saturating_add(T::DbWeight::get().reads(4_u64)) .saturating_add(T::DbWeight::get().writes(2_u64)) } @@ -296,10 +296,10 @@ impl WeightInfo for SubstrateWeight { /// Proof: DappStaking Ledger (max_values: None, max_size: Some(310), added: 2785, mode: MaxEncodedLen) fn claim_bonus_reward() -> Weight { // Proof Size summary in bytes: - // Measured: `267` + // Measured: `271` // Estimated: `3775` - // Minimum execution time: 46_000_000 picoseconds. - Weight::from_parts(46_000_000, 3775) + // Minimum execution time: 41_926_000 picoseconds. + Weight::from_parts(42_718_000, 3775) .saturating_add(T::DbWeight::get().reads(3_u64)) .saturating_add(T::DbWeight::get().writes(2_u64)) } @@ -311,8 +311,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `2584` // Estimated: `5048` - // Minimum execution time: 90_000_000 picoseconds. - Weight::from_parts(90_000_000, 5048) + // Minimum execution time: 57_183_000 picoseconds. + Weight::from_parts(58_197_000, 5048) .saturating_add(T::DbWeight::get().reads(2_u64)) .saturating_add(T::DbWeight::get().writes(1_u64)) } @@ -330,14 +330,14 @@ impl WeightInfo for SubstrateWeight { /// Proof: Balances Locks (max_values: None, max_size: Some(1299), added: 3774, mode: MaxEncodedLen) fn unstake_from_unregistered() -> Weight { // Proof Size summary in bytes: - // Measured: `313` + // Measured: `318` // Estimated: `4764` - // Minimum execution time: 64_000_000 picoseconds. - Weight::from_parts(64_000_000, 4764) + // Minimum execution time: 41_858_000 picoseconds. + Weight::from_parts(42_476_000, 4764) .saturating_add(T::DbWeight::get().reads(6_u64)) .saturating_add(T::DbWeight::get().writes(4_u64)) } - /// Storage: DappStaking StakerInfo (r:9 w:8) + /// Storage: DappStaking StakerInfo (r:17 w:16) /// Proof: DappStaking StakerInfo (max_values: None, max_size: Some(138), added: 2613, mode: MaxEncodedLen) /// Storage: DappStaking Ledger (r:1 w:1) /// Proof: DappStaking Ledger (max_values: None, max_size: Some(310), added: 2785, mode: MaxEncodedLen) @@ -345,15 +345,15 @@ impl WeightInfo for SubstrateWeight { /// Proof: Balances Freezes (max_values: None, max_size: Some(67), added: 2542, mode: MaxEncodedLen) /// Storage: Balances Locks (r:1 w:0) /// Proof: Balances Locks (max_values: None, max_size: Some(1299), added: 3774, mode: MaxEncodedLen) - /// The range of component `x` is `[1, 8]`. + /// The range of component `x` is `[1, 16]`. fn cleanup_expired_entries(x: u32, ) -> Weight { // Proof Size summary in bytes: - // Measured: `250 + x * (69 ±0)` + // Measured: `256 + x * (69 ±0)` // Estimated: `4764 + x * (2613 ±0)` - // Minimum execution time: 55_000_000 picoseconds. - Weight::from_parts(48_774_390, 4764) - // Standard Error: 2_201_253 - .saturating_add(Weight::from_parts(6_006_097, 0).saturating_mul(x.into())) + // Minimum execution time: 43_103_000 picoseconds. + Weight::from_parts(39_876_215, 4764) + // Standard Error: 8_123 + .saturating_add(Weight::from_parts(5_014_232, 0).saturating_mul(x.into())) .saturating_add(T::DbWeight::get().reads(4_u64)) .saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(x.into()))) .saturating_add(T::DbWeight::get().writes(2_u64)) @@ -364,8 +364,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 18_000_000 picoseconds. - Weight::from_parts(18_000_000, 0) + // Minimum execution time: 11_543_000 picoseconds. + Weight::from_parts(11_735_000, 0) } /// Storage: DappStaking CurrentEraInfo (r:1 w:1) /// Proof: DappStaking CurrentEraInfo (max_values: Some(1), max_size: Some(112), added: 607, mode: MaxEncodedLen) @@ -375,8 +375,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `16` // Estimated: `4254` - // Minimum execution time: 29_000_000 picoseconds. - Weight::from_parts(29_000_000, 4254) + // Minimum execution time: 17_687_000 picoseconds. + Weight::from_parts(18_283_000, 4254) .saturating_add(T::DbWeight::get().reads(2_u64)) .saturating_add(T::DbWeight::get().writes(2_u64)) } @@ -396,10 +396,10 @@ impl WeightInfo for SubstrateWeight { /// Proof: DappStaking DAppTiers (max_values: None, max_size: Some(1583), added: 4058, mode: MaxEncodedLen) fn on_initialize_build_and_earn_to_voting() -> Weight { // Proof Size summary in bytes: - // Measured: `627` + // Measured: `839` // Estimated: `4254` - // Minimum execution time: 74_000_000 picoseconds. - Weight::from_parts(74_000_000, 4254) + // Minimum execution time: 47_901_000 picoseconds. + Weight::from_parts(49_554_000, 4254) .saturating_add(T::DbWeight::get().reads(6_u64)) .saturating_add(T::DbWeight::get().writes(7_u64)) } @@ -413,8 +413,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `68` // Estimated: `4254` - // Minimum execution time: 37_000_000 picoseconds. - Weight::from_parts(37_000_000, 4254) + // Minimum execution time: 23_705_000 picoseconds. + Weight::from_parts(24_313_000, 4254) .saturating_add(T::DbWeight::get().reads(2_u64)) .saturating_add(T::DbWeight::get().writes(3_u64)) } @@ -425,12 +425,12 @@ impl WeightInfo for SubstrateWeight { /// The range of component `x` is `[0, 100]`. fn dapp_tier_assignment(x: u32, ) -> Weight { // Proof Size summary in bytes: - // Measured: `149 + x * (32 ±0)` + // Measured: `152 + x * (32 ±0)` // Estimated: `3061 + x * (2071 ±0)` - // Minimum execution time: 9_000_000 picoseconds. - Weight::from_parts(6_000_000, 3061) - // Standard Error: 187_047 - .saturating_add(Weight::from_parts(3_240_000, 0).saturating_mul(x.into())) + // Minimum execution time: 7_549_000 picoseconds. + Weight::from_parts(12_476_634, 3061) + // Standard Error: 3_594 + .saturating_add(Weight::from_parts(2_387_577, 0).saturating_mul(x.into())) .saturating_add(T::DbWeight::get().reads(2_u64)) .saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(x.into()))) .saturating_add(Weight::from_parts(0, 2071).saturating_mul(x.into())) @@ -445,8 +445,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `293` // Estimated: `4254` - // Minimum execution time: 11_000_000 picoseconds. - Weight::from_parts(11_000_000, 4254) + // Minimum execution time: 8_529_000 picoseconds. + Weight::from_parts(8_772_000, 4254) .saturating_add(T::DbWeight::get().reads(2_u64)) .saturating_add(T::DbWeight::get().writes(3_u64)) } diff --git a/runtime/shiden/src/weights/pallet_dapp_staking_v3.rs b/runtime/shiden/src/weights/pallet_dapp_staking_v3.rs index 9bdbcb96a8..a7067267f8 100644 --- a/runtime/shiden/src/weights/pallet_dapp_staking_v3.rs +++ b/runtime/shiden/src/weights/pallet_dapp_staking_v3.rs @@ -55,8 +55,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 13_000_000 picoseconds. - Weight::from_parts(13_000_000, 0) + // Minimum execution time: 8_967_000 picoseconds. + Weight::from_parts(9_242_000, 0) } /// Storage: DappStaking IntegratedDApps (r:1 w:1) /// Proof: DappStaking IntegratedDApps (max_values: Some(65535), max_size: Some(116), added: 2096, mode: MaxEncodedLen) @@ -68,8 +68,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `3086` - // Minimum execution time: 25_000_000 picoseconds. - Weight::from_parts(25_000_000, 3086) + // Minimum execution time: 17_044_000 picoseconds. + Weight::from_parts(17_328_000, 3086) .saturating_add(T::DbWeight::get().reads(3_u64)) .saturating_add(T::DbWeight::get().writes(3_u64)) } @@ -79,8 +79,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `74` // Estimated: `3086` - // Minimum execution time: 16_000_000 picoseconds. - Weight::from_parts(16_000_000, 3086) + // Minimum execution time: 13_369_000 picoseconds. + Weight::from_parts(13_617_000, 3086) .saturating_add(T::DbWeight::get().reads(1_u64)) .saturating_add(T::DbWeight::get().writes(1_u64)) } @@ -90,8 +90,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `74` // Estimated: `3086` - // Minimum execution time: 15_000_000 picoseconds. - Weight::from_parts(15_000_000, 3086) + // Minimum execution time: 13_421_000 picoseconds. + Weight::from_parts(13_692_000, 3086) .saturating_add(T::DbWeight::get().reads(1_u64)) .saturating_add(T::DbWeight::get().writes(1_u64)) } @@ -105,8 +105,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `74` // Estimated: `3086` - // Minimum execution time: 22_000_000 picoseconds. - Weight::from_parts(22_000_000, 3086) + // Minimum execution time: 18_458_000 picoseconds. + Weight::from_parts(18_864_000, 3086) .saturating_add(T::DbWeight::get().reads(2_u64)) .saturating_add(T::DbWeight::get().writes(3_u64)) } @@ -124,8 +124,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `138` // Estimated: `4764` - // Minimum execution time: 43_000_000 picoseconds. - Weight::from_parts(43_000_000, 4764) + // Minimum execution time: 62_743_000 picoseconds. + Weight::from_parts(64_992_000, 4764) .saturating_add(T::DbWeight::get().reads(5_u64)) .saturating_add(T::DbWeight::get().writes(3_u64)) } @@ -139,10 +139,10 @@ impl WeightInfo for SubstrateWeight { /// Proof: DappStaking CurrentEraInfo (max_values: Some(1), max_size: Some(112), added: 607, mode: MaxEncodedLen) fn lock_existing_account() -> Weight { // Proof Size summary in bytes: - // Measured: `156` + // Measured: `158` // Estimated: `4764` - // Minimum execution time: 43_000_000 picoseconds. - Weight::from_parts(43_000_000, 4764) + // Minimum execution time: 38_250_000 picoseconds. + Weight::from_parts(38_835_000, 4764) .saturating_add(T::DbWeight::get().reads(4_u64)) .saturating_add(T::DbWeight::get().writes(3_u64)) } @@ -156,10 +156,10 @@ impl WeightInfo for SubstrateWeight { /// Proof: DappStaking CurrentEraInfo (max_values: Some(1), max_size: Some(112), added: 607, mode: MaxEncodedLen) fn unlock() -> Weight { // Proof Size summary in bytes: - // Measured: `156` + // Measured: `158` // Estimated: `4764` - // Minimum execution time: 41_000_000 picoseconds. - Weight::from_parts(41_000_000, 4764) + // Minimum execution time: 34_582_000 picoseconds. + Weight::from_parts(35_126_000, 4764) .saturating_add(T::DbWeight::get().reads(4_u64)) .saturating_add(T::DbWeight::get().writes(3_u64)) } @@ -171,15 +171,15 @@ impl WeightInfo for SubstrateWeight { /// Proof: Balances Locks (max_values: None, max_size: Some(1299), added: 3774, mode: MaxEncodedLen) /// Storage: DappStaking CurrentEraInfo (r:1 w:1) /// Proof: DappStaking CurrentEraInfo (max_values: Some(1), max_size: Some(112), added: 607, mode: MaxEncodedLen) - /// The range of component `x` is `[0, 8]`. + /// The range of component `x` is `[0, 16]`. fn claim_unlocked(x: u32, ) -> Weight { // Proof Size summary in bytes: - // Measured: `186` + // Measured: `191` // Estimated: `4764` - // Minimum execution time: 42_000_000 picoseconds. - Weight::from_parts(40_400_000, 4764) - // Standard Error: 616_441 - .saturating_add(Weight::from_parts(1_300_000, 0).saturating_mul(x.into())) + // Minimum execution time: 37_740_000 picoseconds. + Weight::from_parts(39_064_684, 4764) + // Standard Error: 2_750 + .saturating_add(Weight::from_parts(120_539, 0).saturating_mul(x.into())) .saturating_add(T::DbWeight::get().reads(4_u64)) .saturating_add(T::DbWeight::get().writes(3_u64)) } @@ -193,10 +193,10 @@ impl WeightInfo for SubstrateWeight { /// Proof: DappStaking CurrentEraInfo (max_values: Some(1), max_size: Some(112), added: 607, mode: MaxEncodedLen) fn relock_unlocking() -> Weight { // Proof Size summary in bytes: - // Measured: `182` + // Measured: `200` // Estimated: `4764` - // Minimum execution time: 38_000_000 picoseconds. - Weight::from_parts(38_000_000, 4764) + // Minimum execution time: 33_298_000 picoseconds. + Weight::from_parts(33_903_000, 4764) .saturating_add(T::DbWeight::get().reads(4_u64)) .saturating_add(T::DbWeight::get().writes(3_u64)) } @@ -216,10 +216,10 @@ impl WeightInfo for SubstrateWeight { /// Proof: Balances Locks (max_values: None, max_size: Some(1299), added: 3774, mode: MaxEncodedLen) fn stake() -> Weight { // Proof Size summary in bytes: - // Measured: `249` + // Measured: `251` // Estimated: `4764` - // Minimum execution time: 50_000_000 picoseconds. - Weight::from_parts(50_000_000, 4764) + // Minimum execution time: 44_905_000 picoseconds. + Weight::from_parts(45_261_000, 4764) .saturating_add(T::DbWeight::get().reads(7_u64)) .saturating_add(T::DbWeight::get().writes(5_u64)) } @@ -239,10 +239,10 @@ impl WeightInfo for SubstrateWeight { /// Proof: Balances Locks (max_values: None, max_size: Some(1299), added: 3774, mode: MaxEncodedLen) fn unstake() -> Weight { // Proof Size summary in bytes: - // Measured: `426` + // Measured: `432` // Estimated: `4764` - // Minimum execution time: 54_000_000 picoseconds. - Weight::from_parts(54_000_000, 4764) + // Minimum execution time: 48_594_000 picoseconds. + Weight::from_parts(49_441_000, 4764) .saturating_add(T::DbWeight::get().reads(7_u64)) .saturating_add(T::DbWeight::get().writes(5_u64)) } @@ -259,12 +259,12 @@ impl WeightInfo for SubstrateWeight { /// The range of component `x` is `[1, 16]`. fn claim_staker_rewards_past_period(x: u32, ) -> Weight { // Proof Size summary in bytes: - // Measured: `522` + // Measured: `541` // Estimated: `4764` - // Minimum execution time: 61_000_000 picoseconds. - Weight::from_parts(55_805_248, 4764) - // Standard Error: 284_158 - .saturating_add(Weight::from_parts(4_609_116, 0).saturating_mul(x.into())) + // Minimum execution time: 52_182_000 picoseconds. + Weight::from_parts(50_073_700, 4764) + // Standard Error: 4_907 + .saturating_add(Weight::from_parts(3_301_788, 0).saturating_mul(x.into())) .saturating_add(T::DbWeight::get().reads(5_u64)) .saturating_add(T::DbWeight::get().writes(2_u64)) } @@ -279,12 +279,12 @@ impl WeightInfo for SubstrateWeight { /// The range of component `x` is `[1, 16]`. fn claim_staker_rewards_ongoing_period(x: u32, ) -> Weight { // Proof Size summary in bytes: - // Measured: `501` + // Measured: `519` // Estimated: `4764` - // Minimum execution time: 60_000_000 picoseconds. - Weight::from_parts(54_186_464, 4764) - // Standard Error: 118_535 - .saturating_add(Weight::from_parts(4_587_016, 0).saturating_mul(x.into())) + // Minimum execution time: 49_637_000 picoseconds. + Weight::from_parts(47_809_537, 4764) + // Standard Error: 5_850 + .saturating_add(Weight::from_parts(3_304_857, 0).saturating_mul(x.into())) .saturating_add(T::DbWeight::get().reads(4_u64)) .saturating_add(T::DbWeight::get().writes(2_u64)) } @@ -296,10 +296,10 @@ impl WeightInfo for SubstrateWeight { /// Proof: DappStaking Ledger (max_values: None, max_size: Some(310), added: 2785, mode: MaxEncodedLen) fn claim_bonus_reward() -> Weight { // Proof Size summary in bytes: - // Measured: `267` + // Measured: `271` // Estimated: `3775` - // Minimum execution time: 46_000_000 picoseconds. - Weight::from_parts(46_000_000, 3775) + // Minimum execution time: 41_926_000 picoseconds. + Weight::from_parts(42_718_000, 3775) .saturating_add(T::DbWeight::get().reads(3_u64)) .saturating_add(T::DbWeight::get().writes(2_u64)) } @@ -311,8 +311,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `2584` // Estimated: `5048` - // Minimum execution time: 90_000_000 picoseconds. - Weight::from_parts(90_000_000, 5048) + // Minimum execution time: 57_183_000 picoseconds. + Weight::from_parts(58_197_000, 5048) .saturating_add(T::DbWeight::get().reads(2_u64)) .saturating_add(T::DbWeight::get().writes(1_u64)) } @@ -330,14 +330,14 @@ impl WeightInfo for SubstrateWeight { /// Proof: Balances Locks (max_values: None, max_size: Some(1299), added: 3774, mode: MaxEncodedLen) fn unstake_from_unregistered() -> Weight { // Proof Size summary in bytes: - // Measured: `313` + // Measured: `318` // Estimated: `4764` - // Minimum execution time: 64_000_000 picoseconds. - Weight::from_parts(64_000_000, 4764) + // Minimum execution time: 41_858_000 picoseconds. + Weight::from_parts(42_476_000, 4764) .saturating_add(T::DbWeight::get().reads(6_u64)) .saturating_add(T::DbWeight::get().writes(4_u64)) } - /// Storage: DappStaking StakerInfo (r:9 w:8) + /// Storage: DappStaking StakerInfo (r:17 w:16) /// Proof: DappStaking StakerInfo (max_values: None, max_size: Some(138), added: 2613, mode: MaxEncodedLen) /// Storage: DappStaking Ledger (r:1 w:1) /// Proof: DappStaking Ledger (max_values: None, max_size: Some(310), added: 2785, mode: MaxEncodedLen) @@ -345,15 +345,15 @@ impl WeightInfo for SubstrateWeight { /// Proof: Balances Freezes (max_values: None, max_size: Some(67), added: 2542, mode: MaxEncodedLen) /// Storage: Balances Locks (r:1 w:0) /// Proof: Balances Locks (max_values: None, max_size: Some(1299), added: 3774, mode: MaxEncodedLen) - /// The range of component `x` is `[1, 8]`. + /// The range of component `x` is `[1, 16]`. fn cleanup_expired_entries(x: u32, ) -> Weight { // Proof Size summary in bytes: - // Measured: `250 + x * (69 ±0)` + // Measured: `256 + x * (69 ±0)` // Estimated: `4764 + x * (2613 ±0)` - // Minimum execution time: 55_000_000 picoseconds. - Weight::from_parts(48_774_390, 4764) - // Standard Error: 2_201_253 - .saturating_add(Weight::from_parts(6_006_097, 0).saturating_mul(x.into())) + // Minimum execution time: 43_103_000 picoseconds. + Weight::from_parts(39_876_215, 4764) + // Standard Error: 8_123 + .saturating_add(Weight::from_parts(5_014_232, 0).saturating_mul(x.into())) .saturating_add(T::DbWeight::get().reads(4_u64)) .saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(x.into()))) .saturating_add(T::DbWeight::get().writes(2_u64)) @@ -364,8 +364,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 18_000_000 picoseconds. - Weight::from_parts(18_000_000, 0) + // Minimum execution time: 11_543_000 picoseconds. + Weight::from_parts(11_735_000, 0) } /// Storage: DappStaking CurrentEraInfo (r:1 w:1) /// Proof: DappStaking CurrentEraInfo (max_values: Some(1), max_size: Some(112), added: 607, mode: MaxEncodedLen) @@ -375,8 +375,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `16` // Estimated: `4254` - // Minimum execution time: 29_000_000 picoseconds. - Weight::from_parts(29_000_000, 4254) + // Minimum execution time: 17_687_000 picoseconds. + Weight::from_parts(18_283_000, 4254) .saturating_add(T::DbWeight::get().reads(2_u64)) .saturating_add(T::DbWeight::get().writes(2_u64)) } @@ -396,10 +396,10 @@ impl WeightInfo for SubstrateWeight { /// Proof: DappStaking DAppTiers (max_values: None, max_size: Some(1583), added: 4058, mode: MaxEncodedLen) fn on_initialize_build_and_earn_to_voting() -> Weight { // Proof Size summary in bytes: - // Measured: `627` + // Measured: `839` // Estimated: `4254` - // Minimum execution time: 74_000_000 picoseconds. - Weight::from_parts(74_000_000, 4254) + // Minimum execution time: 47_901_000 picoseconds. + Weight::from_parts(49_554_000, 4254) .saturating_add(T::DbWeight::get().reads(6_u64)) .saturating_add(T::DbWeight::get().writes(7_u64)) } @@ -413,8 +413,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `68` // Estimated: `4254` - // Minimum execution time: 37_000_000 picoseconds. - Weight::from_parts(37_000_000, 4254) + // Minimum execution time: 23_705_000 picoseconds. + Weight::from_parts(24_313_000, 4254) .saturating_add(T::DbWeight::get().reads(2_u64)) .saturating_add(T::DbWeight::get().writes(3_u64)) } @@ -425,12 +425,12 @@ impl WeightInfo for SubstrateWeight { /// The range of component `x` is `[0, 100]`. fn dapp_tier_assignment(x: u32, ) -> Weight { // Proof Size summary in bytes: - // Measured: `149 + x * (32 ±0)` + // Measured: `152 + x * (32 ±0)` // Estimated: `3061 + x * (2071 ±0)` - // Minimum execution time: 9_000_000 picoseconds. - Weight::from_parts(6_000_000, 3061) - // Standard Error: 187_047 - .saturating_add(Weight::from_parts(3_240_000, 0).saturating_mul(x.into())) + // Minimum execution time: 7_549_000 picoseconds. + Weight::from_parts(12_476_634, 3061) + // Standard Error: 3_594 + .saturating_add(Weight::from_parts(2_387_577, 0).saturating_mul(x.into())) .saturating_add(T::DbWeight::get().reads(2_u64)) .saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(x.into()))) .saturating_add(Weight::from_parts(0, 2071).saturating_mul(x.into())) @@ -445,8 +445,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `293` // Estimated: `4254` - // Minimum execution time: 11_000_000 picoseconds. - Weight::from_parts(11_000_000, 4254) + // Minimum execution time: 8_529_000 picoseconds. + Weight::from_parts(8_772_000, 4254) .saturating_add(T::DbWeight::get().reads(2_u64)) .saturating_add(T::DbWeight::get().writes(3_u64)) }