diff --git a/pallets/attestation/src/default_weights.rs b/pallets/attestation/src/default_weights.rs index 339dfc05a..b5ba1ee54 100644 --- a/pallets/attestation/src/default_weights.rs +++ b/pallets/attestation/src/default_weights.rs @@ -1,5 +1,3 @@ -// TODO: Update these weights - // KILT Blockchain – https://botlabs.org // Copyright (C) 2019-2023 BOTLabs GmbH @@ -21,14 +19,14 @@ //! Autogenerated weights for attestation //! //! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev -//! DATE: 2023-04-05 -//! STEPS: `2`, REPEAT: `1`, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! DATE: 2023-05-18 +//! STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` //! WORST CASE MAP SIZE: `1000000` //! HOSTNAME: `rust-2`, CPU: `12th Gen Intel(R) Core(TM) i9-12900K` //! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 1024 // Executed Command: -// ./target/debug/kilt-parachain +// ./target/release/kilt-parachain // benchmark // pallet // --template=.maintain/weight-template.hbs @@ -36,8 +34,8 @@ // --execution=wasm // --wasm-execution=compiled // --heap-pages=4096 -// --steps=2 -// --repeat=1 +// --steps=50 +// --repeat=20 // --chain=dev // --pallet=attestation // --extrinsic=* @@ -73,8 +71,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `793` // Estimated: `7840` - // Minimum execution time: 447_026 nanoseconds. - Weight::from_parts(447_026_000, 7840) + // Minimum execution time: 18_852 nanoseconds. + Weight::from_parts(19_658_000, 7840) .saturating_add(T::DbWeight::get().reads(3_u64)) .saturating_add(T::DbWeight::get().writes(2_u64)) } @@ -84,8 +82,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `227` // Estimated: `2670` - // Minimum execution time: 227_083 nanoseconds. - Weight::from_parts(227_083_000, 2670) + // Minimum execution time: 9_106 nanoseconds. + Weight::from_parts(9_580_000, 2670) .saturating_add(T::DbWeight::get().reads(1_u64)) .saturating_add(T::DbWeight::get().writes(1_u64)) } @@ -97,8 +95,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `905` // Estimated: `5277` - // Minimum execution time: 398_720 nanoseconds. - Weight::from_parts(398_720_000, 5277) + // Minimum execution time: 17_595 nanoseconds. + Weight::from_parts(18_133_000, 5277) .saturating_add(T::DbWeight::get().reads(2_u64)) .saturating_add(T::DbWeight::get().writes(2_u64)) } @@ -110,8 +108,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `905` // Estimated: `5277` - // Minimum execution time: 398_488 nanoseconds. - Weight::from_parts(398_488_000, 5277) + // Minimum execution time: 18_054 nanoseconds. + Weight::from_parts(18_690_000, 5277) .saturating_add(T::DbWeight::get().reads(2_u64)) .saturating_add(T::DbWeight::get().writes(2_u64)) } @@ -123,8 +121,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `1484` // Estimated: `7884` - // Minimum execution time: 574_892 nanoseconds. - Weight::from_parts(574_892_000, 7884) + // Minimum execution time: 25_988 nanoseconds. + Weight::from_parts(26_675_000, 7884) .saturating_add(T::DbWeight::get().reads(3_u64)) .saturating_add(T::DbWeight::get().writes(3_u64)) } @@ -136,8 +134,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `905` // Estimated: `5277` - // Minimum execution time: 521_055 nanoseconds. - Weight::from_parts(521_055_000, 5277) + // Minimum execution time: 22_977 nanoseconds. + Weight::from_parts(23_725_000, 5277) .saturating_add(T::DbWeight::get().reads(2_u64)) .saturating_add(T::DbWeight::get().writes(2_u64)) } @@ -155,8 +153,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `793` // Estimated: `7840` - // Minimum execution time: 447_026 nanoseconds. - Weight::from_parts(447_026_000, 7840) + // Minimum execution time: 18_852 nanoseconds. + Weight::from_parts(19_658_000, 7840) .saturating_add(RocksDbWeight::get().reads(3_u64)) .saturating_add(RocksDbWeight::get().writes(2_u64)) } @@ -166,8 +164,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `227` // Estimated: `2670` - // Minimum execution time: 227_083 nanoseconds. - Weight::from_parts(227_083_000, 2670) + // Minimum execution time: 9_106 nanoseconds. + Weight::from_parts(9_580_000, 2670) .saturating_add(RocksDbWeight::get().reads(1_u64)) .saturating_add(RocksDbWeight::get().writes(1_u64)) } @@ -179,8 +177,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `905` // Estimated: `5277` - // Minimum execution time: 398_720 nanoseconds. - Weight::from_parts(398_720_000, 5277) + // Minimum execution time: 17_595 nanoseconds. + Weight::from_parts(18_133_000, 5277) .saturating_add(RocksDbWeight::get().reads(2_u64)) .saturating_add(RocksDbWeight::get().writes(2_u64)) } @@ -192,8 +190,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `905` // Estimated: `5277` - // Minimum execution time: 398_488 nanoseconds. - Weight::from_parts(398_488_000, 5277) + // Minimum execution time: 18_054 nanoseconds. + Weight::from_parts(18_690_000, 5277) .saturating_add(RocksDbWeight::get().reads(2_u64)) .saturating_add(RocksDbWeight::get().writes(2_u64)) } @@ -205,8 +203,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `1484` // Estimated: `7884` - // Minimum execution time: 574_892 nanoseconds. - Weight::from_parts(574_892_000, 7884) + // Minimum execution time: 25_988 nanoseconds. + Weight::from_parts(26_675_000, 7884) .saturating_add(RocksDbWeight::get().reads(3_u64)) .saturating_add(RocksDbWeight::get().writes(3_u64)) } @@ -218,8 +216,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `905` // Estimated: `5277` - // Minimum execution time: 521_055 nanoseconds. - Weight::from_parts(521_055_000, 5277) + // Minimum execution time: 22_977 nanoseconds. + Weight::from_parts(23_725_000, 5277) .saturating_add(RocksDbWeight::get().reads(2_u64)) .saturating_add(RocksDbWeight::get().writes(2_u64)) } diff --git a/pallets/ctype/src/default_weights.rs b/pallets/ctype/src/default_weights.rs index 446baf0cb..f32e2a5d9 100644 --- a/pallets/ctype/src/default_weights.rs +++ b/pallets/ctype/src/default_weights.rs @@ -1,5 +1,3 @@ -// TODO: Update these weights - // KILT Blockchain – https://botlabs.org // Copyright (C) 2019-2023 BOTLabs GmbH @@ -21,14 +19,14 @@ //! Autogenerated weights for ctype //! //! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev -//! DATE: 2023-04-05 -//! STEPS: `2`, REPEAT: `1`, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! DATE: 2023-05-18 +//! STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` //! WORST CASE MAP SIZE: `1000000` //! HOSTNAME: `rust-2`, CPU: `12th Gen Intel(R) Core(TM) i9-12900K` //! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 1024 // Executed Command: -// ./target/debug/kilt-parachain +// ./target/release/kilt-parachain // benchmark // pallet // --template=.maintain/weight-template.hbs @@ -36,8 +34,8 @@ // --execution=wasm // --wasm-execution=compiled // --heap-pages=4096 -// --steps=2 -// --repeat=1 +// --steps=50 +// --repeat=20 // --chain=dev // --pallet=ctype // --extrinsic=* @@ -64,12 +62,14 @@ impl WeightInfo for SubstrateWeight { /// Storage: Ctype Ctypes (r:1 w:1) /// Proof: Ctype Ctypes (max_values: None, max_size: Some(88), added: 2563, mode: MaxEncodedLen) /// The range of component `l` is `[1, 5242880]`. - fn add(_l: u32, ) -> Weight { + fn add(l: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `616` // Estimated: `7777` - // Minimum execution time: 627_192 nanoseconds. - Weight::from_parts(133_537_582_000, 7777) + // Minimum execution time: 48_042 nanoseconds. + Weight::from_parts(48_883_000, 7777) + // Standard Error: 1 + .saturating_add(Weight::from_ref_time(1_195).saturating_mul(l.into())) .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: `151` // Estimated: `2563` - // Minimum execution time: 223_926 nanoseconds. - Weight::from_parts(223_926_000, 2563) + // Minimum execution time: 10_067 nanoseconds. + Weight::from_parts(13_231_000, 2563) .saturating_add(T::DbWeight::get().reads(1_u64)) .saturating_add(T::DbWeight::get().writes(1_u64)) } @@ -93,12 +93,14 @@ impl WeightInfo for () { /// Storage: Ctype Ctypes (r:1 w:1) /// Proof: Ctype Ctypes (max_values: None, max_size: Some(88), added: 2563, mode: MaxEncodedLen) /// The range of component `l` is `[1, 5242880]`. - fn add(_l: u32, ) -> Weight { + fn add(l: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `616` // Estimated: `7777` - // Minimum execution time: 627_192 nanoseconds. - Weight::from_parts(133_537_582_000, 7777) + // Minimum execution time: 48_042 nanoseconds. + Weight::from_parts(48_883_000, 7777) + // Standard Error: 1 + .saturating_add(Weight::from_ref_time(1_195).saturating_mul(l.into())) .saturating_add(RocksDbWeight::get().reads(3_u64)) .saturating_add(RocksDbWeight::get().writes(3_u64)) } @@ -108,8 +110,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `151` // Estimated: `2563` - // Minimum execution time: 223_926 nanoseconds. - Weight::from_parts(223_926_000, 2563) + // Minimum execution time: 10_067 nanoseconds. + Weight::from_parts(13_231_000, 2563) .saturating_add(RocksDbWeight::get().reads(1_u64)) .saturating_add(RocksDbWeight::get().writes(1_u64)) } diff --git a/pallets/delegation/src/default_weights.rs b/pallets/delegation/src/default_weights.rs index b8047b4c4..092be70eb 100644 --- a/pallets/delegation/src/default_weights.rs +++ b/pallets/delegation/src/default_weights.rs @@ -1,5 +1,3 @@ -// TODO: Update these weights - // KILT Blockchain – https://botlabs.org // Copyright (C) 2019-2023 BOTLabs GmbH @@ -21,14 +19,14 @@ //! Autogenerated weights for delegation //! //! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev -//! DATE: 2023-04-05 -//! STEPS: `2`, REPEAT: `1`, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! DATE: 2023-05-18 +//! STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` //! WORST CASE MAP SIZE: `1000000` //! HOSTNAME: `rust-2`, CPU: `12th Gen Intel(R) Core(TM) i9-12900K` //! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 1024 // Executed Command: -// ./target/debug/kilt-parachain +// ./target/release/kilt-parachain // benchmark // pallet // --template=.maintain/weight-template.hbs @@ -36,8 +34,8 @@ // --execution=wasm // --wasm-execution=compiled // --heap-pages=4096 -// --steps=2 -// --repeat=1 +// --steps=50 +// --repeat=20 // --chain=dev // --pallet=delegation // --extrinsic=* @@ -80,8 +78,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `896` // Estimated: `7725` - // Minimum execution time: 498_005 nanoseconds. - Weight::from_parts(498_005_000, 7725) + // Minimum execution time: 20_531 nanoseconds. + Weight::from_parts(21_675_000, 7725) .saturating_add(T::DbWeight::get().reads(3_u64)) .saturating_add(T::DbWeight::get().writes(3_u64)) } @@ -93,8 +91,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `1048` // Estimated: `71957` - // Minimum execution time: 499_731 nanoseconds. - Weight::from_parts(499_731_000, 71957) + // Minimum execution time: 22_557 nanoseconds. + Weight::from_parts(23_576_000, 71957) .saturating_add(T::DbWeight::get().reads(3_u64)) .saturating_add(T::DbWeight::get().writes(3_u64)) } @@ -104,16 +102,14 @@ impl WeightInfo for SubstrateWeight { /// Proof: Delegation DelegationHierarchies (max_values: None, max_size: Some(80), added: 2555, mode: MaxEncodedLen) /// The range of component `r` is `[1, 5]`. /// The range of component `c` is `[1, 5]`. - fn revoke_delegation_root_child(r: u32, c: u32, ) -> Weight { + fn revoke_delegation_root_child(r: u32, _c: u32, ) -> Weight { // Proof Size summary in bytes: - // Measured: `234 + r * (272 ±0)` + // Measured: `241 + r * (271 ±0)` // Estimated: `2555 + r * (34675 ±0)` - // Minimum execution time: 390_746 nanoseconds. - Weight::from_parts(235_841_750, 2555) - // Standard Error: 1_801_116 - .saturating_add(Weight::from_ref_time(151_796_125).saturating_mul(r.into())) - // Standard Error: 1_801_116 - .saturating_add(Weight::from_ref_time(621_625).saturating_mul(c.into())) + // Minimum execution time: 15_125 nanoseconds. + Weight::from_parts(8_147_420, 2555) + // Standard Error: 21_442 + .saturating_add(Weight::from_ref_time(8_618_758).saturating_mul(r.into())) .saturating_add(T::DbWeight::get().reads(1_u64)) .saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(r.into()))) .saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(r.into()))) @@ -125,14 +121,16 @@ impl WeightInfo for SubstrateWeight { /// Proof: Delegation DelegationHierarchies (max_values: None, max_size: Some(80), added: 2555, mode: MaxEncodedLen) /// The range of component `r` is `[1, 5]`. /// The range of component `c` is `[1, 5]`. - fn revoke_delegation_leaf(_r: u32, c: u32, ) -> Weight { + fn revoke_delegation_leaf(r: u32, c: u32, ) -> Weight { // Proof Size summary in bytes: - // Measured: `439 + c * (272 ±0)` + // Measured: `446 + c * (271 ±0)` // Estimated: `37230 + c * (34675 ±0)` - // Minimum execution time: 448_052 nanoseconds. - Weight::from_parts(466_867_250, 37230) - // Standard Error: 4_082_010 - .saturating_add(Weight::from_ref_time(46_061_000).saturating_mul(c.into())) + // Minimum execution time: 17_630 nanoseconds. + Weight::from_parts(15_995_847, 37230) + // Standard Error: 18_648 + .saturating_add(Weight::from_ref_time(21_059).saturating_mul(r.into())) + // Standard Error: 18_648 + .saturating_add(Weight::from_ref_time(3_035_775).saturating_mul(c.into())) .saturating_add(T::DbWeight::get().reads(2_u64)) .saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(c.into()))) .saturating_add(T::DbWeight::get().writes(1_u64)) @@ -145,14 +143,19 @@ impl WeightInfo for SubstrateWeight { /// Storage: Delegation DelegationHierarchies (r:1 w:1) /// Proof: Delegation DelegationHierarchies (max_values: None, max_size: Some(80), added: 2555, mode: MaxEncodedLen) /// The range of component `r` is `[1, 5]`. - fn remove_delegation(_r: u32, ) -> Weight { + fn remove_delegation(r: u32, ) -> Weight { // Proof Size summary in bytes: - // Measured: `1117 + r * (272 ±0)` - // Estimated: `213212` - // Minimum execution time: 846_272 nanoseconds. - Weight::from_parts(1_924_756_000, 213212) - .saturating_add(T::DbWeight::get().reads(8_u64)) - .saturating_add(T::DbWeight::get().writes(8_u64)) + // Measured: `1119 + r * (272 ±0)` + // Estimated: `39837 + r * (34675 ±0)` + // Minimum execution time: 38_077 nanoseconds. + Weight::from_parts(26_891_977, 39837) + // Standard Error: 40_521 + .saturating_add(Weight::from_ref_time(15_313_221).saturating_mul(r.into())) + .saturating_add(T::DbWeight::get().reads(3_u64)) + .saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(r.into()))) + .saturating_add(T::DbWeight::get().writes(3_u64)) + .saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(r.into()))) + .saturating_add(Weight::from_proof_size(34675).saturating_mul(r.into())) } /// Storage: Delegation DelegationNodes (r:6 w:6) /// Proof: Delegation DelegationNodes (max_values: None, max_size: Some(32200), added: 34675, mode: MaxEncodedLen) @@ -161,14 +164,19 @@ impl WeightInfo for SubstrateWeight { /// Storage: Delegation DelegationHierarchies (r:0 w:1) /// Proof: Delegation DelegationHierarchies (max_values: None, max_size: Some(80), added: 2555, mode: MaxEncodedLen) /// The range of component `r` is `[1, 5]`. - fn reclaim_deposit(_r: u32, ) -> Weight { + fn reclaim_deposit(r: u32, ) -> Weight { // Proof Size summary in bytes: - // Measured: `1049 + r * (272 ±0)` - // Estimated: `210657` - // Minimum execution time: 743_542 nanoseconds. - Weight::from_parts(1_854_091_000, 210657) - .saturating_add(T::DbWeight::get().reads(7_u64)) - .saturating_add(T::DbWeight::get().writes(8_u64)) + // Measured: `1051 + r * (272 ±0)` + // Estimated: `37282 + r * (34675 ±0)` + // Minimum execution time: 33_920 nanoseconds. + Weight::from_parts(22_100_902, 37282) + // Standard Error: 41_250 + .saturating_add(Weight::from_ref_time(15_249_932).saturating_mul(r.into())) + .saturating_add(T::DbWeight::get().reads(2_u64)) + .saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(r.into()))) + .saturating_add(T::DbWeight::get().writes(3_u64)) + .saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(r.into()))) + .saturating_add(Weight::from_proof_size(34675).saturating_mul(r.into())) } /// Storage: Delegation DelegationNodes (r:1 w:0) /// Proof: Delegation DelegationNodes (max_values: None, max_size: Some(32200), added: 34675, mode: MaxEncodedLen) @@ -178,31 +186,39 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `645` // Estimated: `37230` - // Minimum execution time: 182_204 nanoseconds. - Weight::from_parts(182_204_000, 37230) + // Minimum execution time: 7_267 nanoseconds. + Weight::from_parts(7_779_000, 37230) .saturating_add(T::DbWeight::get().reads(2_u64)) } /// Storage: Delegation DelegationNodes (r:6 w:0) /// Proof: Delegation DelegationNodes (max_values: None, max_size: Some(32200), added: 34675, mode: MaxEncodedLen) /// The range of component `c` is `[1, 5]`. - fn can_revoke(_c: u32, ) -> Weight { + fn can_revoke(c: u32, ) -> Weight { // Proof Size summary in bytes: - // Measured: `371 + c * (272 ±0)` - // Estimated: `208050` - // Minimum execution time: 159_855 nanoseconds. - Weight::from_parts(340_154_000, 208050) - .saturating_add(T::DbWeight::get().reads(6_u64)) + // Measured: `373 + c * (272 ±0)` + // Estimated: `34675 + c * (34675 ±0)` + // Minimum execution time: 6_421 nanoseconds. + Weight::from_parts(4_790_851, 34675) + // Standard Error: 12_806 + .saturating_add(Weight::from_ref_time(2_552_728).saturating_mul(c.into())) + .saturating_add(T::DbWeight::get().reads(1_u64)) + .saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(c.into()))) + .saturating_add(Weight::from_proof_size(34675).saturating_mul(c.into())) } /// Storage: Delegation DelegationNodes (r:6 w:0) /// Proof: Delegation DelegationNodes (max_values: None, max_size: Some(32200), added: 34675, mode: MaxEncodedLen) /// The range of component `c` is `[1, 5]`. - fn can_remove(_c: u32, ) -> Weight { + fn can_remove(c: u32, ) -> Weight { // Proof Size summary in bytes: - // Measured: `371 + c * (272 ±0)` - // Estimated: `208050` - // Minimum execution time: 145_044 nanoseconds. - Weight::from_parts(346_150_000, 208050) - .saturating_add(T::DbWeight::get().reads(6_u64)) + // Measured: `373 + c * (272 ±0)` + // Estimated: `34675 + c * (34675 ±0)` + // Minimum execution time: 6_283 nanoseconds. + Weight::from_parts(4_764_126, 34675) + // Standard Error: 12_366 + .saturating_add(Weight::from_ref_time(2_603_091).saturating_mul(c.into())) + .saturating_add(T::DbWeight::get().reads(1_u64)) + .saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(c.into()))) + .saturating_add(Weight::from_proof_size(34675).saturating_mul(c.into())) } /// Storage: Delegation DelegationNodes (r:1 w:1) /// Proof: Delegation DelegationNodes (max_values: None, max_size: Some(32200), added: 34675, mode: MaxEncodedLen) @@ -212,8 +228,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `1696` // Estimated: `39889` - // Minimum execution time: 596_163 nanoseconds. - Weight::from_parts(596_163_000, 39889) + // Minimum execution time: 27_538 nanoseconds. + Weight::from_parts(29_455_000, 39889) .saturating_add(T::DbWeight::get().reads(3_u64)) .saturating_add(T::DbWeight::get().writes(3_u64)) } @@ -225,8 +241,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `1117` // Estimated: `37282` - // Minimum execution time: 546_160 nanoseconds. - Weight::from_parts(546_160_000, 37282) + // Minimum execution time: 24_393 nanoseconds. + Weight::from_parts(26_319_000, 37282) .saturating_add(T::DbWeight::get().reads(2_u64)) .saturating_add(T::DbWeight::get().writes(2_u64)) } @@ -246,8 +262,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `896` // Estimated: `7725` - // Minimum execution time: 498_005 nanoseconds. - Weight::from_parts(498_005_000, 7725) + // Minimum execution time: 20_531 nanoseconds. + Weight::from_parts(21_675_000, 7725) .saturating_add(RocksDbWeight::get().reads(3_u64)) .saturating_add(RocksDbWeight::get().writes(3_u64)) } @@ -259,8 +275,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `1048` // Estimated: `71957` - // Minimum execution time: 499_731 nanoseconds. - Weight::from_parts(499_731_000, 71957) + // Minimum execution time: 22_557 nanoseconds. + Weight::from_parts(23_576_000, 71957) .saturating_add(RocksDbWeight::get().reads(3_u64)) .saturating_add(RocksDbWeight::get().writes(3_u64)) } @@ -270,16 +286,14 @@ impl WeightInfo for () { /// Proof: Delegation DelegationHierarchies (max_values: None, max_size: Some(80), added: 2555, mode: MaxEncodedLen) /// The range of component `r` is `[1, 5]`. /// The range of component `c` is `[1, 5]`. - fn revoke_delegation_root_child(r: u32, c: u32, ) -> Weight { + fn revoke_delegation_root_child(r: u32, _c: u32, ) -> Weight { // Proof Size summary in bytes: - // Measured: `234 + r * (272 ±0)` + // Measured: `241 + r * (271 ±0)` // Estimated: `2555 + r * (34675 ±0)` - // Minimum execution time: 390_746 nanoseconds. - Weight::from_parts(235_841_750, 2555) - // Standard Error: 1_801_116 - .saturating_add(Weight::from_ref_time(151_796_125).saturating_mul(r.into())) - // Standard Error: 1_801_116 - .saturating_add(Weight::from_ref_time(621_625).saturating_mul(c.into())) + // Minimum execution time: 15_125 nanoseconds. + Weight::from_parts(8_147_420, 2555) + // Standard Error: 21_442 + .saturating_add(Weight::from_ref_time(8_618_758).saturating_mul(r.into())) .saturating_add(RocksDbWeight::get().reads(1_u64)) .saturating_add(RocksDbWeight::get().reads((1_u64).saturating_mul(r.into()))) .saturating_add(RocksDbWeight::get().writes((1_u64).saturating_mul(r.into()))) @@ -291,14 +305,16 @@ impl WeightInfo for () { /// Proof: Delegation DelegationHierarchies (max_values: None, max_size: Some(80), added: 2555, mode: MaxEncodedLen) /// The range of component `r` is `[1, 5]`. /// The range of component `c` is `[1, 5]`. - fn revoke_delegation_leaf(_r: u32, c: u32, ) -> Weight { + fn revoke_delegation_leaf(r: u32, c: u32, ) -> Weight { // Proof Size summary in bytes: - // Measured: `439 + c * (272 ±0)` + // Measured: `446 + c * (271 ±0)` // Estimated: `37230 + c * (34675 ±0)` - // Minimum execution time: 448_052 nanoseconds. - Weight::from_parts(466_867_250, 37230) - // Standard Error: 4_082_010 - .saturating_add(Weight::from_ref_time(46_061_000).saturating_mul(c.into())) + // Minimum execution time: 17_630 nanoseconds. + Weight::from_parts(15_995_847, 37230) + // Standard Error: 18_648 + .saturating_add(Weight::from_ref_time(21_059).saturating_mul(r.into())) + // Standard Error: 18_648 + .saturating_add(Weight::from_ref_time(3_035_775).saturating_mul(c.into())) .saturating_add(RocksDbWeight::get().reads(2_u64)) .saturating_add(RocksDbWeight::get().reads((1_u64).saturating_mul(c.into()))) .saturating_add(RocksDbWeight::get().writes(1_u64)) @@ -311,14 +327,19 @@ impl WeightInfo for () { /// Storage: Delegation DelegationHierarchies (r:1 w:1) /// Proof: Delegation DelegationHierarchies (max_values: None, max_size: Some(80), added: 2555, mode: MaxEncodedLen) /// The range of component `r` is `[1, 5]`. - fn remove_delegation(_r: u32, ) -> Weight { + fn remove_delegation(r: u32, ) -> Weight { // Proof Size summary in bytes: - // Measured: `1117 + r * (272 ±0)` - // Estimated: `213212` - // Minimum execution time: 846_272 nanoseconds. - Weight::from_parts(1_924_756_000, 213212) - .saturating_add(RocksDbWeight::get().reads(8_u64)) - .saturating_add(RocksDbWeight::get().writes(8_u64)) + // Measured: `1119 + r * (272 ±0)` + // Estimated: `39837 + r * (34675 ±0)` + // Minimum execution time: 38_077 nanoseconds. + Weight::from_parts(26_891_977, 39837) + // Standard Error: 40_521 + .saturating_add(Weight::from_ref_time(15_313_221).saturating_mul(r.into())) + .saturating_add(RocksDbWeight::get().reads(3_u64)) + .saturating_add(RocksDbWeight::get().reads((1_u64).saturating_mul(r.into()))) + .saturating_add(RocksDbWeight::get().writes(3_u64)) + .saturating_add(RocksDbWeight::get().writes((1_u64).saturating_mul(r.into()))) + .saturating_add(Weight::from_proof_size(34675).saturating_mul(r.into())) } /// Storage: Delegation DelegationNodes (r:6 w:6) /// Proof: Delegation DelegationNodes (max_values: None, max_size: Some(32200), added: 34675, mode: MaxEncodedLen) @@ -327,14 +348,19 @@ impl WeightInfo for () { /// Storage: Delegation DelegationHierarchies (r:0 w:1) /// Proof: Delegation DelegationHierarchies (max_values: None, max_size: Some(80), added: 2555, mode: MaxEncodedLen) /// The range of component `r` is `[1, 5]`. - fn reclaim_deposit(_r: u32, ) -> Weight { + fn reclaim_deposit(r: u32, ) -> Weight { // Proof Size summary in bytes: - // Measured: `1049 + r * (272 ±0)` - // Estimated: `210657` - // Minimum execution time: 743_542 nanoseconds. - Weight::from_parts(1_854_091_000, 210657) - .saturating_add(RocksDbWeight::get().reads(7_u64)) - .saturating_add(RocksDbWeight::get().writes(8_u64)) + // Measured: `1051 + r * (272 ±0)` + // Estimated: `37282 + r * (34675 ±0)` + // Minimum execution time: 33_920 nanoseconds. + Weight::from_parts(22_100_902, 37282) + // Standard Error: 41_250 + .saturating_add(Weight::from_ref_time(15_249_932).saturating_mul(r.into())) + .saturating_add(RocksDbWeight::get().reads(2_u64)) + .saturating_add(RocksDbWeight::get().reads((1_u64).saturating_mul(r.into()))) + .saturating_add(RocksDbWeight::get().writes(3_u64)) + .saturating_add(RocksDbWeight::get().writes((1_u64).saturating_mul(r.into()))) + .saturating_add(Weight::from_proof_size(34675).saturating_mul(r.into())) } /// Storage: Delegation DelegationNodes (r:1 w:0) /// Proof: Delegation DelegationNodes (max_values: None, max_size: Some(32200), added: 34675, mode: MaxEncodedLen) @@ -344,31 +370,39 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `645` // Estimated: `37230` - // Minimum execution time: 182_204 nanoseconds. - Weight::from_parts(182_204_000, 37230) + // Minimum execution time: 7_267 nanoseconds. + Weight::from_parts(7_779_000, 37230) .saturating_add(RocksDbWeight::get().reads(2_u64)) } /// Storage: Delegation DelegationNodes (r:6 w:0) /// Proof: Delegation DelegationNodes (max_values: None, max_size: Some(32200), added: 34675, mode: MaxEncodedLen) /// The range of component `c` is `[1, 5]`. - fn can_revoke(_c: u32, ) -> Weight { + fn can_revoke(c: u32, ) -> Weight { // Proof Size summary in bytes: - // Measured: `371 + c * (272 ±0)` - // Estimated: `208050` - // Minimum execution time: 159_855 nanoseconds. - Weight::from_parts(340_154_000, 208050) - .saturating_add(RocksDbWeight::get().reads(6_u64)) + // Measured: `373 + c * (272 ±0)` + // Estimated: `34675 + c * (34675 ±0)` + // Minimum execution time: 6_421 nanoseconds. + Weight::from_parts(4_790_851, 34675) + // Standard Error: 12_806 + .saturating_add(Weight::from_ref_time(2_552_728).saturating_mul(c.into())) + .saturating_add(RocksDbWeight::get().reads(1_u64)) + .saturating_add(RocksDbWeight::get().reads((1_u64).saturating_mul(c.into()))) + .saturating_add(Weight::from_proof_size(34675).saturating_mul(c.into())) } /// Storage: Delegation DelegationNodes (r:6 w:0) /// Proof: Delegation DelegationNodes (max_values: None, max_size: Some(32200), added: 34675, mode: MaxEncodedLen) /// The range of component `c` is `[1, 5]`. - fn can_remove(_c: u32, ) -> Weight { + fn can_remove(c: u32, ) -> Weight { // Proof Size summary in bytes: - // Measured: `371 + c * (272 ±0)` - // Estimated: `208050` - // Minimum execution time: 145_044 nanoseconds. - Weight::from_parts(346_150_000, 208050) - .saturating_add(RocksDbWeight::get().reads(6_u64)) + // Measured: `373 + c * (272 ±0)` + // Estimated: `34675 + c * (34675 ±0)` + // Minimum execution time: 6_283 nanoseconds. + Weight::from_parts(4_764_126, 34675) + // Standard Error: 12_366 + .saturating_add(Weight::from_ref_time(2_603_091).saturating_mul(c.into())) + .saturating_add(RocksDbWeight::get().reads(1_u64)) + .saturating_add(RocksDbWeight::get().reads((1_u64).saturating_mul(c.into()))) + .saturating_add(Weight::from_proof_size(34675).saturating_mul(c.into())) } /// Storage: Delegation DelegationNodes (r:1 w:1) /// Proof: Delegation DelegationNodes (max_values: None, max_size: Some(32200), added: 34675, mode: MaxEncodedLen) @@ -378,8 +412,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `1696` // Estimated: `39889` - // Minimum execution time: 596_163 nanoseconds. - Weight::from_parts(596_163_000, 39889) + // Minimum execution time: 27_538 nanoseconds. + Weight::from_parts(29_455_000, 39889) .saturating_add(RocksDbWeight::get().reads(3_u64)) .saturating_add(RocksDbWeight::get().writes(3_u64)) } @@ -391,8 +425,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `1117` // Estimated: `37282` - // Minimum execution time: 546_160 nanoseconds. - Weight::from_parts(546_160_000, 37282) + // Minimum execution time: 24_393 nanoseconds. + Weight::from_parts(26_319_000, 37282) .saturating_add(RocksDbWeight::get().reads(2_u64)) .saturating_add(RocksDbWeight::get().writes(2_u64)) } diff --git a/pallets/did/src/default_weights.rs b/pallets/did/src/default_weights.rs index 06af39b2e..ba15d8547 100644 --- a/pallets/did/src/default_weights.rs +++ b/pallets/did/src/default_weights.rs @@ -1,5 +1,3 @@ -// TODO: Update these weights - // KILT Blockchain – https://botlabs.org // Copyright (C) 2019-2023 BOTLabs GmbH @@ -21,14 +19,14 @@ //! Autogenerated weights for did //! //! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev -//! DATE: 2023-04-05 -//! STEPS: `2`, REPEAT: `1`, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! DATE: 2023-05-18 +//! STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` //! WORST CASE MAP SIZE: `1000000` //! HOSTNAME: `rust-2`, CPU: `12th Gen Intel(R) Core(TM) i9-12900K` //! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 1024 // Executed Command: -// ./target/debug/kilt-parachain +// ./target/release/kilt-parachain // benchmark // pallet // --template=.maintain/weight-template.hbs @@ -36,8 +34,8 @@ // --execution=wasm // --wasm-execution=compiled // --heap-pages=4096 -// --steps=2 -// --repeat=1 +// --steps=50 +// --repeat=20 // --chain=dev // --pallet=did // --extrinsic=* @@ -93,128 +91,138 @@ pub trait WeightInfo { /// Weights for did using the Substrate node and recommended hardware. pub struct SubstrateWeight(PhantomData); impl WeightInfo for SubstrateWeight { - /// Storage: System Account (r:2 w:2) - /// Proof: System Account (max_values: None, max_size: Some(132), added: 2607, mode: MaxEncodedLen) /// Storage: Did DidBlacklist (r:1 w:0) /// Proof: Did DidBlacklist (max_values: None, max_size: Some(48), added: 2523, mode: MaxEncodedLen) /// Storage: Did Did (r:1 w:1) /// Proof: Did Did (max_values: None, max_size: Some(2312), added: 4787, mode: MaxEncodedLen) + /// Storage: System Account (r:2 w:2) + /// Proof: System Account (max_values: None, max_size: Some(132), added: 2607, mode: MaxEncodedLen) /// Storage: Did DidEndpointsCount (r:0 w:1) /// Proof: Did DidEndpointsCount (max_values: None, max_size: Some(52), added: 2527, mode: MaxEncodedLen) /// Storage: Did ServiceEndpoints (r:0 w:25) - /// Proof: Did ServiceEndpoints (max_values: None, max_size: Some(413), added: 2888, mode: MaxEncodedLen) + /// Proof: Did ServiceEndpoints (max_values: None, max_size: Some(615), added: 3090, mode: MaxEncodedLen) /// The range of component `n` is `[1, 10]`. /// The range of component `c` is `[1, 25]`. fn create_ed25519_keys(n: u32, c: u32, ) -> Weight { // Proof Size summary in bytes: - // Measured: `1162` + // Measured: `1195` // Estimated: `12524` - // Minimum execution time: 1_348_855 nanoseconds. - Weight::from_parts(1_213_627_805, 12524) - // Standard Error: 14_593_105 - .saturating_add(Weight::from_ref_time(7_671_444).saturating_mul(n.into())) - // Standard Error: 5_472_414 - .saturating_add(Weight::from_ref_time(58_512_750).saturating_mul(c.into())) + // Minimum execution time: 85_129 nanoseconds. + Weight::from_parts(80_652_158, 12524) + // Standard Error: 47_317 + .saturating_add(Weight::from_ref_time(724_957).saturating_mul(n.into())) + // Standard Error: 18_294 + .saturating_add(Weight::from_ref_time(6_032_689).saturating_mul(c.into())) .saturating_add(T::DbWeight::get().reads(4_u64)) .saturating_add(T::DbWeight::get().writes(4_u64)) .saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(c.into()))) } - /// Storage: System Account (r:2 w:2) - /// Proof: System Account (max_values: None, max_size: Some(132), added: 2607, mode: MaxEncodedLen) /// Storage: Did DidBlacklist (r:1 w:0) /// Proof: Did DidBlacklist (max_values: None, max_size: Some(48), added: 2523, mode: MaxEncodedLen) /// Storage: Did Did (r:1 w:1) /// Proof: Did Did (max_values: None, max_size: Some(2312), added: 4787, mode: MaxEncodedLen) + /// Storage: System Account (r:2 w:2) + /// Proof: System Account (max_values: None, max_size: Some(132), added: 2607, mode: MaxEncodedLen) /// Storage: Did DidEndpointsCount (r:0 w:1) /// Proof: Did DidEndpointsCount (max_values: None, max_size: Some(52), added: 2527, mode: MaxEncodedLen) /// Storage: Did ServiceEndpoints (r:0 w:25) - /// Proof: Did ServiceEndpoints (max_values: None, max_size: Some(413), added: 2888, mode: MaxEncodedLen) + /// Proof: Did ServiceEndpoints (max_values: None, max_size: Some(615), added: 3090, mode: MaxEncodedLen) /// The range of component `n` is `[1, 10]`. /// The range of component `c` is `[1, 25]`. fn create_sr25519_keys(n: u32, c: u32, ) -> Weight { // Proof Size summary in bytes: - // Measured: `1162` + // Measured: `1195` // Estimated: `12524` - // Minimum execution time: 1_431_811 nanoseconds. - Weight::from_parts(1_174_825_500, 12524) - // Standard Error: 1_405_847 - .saturating_add(Weight::from_ref_time(20_334_666).saturating_mul(n.into())) - // Standard Error: 527_192 - .saturating_add(Weight::from_ref_time(53_638_833).saturating_mul(c.into())) + // Minimum execution time: 86_955 nanoseconds. + Weight::from_parts(77_165_823, 12524) + // Standard Error: 44_838 + .saturating_add(Weight::from_ref_time(982_121).saturating_mul(n.into())) + // Standard Error: 17_335 + .saturating_add(Weight::from_ref_time(6_564_601).saturating_mul(c.into())) .saturating_add(T::DbWeight::get().reads(4_u64)) .saturating_add(T::DbWeight::get().writes(4_u64)) .saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(c.into()))) } - /// Storage: System Account (r:2 w:2) - /// Proof: System Account (max_values: None, max_size: Some(132), added: 2607, mode: MaxEncodedLen) /// Storage: Did DidBlacklist (r:1 w:0) /// Proof: Did DidBlacklist (max_values: None, max_size: Some(48), added: 2523, mode: MaxEncodedLen) /// Storage: Did Did (r:1 w:1) /// Proof: Did Did (max_values: None, max_size: Some(2312), added: 4787, mode: MaxEncodedLen) + /// Storage: System Account (r:2 w:2) + /// Proof: System Account (max_values: None, max_size: Some(132), added: 2607, mode: MaxEncodedLen) /// Storage: Did DidEndpointsCount (r:0 w:1) /// Proof: Did DidEndpointsCount (max_values: None, max_size: Some(52), added: 2527, mode: MaxEncodedLen) /// Storage: Did ServiceEndpoints (r:0 w:25) - /// Proof: Did ServiceEndpoints (max_values: None, max_size: Some(413), added: 2888, mode: MaxEncodedLen) + /// Proof: Did ServiceEndpoints (max_values: None, max_size: Some(615), added: 3090, mode: MaxEncodedLen) /// The range of component `n` is `[1, 10]`. /// The range of component `c` is `[1, 25]`. fn create_ecdsa_keys(n: u32, c: u32, ) -> Weight { // Proof Size summary in bytes: - // Measured: `1162` + // Measured: `1195` // Estimated: `12524` - // Minimum execution time: 1_180_131 nanoseconds. - Weight::from_parts(947_704_381, 12524) - // Standard Error: 2_114_160 - .saturating_add(Weight::from_ref_time(17_841_055).saturating_mul(n.into())) - // Standard Error: 792_810 - .saturating_add(Weight::from_ref_time(54_016_062).saturating_mul(c.into())) + // Minimum execution time: 83_054 nanoseconds. + Weight::from_parts(82_503_872, 12524) + // Standard Error: 63_326 + .saturating_add(Weight::from_ref_time(618_751).saturating_mul(n.into())) + // Standard Error: 24_483 + .saturating_add(Weight::from_ref_time(5_746_716).saturating_mul(c.into())) .saturating_add(T::DbWeight::get().reads(4_u64)) .saturating_add(T::DbWeight::get().writes(4_u64)) .saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(c.into()))) } /// Storage: Did DidEndpointsCount (r:1 w:1) /// Proof: Did DidEndpointsCount (max_values: None, max_size: Some(52), added: 2527, mode: MaxEncodedLen) + /// Storage: Did ServiceEndpoints (r:25 w:25) + /// Proof: Did ServiceEndpoints (max_values: None, max_size: Some(615), added: 3090, mode: MaxEncodedLen) /// Storage: Did Did (r:1 w:1) /// Proof: Did Did (max_values: None, max_size: Some(2312), added: 4787, mode: MaxEncodedLen) /// Storage: Did DidBlacklist (r:0 w:1) /// Proof: Did DidBlacklist (max_values: None, max_size: Some(48), added: 2523, mode: MaxEncodedLen) - /// Storage: Did ServiceEndpoints (r:0 w:25) - /// Proof: Did ServiceEndpoints (max_values: None, max_size: Some(413), added: 2888, mode: MaxEncodedLen) /// The range of component `c` is `[1, 25]`. - fn delete(_c: u32, ) -> Weight { - // Proof Size summary in bytes: - // Measured: `478 + c * (105 ±0)` - // Estimated: `7314` - // Minimum execution time: 390_237 nanoseconds. - Weight::from_parts(651_406_000, 7314) + fn delete(c: u32, ) -> Weight { + // Proof Size summary in bytes: + // Measured: `515 + c * (105 ±0)` + // Estimated: `7314 + c * (3090 ±0)` + // Minimum execution time: 15_346 nanoseconds. + Weight::from_parts(17_226_638, 7314) + // Standard Error: 19_165 + .saturating_add(Weight::from_ref_time(921_753).saturating_mul(c.into())) .saturating_add(T::DbWeight::get().reads(2_u64)) - .saturating_add(T::DbWeight::get().writes(28_u64)) + .saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(c.into()))) + .saturating_add(T::DbWeight::get().writes(3_u64)) + .saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(c.into()))) + .saturating_add(Weight::from_proof_size(3090).saturating_mul(c.into())) } /// Storage: Did Did (r:1 w:1) /// Proof: Did Did (max_values: None, max_size: Some(2312), added: 4787, mode: MaxEncodedLen) /// Storage: Did DidEndpointsCount (r:1 w:1) /// Proof: Did DidEndpointsCount (max_values: None, max_size: Some(52), added: 2527, mode: MaxEncodedLen) + /// Storage: Did ServiceEndpoints (r:25 w:25) + /// Proof: Did ServiceEndpoints (max_values: None, max_size: Some(615), added: 3090, mode: MaxEncodedLen) /// Storage: Did DidBlacklist (r:0 w:1) /// Proof: Did DidBlacklist (max_values: None, max_size: Some(48), added: 2523, mode: MaxEncodedLen) - /// Storage: Did ServiceEndpoints (r:0 w:25) - /// Proof: Did ServiceEndpoints (max_values: None, max_size: Some(413), added: 2888, mode: MaxEncodedLen) /// The range of component `c` is `[1, 25]`. - fn reclaim_deposit(_c: u32, ) -> Weight { - // Proof Size summary in bytes: - // Measured: `478 + c * (105 ±0)` - // Estimated: `7314` - // Minimum execution time: 411_810 nanoseconds. - Weight::from_parts(659_678_000, 7314) + fn reclaim_deposit(c: u32, ) -> Weight { + // Proof Size summary in bytes: + // Measured: `515 + c * (105 ±0)` + // Estimated: `7314 + c * (3090 ±0)` + // Minimum execution time: 17_363 nanoseconds. + Weight::from_parts(18_240_688, 7314) + // Standard Error: 5_930 + .saturating_add(Weight::from_ref_time(928_602).saturating_mul(c.into())) .saturating_add(T::DbWeight::get().reads(2_u64)) - .saturating_add(T::DbWeight::get().writes(28_u64)) + .saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(c.into()))) + .saturating_add(T::DbWeight::get().writes(3_u64)) + .saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(c.into()))) + .saturating_add(Weight::from_proof_size(3090).saturating_mul(c.into())) } /// Storage: Did Did (r:1 w:1) /// Proof: Did Did (max_values: None, max_size: Some(2312), added: 4787, mode: MaxEncodedLen) fn submit_did_call_ed25519_key() -> Weight { // Proof Size summary in bytes: - // Measured: `350` + // Measured: `383` // Estimated: `4787` - // Minimum execution time: 513_097 nanoseconds. - Weight::from_parts(513_097_000, 4787) + // Minimum execution time: 42_315 nanoseconds. + Weight::from_parts(44_217_000, 4787) .saturating_add(T::DbWeight::get().reads(1_u64)) .saturating_add(T::DbWeight::get().writes(1_u64)) } @@ -222,10 +230,10 @@ impl WeightInfo for SubstrateWeight { /// Proof: Did Did (max_values: None, max_size: Some(2312), added: 4787, mode: MaxEncodedLen) fn submit_did_call_sr25519_key() -> Weight { // Proof Size summary in bytes: - // Measured: `350` + // Measured: `383` // Estimated: `4787` - // Minimum execution time: 685_962 nanoseconds. - Weight::from_parts(685_962_000, 4787) + // Minimum execution time: 41_910 nanoseconds. + Weight::from_parts(44_705_000, 4787) .saturating_add(T::DbWeight::get().reads(1_u64)) .saturating_add(T::DbWeight::get().writes(1_u64)) } @@ -233,303 +241,399 @@ impl WeightInfo for SubstrateWeight { /// Proof: Did Did (max_values: None, max_size: Some(2312), added: 4787, mode: MaxEncodedLen) fn submit_did_call_ecdsa_key() -> Weight { // Proof Size summary in bytes: - // Measured: `351` + // Measured: `384` // Estimated: `4787` - // Minimum execution time: 447_987 nanoseconds. - Weight::from_parts(447_987_000, 4787) + // Minimum execution time: 38_113 nanoseconds. + Weight::from_parts(42_374_000, 4787) .saturating_add(T::DbWeight::get().reads(1_u64)) .saturating_add(T::DbWeight::get().writes(1_u64)) } /// Storage: Did Did (r:1 w:1) /// Proof: Did Did (max_values: None, max_size: Some(2312), added: 4787, mode: MaxEncodedLen) + /// Storage: Did DidEndpointsCount (r:1 w:0) + /// Proof: Did DidEndpointsCount (max_values: None, max_size: Some(52), added: 2527, mode: MaxEncodedLen) + /// Storage: System Account (r:1 w:1) + /// Proof: System Account (max_values: None, max_size: Some(132), added: 2607, mode: MaxEncodedLen) fn set_ed25519_authentication_key() -> Weight { // Proof Size summary in bytes: - // Measured: `1622` - // Estimated: `4787` - // Minimum execution time: 302_010 nanoseconds. - Weight::from_parts(302_010_000, 4787) - .saturating_add(T::DbWeight::get().reads(1_u64)) - .saturating_add(T::DbWeight::get().writes(1_u64)) + // Measured: `2233` + // Estimated: `9921` + // Minimum execution time: 25_982 nanoseconds. + Weight::from_parts(28_657_000, 9921) + .saturating_add(T::DbWeight::get().reads(3_u64)) + .saturating_add(T::DbWeight::get().writes(2_u64)) } /// Storage: Did Did (r:1 w:1) /// Proof: Did Did (max_values: None, max_size: Some(2312), added: 4787, mode: MaxEncodedLen) + /// Storage: Did DidEndpointsCount (r:1 w:0) + /// Proof: Did DidEndpointsCount (max_values: None, max_size: Some(52), added: 2527, mode: MaxEncodedLen) + /// Storage: System Account (r:1 w:1) + /// Proof: System Account (max_values: None, max_size: Some(132), added: 2607, mode: MaxEncodedLen) fn set_sr25519_authentication_key() -> Weight { // Proof Size summary in bytes: - // Measured: `1622` - // Estimated: `4787` - // Minimum execution time: 333_616 nanoseconds. - Weight::from_parts(333_616_000, 4787) - .saturating_add(T::DbWeight::get().reads(1_u64)) - .saturating_add(T::DbWeight::get().writes(1_u64)) + // Measured: `2228` + // Estimated: `9921` + // Minimum execution time: 24_465 nanoseconds. + Weight::from_parts(26_247_000, 9921) + .saturating_add(T::DbWeight::get().reads(3_u64)) + .saturating_add(T::DbWeight::get().writes(2_u64)) } /// Storage: Did Did (r:1 w:1) /// Proof: Did Did (max_values: None, max_size: Some(2312), added: 4787, mode: MaxEncodedLen) + /// Storage: Did DidEndpointsCount (r:1 w:0) + /// Proof: Did DidEndpointsCount (max_values: None, max_size: Some(52), added: 2527, mode: MaxEncodedLen) + /// Storage: System Account (r:1 w:1) + /// Proof: System Account (max_values: None, max_size: Some(132), added: 2607, mode: MaxEncodedLen) fn set_ecdsa_authentication_key() -> Weight { // Proof Size summary in bytes: - // Measured: `1625` - // Estimated: `4787` - // Minimum execution time: 324_846 nanoseconds. - Weight::from_parts(324_846_000, 4787) - .saturating_add(T::DbWeight::get().reads(1_u64)) - .saturating_add(T::DbWeight::get().writes(1_u64)) + // Measured: `2236` + // Estimated: `9921` + // Minimum execution time: 26_712 nanoseconds. + Weight::from_parts(28_562_000, 9921) + .saturating_add(T::DbWeight::get().reads(3_u64)) + .saturating_add(T::DbWeight::get().writes(2_u64)) } /// Storage: Did Did (r:1 w:1) /// Proof: Did Did (max_values: None, max_size: Some(2312), added: 4787, mode: MaxEncodedLen) + /// Storage: Did DidEndpointsCount (r:1 w:0) + /// Proof: Did DidEndpointsCount (max_values: None, max_size: Some(52), added: 2527, mode: MaxEncodedLen) + /// Storage: System Account (r:1 w:1) + /// Proof: System Account (max_values: None, max_size: Some(132), added: 2607, mode: MaxEncodedLen) fn set_ed25519_delegation_key() -> Weight { // Proof Size summary in bytes: - // Measured: `1622` - // Estimated: `4787` - // Minimum execution time: 303_996 nanoseconds. - Weight::from_parts(303_996_000, 4787) - .saturating_add(T::DbWeight::get().reads(1_u64)) - .saturating_add(T::DbWeight::get().writes(1_u64)) + // Measured: `2168` + // Estimated: `9921` + // Minimum execution time: 25_634 nanoseconds. + Weight::from_parts(27_994_000, 9921) + .saturating_add(T::DbWeight::get().reads(3_u64)) + .saturating_add(T::DbWeight::get().writes(2_u64)) } /// Storage: Did Did (r:1 w:1) /// Proof: Did Did (max_values: None, max_size: Some(2312), added: 4787, mode: MaxEncodedLen) + /// Storage: Did DidEndpointsCount (r:1 w:0) + /// Proof: Did DidEndpointsCount (max_values: None, max_size: Some(52), added: 2527, mode: MaxEncodedLen) + /// Storage: System Account (r:1 w:1) + /// Proof: System Account (max_values: None, max_size: Some(132), added: 2607, mode: MaxEncodedLen) fn set_sr25519_delegation_key() -> Weight { // Proof Size summary in bytes: - // Measured: `1622` - // Estimated: `4787` - // Minimum execution time: 339_231 nanoseconds. - Weight::from_parts(339_231_000, 4787) - .saturating_add(T::DbWeight::get().reads(1_u64)) - .saturating_add(T::DbWeight::get().writes(1_u64)) + // Measured: `2101` + // Estimated: `9921` + // Minimum execution time: 26_723 nanoseconds. + Weight::from_parts(28_052_000, 9921) + .saturating_add(T::DbWeight::get().reads(3_u64)) + .saturating_add(T::DbWeight::get().writes(2_u64)) } /// Storage: Did Did (r:1 w:1) /// Proof: Did Did (max_values: None, max_size: Some(2312), added: 4787, mode: MaxEncodedLen) + /// Storage: Did DidEndpointsCount (r:1 w:0) + /// Proof: Did DidEndpointsCount (max_values: None, max_size: Some(52), added: 2527, mode: MaxEncodedLen) + /// Storage: System Account (r:1 w:1) + /// Proof: System Account (max_values: None, max_size: Some(132), added: 2607, mode: MaxEncodedLen) fn set_ecdsa_delegation_key() -> Weight { // Proof Size summary in bytes: - // Measured: `1625` - // Estimated: `4787` - // Minimum execution time: 321_963 nanoseconds. - Weight::from_parts(321_963_000, 4787) - .saturating_add(T::DbWeight::get().reads(1_u64)) - .saturating_add(T::DbWeight::get().writes(1_u64)) + // Measured: `2141` + // Estimated: `9921` + // Minimum execution time: 26_979 nanoseconds. + Weight::from_parts(31_165_000, 9921) + .saturating_add(T::DbWeight::get().reads(3_u64)) + .saturating_add(T::DbWeight::get().writes(2_u64)) } /// Storage: Did Did (r:1 w:1) /// Proof: Did Did (max_values: None, max_size: Some(2312), added: 4787, mode: MaxEncodedLen) + /// Storage: Did DidEndpointsCount (r:1 w:0) + /// Proof: Did DidEndpointsCount (max_values: None, max_size: Some(52), added: 2527, mode: MaxEncodedLen) + /// Storage: System Account (r:1 w:1) + /// Proof: System Account (max_values: None, max_size: Some(132), added: 2607, mode: MaxEncodedLen) fn remove_ed25519_delegation_key() -> Weight { // Proof Size summary in bytes: - // Measured: `1622` - // Estimated: `4787` - // Minimum execution time: 302_012 nanoseconds. - Weight::from_parts(302_012_000, 4787) - .saturating_add(T::DbWeight::get().reads(1_u64)) - .saturating_add(T::DbWeight::get().writes(1_u64)) + // Measured: `2228` + // Estimated: `9921` + // Minimum execution time: 24_954 nanoseconds. + Weight::from_parts(26_013_000, 9921) + .saturating_add(T::DbWeight::get().reads(3_u64)) + .saturating_add(T::DbWeight::get().writes(2_u64)) } /// Storage: Did Did (r:1 w:1) /// Proof: Did Did (max_values: None, max_size: Some(2312), added: 4787, mode: MaxEncodedLen) + /// Storage: Did DidEndpointsCount (r:1 w:0) + /// Proof: Did DidEndpointsCount (max_values: None, max_size: Some(52), added: 2527, mode: MaxEncodedLen) + /// Storage: System Account (r:1 w:1) + /// Proof: System Account (max_values: None, max_size: Some(132), added: 2607, mode: MaxEncodedLen) fn remove_sr25519_delegation_key() -> Weight { // Proof Size summary in bytes: - // Measured: `1622` - // Estimated: `4787` - // Minimum execution time: 284_116 nanoseconds. - Weight::from_parts(284_116_000, 4787) - .saturating_add(T::DbWeight::get().reads(1_u64)) - .saturating_add(T::DbWeight::get().writes(1_u64)) + // Measured: `2168` + // Estimated: `9921` + // Minimum execution time: 24_029 nanoseconds. + Weight::from_parts(26_148_000, 9921) + .saturating_add(T::DbWeight::get().reads(3_u64)) + .saturating_add(T::DbWeight::get().writes(2_u64)) } /// Storage: Did Did (r:1 w:1) /// Proof: Did Did (max_values: None, max_size: Some(2312), added: 4787, mode: MaxEncodedLen) + /// Storage: Did DidEndpointsCount (r:1 w:0) + /// Proof: Did DidEndpointsCount (max_values: None, max_size: Some(52), added: 2527, mode: MaxEncodedLen) + /// Storage: System Account (r:1 w:1) + /// Proof: System Account (max_values: None, max_size: Some(132), added: 2607, mode: MaxEncodedLen) fn remove_ecdsa_delegation_key() -> Weight { // Proof Size summary in bytes: - // Measured: `1625` - // Estimated: `4787` - // Minimum execution time: 346_281 nanoseconds. - Weight::from_parts(346_281_000, 4787) - .saturating_add(T::DbWeight::get().reads(1_u64)) - .saturating_add(T::DbWeight::get().writes(1_u64)) + // Measured: `2165` + // Estimated: `9921` + // Minimum execution time: 25_088 nanoseconds. + Weight::from_parts(28_474_000, 9921) + .saturating_add(T::DbWeight::get().reads(3_u64)) + .saturating_add(T::DbWeight::get().writes(2_u64)) } /// Storage: Did Did (r:1 w:1) /// Proof: Did Did (max_values: None, max_size: Some(2312), added: 4787, mode: MaxEncodedLen) + /// Storage: Did DidEndpointsCount (r:1 w:0) + /// Proof: Did DidEndpointsCount (max_values: None, max_size: Some(52), added: 2527, mode: MaxEncodedLen) + /// Storage: System Account (r:1 w:1) + /// Proof: System Account (max_values: None, max_size: Some(132), added: 2607, mode: MaxEncodedLen) fn set_ed25519_attestation_key() -> Weight { // Proof Size summary in bytes: - // Measured: `1622` - // Estimated: `4787` - // Minimum execution time: 339_840 nanoseconds. - Weight::from_parts(339_840_000, 4787) - .saturating_add(T::DbWeight::get().reads(1_u64)) - .saturating_add(T::DbWeight::get().writes(1_u64)) + // Measured: `2200` + // Estimated: `9921` + // Minimum execution time: 26_969 nanoseconds. + Weight::from_parts(28_513_000, 9921) + .saturating_add(T::DbWeight::get().reads(3_u64)) + .saturating_add(T::DbWeight::get().writes(2_u64)) } /// Storage: Did Did (r:1 w:1) /// Proof: Did Did (max_values: None, max_size: Some(2312), added: 4787, mode: MaxEncodedLen) + /// Storage: Did DidEndpointsCount (r:1 w:0) + /// Proof: Did DidEndpointsCount (max_values: None, max_size: Some(52), added: 2527, mode: MaxEncodedLen) + /// Storage: System Account (r:1 w:1) + /// Proof: System Account (max_values: None, max_size: Some(132), added: 2607, mode: MaxEncodedLen) fn set_sr25519_attestation_key() -> Weight { // Proof Size summary in bytes: - // Measured: `1622` - // Estimated: `4787` - // Minimum execution time: 419_934 nanoseconds. - Weight::from_parts(419_934_000, 4787) - .saturating_add(T::DbWeight::get().reads(1_u64)) - .saturating_add(T::DbWeight::get().writes(1_u64)) + // Measured: `2200` + // Estimated: `9921` + // Minimum execution time: 25_428 nanoseconds. + Weight::from_parts(27_908_000, 9921) + .saturating_add(T::DbWeight::get().reads(3_u64)) + .saturating_add(T::DbWeight::get().writes(2_u64)) } /// Storage: Did Did (r:1 w:1) /// Proof: Did Did (max_values: None, max_size: Some(2312), added: 4787, mode: MaxEncodedLen) + /// Storage: Did DidEndpointsCount (r:1 w:0) + /// Proof: Did DidEndpointsCount (max_values: None, max_size: Some(52), added: 2527, mode: MaxEncodedLen) + /// Storage: System Account (r:1 w:1) + /// Proof: System Account (max_values: None, max_size: Some(132), added: 2607, mode: MaxEncodedLen) fn set_ecdsa_attestation_key() -> Weight { // Proof Size summary in bytes: - // Measured: `1625` - // Estimated: `4787` - // Minimum execution time: 369_942 nanoseconds. - Weight::from_parts(369_942_000, 4787) - .saturating_add(T::DbWeight::get().reads(1_u64)) - .saturating_add(T::DbWeight::get().writes(1_u64)) + // Measured: `2204` + // Estimated: `9921` + // Minimum execution time: 25_006 nanoseconds. + Weight::from_parts(29_823_000, 9921) + .saturating_add(T::DbWeight::get().reads(3_u64)) + .saturating_add(T::DbWeight::get().writes(2_u64)) } /// Storage: Did Did (r:1 w:1) /// Proof: Did Did (max_values: None, max_size: Some(2312), added: 4787, mode: MaxEncodedLen) + /// Storage: Did DidEndpointsCount (r:1 w:0) + /// Proof: Did DidEndpointsCount (max_values: None, max_size: Some(52), added: 2527, mode: MaxEncodedLen) + /// Storage: System Account (r:1 w:1) + /// Proof: System Account (max_values: None, max_size: Some(132), added: 2607, mode: MaxEncodedLen) fn remove_ed25519_attestation_key() -> Weight { // Proof Size summary in bytes: - // Measured: `1622` - // Estimated: `4787` - // Minimum execution time: 356_252 nanoseconds. - Weight::from_parts(356_252_000, 4787) - .saturating_add(T::DbWeight::get().reads(1_u64)) - .saturating_add(T::DbWeight::get().writes(1_u64)) + // Measured: `2195` + // Estimated: `9921` + // Minimum execution time: 24_888 nanoseconds. + Weight::from_parts(26_718_000, 9921) + .saturating_add(T::DbWeight::get().reads(3_u64)) + .saturating_add(T::DbWeight::get().writes(2_u64)) } /// Storage: Did Did (r:1 w:1) /// Proof: Did Did (max_values: None, max_size: Some(2312), added: 4787, mode: MaxEncodedLen) + /// Storage: Did DidEndpointsCount (r:1 w:0) + /// Proof: Did DidEndpointsCount (max_values: None, max_size: Some(52), added: 2527, mode: MaxEncodedLen) + /// Storage: System Account (r:1 w:1) + /// Proof: System Account (max_values: None, max_size: Some(132), added: 2607, mode: MaxEncodedLen) fn remove_sr25519_attestation_key() -> Weight { // Proof Size summary in bytes: - // Measured: `1622` - // Estimated: `4787` - // Minimum execution time: 289_670 nanoseconds. - Weight::from_parts(289_670_000, 4787) - .saturating_add(T::DbWeight::get().reads(1_u64)) - .saturating_add(T::DbWeight::get().writes(1_u64)) + // Measured: `2162` + // Estimated: `9921` + // Minimum execution time: 24_924 nanoseconds. + Weight::from_parts(26_259_000, 9921) + .saturating_add(T::DbWeight::get().reads(3_u64)) + .saturating_add(T::DbWeight::get().writes(2_u64)) } /// Storage: Did Did (r:1 w:1) /// Proof: Did Did (max_values: None, max_size: Some(2312), added: 4787, mode: MaxEncodedLen) + /// Storage: Did DidEndpointsCount (r:1 w:0) + /// Proof: Did DidEndpointsCount (max_values: None, max_size: Some(52), added: 2527, mode: MaxEncodedLen) + /// Storage: System Account (r:1 w:1) + /// Proof: System Account (max_values: None, max_size: Some(132), added: 2607, mode: MaxEncodedLen) fn remove_ecdsa_attestation_key() -> Weight { // Proof Size summary in bytes: - // Measured: `1625` - // Estimated: `4787` - // Minimum execution time: 300_435 nanoseconds. - Weight::from_parts(300_435_000, 4787) - .saturating_add(T::DbWeight::get().reads(1_u64)) - .saturating_add(T::DbWeight::get().writes(1_u64)) + // Measured: `2209` + // Estimated: `9921` + // Minimum execution time: 25_462 nanoseconds. + Weight::from_parts(29_273_000, 9921) + .saturating_add(T::DbWeight::get().reads(3_u64)) + .saturating_add(T::DbWeight::get().writes(2_u64)) } /// Storage: Did Did (r:1 w:1) /// Proof: Did Did (max_values: None, max_size: Some(2312), added: 4787, mode: MaxEncodedLen) + /// Storage: Did DidEndpointsCount (r:1 w:0) + /// Proof: Did DidEndpointsCount (max_values: None, max_size: Some(52), added: 2527, mode: MaxEncodedLen) + /// Storage: System Account (r:1 w:1) + /// Proof: System Account (max_values: None, max_size: Some(132), added: 2607, mode: MaxEncodedLen) fn add_ed25519_key_agreement_key() -> Weight { // Proof Size summary in bytes: - // Measured: `1516` - // Estimated: `4787` - // Minimum execution time: 369_273 nanoseconds. - Weight::from_parts(369_273_000, 4787) - .saturating_add(T::DbWeight::get().reads(1_u64)) - .saturating_add(T::DbWeight::get().writes(1_u64)) + // Measured: `2095` + // Estimated: `9921` + // Minimum execution time: 26_058 nanoseconds. + Weight::from_parts(27_813_000, 9921) + .saturating_add(T::DbWeight::get().reads(3_u64)) + .saturating_add(T::DbWeight::get().writes(2_u64)) } /// Storage: Did Did (r:1 w:1) /// Proof: Did Did (max_values: None, max_size: Some(2312), added: 4787, mode: MaxEncodedLen) + /// Storage: Did DidEndpointsCount (r:1 w:0) + /// Proof: Did DidEndpointsCount (max_values: None, max_size: Some(52), added: 2527, mode: MaxEncodedLen) + /// Storage: System Account (r:1 w:1) + /// Proof: System Account (max_values: None, max_size: Some(132), added: 2607, mode: MaxEncodedLen) fn add_sr25519_key_agreement_key() -> Weight { // Proof Size summary in bytes: - // Measured: `1516` - // Estimated: `4787` - // Minimum execution time: 341_234 nanoseconds. - Weight::from_parts(341_234_000, 4787) - .saturating_add(T::DbWeight::get().reads(1_u64)) - .saturating_add(T::DbWeight::get().writes(1_u64)) + // Measured: `2127` + // Estimated: `9921` + // Minimum execution time: 25_744 nanoseconds. + Weight::from_parts(26_922_000, 9921) + .saturating_add(T::DbWeight::get().reads(3_u64)) + .saturating_add(T::DbWeight::get().writes(2_u64)) } /// Storage: Did Did (r:1 w:1) /// Proof: Did Did (max_values: None, max_size: Some(2312), added: 4787, mode: MaxEncodedLen) + /// Storage: Did DidEndpointsCount (r:1 w:0) + /// Proof: Did DidEndpointsCount (max_values: None, max_size: Some(52), added: 2527, mode: MaxEncodedLen) + /// Storage: System Account (r:1 w:1) + /// Proof: System Account (max_values: None, max_size: Some(132), added: 2607, mode: MaxEncodedLen) fn add_ecdsa_key_agreement_key() -> Weight { // Proof Size summary in bytes: - // Measured: `1519` - // Estimated: `4787` - // Minimum execution time: 345_425 nanoseconds. - Weight::from_parts(345_425_000, 4787) - .saturating_add(T::DbWeight::get().reads(1_u64)) - .saturating_add(T::DbWeight::get().writes(1_u64)) + // Measured: `2064` + // Estimated: `9921` + // Minimum execution time: 26_114 nanoseconds. + Weight::from_parts(30_948_000, 9921) + .saturating_add(T::DbWeight::get().reads(3_u64)) + .saturating_add(T::DbWeight::get().writes(2_u64)) } /// Storage: Did Did (r:1 w:1) /// Proof: Did Did (max_values: None, max_size: Some(2312), added: 4787, mode: MaxEncodedLen) + /// Storage: Did DidEndpointsCount (r:1 w:0) + /// Proof: Did DidEndpointsCount (max_values: None, max_size: Some(52), added: 2527, mode: MaxEncodedLen) + /// Storage: System Account (r:1 w:1) + /// Proof: System Account (max_values: None, max_size: Some(132), added: 2607, mode: MaxEncodedLen) fn remove_ed25519_key_agreement_key() -> Weight { // Proof Size summary in bytes: - // Measured: `1622` - // Estimated: `4787` - // Minimum execution time: 287_753 nanoseconds. - Weight::from_parts(287_753_000, 4787) - .saturating_add(T::DbWeight::get().reads(1_u64)) - .saturating_add(T::DbWeight::get().writes(1_u64)) + // Measured: `2233` + // Estimated: `9921` + // Minimum execution time: 23_602 nanoseconds. + Weight::from_parts(25_473_000, 9921) + .saturating_add(T::DbWeight::get().reads(3_u64)) + .saturating_add(T::DbWeight::get().writes(2_u64)) } /// Storage: Did Did (r:1 w:1) /// Proof: Did Did (max_values: None, max_size: Some(2312), added: 4787, mode: MaxEncodedLen) + /// Storage: Did DidEndpointsCount (r:1 w:0) + /// Proof: Did DidEndpointsCount (max_values: None, max_size: Some(52), added: 2527, mode: MaxEncodedLen) + /// Storage: System Account (r:1 w:1) + /// Proof: System Account (max_values: None, max_size: Some(132), added: 2607, mode: MaxEncodedLen) fn remove_sr25519_key_agreement_key() -> Weight { // Proof Size summary in bytes: - // Measured: `1622` - // Estimated: `4787` - // Minimum execution time: 299_898 nanoseconds. - Weight::from_parts(299_898_000, 4787) - .saturating_add(T::DbWeight::get().reads(1_u64)) - .saturating_add(T::DbWeight::get().writes(1_u64)) + // Measured: `2200` + // Estimated: `9921` + // Minimum execution time: 23_531 nanoseconds. + Weight::from_parts(25_967_000, 9921) + .saturating_add(T::DbWeight::get().reads(3_u64)) + .saturating_add(T::DbWeight::get().writes(2_u64)) } /// Storage: Did Did (r:1 w:1) /// Proof: Did Did (max_values: None, max_size: Some(2312), added: 4787, mode: MaxEncodedLen) + /// Storage: Did DidEndpointsCount (r:1 w:0) + /// Proof: Did DidEndpointsCount (max_values: None, max_size: Some(52), added: 2527, mode: MaxEncodedLen) + /// Storage: System Account (r:1 w:1) + /// Proof: System Account (max_values: None, max_size: Some(132), added: 2607, mode: MaxEncodedLen) fn remove_ecdsa_key_agreement_key() -> Weight { // Proof Size summary in bytes: - // Measured: `1625` - // Estimated: `4787` - // Minimum execution time: 280_950 nanoseconds. - Weight::from_parts(280_950_000, 4787) - .saturating_add(T::DbWeight::get().reads(1_u64)) - .saturating_add(T::DbWeight::get().writes(1_u64)) + // Measured: `2204` + // Estimated: `9921` + // Minimum execution time: 25_410 nanoseconds. + Weight::from_parts(29_179_000, 9921) + .saturating_add(T::DbWeight::get().reads(3_u64)) + .saturating_add(T::DbWeight::get().writes(2_u64)) } - /// Storage: Did Did (r:1 w:0) + /// Storage: Did Did (r:1 w:1) /// Proof: Did Did (max_values: None, max_size: Some(2312), added: 4787, mode: MaxEncodedLen) /// Storage: Did DidEndpointsCount (r:1 w:1) /// Proof: Did DidEndpointsCount (max_values: None, max_size: Some(52), added: 2527, mode: MaxEncodedLen) /// Storage: Did ServiceEndpoints (r:1 w:1) - /// Proof: Did ServiceEndpoints (max_values: None, max_size: Some(413), added: 2888, mode: MaxEncodedLen) + /// Proof: Did ServiceEndpoints (max_values: None, max_size: Some(615), added: 3090, mode: MaxEncodedLen) + /// Storage: System Account (r:1 w:1) + /// Proof: System Account (max_values: None, max_size: Some(132), added: 2607, mode: MaxEncodedLen) fn add_service_endpoint() -> Weight { // Proof Size summary in bytes: - // Measured: `955` - // Estimated: `10202` - // Minimum execution time: 365_541 nanoseconds. - Weight::from_parts(365_541_000, 10202) - .saturating_add(T::DbWeight::get().reads(3_u64)) - .saturating_add(T::DbWeight::get().writes(2_u64)) + // Measured: `1561` + // Estimated: `13011` + // Minimum execution time: 30_467 nanoseconds. + Weight::from_parts(32_386_000, 13011) + .saturating_add(T::DbWeight::get().reads(4_u64)) + .saturating_add(T::DbWeight::get().writes(4_u64)) } + /// Storage: Did Did (r:1 w:1) + /// Proof: Did Did (max_values: None, max_size: Some(2312), added: 4787, mode: MaxEncodedLen) /// Storage: Did ServiceEndpoints (r:1 w:1) - /// Proof: Did ServiceEndpoints (max_values: None, max_size: Some(413), added: 2888, mode: MaxEncodedLen) + /// Proof: Did ServiceEndpoints (max_values: None, max_size: Some(615), added: 3090, mode: MaxEncodedLen) /// Storage: Did DidEndpointsCount (r:1 w:1) /// Proof: Did DidEndpointsCount (max_values: None, max_size: Some(52), added: 2527, mode: MaxEncodedLen) + /// Storage: System Account (r:1 w:1) + /// Proof: System Account (max_values: None, max_size: Some(132), added: 2607, mode: MaxEncodedLen) fn remove_service_endpoint() -> Weight { // Proof Size summary in bytes: - // Measured: `1131` - // Estimated: `5415` - // Minimum execution time: 312_880 nanoseconds. - Weight::from_parts(312_880_000, 5415) - .saturating_add(T::DbWeight::get().reads(2_u64)) - .saturating_add(T::DbWeight::get().writes(2_u64)) + // Measured: `2120` + // Estimated: `13011` + // Minimum execution time: 29_988 nanoseconds. + Weight::from_parts(31_827_000, 13011) + .saturating_add(T::DbWeight::get().reads(4_u64)) + .saturating_add(T::DbWeight::get().writes(4_u64)) } /// Storage: Did Did (r:1 w:0) /// Proof: Did Did (max_values: None, max_size: Some(2312), added: 4787, mode: MaxEncodedLen) /// The range of component `l` is `[1, 5242880]`. - fn signature_verification_sr25519(_l: u32, ) -> Weight { + fn signature_verification_sr25519(l: u32, ) -> Weight { // Proof Size summary in bytes: - // Measured: `1624` + // Measured: `1657` // Estimated: `4787` - // Minimum execution time: 337_557 nanoseconds. - Weight::from_parts(236_716_672_000, 4787) + // Minimum execution time: 37_516 nanoseconds. + Weight::from_parts(37_912_000, 4787) + // Standard Error: 1 + .saturating_add(Weight::from_ref_time(2_150).saturating_mul(l.into())) .saturating_add(T::DbWeight::get().reads(1_u64)) } /// Storage: Did Did (r:1 w:0) /// Proof: Did Did (max_values: None, max_size: Some(2312), added: 4787, mode: MaxEncodedLen) /// The range of component `l` is `[1, 5242880]`. - fn signature_verification_ed25519(_l: u32, ) -> Weight { + fn signature_verification_ed25519(l: u32, ) -> Weight { // Proof Size summary in bytes: - // Measured: `1624` + // Measured: `1657` // Estimated: `4787` - // Minimum execution time: 336_941 nanoseconds. - Weight::from_parts(251_085_199_000, 4787) + // Minimum execution time: 36_395 nanoseconds. + Weight::from_parts(36_951_000, 4787) + // Standard Error: 0 + .saturating_add(Weight::from_ref_time(1_366).saturating_mul(l.into())) .saturating_add(T::DbWeight::get().reads(1_u64)) } /// Storage: Did Did (r:1 w:0) /// Proof: Did Did (max_values: None, max_size: Some(2312), added: 4787, mode: MaxEncodedLen) /// The range of component `l` is `[1, 5242880]`. - fn signature_verification_ecdsa(_l: u32, ) -> Weight { + fn signature_verification_ecdsa(l: u32, ) -> Weight { // Proof Size summary in bytes: - // Measured: `1625` + // Measured: `1658` // Estimated: `4787` - // Minimum execution time: 217_537 nanoseconds. - Weight::from_parts(131_743_354_000, 4787) + // Minimum execution time: 32_273 nanoseconds. + Weight::from_parts(33_274_000, 4787) + // Standard Error: 0 + .saturating_add(Weight::from_ref_time(979).saturating_mul(l.into())) .saturating_add(T::DbWeight::get().reads(1_u64)) } /// Storage: Did Did (r:1 w:1) @@ -538,152 +642,164 @@ impl WeightInfo for SubstrateWeight { /// Proof: System Account (max_values: None, max_size: Some(132), added: 2607, mode: MaxEncodedLen) fn change_deposit_owner() -> Weight { // Proof Size summary in bytes: - // Measured: `928` + // Measured: `895` // Estimated: `7394` - // Minimum execution time: 528_086 nanoseconds. - Weight::from_parts(528_086_000, 7394) + // Minimum execution time: 22_573 nanoseconds. + Weight::from_parts(24_012_000, 7394) .saturating_add(T::DbWeight::get().reads(2_u64)) .saturating_add(T::DbWeight::get().writes(2_u64)) } /// Storage: Did Did (r:1 w:1) /// Proof: Did Did (max_values: None, max_size: Some(2312), added: 4787, mode: MaxEncodedLen) + /// Storage: Did DidEndpointsCount (r:1 w:0) + /// Proof: Did DidEndpointsCount (max_values: None, max_size: Some(52), added: 2527, mode: MaxEncodedLen) /// Storage: System Account (r:1 w:1) /// Proof: System Account (max_values: None, max_size: Some(132), added: 2607, mode: MaxEncodedLen) fn update_deposit() -> Weight { // Proof Size summary in bytes: - // Measured: `791` - // Estimated: `7394` - // Minimum execution time: 546_390 nanoseconds. - Weight::from_parts(546_390_000, 7394) - .saturating_add(T::DbWeight::get().reads(2_u64)) + // Measured: `923` + // Estimated: `9921` + // Minimum execution time: 17_255 nanoseconds. + Weight::from_parts(18_717_000, 9921) + .saturating_add(T::DbWeight::get().reads(3_u64)) .saturating_add(T::DbWeight::get().writes(2_u64)) } } // For backwards compatibility and tests impl WeightInfo for () { - /// Storage: System Account (r:2 w:2) - /// Proof: System Account (max_values: None, max_size: Some(132), added: 2607, mode: MaxEncodedLen) /// Storage: Did DidBlacklist (r:1 w:0) /// Proof: Did DidBlacklist (max_values: None, max_size: Some(48), added: 2523, mode: MaxEncodedLen) /// Storage: Did Did (r:1 w:1) /// Proof: Did Did (max_values: None, max_size: Some(2312), added: 4787, mode: MaxEncodedLen) + /// Storage: System Account (r:2 w:2) + /// Proof: System Account (max_values: None, max_size: Some(132), added: 2607, mode: MaxEncodedLen) /// Storage: Did DidEndpointsCount (r:0 w:1) /// Proof: Did DidEndpointsCount (max_values: None, max_size: Some(52), added: 2527, mode: MaxEncodedLen) /// Storage: Did ServiceEndpoints (r:0 w:25) - /// Proof: Did ServiceEndpoints (max_values: None, max_size: Some(413), added: 2888, mode: MaxEncodedLen) + /// Proof: Did ServiceEndpoints (max_values: None, max_size: Some(615), added: 3090, mode: MaxEncodedLen) /// The range of component `n` is `[1, 10]`. /// The range of component `c` is `[1, 25]`. fn create_ed25519_keys(n: u32, c: u32, ) -> Weight { // Proof Size summary in bytes: - // Measured: `1162` + // Measured: `1195` // Estimated: `12524` - // Minimum execution time: 1_348_855 nanoseconds. - Weight::from_parts(1_213_627_805, 12524) - // Standard Error: 14_593_105 - .saturating_add(Weight::from_ref_time(7_671_444).saturating_mul(n.into())) - // Standard Error: 5_472_414 - .saturating_add(Weight::from_ref_time(58_512_750).saturating_mul(c.into())) + // Minimum execution time: 85_129 nanoseconds. + Weight::from_parts(80_652_158, 12524) + // Standard Error: 47_317 + .saturating_add(Weight::from_ref_time(724_957).saturating_mul(n.into())) + // Standard Error: 18_294 + .saturating_add(Weight::from_ref_time(6_032_689).saturating_mul(c.into())) .saturating_add(RocksDbWeight::get().reads(4_u64)) .saturating_add(RocksDbWeight::get().writes(4_u64)) .saturating_add(RocksDbWeight::get().writes((1_u64).saturating_mul(c.into()))) } - /// Storage: System Account (r:2 w:2) - /// Proof: System Account (max_values: None, max_size: Some(132), added: 2607, mode: MaxEncodedLen) /// Storage: Did DidBlacklist (r:1 w:0) /// Proof: Did DidBlacklist (max_values: None, max_size: Some(48), added: 2523, mode: MaxEncodedLen) /// Storage: Did Did (r:1 w:1) /// Proof: Did Did (max_values: None, max_size: Some(2312), added: 4787, mode: MaxEncodedLen) + /// Storage: System Account (r:2 w:2) + /// Proof: System Account (max_values: None, max_size: Some(132), added: 2607, mode: MaxEncodedLen) /// Storage: Did DidEndpointsCount (r:0 w:1) /// Proof: Did DidEndpointsCount (max_values: None, max_size: Some(52), added: 2527, mode: MaxEncodedLen) /// Storage: Did ServiceEndpoints (r:0 w:25) - /// Proof: Did ServiceEndpoints (max_values: None, max_size: Some(413), added: 2888, mode: MaxEncodedLen) + /// Proof: Did ServiceEndpoints (max_values: None, max_size: Some(615), added: 3090, mode: MaxEncodedLen) /// The range of component `n` is `[1, 10]`. /// The range of component `c` is `[1, 25]`. fn create_sr25519_keys(n: u32, c: u32, ) -> Weight { // Proof Size summary in bytes: - // Measured: `1162` + // Measured: `1195` // Estimated: `12524` - // Minimum execution time: 1_431_811 nanoseconds. - Weight::from_parts(1_174_825_500, 12524) - // Standard Error: 1_405_847 - .saturating_add(Weight::from_ref_time(20_334_666).saturating_mul(n.into())) - // Standard Error: 527_192 - .saturating_add(Weight::from_ref_time(53_638_833).saturating_mul(c.into())) + // Minimum execution time: 86_955 nanoseconds. + Weight::from_parts(77_165_823, 12524) + // Standard Error: 44_838 + .saturating_add(Weight::from_ref_time(982_121).saturating_mul(n.into())) + // Standard Error: 17_335 + .saturating_add(Weight::from_ref_time(6_564_601).saturating_mul(c.into())) .saturating_add(RocksDbWeight::get().reads(4_u64)) .saturating_add(RocksDbWeight::get().writes(4_u64)) .saturating_add(RocksDbWeight::get().writes((1_u64).saturating_mul(c.into()))) } - /// Storage: System Account (r:2 w:2) - /// Proof: System Account (max_values: None, max_size: Some(132), added: 2607, mode: MaxEncodedLen) /// Storage: Did DidBlacklist (r:1 w:0) /// Proof: Did DidBlacklist (max_values: None, max_size: Some(48), added: 2523, mode: MaxEncodedLen) /// Storage: Did Did (r:1 w:1) /// Proof: Did Did (max_values: None, max_size: Some(2312), added: 4787, mode: MaxEncodedLen) + /// Storage: System Account (r:2 w:2) + /// Proof: System Account (max_values: None, max_size: Some(132), added: 2607, mode: MaxEncodedLen) /// Storage: Did DidEndpointsCount (r:0 w:1) /// Proof: Did DidEndpointsCount (max_values: None, max_size: Some(52), added: 2527, mode: MaxEncodedLen) /// Storage: Did ServiceEndpoints (r:0 w:25) - /// Proof: Did ServiceEndpoints (max_values: None, max_size: Some(413), added: 2888, mode: MaxEncodedLen) + /// Proof: Did ServiceEndpoints (max_values: None, max_size: Some(615), added: 3090, mode: MaxEncodedLen) /// The range of component `n` is `[1, 10]`. /// The range of component `c` is `[1, 25]`. fn create_ecdsa_keys(n: u32, c: u32, ) -> Weight { // Proof Size summary in bytes: - // Measured: `1162` + // Measured: `1195` // Estimated: `12524` - // Minimum execution time: 1_180_131 nanoseconds. - Weight::from_parts(947_704_381, 12524) - // Standard Error: 2_114_160 - .saturating_add(Weight::from_ref_time(17_841_055).saturating_mul(n.into())) - // Standard Error: 792_810 - .saturating_add(Weight::from_ref_time(54_016_062).saturating_mul(c.into())) + // Minimum execution time: 83_054 nanoseconds. + Weight::from_parts(82_503_872, 12524) + // Standard Error: 63_326 + .saturating_add(Weight::from_ref_time(618_751).saturating_mul(n.into())) + // Standard Error: 24_483 + .saturating_add(Weight::from_ref_time(5_746_716).saturating_mul(c.into())) .saturating_add(RocksDbWeight::get().reads(4_u64)) .saturating_add(RocksDbWeight::get().writes(4_u64)) .saturating_add(RocksDbWeight::get().writes((1_u64).saturating_mul(c.into()))) } /// Storage: Did DidEndpointsCount (r:1 w:1) /// Proof: Did DidEndpointsCount (max_values: None, max_size: Some(52), added: 2527, mode: MaxEncodedLen) + /// Storage: Did ServiceEndpoints (r:25 w:25) + /// Proof: Did ServiceEndpoints (max_values: None, max_size: Some(615), added: 3090, mode: MaxEncodedLen) /// Storage: Did Did (r:1 w:1) /// Proof: Did Did (max_values: None, max_size: Some(2312), added: 4787, mode: MaxEncodedLen) /// Storage: Did DidBlacklist (r:0 w:1) /// Proof: Did DidBlacklist (max_values: None, max_size: Some(48), added: 2523, mode: MaxEncodedLen) - /// Storage: Did ServiceEndpoints (r:0 w:25) - /// Proof: Did ServiceEndpoints (max_values: None, max_size: Some(413), added: 2888, mode: MaxEncodedLen) /// The range of component `c` is `[1, 25]`. - fn delete(_c: u32, ) -> Weight { - // Proof Size summary in bytes: - // Measured: `478 + c * (105 ±0)` - // Estimated: `7314` - // Minimum execution time: 390_237 nanoseconds. - Weight::from_parts(651_406_000, 7314) + fn delete(c: u32, ) -> Weight { + // Proof Size summary in bytes: + // Measured: `515 + c * (105 ±0)` + // Estimated: `7314 + c * (3090 ±0)` + // Minimum execution time: 15_346 nanoseconds. + Weight::from_parts(17_226_638, 7314) + // Standard Error: 19_165 + .saturating_add(Weight::from_ref_time(921_753).saturating_mul(c.into())) .saturating_add(RocksDbWeight::get().reads(2_u64)) - .saturating_add(RocksDbWeight::get().writes(28_u64)) + .saturating_add(RocksDbWeight::get().reads((1_u64).saturating_mul(c.into()))) + .saturating_add(RocksDbWeight::get().writes(3_u64)) + .saturating_add(RocksDbWeight::get().writes((1_u64).saturating_mul(c.into()))) + .saturating_add(Weight::from_proof_size(3090).saturating_mul(c.into())) } /// Storage: Did Did (r:1 w:1) /// Proof: Did Did (max_values: None, max_size: Some(2312), added: 4787, mode: MaxEncodedLen) /// Storage: Did DidEndpointsCount (r:1 w:1) /// Proof: Did DidEndpointsCount (max_values: None, max_size: Some(52), added: 2527, mode: MaxEncodedLen) + /// Storage: Did ServiceEndpoints (r:25 w:25) + /// Proof: Did ServiceEndpoints (max_values: None, max_size: Some(615), added: 3090, mode: MaxEncodedLen) /// Storage: Did DidBlacklist (r:0 w:1) /// Proof: Did DidBlacklist (max_values: None, max_size: Some(48), added: 2523, mode: MaxEncodedLen) - /// Storage: Did ServiceEndpoints (r:0 w:25) - /// Proof: Did ServiceEndpoints (max_values: None, max_size: Some(413), added: 2888, mode: MaxEncodedLen) /// The range of component `c` is `[1, 25]`. - fn reclaim_deposit(_c: u32, ) -> Weight { - // Proof Size summary in bytes: - // Measured: `478 + c * (105 ±0)` - // Estimated: `7314` - // Minimum execution time: 411_810 nanoseconds. - Weight::from_parts(659_678_000, 7314) + fn reclaim_deposit(c: u32, ) -> Weight { + // Proof Size summary in bytes: + // Measured: `515 + c * (105 ±0)` + // Estimated: `7314 + c * (3090 ±0)` + // Minimum execution time: 17_363 nanoseconds. + Weight::from_parts(18_240_688, 7314) + // Standard Error: 5_930 + .saturating_add(Weight::from_ref_time(928_602).saturating_mul(c.into())) .saturating_add(RocksDbWeight::get().reads(2_u64)) - .saturating_add(RocksDbWeight::get().writes(28_u64)) + .saturating_add(RocksDbWeight::get().reads((1_u64).saturating_mul(c.into()))) + .saturating_add(RocksDbWeight::get().writes(3_u64)) + .saturating_add(RocksDbWeight::get().writes((1_u64).saturating_mul(c.into()))) + .saturating_add(Weight::from_proof_size(3090).saturating_mul(c.into())) } /// Storage: Did Did (r:1 w:1) /// Proof: Did Did (max_values: None, max_size: Some(2312), added: 4787, mode: MaxEncodedLen) fn submit_did_call_ed25519_key() -> Weight { // Proof Size summary in bytes: - // Measured: `350` + // Measured: `383` // Estimated: `4787` - // Minimum execution time: 513_097 nanoseconds. - Weight::from_parts(513_097_000, 4787) + // Minimum execution time: 42_315 nanoseconds. + Weight::from_parts(44_217_000, 4787) .saturating_add(RocksDbWeight::get().reads(1_u64)) .saturating_add(RocksDbWeight::get().writes(1_u64)) } @@ -691,10 +807,10 @@ impl WeightInfo for () { /// Proof: Did Did (max_values: None, max_size: Some(2312), added: 4787, mode: MaxEncodedLen) fn submit_did_call_sr25519_key() -> Weight { // Proof Size summary in bytes: - // Measured: `350` + // Measured: `383` // Estimated: `4787` - // Minimum execution time: 685_962 nanoseconds. - Weight::from_parts(685_962_000, 4787) + // Minimum execution time: 41_910 nanoseconds. + Weight::from_parts(44_705_000, 4787) .saturating_add(RocksDbWeight::get().reads(1_u64)) .saturating_add(RocksDbWeight::get().writes(1_u64)) } @@ -702,303 +818,399 @@ impl WeightInfo for () { /// Proof: Did Did (max_values: None, max_size: Some(2312), added: 4787, mode: MaxEncodedLen) fn submit_did_call_ecdsa_key() -> Weight { // Proof Size summary in bytes: - // Measured: `351` + // Measured: `384` // Estimated: `4787` - // Minimum execution time: 447_987 nanoseconds. - Weight::from_parts(447_987_000, 4787) + // Minimum execution time: 38_113 nanoseconds. + Weight::from_parts(42_374_000, 4787) .saturating_add(RocksDbWeight::get().reads(1_u64)) .saturating_add(RocksDbWeight::get().writes(1_u64)) } /// Storage: Did Did (r:1 w:1) /// Proof: Did Did (max_values: None, max_size: Some(2312), added: 4787, mode: MaxEncodedLen) + /// Storage: Did DidEndpointsCount (r:1 w:0) + /// Proof: Did DidEndpointsCount (max_values: None, max_size: Some(52), added: 2527, mode: MaxEncodedLen) + /// Storage: System Account (r:1 w:1) + /// Proof: System Account (max_values: None, max_size: Some(132), added: 2607, mode: MaxEncodedLen) fn set_ed25519_authentication_key() -> Weight { // Proof Size summary in bytes: - // Measured: `1622` - // Estimated: `4787` - // Minimum execution time: 302_010 nanoseconds. - Weight::from_parts(302_010_000, 4787) - .saturating_add(RocksDbWeight::get().reads(1_u64)) - .saturating_add(RocksDbWeight::get().writes(1_u64)) + // Measured: `2233` + // Estimated: `9921` + // Minimum execution time: 25_982 nanoseconds. + Weight::from_parts(28_657_000, 9921) + .saturating_add(RocksDbWeight::get().reads(3_u64)) + .saturating_add(RocksDbWeight::get().writes(2_u64)) } /// Storage: Did Did (r:1 w:1) /// Proof: Did Did (max_values: None, max_size: Some(2312), added: 4787, mode: MaxEncodedLen) + /// Storage: Did DidEndpointsCount (r:1 w:0) + /// Proof: Did DidEndpointsCount (max_values: None, max_size: Some(52), added: 2527, mode: MaxEncodedLen) + /// Storage: System Account (r:1 w:1) + /// Proof: System Account (max_values: None, max_size: Some(132), added: 2607, mode: MaxEncodedLen) fn set_sr25519_authentication_key() -> Weight { // Proof Size summary in bytes: - // Measured: `1622` - // Estimated: `4787` - // Minimum execution time: 333_616 nanoseconds. - Weight::from_parts(333_616_000, 4787) - .saturating_add(RocksDbWeight::get().reads(1_u64)) - .saturating_add(RocksDbWeight::get().writes(1_u64)) + // Measured: `2228` + // Estimated: `9921` + // Minimum execution time: 24_465 nanoseconds. + Weight::from_parts(26_247_000, 9921) + .saturating_add(RocksDbWeight::get().reads(3_u64)) + .saturating_add(RocksDbWeight::get().writes(2_u64)) } /// Storage: Did Did (r:1 w:1) /// Proof: Did Did (max_values: None, max_size: Some(2312), added: 4787, mode: MaxEncodedLen) + /// Storage: Did DidEndpointsCount (r:1 w:0) + /// Proof: Did DidEndpointsCount (max_values: None, max_size: Some(52), added: 2527, mode: MaxEncodedLen) + /// Storage: System Account (r:1 w:1) + /// Proof: System Account (max_values: None, max_size: Some(132), added: 2607, mode: MaxEncodedLen) fn set_ecdsa_authentication_key() -> Weight { // Proof Size summary in bytes: - // Measured: `1625` - // Estimated: `4787` - // Minimum execution time: 324_846 nanoseconds. - Weight::from_parts(324_846_000, 4787) - .saturating_add(RocksDbWeight::get().reads(1_u64)) - .saturating_add(RocksDbWeight::get().writes(1_u64)) + // Measured: `2236` + // Estimated: `9921` + // Minimum execution time: 26_712 nanoseconds. + Weight::from_parts(28_562_000, 9921) + .saturating_add(RocksDbWeight::get().reads(3_u64)) + .saturating_add(RocksDbWeight::get().writes(2_u64)) } /// Storage: Did Did (r:1 w:1) /// Proof: Did Did (max_values: None, max_size: Some(2312), added: 4787, mode: MaxEncodedLen) + /// Storage: Did DidEndpointsCount (r:1 w:0) + /// Proof: Did DidEndpointsCount (max_values: None, max_size: Some(52), added: 2527, mode: MaxEncodedLen) + /// Storage: System Account (r:1 w:1) + /// Proof: System Account (max_values: None, max_size: Some(132), added: 2607, mode: MaxEncodedLen) fn set_ed25519_delegation_key() -> Weight { // Proof Size summary in bytes: - // Measured: `1622` - // Estimated: `4787` - // Minimum execution time: 303_996 nanoseconds. - Weight::from_parts(303_996_000, 4787) - .saturating_add(RocksDbWeight::get().reads(1_u64)) - .saturating_add(RocksDbWeight::get().writes(1_u64)) + // Measured: `2168` + // Estimated: `9921` + // Minimum execution time: 25_634 nanoseconds. + Weight::from_parts(27_994_000, 9921) + .saturating_add(RocksDbWeight::get().reads(3_u64)) + .saturating_add(RocksDbWeight::get().writes(2_u64)) } /// Storage: Did Did (r:1 w:1) /// Proof: Did Did (max_values: None, max_size: Some(2312), added: 4787, mode: MaxEncodedLen) + /// Storage: Did DidEndpointsCount (r:1 w:0) + /// Proof: Did DidEndpointsCount (max_values: None, max_size: Some(52), added: 2527, mode: MaxEncodedLen) + /// Storage: System Account (r:1 w:1) + /// Proof: System Account (max_values: None, max_size: Some(132), added: 2607, mode: MaxEncodedLen) fn set_sr25519_delegation_key() -> Weight { // Proof Size summary in bytes: - // Measured: `1622` - // Estimated: `4787` - // Minimum execution time: 339_231 nanoseconds. - Weight::from_parts(339_231_000, 4787) - .saturating_add(RocksDbWeight::get().reads(1_u64)) - .saturating_add(RocksDbWeight::get().writes(1_u64)) + // Measured: `2101` + // Estimated: `9921` + // Minimum execution time: 26_723 nanoseconds. + Weight::from_parts(28_052_000, 9921) + .saturating_add(RocksDbWeight::get().reads(3_u64)) + .saturating_add(RocksDbWeight::get().writes(2_u64)) } /// Storage: Did Did (r:1 w:1) /// Proof: Did Did (max_values: None, max_size: Some(2312), added: 4787, mode: MaxEncodedLen) + /// Storage: Did DidEndpointsCount (r:1 w:0) + /// Proof: Did DidEndpointsCount (max_values: None, max_size: Some(52), added: 2527, mode: MaxEncodedLen) + /// Storage: System Account (r:1 w:1) + /// Proof: System Account (max_values: None, max_size: Some(132), added: 2607, mode: MaxEncodedLen) fn set_ecdsa_delegation_key() -> Weight { // Proof Size summary in bytes: - // Measured: `1625` - // Estimated: `4787` - // Minimum execution time: 321_963 nanoseconds. - Weight::from_parts(321_963_000, 4787) - .saturating_add(RocksDbWeight::get().reads(1_u64)) - .saturating_add(RocksDbWeight::get().writes(1_u64)) + // Measured: `2141` + // Estimated: `9921` + // Minimum execution time: 26_979 nanoseconds. + Weight::from_parts(31_165_000, 9921) + .saturating_add(RocksDbWeight::get().reads(3_u64)) + .saturating_add(RocksDbWeight::get().writes(2_u64)) } /// Storage: Did Did (r:1 w:1) /// Proof: Did Did (max_values: None, max_size: Some(2312), added: 4787, mode: MaxEncodedLen) + /// Storage: Did DidEndpointsCount (r:1 w:0) + /// Proof: Did DidEndpointsCount (max_values: None, max_size: Some(52), added: 2527, mode: MaxEncodedLen) + /// Storage: System Account (r:1 w:1) + /// Proof: System Account (max_values: None, max_size: Some(132), added: 2607, mode: MaxEncodedLen) fn remove_ed25519_delegation_key() -> Weight { // Proof Size summary in bytes: - // Measured: `1622` - // Estimated: `4787` - // Minimum execution time: 302_012 nanoseconds. - Weight::from_parts(302_012_000, 4787) - .saturating_add(RocksDbWeight::get().reads(1_u64)) - .saturating_add(RocksDbWeight::get().writes(1_u64)) + // Measured: `2228` + // Estimated: `9921` + // Minimum execution time: 24_954 nanoseconds. + Weight::from_parts(26_013_000, 9921) + .saturating_add(RocksDbWeight::get().reads(3_u64)) + .saturating_add(RocksDbWeight::get().writes(2_u64)) } /// Storage: Did Did (r:1 w:1) /// Proof: Did Did (max_values: None, max_size: Some(2312), added: 4787, mode: MaxEncodedLen) + /// Storage: Did DidEndpointsCount (r:1 w:0) + /// Proof: Did DidEndpointsCount (max_values: None, max_size: Some(52), added: 2527, mode: MaxEncodedLen) + /// Storage: System Account (r:1 w:1) + /// Proof: System Account (max_values: None, max_size: Some(132), added: 2607, mode: MaxEncodedLen) fn remove_sr25519_delegation_key() -> Weight { // Proof Size summary in bytes: - // Measured: `1622` - // Estimated: `4787` - // Minimum execution time: 284_116 nanoseconds. - Weight::from_parts(284_116_000, 4787) - .saturating_add(RocksDbWeight::get().reads(1_u64)) - .saturating_add(RocksDbWeight::get().writes(1_u64)) + // Measured: `2168` + // Estimated: `9921` + // Minimum execution time: 24_029 nanoseconds. + Weight::from_parts(26_148_000, 9921) + .saturating_add(RocksDbWeight::get().reads(3_u64)) + .saturating_add(RocksDbWeight::get().writes(2_u64)) } /// Storage: Did Did (r:1 w:1) /// Proof: Did Did (max_values: None, max_size: Some(2312), added: 4787, mode: MaxEncodedLen) + /// Storage: Did DidEndpointsCount (r:1 w:0) + /// Proof: Did DidEndpointsCount (max_values: None, max_size: Some(52), added: 2527, mode: MaxEncodedLen) + /// Storage: System Account (r:1 w:1) + /// Proof: System Account (max_values: None, max_size: Some(132), added: 2607, mode: MaxEncodedLen) fn remove_ecdsa_delegation_key() -> Weight { // Proof Size summary in bytes: - // Measured: `1625` - // Estimated: `4787` - // Minimum execution time: 346_281 nanoseconds. - Weight::from_parts(346_281_000, 4787) - .saturating_add(RocksDbWeight::get().reads(1_u64)) - .saturating_add(RocksDbWeight::get().writes(1_u64)) + // Measured: `2165` + // Estimated: `9921` + // Minimum execution time: 25_088 nanoseconds. + Weight::from_parts(28_474_000, 9921) + .saturating_add(RocksDbWeight::get().reads(3_u64)) + .saturating_add(RocksDbWeight::get().writes(2_u64)) } /// Storage: Did Did (r:1 w:1) /// Proof: Did Did (max_values: None, max_size: Some(2312), added: 4787, mode: MaxEncodedLen) + /// Storage: Did DidEndpointsCount (r:1 w:0) + /// Proof: Did DidEndpointsCount (max_values: None, max_size: Some(52), added: 2527, mode: MaxEncodedLen) + /// Storage: System Account (r:1 w:1) + /// Proof: System Account (max_values: None, max_size: Some(132), added: 2607, mode: MaxEncodedLen) fn set_ed25519_attestation_key() -> Weight { // Proof Size summary in bytes: - // Measured: `1622` - // Estimated: `4787` - // Minimum execution time: 339_840 nanoseconds. - Weight::from_parts(339_840_000, 4787) - .saturating_add(RocksDbWeight::get().reads(1_u64)) - .saturating_add(RocksDbWeight::get().writes(1_u64)) + // Measured: `2200` + // Estimated: `9921` + // Minimum execution time: 26_969 nanoseconds. + Weight::from_parts(28_513_000, 9921) + .saturating_add(RocksDbWeight::get().reads(3_u64)) + .saturating_add(RocksDbWeight::get().writes(2_u64)) } /// Storage: Did Did (r:1 w:1) /// Proof: Did Did (max_values: None, max_size: Some(2312), added: 4787, mode: MaxEncodedLen) + /// Storage: Did DidEndpointsCount (r:1 w:0) + /// Proof: Did DidEndpointsCount (max_values: None, max_size: Some(52), added: 2527, mode: MaxEncodedLen) + /// Storage: System Account (r:1 w:1) + /// Proof: System Account (max_values: None, max_size: Some(132), added: 2607, mode: MaxEncodedLen) fn set_sr25519_attestation_key() -> Weight { // Proof Size summary in bytes: - // Measured: `1622` - // Estimated: `4787` - // Minimum execution time: 419_934 nanoseconds. - Weight::from_parts(419_934_000, 4787) - .saturating_add(RocksDbWeight::get().reads(1_u64)) - .saturating_add(RocksDbWeight::get().writes(1_u64)) + // Measured: `2200` + // Estimated: `9921` + // Minimum execution time: 25_428 nanoseconds. + Weight::from_parts(27_908_000, 9921) + .saturating_add(RocksDbWeight::get().reads(3_u64)) + .saturating_add(RocksDbWeight::get().writes(2_u64)) } /// Storage: Did Did (r:1 w:1) /// Proof: Did Did (max_values: None, max_size: Some(2312), added: 4787, mode: MaxEncodedLen) + /// Storage: Did DidEndpointsCount (r:1 w:0) + /// Proof: Did DidEndpointsCount (max_values: None, max_size: Some(52), added: 2527, mode: MaxEncodedLen) + /// Storage: System Account (r:1 w:1) + /// Proof: System Account (max_values: None, max_size: Some(132), added: 2607, mode: MaxEncodedLen) fn set_ecdsa_attestation_key() -> Weight { // Proof Size summary in bytes: - // Measured: `1625` - // Estimated: `4787` - // Minimum execution time: 369_942 nanoseconds. - Weight::from_parts(369_942_000, 4787) - .saturating_add(RocksDbWeight::get().reads(1_u64)) - .saturating_add(RocksDbWeight::get().writes(1_u64)) + // Measured: `2204` + // Estimated: `9921` + // Minimum execution time: 25_006 nanoseconds. + Weight::from_parts(29_823_000, 9921) + .saturating_add(RocksDbWeight::get().reads(3_u64)) + .saturating_add(RocksDbWeight::get().writes(2_u64)) } /// Storage: Did Did (r:1 w:1) /// Proof: Did Did (max_values: None, max_size: Some(2312), added: 4787, mode: MaxEncodedLen) + /// Storage: Did DidEndpointsCount (r:1 w:0) + /// Proof: Did DidEndpointsCount (max_values: None, max_size: Some(52), added: 2527, mode: MaxEncodedLen) + /// Storage: System Account (r:1 w:1) + /// Proof: System Account (max_values: None, max_size: Some(132), added: 2607, mode: MaxEncodedLen) fn remove_ed25519_attestation_key() -> Weight { // Proof Size summary in bytes: - // Measured: `1622` - // Estimated: `4787` - // Minimum execution time: 356_252 nanoseconds. - Weight::from_parts(356_252_000, 4787) - .saturating_add(RocksDbWeight::get().reads(1_u64)) - .saturating_add(RocksDbWeight::get().writes(1_u64)) + // Measured: `2195` + // Estimated: `9921` + // Minimum execution time: 24_888 nanoseconds. + Weight::from_parts(26_718_000, 9921) + .saturating_add(RocksDbWeight::get().reads(3_u64)) + .saturating_add(RocksDbWeight::get().writes(2_u64)) } /// Storage: Did Did (r:1 w:1) /// Proof: Did Did (max_values: None, max_size: Some(2312), added: 4787, mode: MaxEncodedLen) + /// Storage: Did DidEndpointsCount (r:1 w:0) + /// Proof: Did DidEndpointsCount (max_values: None, max_size: Some(52), added: 2527, mode: MaxEncodedLen) + /// Storage: System Account (r:1 w:1) + /// Proof: System Account (max_values: None, max_size: Some(132), added: 2607, mode: MaxEncodedLen) fn remove_sr25519_attestation_key() -> Weight { // Proof Size summary in bytes: - // Measured: `1622` - // Estimated: `4787` - // Minimum execution time: 289_670 nanoseconds. - Weight::from_parts(289_670_000, 4787) - .saturating_add(RocksDbWeight::get().reads(1_u64)) - .saturating_add(RocksDbWeight::get().writes(1_u64)) + // Measured: `2162` + // Estimated: `9921` + // Minimum execution time: 24_924 nanoseconds. + Weight::from_parts(26_259_000, 9921) + .saturating_add(RocksDbWeight::get().reads(3_u64)) + .saturating_add(RocksDbWeight::get().writes(2_u64)) } /// Storage: Did Did (r:1 w:1) /// Proof: Did Did (max_values: None, max_size: Some(2312), added: 4787, mode: MaxEncodedLen) + /// Storage: Did DidEndpointsCount (r:1 w:0) + /// Proof: Did DidEndpointsCount (max_values: None, max_size: Some(52), added: 2527, mode: MaxEncodedLen) + /// Storage: System Account (r:1 w:1) + /// Proof: System Account (max_values: None, max_size: Some(132), added: 2607, mode: MaxEncodedLen) fn remove_ecdsa_attestation_key() -> Weight { // Proof Size summary in bytes: - // Measured: `1625` - // Estimated: `4787` - // Minimum execution time: 300_435 nanoseconds. - Weight::from_parts(300_435_000, 4787) - .saturating_add(RocksDbWeight::get().reads(1_u64)) - .saturating_add(RocksDbWeight::get().writes(1_u64)) + // Measured: `2209` + // Estimated: `9921` + // Minimum execution time: 25_462 nanoseconds. + Weight::from_parts(29_273_000, 9921) + .saturating_add(RocksDbWeight::get().reads(3_u64)) + .saturating_add(RocksDbWeight::get().writes(2_u64)) } /// Storage: Did Did (r:1 w:1) /// Proof: Did Did (max_values: None, max_size: Some(2312), added: 4787, mode: MaxEncodedLen) + /// Storage: Did DidEndpointsCount (r:1 w:0) + /// Proof: Did DidEndpointsCount (max_values: None, max_size: Some(52), added: 2527, mode: MaxEncodedLen) + /// Storage: System Account (r:1 w:1) + /// Proof: System Account (max_values: None, max_size: Some(132), added: 2607, mode: MaxEncodedLen) fn add_ed25519_key_agreement_key() -> Weight { // Proof Size summary in bytes: - // Measured: `1516` - // Estimated: `4787` - // Minimum execution time: 369_273 nanoseconds. - Weight::from_parts(369_273_000, 4787) - .saturating_add(RocksDbWeight::get().reads(1_u64)) - .saturating_add(RocksDbWeight::get().writes(1_u64)) + // Measured: `2095` + // Estimated: `9921` + // Minimum execution time: 26_058 nanoseconds. + Weight::from_parts(27_813_000, 9921) + .saturating_add(RocksDbWeight::get().reads(3_u64)) + .saturating_add(RocksDbWeight::get().writes(2_u64)) } /// Storage: Did Did (r:1 w:1) /// Proof: Did Did (max_values: None, max_size: Some(2312), added: 4787, mode: MaxEncodedLen) + /// Storage: Did DidEndpointsCount (r:1 w:0) + /// Proof: Did DidEndpointsCount (max_values: None, max_size: Some(52), added: 2527, mode: MaxEncodedLen) + /// Storage: System Account (r:1 w:1) + /// Proof: System Account (max_values: None, max_size: Some(132), added: 2607, mode: MaxEncodedLen) fn add_sr25519_key_agreement_key() -> Weight { // Proof Size summary in bytes: - // Measured: `1516` - // Estimated: `4787` - // Minimum execution time: 341_234 nanoseconds. - Weight::from_parts(341_234_000, 4787) - .saturating_add(RocksDbWeight::get().reads(1_u64)) - .saturating_add(RocksDbWeight::get().writes(1_u64)) + // Measured: `2127` + // Estimated: `9921` + // Minimum execution time: 25_744 nanoseconds. + Weight::from_parts(26_922_000, 9921) + .saturating_add(RocksDbWeight::get().reads(3_u64)) + .saturating_add(RocksDbWeight::get().writes(2_u64)) } /// Storage: Did Did (r:1 w:1) /// Proof: Did Did (max_values: None, max_size: Some(2312), added: 4787, mode: MaxEncodedLen) + /// Storage: Did DidEndpointsCount (r:1 w:0) + /// Proof: Did DidEndpointsCount (max_values: None, max_size: Some(52), added: 2527, mode: MaxEncodedLen) + /// Storage: System Account (r:1 w:1) + /// Proof: System Account (max_values: None, max_size: Some(132), added: 2607, mode: MaxEncodedLen) fn add_ecdsa_key_agreement_key() -> Weight { // Proof Size summary in bytes: - // Measured: `1519` - // Estimated: `4787` - // Minimum execution time: 345_425 nanoseconds. - Weight::from_parts(345_425_000, 4787) - .saturating_add(RocksDbWeight::get().reads(1_u64)) - .saturating_add(RocksDbWeight::get().writes(1_u64)) + // Measured: `2064` + // Estimated: `9921` + // Minimum execution time: 26_114 nanoseconds. + Weight::from_parts(30_948_000, 9921) + .saturating_add(RocksDbWeight::get().reads(3_u64)) + .saturating_add(RocksDbWeight::get().writes(2_u64)) } /// Storage: Did Did (r:1 w:1) /// Proof: Did Did (max_values: None, max_size: Some(2312), added: 4787, mode: MaxEncodedLen) + /// Storage: Did DidEndpointsCount (r:1 w:0) + /// Proof: Did DidEndpointsCount (max_values: None, max_size: Some(52), added: 2527, mode: MaxEncodedLen) + /// Storage: System Account (r:1 w:1) + /// Proof: System Account (max_values: None, max_size: Some(132), added: 2607, mode: MaxEncodedLen) fn remove_ed25519_key_agreement_key() -> Weight { // Proof Size summary in bytes: - // Measured: `1622` - // Estimated: `4787` - // Minimum execution time: 287_753 nanoseconds. - Weight::from_parts(287_753_000, 4787) - .saturating_add(RocksDbWeight::get().reads(1_u64)) - .saturating_add(RocksDbWeight::get().writes(1_u64)) + // Measured: `2233` + // Estimated: `9921` + // Minimum execution time: 23_602 nanoseconds. + Weight::from_parts(25_473_000, 9921) + .saturating_add(RocksDbWeight::get().reads(3_u64)) + .saturating_add(RocksDbWeight::get().writes(2_u64)) } /// Storage: Did Did (r:1 w:1) /// Proof: Did Did (max_values: None, max_size: Some(2312), added: 4787, mode: MaxEncodedLen) + /// Storage: Did DidEndpointsCount (r:1 w:0) + /// Proof: Did DidEndpointsCount (max_values: None, max_size: Some(52), added: 2527, mode: MaxEncodedLen) + /// Storage: System Account (r:1 w:1) + /// Proof: System Account (max_values: None, max_size: Some(132), added: 2607, mode: MaxEncodedLen) fn remove_sr25519_key_agreement_key() -> Weight { // Proof Size summary in bytes: - // Measured: `1622` - // Estimated: `4787` - // Minimum execution time: 299_898 nanoseconds. - Weight::from_parts(299_898_000, 4787) - .saturating_add(RocksDbWeight::get().reads(1_u64)) - .saturating_add(RocksDbWeight::get().writes(1_u64)) + // Measured: `2200` + // Estimated: `9921` + // Minimum execution time: 23_531 nanoseconds. + Weight::from_parts(25_967_000, 9921) + .saturating_add(RocksDbWeight::get().reads(3_u64)) + .saturating_add(RocksDbWeight::get().writes(2_u64)) } /// Storage: Did Did (r:1 w:1) /// Proof: Did Did (max_values: None, max_size: Some(2312), added: 4787, mode: MaxEncodedLen) + /// Storage: Did DidEndpointsCount (r:1 w:0) + /// Proof: Did DidEndpointsCount (max_values: None, max_size: Some(52), added: 2527, mode: MaxEncodedLen) + /// Storage: System Account (r:1 w:1) + /// Proof: System Account (max_values: None, max_size: Some(132), added: 2607, mode: MaxEncodedLen) fn remove_ecdsa_key_agreement_key() -> Weight { // Proof Size summary in bytes: - // Measured: `1625` - // Estimated: `4787` - // Minimum execution time: 280_950 nanoseconds. - Weight::from_parts(280_950_000, 4787) - .saturating_add(RocksDbWeight::get().reads(1_u64)) - .saturating_add(RocksDbWeight::get().writes(1_u64)) + // Measured: `2204` + // Estimated: `9921` + // Minimum execution time: 25_410 nanoseconds. + Weight::from_parts(29_179_000, 9921) + .saturating_add(RocksDbWeight::get().reads(3_u64)) + .saturating_add(RocksDbWeight::get().writes(2_u64)) } - /// Storage: Did Did (r:1 w:0) + /// Storage: Did Did (r:1 w:1) /// Proof: Did Did (max_values: None, max_size: Some(2312), added: 4787, mode: MaxEncodedLen) /// Storage: Did DidEndpointsCount (r:1 w:1) /// Proof: Did DidEndpointsCount (max_values: None, max_size: Some(52), added: 2527, mode: MaxEncodedLen) /// Storage: Did ServiceEndpoints (r:1 w:1) - /// Proof: Did ServiceEndpoints (max_values: None, max_size: Some(413), added: 2888, mode: MaxEncodedLen) + /// Proof: Did ServiceEndpoints (max_values: None, max_size: Some(615), added: 3090, mode: MaxEncodedLen) + /// Storage: System Account (r:1 w:1) + /// Proof: System Account (max_values: None, max_size: Some(132), added: 2607, mode: MaxEncodedLen) fn add_service_endpoint() -> Weight { // Proof Size summary in bytes: - // Measured: `955` - // Estimated: `10202` - // Minimum execution time: 365_541 nanoseconds. - Weight::from_parts(365_541_000, 10202) - .saturating_add(RocksDbWeight::get().reads(3_u64)) - .saturating_add(RocksDbWeight::get().writes(2_u64)) + // Measured: `1561` + // Estimated: `13011` + // Minimum execution time: 30_467 nanoseconds. + Weight::from_parts(32_386_000, 13011) + .saturating_add(RocksDbWeight::get().reads(4_u64)) + .saturating_add(RocksDbWeight::get().writes(4_u64)) } + /// Storage: Did Did (r:1 w:1) + /// Proof: Did Did (max_values: None, max_size: Some(2312), added: 4787, mode: MaxEncodedLen) /// Storage: Did ServiceEndpoints (r:1 w:1) - /// Proof: Did ServiceEndpoints (max_values: None, max_size: Some(413), added: 2888, mode: MaxEncodedLen) + /// Proof: Did ServiceEndpoints (max_values: None, max_size: Some(615), added: 3090, mode: MaxEncodedLen) /// Storage: Did DidEndpointsCount (r:1 w:1) /// Proof: Did DidEndpointsCount (max_values: None, max_size: Some(52), added: 2527, mode: MaxEncodedLen) + /// Storage: System Account (r:1 w:1) + /// Proof: System Account (max_values: None, max_size: Some(132), added: 2607, mode: MaxEncodedLen) fn remove_service_endpoint() -> Weight { // Proof Size summary in bytes: - // Measured: `1131` - // Estimated: `5415` - // Minimum execution time: 312_880 nanoseconds. - Weight::from_parts(312_880_000, 5415) - .saturating_add(RocksDbWeight::get().reads(2_u64)) - .saturating_add(RocksDbWeight::get().writes(2_u64)) + // Measured: `2120` + // Estimated: `13011` + // Minimum execution time: 29_988 nanoseconds. + Weight::from_parts(31_827_000, 13011) + .saturating_add(RocksDbWeight::get().reads(4_u64)) + .saturating_add(RocksDbWeight::get().writes(4_u64)) } /// Storage: Did Did (r:1 w:0) /// Proof: Did Did (max_values: None, max_size: Some(2312), added: 4787, mode: MaxEncodedLen) /// The range of component `l` is `[1, 5242880]`. - fn signature_verification_sr25519(_l: u32, ) -> Weight { + fn signature_verification_sr25519(l: u32, ) -> Weight { // Proof Size summary in bytes: - // Measured: `1624` + // Measured: `1657` // Estimated: `4787` - // Minimum execution time: 337_557 nanoseconds. - Weight::from_parts(236_716_672_000, 4787) + // Minimum execution time: 37_516 nanoseconds. + Weight::from_parts(37_912_000, 4787) + // Standard Error: 1 + .saturating_add(Weight::from_ref_time(2_150).saturating_mul(l.into())) .saturating_add(RocksDbWeight::get().reads(1_u64)) } /// Storage: Did Did (r:1 w:0) /// Proof: Did Did (max_values: None, max_size: Some(2312), added: 4787, mode: MaxEncodedLen) /// The range of component `l` is `[1, 5242880]`. - fn signature_verification_ed25519(_l: u32, ) -> Weight { + fn signature_verification_ed25519(l: u32, ) -> Weight { // Proof Size summary in bytes: - // Measured: `1624` + // Measured: `1657` // Estimated: `4787` - // Minimum execution time: 336_941 nanoseconds. - Weight::from_parts(251_085_199_000, 4787) + // Minimum execution time: 36_395 nanoseconds. + Weight::from_parts(36_951_000, 4787) + // Standard Error: 0 + .saturating_add(Weight::from_ref_time(1_366).saturating_mul(l.into())) .saturating_add(RocksDbWeight::get().reads(1_u64)) } /// Storage: Did Did (r:1 w:0) /// Proof: Did Did (max_values: None, max_size: Some(2312), added: 4787, mode: MaxEncodedLen) /// The range of component `l` is `[1, 5242880]`. - fn signature_verification_ecdsa(_l: u32, ) -> Weight { + fn signature_verification_ecdsa(l: u32, ) -> Weight { // Proof Size summary in bytes: - // Measured: `1625` + // Measured: `1658` // Estimated: `4787` - // Minimum execution time: 217_537 nanoseconds. - Weight::from_parts(131_743_354_000, 4787) + // Minimum execution time: 32_273 nanoseconds. + Weight::from_parts(33_274_000, 4787) + // Standard Error: 0 + .saturating_add(Weight::from_ref_time(979).saturating_mul(l.into())) .saturating_add(RocksDbWeight::get().reads(1_u64)) } /// Storage: Did Did (r:1 w:1) @@ -1007,24 +1219,26 @@ impl WeightInfo for () { /// Proof: System Account (max_values: None, max_size: Some(132), added: 2607, mode: MaxEncodedLen) fn change_deposit_owner() -> Weight { // Proof Size summary in bytes: - // Measured: `928` + // Measured: `895` // Estimated: `7394` - // Minimum execution time: 528_086 nanoseconds. - Weight::from_parts(528_086_000, 7394) + // Minimum execution time: 22_573 nanoseconds. + Weight::from_parts(24_012_000, 7394) .saturating_add(RocksDbWeight::get().reads(2_u64)) .saturating_add(RocksDbWeight::get().writes(2_u64)) } /// Storage: Did Did (r:1 w:1) /// Proof: Did Did (max_values: None, max_size: Some(2312), added: 4787, mode: MaxEncodedLen) + /// Storage: Did DidEndpointsCount (r:1 w:0) + /// Proof: Did DidEndpointsCount (max_values: None, max_size: Some(52), added: 2527, mode: MaxEncodedLen) /// Storage: System Account (r:1 w:1) /// Proof: System Account (max_values: None, max_size: Some(132), added: 2607, mode: MaxEncodedLen) fn update_deposit() -> Weight { // Proof Size summary in bytes: - // Measured: `791` - // Estimated: `7394` - // Minimum execution time: 546_390 nanoseconds. - Weight::from_parts(546_390_000, 7394) - .saturating_add(RocksDbWeight::get().reads(2_u64)) + // Measured: `923` + // Estimated: `9921` + // Minimum execution time: 17_255 nanoseconds. + Weight::from_parts(18_717_000, 9921) + .saturating_add(RocksDbWeight::get().reads(3_u64)) .saturating_add(RocksDbWeight::get().writes(2_u64)) } } diff --git a/pallets/pallet-did-lookup/src/default_weights.rs b/pallets/pallet-did-lookup/src/default_weights.rs index 98dbbde17..71225cb16 100644 --- a/pallets/pallet-did-lookup/src/default_weights.rs +++ b/pallets/pallet-did-lookup/src/default_weights.rs @@ -1,5 +1,3 @@ -// TODO: Update these weights - // KILT Blockchain – https://botlabs.org // Copyright (C) 2019-2023 BOTLabs GmbH @@ -21,14 +19,14 @@ //! Autogenerated weights for pallet_did_lookup //! //! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev -//! DATE: 2023-04-05 -//! STEPS: `2`, REPEAT: `1`, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! DATE: 2023-05-18 +//! STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` //! WORST CASE MAP SIZE: `1000000` //! HOSTNAME: `rust-2`, CPU: `12th Gen Intel(R) Core(TM) i9-12900K` //! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 1024 // Executed Command: -// ./target/debug/kilt-parachain +// ./target/release/kilt-parachain // benchmark // pallet // --template=.maintain/weight-template.hbs @@ -36,8 +34,8 @@ // --execution=wasm // --wasm-execution=compiled // --heap-pages=4096 -// --steps=2 -// --repeat=1 +// --steps=50 +// --repeat=20 // --chain=dev // --pallet=pallet-did-lookup // --extrinsic=* @@ -61,7 +59,6 @@ pub trait WeightInfo { fn remove_account_association() -> Weight; fn change_deposit_owner() -> Weight; fn update_deposit() -> Weight; - fn migrate(n: u32, ) -> Weight; } /// Weights for pallet_did_lookup using the Substrate node and recommended hardware. @@ -75,10 +72,10 @@ impl WeightInfo for SubstrateWeight { /// Proof: DidLookup ConnectedAccounts (max_values: None, max_size: Some(97), added: 2572, mode: MaxEncodedLen) fn associate_account_multisig_sr25519() -> Weight { // Proof Size summary in bytes: - // Measured: `449` + // Measured: `403` // Estimated: `5211` - // Minimum execution time: 2_692_767 nanoseconds. - Weight::from_parts(2_692_767_000, 5211) + // Minimum execution time: 64_706 nanoseconds. + Weight::from_parts(66_077_000, 5211) .saturating_add(T::DbWeight::get().reads(2_u64)) .saturating_add(T::DbWeight::get().writes(4_u64)) } @@ -90,10 +87,10 @@ impl WeightInfo for SubstrateWeight { /// Proof: DidLookup ConnectedAccounts (max_values: None, max_size: Some(97), added: 2572, mode: MaxEncodedLen) fn associate_account_multisig_ed25519() -> Weight { // Proof Size summary in bytes: - // Measured: `449` + // Measured: `403` // Estimated: `5211` - // Minimum execution time: 1_463_549 nanoseconds. - Weight::from_parts(1_463_549_000, 5211) + // Minimum execution time: 63_377 nanoseconds. + Weight::from_parts(64_358_000, 5211) .saturating_add(T::DbWeight::get().reads(2_u64)) .saturating_add(T::DbWeight::get().writes(4_u64)) } @@ -105,10 +102,10 @@ impl WeightInfo for SubstrateWeight { /// Proof: DidLookup ConnectedAccounts (max_values: None, max_size: Some(97), added: 2572, mode: MaxEncodedLen) fn associate_account_multisig_ecdsa() -> Weight { // Proof Size summary in bytes: - // Measured: `449` + // Measured: `403` // Estimated: `5211` - // Minimum execution time: 1_189_337 nanoseconds. - Weight::from_parts(1_189_337_000, 5211) + // Minimum execution time: 59_043 nanoseconds. + Weight::from_parts(63_304_000, 5211) .saturating_add(T::DbWeight::get().reads(2_u64)) .saturating_add(T::DbWeight::get().writes(4_u64)) } @@ -120,10 +117,10 @@ impl WeightInfo for SubstrateWeight { /// Proof: DidLookup ConnectedAccounts (max_values: None, max_size: Some(97), added: 2572, mode: MaxEncodedLen) fn associate_eth_account() -> Weight { // Proof Size summary in bytes: - // Measured: `437` + // Measured: `391` // Estimated: `5211` - // Minimum execution time: 1_057_385 nanoseconds. - Weight::from_parts(1_057_385_000, 5211) + // Minimum execution time: 59_169 nanoseconds. + Weight::from_parts(63_871_000, 5211) .saturating_add(T::DbWeight::get().reads(2_u64)) .saturating_add(T::DbWeight::get().writes(4_u64)) } @@ -135,10 +132,10 @@ impl WeightInfo for SubstrateWeight { /// Proof: DidLookup ConnectedAccounts (max_values: None, max_size: Some(97), added: 2572, mode: MaxEncodedLen) fn associate_sender() -> Weight { // Proof Size summary in bytes: - // Measured: `449` + // Measured: `403` // Estimated: `5211` - // Minimum execution time: 831_333 nanoseconds. - Weight::from_parts(831_333_000, 5211) + // Minimum execution time: 28_354 nanoseconds. + Weight::from_parts(29_272_000, 5211) .saturating_add(T::DbWeight::get().reads(2_u64)) .saturating_add(T::DbWeight::get().writes(4_u64)) } @@ -150,10 +147,10 @@ impl WeightInfo for SubstrateWeight { /// Proof: DidLookup ConnectedAccounts (max_values: None, max_size: Some(97), added: 2572, mode: MaxEncodedLen) fn remove_sender_association() -> Weight { // Proof Size summary in bytes: - // Measured: `449` + // Measured: `403` // Estimated: `5211` - // Minimum execution time: 500_193 nanoseconds. - Weight::from_parts(500_193_000, 5211) + // Minimum execution time: 17_432 nanoseconds. + Weight::from_parts(17_906_000, 5211) .saturating_add(T::DbWeight::get().reads(2_u64)) .saturating_add(T::DbWeight::get().writes(3_u64)) } @@ -165,10 +162,10 @@ impl WeightInfo for SubstrateWeight { /// Proof: DidLookup ConnectedAccounts (max_values: None, max_size: Some(97), added: 2572, mode: MaxEncodedLen) fn remove_account_association() -> Weight { // Proof Size summary in bytes: - // Measured: `449` + // Measured: `403` // Estimated: `5211` - // Minimum execution time: 549_033 nanoseconds. - Weight::from_parts(549_033_000, 5211) + // Minimum execution time: 18_685 nanoseconds. + Weight::from_parts(19_115_000, 5211) .saturating_add(T::DbWeight::get().reads(2_u64)) .saturating_add(T::DbWeight::get().writes(3_u64)) } @@ -178,10 +175,10 @@ impl WeightInfo for SubstrateWeight { /// Proof: System Account (max_values: None, max_size: Some(132), added: 2607, mode: MaxEncodedLen) fn change_deposit_owner() -> Weight { // Proof Size summary in bytes: - // Measured: `862` + // Measured: `816` // Estimated: `7818` - // Minimum execution time: 676_720 nanoseconds. - Weight::from_parts(676_720_000, 7818) + // Minimum execution time: 25_338 nanoseconds. + Weight::from_parts(25_951_000, 7818) .saturating_add(T::DbWeight::get().reads(3_u64)) .saturating_add(T::DbWeight::get().writes(3_u64)) } @@ -191,29 +188,13 @@ impl WeightInfo for SubstrateWeight { /// Proof: System Account (max_values: None, max_size: Some(132), added: 2607, mode: MaxEncodedLen) fn update_deposit() -> Weight { // Proof Size summary in bytes: - // Measured: `449` + // Measured: `403` // Estimated: `5211` - // Minimum execution time: 662_565 nanoseconds. - Weight::from_parts(662_565_000, 5211) + // Minimum execution time: 21_996 nanoseconds. + Weight::from_parts(22_991_000, 5211) .saturating_add(T::DbWeight::get().reads(2_u64)) .saturating_add(T::DbWeight::get().writes(2_u64)) } - /// Storage: DidLookup MigrationStateStore (r:1 w:1) - /// Proof: DidLookup MigrationStateStore (max_values: Some(1), max_size: Some(35), added: 530, mode: MaxEncodedLen) - /// Storage: DidLookup ConnectedDids (r:101 w:184) - /// Proof: DidLookup ConnectedDids (max_values: None, max_size: Some(129), added: 2604, mode: MaxEncodedLen) - /// Storage: DidLookup ConnectedAccounts (r:92 w:184) - /// Proof: DidLookup ConnectedAccounts (max_values: None, max_size: Some(97), added: 2572, mode: MaxEncodedLen) - /// The range of component `n` is `[1, 100]`. - fn migrate(_n: u32, ) -> Weight { - // Proof Size summary in bytes: - // Measured: `2127 + n * (324 ±0)` - // Estimated: `500158` - // Minimum execution time: 3_129_173 nanoseconds. - Weight::from_parts(120_554_047_000, 500158) - .saturating_add(T::DbWeight::get().reads(194_u64)) - .saturating_add(T::DbWeight::get().writes(369_u64)) - } } // For backwards compatibility and tests @@ -226,10 +207,10 @@ impl WeightInfo for () { /// Proof: DidLookup ConnectedAccounts (max_values: None, max_size: Some(97), added: 2572, mode: MaxEncodedLen) fn associate_account_multisig_sr25519() -> Weight { // Proof Size summary in bytes: - // Measured: `449` + // Measured: `403` // Estimated: `5211` - // Minimum execution time: 2_692_767 nanoseconds. - Weight::from_parts(2_692_767_000, 5211) + // Minimum execution time: 64_706 nanoseconds. + Weight::from_parts(66_077_000, 5211) .saturating_add(RocksDbWeight::get().reads(2_u64)) .saturating_add(RocksDbWeight::get().writes(4_u64)) } @@ -241,10 +222,10 @@ impl WeightInfo for () { /// Proof: DidLookup ConnectedAccounts (max_values: None, max_size: Some(97), added: 2572, mode: MaxEncodedLen) fn associate_account_multisig_ed25519() -> Weight { // Proof Size summary in bytes: - // Measured: `449` + // Measured: `403` // Estimated: `5211` - // Minimum execution time: 1_463_549 nanoseconds. - Weight::from_parts(1_463_549_000, 5211) + // Minimum execution time: 63_377 nanoseconds. + Weight::from_parts(64_358_000, 5211) .saturating_add(RocksDbWeight::get().reads(2_u64)) .saturating_add(RocksDbWeight::get().writes(4_u64)) } @@ -256,10 +237,10 @@ impl WeightInfo for () { /// Proof: DidLookup ConnectedAccounts (max_values: None, max_size: Some(97), added: 2572, mode: MaxEncodedLen) fn associate_account_multisig_ecdsa() -> Weight { // Proof Size summary in bytes: - // Measured: `449` + // Measured: `403` // Estimated: `5211` - // Minimum execution time: 1_189_337 nanoseconds. - Weight::from_parts(1_189_337_000, 5211) + // Minimum execution time: 59_043 nanoseconds. + Weight::from_parts(63_304_000, 5211) .saturating_add(RocksDbWeight::get().reads(2_u64)) .saturating_add(RocksDbWeight::get().writes(4_u64)) } @@ -271,10 +252,10 @@ impl WeightInfo for () { /// Proof: DidLookup ConnectedAccounts (max_values: None, max_size: Some(97), added: 2572, mode: MaxEncodedLen) fn associate_eth_account() -> Weight { // Proof Size summary in bytes: - // Measured: `437` + // Measured: `391` // Estimated: `5211` - // Minimum execution time: 1_057_385 nanoseconds. - Weight::from_parts(1_057_385_000, 5211) + // Minimum execution time: 59_169 nanoseconds. + Weight::from_parts(63_871_000, 5211) .saturating_add(RocksDbWeight::get().reads(2_u64)) .saturating_add(RocksDbWeight::get().writes(4_u64)) } @@ -286,10 +267,10 @@ impl WeightInfo for () { /// Proof: DidLookup ConnectedAccounts (max_values: None, max_size: Some(97), added: 2572, mode: MaxEncodedLen) fn associate_sender() -> Weight { // Proof Size summary in bytes: - // Measured: `449` + // Measured: `403` // Estimated: `5211` - // Minimum execution time: 831_333 nanoseconds. - Weight::from_parts(831_333_000, 5211) + // Minimum execution time: 28_354 nanoseconds. + Weight::from_parts(29_272_000, 5211) .saturating_add(RocksDbWeight::get().reads(2_u64)) .saturating_add(RocksDbWeight::get().writes(4_u64)) } @@ -301,10 +282,10 @@ impl WeightInfo for () { /// Proof: DidLookup ConnectedAccounts (max_values: None, max_size: Some(97), added: 2572, mode: MaxEncodedLen) fn remove_sender_association() -> Weight { // Proof Size summary in bytes: - // Measured: `449` + // Measured: `403` // Estimated: `5211` - // Minimum execution time: 500_193 nanoseconds. - Weight::from_parts(500_193_000, 5211) + // Minimum execution time: 17_432 nanoseconds. + Weight::from_parts(17_906_000, 5211) .saturating_add(RocksDbWeight::get().reads(2_u64)) .saturating_add(RocksDbWeight::get().writes(3_u64)) } @@ -316,10 +297,10 @@ impl WeightInfo for () { /// Proof: DidLookup ConnectedAccounts (max_values: None, max_size: Some(97), added: 2572, mode: MaxEncodedLen) fn remove_account_association() -> Weight { // Proof Size summary in bytes: - // Measured: `449` + // Measured: `403` // Estimated: `5211` - // Minimum execution time: 549_033 nanoseconds. - Weight::from_parts(549_033_000, 5211) + // Minimum execution time: 18_685 nanoseconds. + Weight::from_parts(19_115_000, 5211) .saturating_add(RocksDbWeight::get().reads(2_u64)) .saturating_add(RocksDbWeight::get().writes(3_u64)) } @@ -329,10 +310,10 @@ impl WeightInfo for () { /// Proof: System Account (max_values: None, max_size: Some(132), added: 2607, mode: MaxEncodedLen) fn change_deposit_owner() -> Weight { // Proof Size summary in bytes: - // Measured: `862` + // Measured: `816` // Estimated: `7818` - // Minimum execution time: 676_720 nanoseconds. - Weight::from_parts(676_720_000, 7818) + // Minimum execution time: 25_338 nanoseconds. + Weight::from_parts(25_951_000, 7818) .saturating_add(RocksDbWeight::get().reads(3_u64)) .saturating_add(RocksDbWeight::get().writes(3_u64)) } @@ -342,27 +323,11 @@ impl WeightInfo for () { /// Proof: System Account (max_values: None, max_size: Some(132), added: 2607, mode: MaxEncodedLen) fn update_deposit() -> Weight { // Proof Size summary in bytes: - // Measured: `449` + // Measured: `403` // Estimated: `5211` - // Minimum execution time: 662_565 nanoseconds. - Weight::from_parts(662_565_000, 5211) + // Minimum execution time: 21_996 nanoseconds. + Weight::from_parts(22_991_000, 5211) .saturating_add(RocksDbWeight::get().reads(2_u64)) .saturating_add(RocksDbWeight::get().writes(2_u64)) } - /// Storage: DidLookup MigrationStateStore (r:1 w:1) - /// Proof: DidLookup MigrationStateStore (max_values: Some(1), max_size: Some(35), added: 530, mode: MaxEncodedLen) - /// Storage: DidLookup ConnectedDids (r:101 w:184) - /// Proof: DidLookup ConnectedDids (max_values: None, max_size: Some(129), added: 2604, mode: MaxEncodedLen) - /// Storage: DidLookup ConnectedAccounts (r:92 w:184) - /// Proof: DidLookup ConnectedAccounts (max_values: None, max_size: Some(97), added: 2572, mode: MaxEncodedLen) - /// The range of component `n` is `[1, 100]`. - fn migrate(_n: u32, ) -> Weight { - // Proof Size summary in bytes: - // Measured: `2127 + n * (324 ±0)` - // Estimated: `500158` - // Minimum execution time: 3_129_173 nanoseconds. - Weight::from_parts(120_554_047_000, 500158) - .saturating_add(RocksDbWeight::get().reads(194_u64)) - .saturating_add(RocksDbWeight::get().writes(369_u64)) - } } diff --git a/pallets/pallet-inflation/src/default_weights.rs b/pallets/pallet-inflation/src/default_weights.rs index 1301eee1a..04bb22993 100644 --- a/pallets/pallet-inflation/src/default_weights.rs +++ b/pallets/pallet-inflation/src/default_weights.rs @@ -1,5 +1,3 @@ -// TODO: Update these weights - // KILT Blockchain – https://botlabs.org // Copyright (C) 2019-2023 BOTLabs GmbH @@ -21,14 +19,14 @@ //! Autogenerated weights for pallet_inflation //! //! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev -//! DATE: 2023-04-05 -//! STEPS: `2`, REPEAT: `1`, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! DATE: 2023-05-18 +//! STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` //! WORST CASE MAP SIZE: `1000000` //! HOSTNAME: `rust-2`, CPU: `12th Gen Intel(R) Core(TM) i9-12900K` //! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 1024 // Executed Command: -// ./target/debug/kilt-parachain +// ./target/release/kilt-parachain // benchmark // pallet // --template=.maintain/weight-template.hbs @@ -36,8 +34,8 @@ // --execution=wasm // --wasm-execution=compiled // --heap-pages=4096 -// --steps=2 -// --repeat=1 +// --steps=50 +// --repeat=20 // --chain=dev // --pallet=pallet-inflation // --extrinsic=* @@ -65,8 +63,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `474` // Estimated: `2607` - // Minimum execution time: 846_817 nanoseconds. - Weight::from_parts(846_817_000, 2607) + // Minimum execution time: 20_124 nanoseconds. + Weight::from_parts(20_846_000, 2607) .saturating_add(T::DbWeight::get().reads(1_u64)) .saturating_add(T::DbWeight::get().writes(1_u64)) } @@ -74,8 +72,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 23_588 nanoseconds. - Weight::from_ref_time(23_588_000) + // Minimum execution time: 114 nanoseconds. + Weight::from_ref_time(139_000) } } @@ -87,8 +85,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `474` // Estimated: `2607` - // Minimum execution time: 846_817 nanoseconds. - Weight::from_parts(846_817_000, 2607) + // Minimum execution time: 20_124 nanoseconds. + Weight::from_parts(20_846_000, 2607) .saturating_add(RocksDbWeight::get().reads(1_u64)) .saturating_add(RocksDbWeight::get().writes(1_u64)) } @@ -96,7 +94,7 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 23_588 nanoseconds. - Weight::from_ref_time(23_588_000) + // Minimum execution time: 114 nanoseconds. + Weight::from_ref_time(139_000) } } diff --git a/pallets/pallet-web3-names/src/default_weights.rs b/pallets/pallet-web3-names/src/default_weights.rs index b5fd0d7ba..4c976d1f6 100644 --- a/pallets/pallet-web3-names/src/default_weights.rs +++ b/pallets/pallet-web3-names/src/default_weights.rs @@ -1,5 +1,3 @@ -// TODO: Update these weights - // KILT Blockchain – https://botlabs.org // Copyright (C) 2019-2023 BOTLabs GmbH @@ -21,14 +19,14 @@ //! Autogenerated weights for pallet_web3_names //! //! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev -//! DATE: 2023-04-05 -//! STEPS: `2`, REPEAT: `1`, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! DATE: 2023-05-18 +//! STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` //! WORST CASE MAP SIZE: `1000000` //! HOSTNAME: `rust-2`, CPU: `12th Gen Intel(R) Core(TM) i9-12900K` //! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 1024 // Executed Command: -// ./target/debug/kilt-parachain +// ./target/release/kilt-parachain // benchmark // pallet // --template=.maintain/weight-template.hbs @@ -36,8 +34,8 @@ // --execution=wasm // --wasm-execution=compiled // --heap-pages=4096 -// --steps=2 -// --repeat=1 +// --steps=50 +// --repeat=20 // --chain=dev // --pallet=pallet-web3-names // --extrinsic=* @@ -73,12 +71,14 @@ impl WeightInfo for SubstrateWeight { /// Storage: System Account (r:1 w:1) /// Proof: System Account (max_values: None, max_size: Some(132), added: 2607, mode: MaxEncodedLen) /// The range of component `n` is `[3, 32]`. - fn claim(_n: u32, ) -> Weight { + fn claim(n: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `144` // Estimated: `10299` - // Minimum execution time: 1_467_337 nanoseconds. - Weight::from_parts(1_593_850_000, 10299) + // Minimum execution time: 19_822 nanoseconds. + Weight::from_parts(21_345_315, 10299) + // Standard Error: 17_787 + .saturating_add(Weight::from_ref_time(23_241).saturating_mul(n.into())) .saturating_add(T::DbWeight::get().reads(4_u64)) .saturating_add(T::DbWeight::get().writes(3_u64)) } @@ -92,8 +92,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `476` // Estimated: `7775` - // Minimum execution time: 19_784_194 nanoseconds. - Weight::from_parts(19_784_194_000, 7775) + // Minimum execution time: 18_311 nanoseconds. + Weight::from_parts(19_202_000, 7775) .saturating_add(T::DbWeight::get().reads(3_u64)) .saturating_add(T::DbWeight::get().writes(3_u64)) } @@ -104,12 +104,14 @@ impl WeightInfo for SubstrateWeight { /// Storage: Web3Names Names (r:0 w:1) /// Proof: Web3Names Names (max_values: None, max_size: Some(81), added: 2556, mode: MaxEncodedLen) /// The range of component `n` is `[3, 32]`. - fn reclaim_deposit(_n: u32, ) -> Weight { + fn reclaim_deposit(n: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `342 + n * (1 ±0)` // Estimated: `5219` - // Minimum execution time: 1_397_435 nanoseconds. - Weight::from_parts(2_393_183_000, 5219) + // Minimum execution time: 16_811 nanoseconds. + Weight::from_parts(18_600_543, 5219) + // Standard Error: 15_740 + .saturating_add(Weight::from_ref_time(12_826).saturating_mul(n.into())) .saturating_add(T::DbWeight::get().reads(2_u64)) .saturating_add(T::DbWeight::get().writes(3_u64)) } @@ -122,24 +124,28 @@ impl WeightInfo for SubstrateWeight { /// Storage: Web3Names Names (r:0 w:1) /// Proof: Web3Names Names (max_values: None, max_size: Some(81), added: 2556, mode: MaxEncodedLen) /// The range of component `n` is `[3, 32]`. - fn ban(_n: u32, ) -> Weight { + fn ban(n: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `342 + n * (1 ±0)` // Estimated: `7743` - // Minimum execution time: 1_333_207 nanoseconds. - Weight::from_parts(2_665_513_000, 7743) + // Minimum execution time: 18_069 nanoseconds. + Weight::from_parts(19_324_271, 7743) + // Standard Error: 12_698 + .saturating_add(Weight::from_ref_time(62_295).saturating_mul(n.into())) .saturating_add(T::DbWeight::get().reads(3_u64)) .saturating_add(T::DbWeight::get().writes(4_u64)) } /// Storage: Web3Names Banned (r:1 w:1) /// Proof: Web3Names Banned (max_values: None, max_size: Some(49), added: 2524, mode: MaxEncodedLen) /// The range of component `n` is `[3, 32]`. - fn unban(_n: u32, ) -> Weight { + fn unban(n: u32, ) -> Weight { // Proof Size summary in bytes: - // Measured: `46 + n * (1 ±0)` + // Measured: `47 + n * (1 ±0)` // Estimated: `2524` - // Minimum execution time: 1_322_903 nanoseconds. - Weight::from_parts(8_649_052_000, 2524) + // Minimum execution time: 7_796 nanoseconds. + Weight::from_parts(8_240_564, 2524) + // Standard Error: 5_757 + .saturating_add(Weight::from_ref_time(47_283).saturating_mul(n.into())) .saturating_add(T::DbWeight::get().reads(1_u64)) .saturating_add(T::DbWeight::get().writes(1_u64)) } @@ -153,8 +159,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `889` // Estimated: `10382` - // Minimum execution time: 20_382_085 nanoseconds. - Weight::from_parts(20_382_085_000, 10382) + // Minimum execution time: 25_771 nanoseconds. + Weight::from_parts(26_681_000, 10382) .saturating_add(T::DbWeight::get().reads(4_u64)) .saturating_add(T::DbWeight::get().writes(3_u64)) } @@ -166,8 +172,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `374` // Estimated: `5219` - // Minimum execution time: 3_040_939 nanoseconds. - Weight::from_parts(3_040_939_000, 5219) + // Minimum execution time: 22_468 nanoseconds. + Weight::from_parts(23_034_000, 5219) .saturating_add(T::DbWeight::get().reads(2_u64)) .saturating_add(T::DbWeight::get().writes(2_u64)) } @@ -184,12 +190,14 @@ impl WeightInfo for () { /// Storage: System Account (r:1 w:1) /// Proof: System Account (max_values: None, max_size: Some(132), added: 2607, mode: MaxEncodedLen) /// The range of component `n` is `[3, 32]`. - fn claim(_n: u32, ) -> Weight { + fn claim(n: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `144` // Estimated: `10299` - // Minimum execution time: 1_467_337 nanoseconds. - Weight::from_parts(1_593_850_000, 10299) + // Minimum execution time: 19_822 nanoseconds. + Weight::from_parts(21_345_315, 10299) + // Standard Error: 17_787 + .saturating_add(Weight::from_ref_time(23_241).saturating_mul(n.into())) .saturating_add(RocksDbWeight::get().reads(4_u64)) .saturating_add(RocksDbWeight::get().writes(3_u64)) } @@ -203,8 +211,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `476` // Estimated: `7775` - // Minimum execution time: 19_784_194 nanoseconds. - Weight::from_parts(19_784_194_000, 7775) + // Minimum execution time: 18_311 nanoseconds. + Weight::from_parts(19_202_000, 7775) .saturating_add(RocksDbWeight::get().reads(3_u64)) .saturating_add(RocksDbWeight::get().writes(3_u64)) } @@ -215,12 +223,14 @@ impl WeightInfo for () { /// Storage: Web3Names Names (r:0 w:1) /// Proof: Web3Names Names (max_values: None, max_size: Some(81), added: 2556, mode: MaxEncodedLen) /// The range of component `n` is `[3, 32]`. - fn reclaim_deposit(_n: u32, ) -> Weight { + fn reclaim_deposit(n: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `342 + n * (1 ±0)` // Estimated: `5219` - // Minimum execution time: 1_397_435 nanoseconds. - Weight::from_parts(2_393_183_000, 5219) + // Minimum execution time: 16_811 nanoseconds. + Weight::from_parts(18_600_543, 5219) + // Standard Error: 15_740 + .saturating_add(Weight::from_ref_time(12_826).saturating_mul(n.into())) .saturating_add(RocksDbWeight::get().reads(2_u64)) .saturating_add(RocksDbWeight::get().writes(3_u64)) } @@ -233,24 +243,28 @@ impl WeightInfo for () { /// Storage: Web3Names Names (r:0 w:1) /// Proof: Web3Names Names (max_values: None, max_size: Some(81), added: 2556, mode: MaxEncodedLen) /// The range of component `n` is `[3, 32]`. - fn ban(_n: u32, ) -> Weight { + fn ban(n: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `342 + n * (1 ±0)` // Estimated: `7743` - // Minimum execution time: 1_333_207 nanoseconds. - Weight::from_parts(2_665_513_000, 7743) + // Minimum execution time: 18_069 nanoseconds. + Weight::from_parts(19_324_271, 7743) + // Standard Error: 12_698 + .saturating_add(Weight::from_ref_time(62_295).saturating_mul(n.into())) .saturating_add(RocksDbWeight::get().reads(3_u64)) .saturating_add(RocksDbWeight::get().writes(4_u64)) } /// Storage: Web3Names Banned (r:1 w:1) /// Proof: Web3Names Banned (max_values: None, max_size: Some(49), added: 2524, mode: MaxEncodedLen) /// The range of component `n` is `[3, 32]`. - fn unban(_n: u32, ) -> Weight { + fn unban(n: u32, ) -> Weight { // Proof Size summary in bytes: - // Measured: `46 + n * (1 ±0)` + // Measured: `47 + n * (1 ±0)` // Estimated: `2524` - // Minimum execution time: 1_322_903 nanoseconds. - Weight::from_parts(8_649_052_000, 2524) + // Minimum execution time: 7_796 nanoseconds. + Weight::from_parts(8_240_564, 2524) + // Standard Error: 5_757 + .saturating_add(Weight::from_ref_time(47_283).saturating_mul(n.into())) .saturating_add(RocksDbWeight::get().reads(1_u64)) .saturating_add(RocksDbWeight::get().writes(1_u64)) } @@ -264,8 +278,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `889` // Estimated: `10382` - // Minimum execution time: 20_382_085 nanoseconds. - Weight::from_parts(20_382_085_000, 10382) + // Minimum execution time: 25_771 nanoseconds. + Weight::from_parts(26_681_000, 10382) .saturating_add(RocksDbWeight::get().reads(4_u64)) .saturating_add(RocksDbWeight::get().writes(3_u64)) } @@ -277,8 +291,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `374` // Estimated: `5219` - // Minimum execution time: 3_040_939 nanoseconds. - Weight::from_parts(3_040_939_000, 5219) + // Minimum execution time: 22_468 nanoseconds. + Weight::from_parts(23_034_000, 5219) .saturating_add(RocksDbWeight::get().reads(2_u64)) .saturating_add(RocksDbWeight::get().writes(2_u64)) } diff --git a/pallets/parachain-staking/src/default_weights.rs b/pallets/parachain-staking/src/default_weights.rs index 90ec4dbec..7be6bceeb 100644 --- a/pallets/parachain-staking/src/default_weights.rs +++ b/pallets/parachain-staking/src/default_weights.rs @@ -1,5 +1,3 @@ -// TODO: Update these weights - // KILT Blockchain – https://botlabs.org // Copyright (C) 2019-2023 BOTLabs GmbH @@ -21,14 +19,14 @@ //! Autogenerated weights for parachain_staking //! //! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev -//! DATE: 2023-04-05 -//! STEPS: `2`, REPEAT: `1`, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! DATE: 2023-05-18 +//! STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` //! WORST CASE MAP SIZE: `1000000` //! HOSTNAME: `rust-2`, CPU: `12th Gen Intel(R) Core(TM) i9-12900K` //! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 1024 // Executed Command: -// ./target/debug/kilt-parachain +// ./target/release/kilt-parachain // benchmark // pallet // --template=.maintain/weight-template.hbs @@ -36,8 +34,8 @@ // --execution=wasm // --wasm-execution=compiled // --heap-pages=4096 -// --steps=2 -// --repeat=1 +// --steps=50 +// --repeat=20 // --chain=dev // --pallet=parachain-staking // --extrinsic=* @@ -87,8 +85,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `335` // Estimated: `515` - // Minimum execution time: 113_601 nanoseconds. - Weight::from_parts(113_601_000, 515) + // Minimum execution time: 6_585 nanoseconds. + Weight::from_parts(6_893_000, 515) .saturating_add(T::DbWeight::get().reads(1_u64)) } /// Storage: ParachainStaking Round (r:1 w:1) @@ -97,8 +95,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `335` // Estimated: `515` - // Minimum execution time: 208_914 nanoseconds. - Weight::from_parts(208_914_000, 515) + // Minimum execution time: 6_920 nanoseconds. + Weight::from_parts(7_182_000, 515) .saturating_add(T::DbWeight::get().reads(1_u64)) .saturating_add(T::DbWeight::get().writes(1_u64)) } @@ -116,8 +114,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `881` // Estimated: `4723` - // Minimum execution time: 490_534 nanoseconds. - Weight::from_parts(490_534_000, 4723) + // Minimum execution time: 20_955 nanoseconds. + Weight::from_parts(21_430_000, 4723) .saturating_add(T::DbWeight::get().reads(5_u64)) .saturating_add(T::DbWeight::get().writes(2_u64)) } @@ -127,8 +125,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 66_227 nanoseconds. - Weight::from_ref_time(66_227_000) + // Minimum execution time: 1_428 nanoseconds. + Weight::from_ref_time(1_597_000) .saturating_add(T::DbWeight::get().writes(1_u64)) } /// Storage: ParachainStaking CandidatePool (r:76 w:0) @@ -149,22 +147,22 @@ impl WeightInfo for SubstrateWeight { /// The range of component `m` is `[0, 35]`. fn set_inflation(n: u32, m: u32, ) -> Weight { // Proof Size summary in bytes: - // Measured: `0 + n * (3647 ±0) + m * (7587 ±0)` - // Estimated: `383346 + n * (77565 ±0) + m * (151620 ±65_757)` - // Minimum execution time: 9_013_393 nanoseconds. - Weight::from_parts(9_013_393_000, 383346) - // Standard Error: 4_266_402_895 - .saturating_add(Weight::from_ref_time(5_268_800_032).saturating_mul(n.into())) - // Standard Error: 9_142_291_918 - .saturating_add(Weight::from_ref_time(10_550_156_582).saturating_mul(m.into())) + // Measured: `0 + n * (3741 ±0) + m * (7573 ±0)` + // Estimated: `371694 + n * (70593 ±0) + m * (129441 ±2_167)` + // Minimum execution time: 471_938 nanoseconds. + Weight::from_parts(486_001_000, 371694) + // Standard Error: 4_379_278 + .saturating_add(Weight::from_ref_time(110_323_738).saturating_mul(n.into())) + // Standard Error: 9_402_215 + .saturating_add(Weight::from_ref_time(201_177_282).saturating_mul(m.into())) .saturating_add(T::DbWeight::get().reads(152_u64)) - .saturating_add(T::DbWeight::get().reads((30_u64).saturating_mul(n.into()))) - .saturating_add(T::DbWeight::get().reads((60_u64).saturating_mul(m.into()))) + .saturating_add(T::DbWeight::get().reads((27_u64).saturating_mul(n.into()))) + .saturating_add(T::DbWeight::get().reads((51_u64).saturating_mul(m.into()))) .saturating_add(T::DbWeight::get().writes(145_u64)) - .saturating_add(T::DbWeight::get().writes((28_u64).saturating_mul(n.into()))) - .saturating_add(T::DbWeight::get().writes((60_u64).saturating_mul(m.into()))) - .saturating_add(Weight::from_proof_size(77565).saturating_mul(n.into())) - .saturating_add(Weight::from_proof_size(151620).saturating_mul(m.into())) + .saturating_add(T::DbWeight::get().writes((25_u64).saturating_mul(n.into()))) + .saturating_add(T::DbWeight::get().writes((51_u64).saturating_mul(m.into()))) + .saturating_add(Weight::from_proof_size(70593).saturating_mul(n.into())) + .saturating_add(Weight::from_proof_size(129441).saturating_mul(m.into())) } /// Storage: ParachainStaking MaxSelectedCandidates (r:1 w:1) /// Proof: ParachainStaking MaxSelectedCandidates (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen) @@ -176,18 +174,20 @@ impl WeightInfo for SubstrateWeight { /// Proof: ParachainStaking TotalCollatorStake (max_values: Some(1), max_size: Some(32), added: 527, mode: MaxEncodedLen) /// The range of component `n` is `[16, 75]`. /// The range of component `m` is `[0, 35]`. - fn set_max_selected_candidates(n: u32, _m: u32, ) -> Weight { + fn set_max_selected_candidates(n: u32, m: u32, ) -> Weight { // Proof Size summary in bytes: - // Measured: `0 + n * (1883 ±0) + m * (2832 ±0)` - // Estimated: `5168 + n * (3355 ±0)` - // Minimum execution time: 1_161_641 nanoseconds. - Weight::from_parts(1_161_641_000, 5168) - // Standard Error: 20_294_226 - .saturating_add(Weight::from_ref_time(81_538_225).saturating_mul(n.into())) + // Measured: `0 + n * (1875 ±0) + m * (2832 ±0)` + // Estimated: `9388 + n * (3554 ±9)` + // Minimum execution time: 22_719 nanoseconds. + Weight::from_parts(25_188_000, 9388) + // Standard Error: 20_395 + .saturating_add(Weight::from_ref_time(2_348_989).saturating_mul(n.into())) + // Standard Error: 45_143 + .saturating_add(Weight::from_ref_time(231_173).saturating_mul(m.into())) .saturating_add(T::DbWeight::get().reads(3_u64)) .saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(n.into()))) .saturating_add(T::DbWeight::get().writes(2_u64)) - .saturating_add(Weight::from_proof_size(3355).saturating_mul(n.into())) + .saturating_add(Weight::from_proof_size(3554).saturating_mul(n.into())) } /// Storage: ParachainStaking Round (r:1 w:1) /// Proof: ParachainStaking Round (max_values: Some(1), max_size: Some(20), added: 515, mode: MaxEncodedLen) @@ -195,8 +195,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `335` // Estimated: `515` - // Minimum execution time: 691_001 nanoseconds. - Weight::from_parts(691_001_000, 515) + // Minimum execution time: 8_311 nanoseconds. + Weight::from_parts(8_758_000, 515) .saturating_add(T::DbWeight::get().reads(1_u64)) .saturating_add(T::DbWeight::get().writes(1_u64)) } @@ -232,20 +232,20 @@ impl WeightInfo for SubstrateWeight { /// The range of component `m` is `[0, 35]`. fn force_remove_candidate(n: u32, m: u32, ) -> Weight { // Proof Size summary in bytes: - // Measured: `0 + n * (435 ±0) + m * (2388 ±0)` - // Estimated: `116721 + n * (372 ±138) + m * (16221 ±300)` - // Minimum execution time: 3_973_174 nanoseconds. - Weight::from_parts(3_973_174_000, 116721) - // Standard Error: 300_977_057 - .saturating_add(Weight::from_ref_time(221_044_787).saturating_mul(n.into())) - // Standard Error: 650_450_082 - .saturating_add(Weight::from_ref_time(754_831_595).saturating_mul(m.into())) + // Measured: `0 + n * (397 ±0) + m * (2335 ±0)` + // Estimated: `116648 + m * (16172 ±0) + n * (408 ±3)` + // Minimum execution time: 92_721 nanoseconds. + Weight::from_parts(95_409_000, 116648) + // Standard Error: 20_457 + .saturating_add(Weight::from_ref_time(647_332).saturating_mul(n.into())) + // Standard Error: 45_383 + .saturating_add(Weight::from_ref_time(18_774_487).saturating_mul(m.into())) .saturating_add(T::DbWeight::get().reads(29_u64)) .saturating_add(T::DbWeight::get().reads((4_u64).saturating_mul(m.into()))) .saturating_add(T::DbWeight::get().writes(10_u64)) .saturating_add(T::DbWeight::get().writes((4_u64).saturating_mul(m.into()))) - .saturating_add(Weight::from_proof_size(372).saturating_mul(n.into())) - .saturating_add(Weight::from_proof_size(16221).saturating_mul(m.into())) + .saturating_add(Weight::from_proof_size(16172).saturating_mul(m.into())) + .saturating_add(Weight::from_proof_size(408).saturating_mul(n.into())) } /// Storage: ParachainStaking CandidatePool (r:1 w:1) /// Proof: ParachainStaking CandidatePool (max_values: None, max_size: Some(1790), added: 4265, mode: MaxEncodedLen) @@ -271,16 +271,17 @@ impl WeightInfo for SubstrateWeight { /// The range of component `m` is `[0, 35]`. fn join_candidates(n: u32, m: u32, ) -> Weight { // Proof Size summary in bytes: - // Measured: `78 + n * (83 ±0) + m * (85 ±0)` - // Estimated: `22098` - // Minimum execution time: 2_325_690 nanoseconds. - Weight::from_parts(2_470_811_246, 22098) - // Standard Error: 7_815_891 - .saturating_add(Weight::from_ref_time(599_753).saturating_mul(n.into())) - // Standard Error: 16_301_715 - .saturating_add(Weight::from_ref_time(3_997_428).saturating_mul(m.into())) + // Measured: `2728 + n * (75 ±0) + m * (36 ±0)` + // Estimated: `21571 + m * (15 ±0)` + // Minimum execution time: 50_529 nanoseconds. + Weight::from_parts(12_449_184, 21571) + // Standard Error: 6_788 + .saturating_add(Weight::from_ref_time(656_014).saturating_mul(n.into())) + // Standard Error: 14_097 + .saturating_add(Weight::from_ref_time(1_279_959).saturating_mul(m.into())) .saturating_add(T::DbWeight::get().reads(10_u64)) .saturating_add(T::DbWeight::get().writes(7_u64)) + .saturating_add(Weight::from_proof_size(15).saturating_mul(m.into())) } /// Storage: ParachainStaking CandidatePool (r:17 w:1) /// Proof: ParachainStaking CandidatePool (max_values: None, max_size: Some(1790), added: 4265, mode: MaxEncodedLen) @@ -294,14 +295,16 @@ impl WeightInfo for SubstrateWeight { /// Proof: ParachainStaking TotalCollatorStake (max_values: Some(1), max_size: Some(32), added: 527, mode: MaxEncodedLen) /// The range of component `n` is `[17, 74]`. /// The range of component `m` is `[0, 35]`. - fn init_leave_candidates(n: u32, _m: u32, ) -> Weight { + fn init_leave_candidates(n: u32, m: u32, ) -> Weight { // Proof Size summary in bytes: - // Measured: `2447 + n * (72 ±0) + m * (818 ±0)` + // Measured: `2583 + n * (71 ±0) + m * (816 ±0)` // Estimated: `78143` - // Minimum execution time: 3_383_593 nanoseconds. - Weight::from_parts(5_399_481_017, 78143) - // Standard Error: 2_824_731 - .saturating_add(Weight::from_ref_time(10_745_175).saturating_mul(n.into())) + // Minimum execution time: 72_683 nanoseconds. + Weight::from_parts(33_415_490, 78143) + // Standard Error: 14_687 + .saturating_add(Weight::from_ref_time(661_837).saturating_mul(n.into())) + // Standard Error: 23_818 + .saturating_add(Weight::from_ref_time(1_550_824).saturating_mul(m.into())) .saturating_add(T::DbWeight::get().reads(21_u64)) .saturating_add(T::DbWeight::get().writes(3_u64)) } @@ -317,14 +320,14 @@ impl WeightInfo for SubstrateWeight { /// The range of component `m` is `[0, 35]`. fn cancel_leave_candidates(n: u32, m: u32, ) -> Weight { // Proof Size summary in bytes: - // Measured: `846 + n * (53 ±0) + m * (96 ±0)` + // Measured: `876 + n * (53 ±0) + m * (96 ±0)` // Estimated: `13653` - // Minimum execution time: 1_403_818 nanoseconds. - Weight::from_parts(1_248_266_754, 13653) - // Standard Error: 93_940 - .saturating_add(Weight::from_ref_time(2_102_043).saturating_mul(n.into())) - // Standard Error: 152_989 - .saturating_add(Weight::from_ref_time(8_893_185).saturating_mul(m.into())) + // Minimum execution time: 32_109 nanoseconds. + Weight::from_parts(14_421_741, 13653) + // Standard Error: 6_708 + .saturating_add(Weight::from_ref_time(340_784).saturating_mul(n.into())) + // Standard Error: 10_878 + .saturating_add(Weight::from_ref_time(861_838).saturating_mul(m.into())) .saturating_add(T::DbWeight::get().reads(5_u64)) .saturating_add(T::DbWeight::get().writes(3_u64)) } @@ -358,18 +361,20 @@ impl WeightInfo for SubstrateWeight { /// The range of component `m` is `[0, 35]`. fn execute_leave_candidates(n: u32, m: u32, ) -> Weight { // Proof Size summary in bytes: - // Measured: `0 + n * (368 ±0) + m * (1611 ±0)` - // Estimated: `25299 + n * (312 ±117) + m * (14112 ±250)` - // Minimum execution time: 3_998_377 nanoseconds. - Weight::from_parts(7_690_223_368, 25299) - // Standard Error: 45_526_584 - .saturating_add(Weight::from_ref_time(526_019_957).saturating_mul(m.into())) + // Measured: `0 + n * (335 ±0) + m * (1566 ±0)` + // Estimated: `25226 + n * (354 ±3) + m * (14078 ±7)` + // Minimum execution time: 44_856 nanoseconds. + Weight::from_parts(46_295_000, 25226) + // Standard Error: 19_258 + .saturating_add(Weight::from_ref_time(461_761).saturating_mul(n.into())) + // Standard Error: 42_175 + .saturating_add(Weight::from_ref_time(18_350_882).saturating_mul(m.into())) .saturating_add(T::DbWeight::get().reads(12_u64)) .saturating_add(T::DbWeight::get().reads((4_u64).saturating_mul(m.into()))) .saturating_add(T::DbWeight::get().writes(8_u64)) .saturating_add(T::DbWeight::get().writes((4_u64).saturating_mul(m.into()))) - .saturating_add(Weight::from_proof_size(312).saturating_mul(n.into())) - .saturating_add(Weight::from_proof_size(14112).saturating_mul(m.into())) + .saturating_add(Weight::from_proof_size(354).saturating_mul(n.into())) + .saturating_add(Weight::from_proof_size(14078).saturating_mul(m.into())) } /// Storage: ParachainStaking CandidatePool (r:1 w:1) /// Proof: ParachainStaking CandidatePool (max_values: None, max_size: Some(1790), added: 4265, mode: MaxEncodedLen) @@ -398,14 +403,18 @@ impl WeightInfo for SubstrateWeight { /// The range of component `n` is `[1, 74]`. /// The range of component `m` is `[0, 35]`. /// The range of component `u` is `[0, 9]`. - fn candidate_stake_more(_n: u32, m: u32, _u: u32, ) -> Weight { + fn candidate_stake_more(n: u32, m: u32, u: u32, ) -> Weight { // Proof Size summary in bytes: - // Measured: `510 + n * (83 ±0) + m * (128 ±0) + u * (27 ±0)` + // Measured: `3279 + n * (65 ±0) + m * (90 ±0) + u * (24 ±0)` // Estimated: `27204` - // Minimum execution time: 944_397 nanoseconds. - Weight::from_parts(2_720_317_328, 27204) - // Standard Error: 7_023_471 - .saturating_add(Weight::from_ref_time(11_520_095).saturating_mul(m.into())) + // Minimum execution time: 54_562 nanoseconds. + Weight::from_parts(3_255_828, 27204) + // Standard Error: 6_500 + .saturating_add(Weight::from_ref_time(703_655).saturating_mul(n.into())) + // Standard Error: 13_494 + .saturating_add(Weight::from_ref_time(1_460_642).saturating_mul(m.into())) + // Standard Error: 49_986 + .saturating_add(Weight::from_ref_time(1_058_323).saturating_mul(u.into())) .saturating_add(T::DbWeight::get().reads(12_u64)) .saturating_add(T::DbWeight::get().writes(8_u64)) } @@ -431,14 +440,14 @@ impl WeightInfo for SubstrateWeight { /// The range of component `m` is `[0, 35]`. fn candidate_stake_less(n: u32, m: u32, ) -> Weight { // Proof Size summary in bytes: - // Measured: `49 + n * (72 ±0) + m * (103 ±0)` + // Measured: `2194 + n * (60 ±0) + m * (70 ±0)` // Estimated: `20312` - // Minimum execution time: 785_237 nanoseconds. - Weight::from_parts(742_635_808, 20312) - // Standard Error: 2_978_213 - .saturating_add(Weight::from_ref_time(575_691).saturating_mul(n.into())) - // Standard Error: 6_211_703 - .saturating_add(Weight::from_ref_time(8_698_185).saturating_mul(m.into())) + // Minimum execution time: 41_900 nanoseconds. + Weight::from_parts(5_266_239, 20312) + // Standard Error: 5_736 + .saturating_add(Weight::from_ref_time(623_337).saturating_mul(n.into())) + // Standard Error: 11_911 + .saturating_add(Weight::from_ref_time(1_231_834).saturating_mul(m.into())) .saturating_add(T::DbWeight::get().reads(9_u64)) .saturating_add(T::DbWeight::get().writes(6_u64)) } @@ -470,14 +479,14 @@ impl WeightInfo for SubstrateWeight { /// The range of component `m` is `[1, 34]`. fn join_delegators(n: u32, m: u32, ) -> Weight { // Proof Size summary in bytes: - // Measured: `929 + n * (97 ±0) + m * (135 ±0)` + // Measured: `3843 + n * (83 ±0) + m * (92 ±0)` // Estimated: `30914` - // Minimum execution time: 1_355_329 nanoseconds. - Weight::from_parts(514_974_111, 30914) - // Standard Error: 18_069_222 - .saturating_add(Weight::from_ref_time(10_849_797).saturating_mul(n.into())) - // Standard Error: 40_518_861 - .saturating_add(Weight::from_ref_time(26_620_090).saturating_mul(m.into())) + // Minimum execution time: 57_315 nanoseconds. + Weight::from_parts(7_065_289, 30914) + // Standard Error: 9_469 + .saturating_add(Weight::from_ref_time(834_689).saturating_mul(n.into())) + // Standard Error: 21_044 + .saturating_add(Weight::from_ref_time(1_694_666).saturating_mul(m.into())) .saturating_add(T::DbWeight::get().reads(12_u64)) .saturating_add(T::DbWeight::get().writes(9_u64)) } @@ -510,16 +519,16 @@ impl WeightInfo for SubstrateWeight { /// The range of component `u` is `[1, 9]`. fn delegator_stake_more(n: u32, m: u32, u: u32, ) -> Weight { // Proof Size summary in bytes: - // Measured: `1515 + n * (94 ±0) + m * (114 ±0) + u * (28 ±0)` + // Measured: `4371 + n * (72 ±0) + m * (88 ±0) + u * (24 ±0)` // Estimated: `29256` - // Minimum execution time: 1_246_972 nanoseconds. - Weight::from_parts(1_246_972_000, 29256) - // Standard Error: 12_836_560 - .saturating_add(Weight::from_ref_time(619_028).saturating_mul(n.into())) - // Standard Error: 28_546_338 - .saturating_add(Weight::from_ref_time(12_530_416).saturating_mul(m.into())) - // Standard Error: 111_851_300 - .saturating_add(Weight::from_ref_time(39_367_025).saturating_mul(u.into())) + // Minimum execution time: 60_730 nanoseconds. + Weight::from_parts(10_144_481, 29256) + // Standard Error: 7_191 + .saturating_add(Weight::from_ref_time(753_246).saturating_mul(n.into())) + // Standard Error: 15_977 + .saturating_add(Weight::from_ref_time(1_508_903).saturating_mul(m.into())) + // Standard Error: 61_966 + .saturating_add(Weight::from_ref_time(850_716).saturating_mul(u.into())) .saturating_add(T::DbWeight::get().reads(12_u64)) .saturating_add(T::DbWeight::get().writes(9_u64)) } @@ -545,14 +554,16 @@ impl WeightInfo for SubstrateWeight { /// Proof: ParachainStaking InflationConfig (max_values: Some(1), max_size: Some(96), added: 591, mode: MaxEncodedLen) /// The range of component `n` is `[1, 75]`. /// The range of component `m` is `[1, 34]`. - fn delegator_stake_less(_n: u32, m: u32, ) -> Weight { + fn delegator_stake_less(n: u32, m: u32, ) -> Weight { // Proof Size summary in bytes: - // Measured: `1244 + n * (80 ±0) + m * (91 ±0)` + // Measured: `3079 + n * (67 ±0) + m * (71 ±0)` // Estimated: `22875` - // Minimum execution time: 1_190_530 nanoseconds. - Weight::from_parts(2_341_368_549, 22875) - // Standard Error: 1_366_168 - .saturating_add(Weight::from_ref_time(4_411_787).saturating_mul(m.into())) + // Minimum execution time: 48_740 nanoseconds. + Weight::from_parts(4_636_170, 22875) + // Standard Error: 8_874 + .saturating_add(Weight::from_ref_time(706_151).saturating_mul(n.into())) + // Standard Error: 19_723 + .saturating_add(Weight::from_ref_time(1_503_932).saturating_mul(m.into())) .saturating_add(T::DbWeight::get().reads(10_u64)) .saturating_add(T::DbWeight::get().writes(7_u64)) } @@ -580,14 +591,14 @@ impl WeightInfo for SubstrateWeight { /// The range of component `m` is `[1, 34]`. fn leave_delegators(n: u32, m: u32, ) -> Weight { // Proof Size summary in bytes: - // Measured: `1244 + n * (80 ±0) + m * (91 ±0)` + // Measured: `3079 + n * (67 ±0) + m * (71 ±0)` // Estimated: `22875` - // Minimum execution time: 1_286_854 nanoseconds. - Weight::from_parts(1_086_482_788, 22875) - // Standard Error: 1_864_716 - .saturating_add(Weight::from_ref_time(18_697_878).saturating_mul(n.into())) - // Standard Error: 4_181_485 - .saturating_add(Weight::from_ref_time(5_343_333).saturating_mul(m.into())) + // Minimum execution time: 51_746 nanoseconds. + Weight::from_parts(24_470_146, 22875) + // Standard Error: 44_482 + .saturating_add(Weight::from_ref_time(987_177).saturating_mul(n.into())) + // Standard Error: 98_860 + .saturating_add(Weight::from_ref_time(859_000).saturating_mul(m.into())) .saturating_add(T::DbWeight::get().reads(10_u64)) .saturating_add(T::DbWeight::get().writes(7_u64)) } @@ -598,12 +609,14 @@ impl WeightInfo for SubstrateWeight { /// Storage: System Account (r:1 w:1) /// Proof: System Account (max_values: None, max_size: Some(132), added: 2607, mode: MaxEncodedLen) /// The range of component `u` is `[1, 9]`. - fn unlock_unstaked(_u: u32, ) -> Weight { + fn unlock_unstaked(u: u32, ) -> Weight { // Proof Size summary in bytes: - // Measured: `1449 + u * (28 ±0)` + // Measured: `1488 + u * (24 ±0)` // Estimated: `9137` - // Minimum execution time: 2_286_484 nanoseconds. - Weight::from_parts(2_498_296_000, 9137) + // Minimum execution time: 19_448 nanoseconds. + Weight::from_parts(21_370_153, 9137) + // Standard Error: 12_069 + .saturating_add(Weight::from_ref_time(306_624).saturating_mul(u.into())) .saturating_add(T::DbWeight::get().reads(3_u64)) .saturating_add(T::DbWeight::get().writes(3_u64)) } @@ -613,8 +626,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 783_590 nanoseconds. - Weight::from_ref_time(783_590_000) + // Minimum execution time: 4_433 nanoseconds. + Weight::from_ref_time(4_771_000) .saturating_add(T::DbWeight::get().writes(1_u64)) } /// Storage: ParachainStaking DelegatorState (r:1 w:0) @@ -633,8 +646,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `739` // Estimated: `11258` - // Minimum execution time: 903_094 nanoseconds. - Weight::from_parts(903_094_000, 11258) + // Minimum execution time: 15_795 nanoseconds. + Weight::from_parts(16_486_000, 11258) .saturating_add(T::DbWeight::get().reads(6_u64)) .saturating_add(T::DbWeight::get().writes(2_u64)) } @@ -654,8 +667,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `654` // Estimated: `12960` - // Minimum execution time: 901_321 nanoseconds. - Weight::from_parts(901_321_000, 12960) + // Minimum execution time: 13_394 nanoseconds. + Weight::from_parts(13_953_000, 12960) .saturating_add(T::DbWeight::get().reads(6_u64)) .saturating_add(T::DbWeight::get().writes(2_u64)) } @@ -667,8 +680,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `950` // Estimated: `5138` - // Minimum execution time: 1_190_439 nanoseconds. - Weight::from_parts(1_190_439_000, 5138) + // Minimum execution time: 17_970 nanoseconds. + Weight::from_parts(18_701_000, 5138) .saturating_add(T::DbWeight::get().reads(2_u64)) .saturating_add(T::DbWeight::get().writes(2_u64)) } @@ -692,22 +705,22 @@ impl WeightInfo for SubstrateWeight { /// The range of component `m` is `[0, 35]`. fn execute_scheduled_reward_change(n: u32, m: u32, ) -> Weight { // Proof Size summary in bytes: - // Measured: `0 + n * (3587 ±0) + m * (7587 ±0)` - // Estimated: `383849 + n * (77565 ±0) + m * (151620 ±65_549)` - // Minimum execution time: 12_159_751 nanoseconds. - Weight::from_parts(12_159_751_000, 383849) - // Standard Error: 1_632_189_050 - .saturating_add(Weight::from_ref_time(1_883_578_629).saturating_mul(n.into())) - // Standard Error: 3_497_547_965 - .saturating_add(Weight::from_ref_time(4_279_523_148).saturating_mul(m.into())) + // Measured: `0 + n * (3679 ±0) + m * (7573 ±0)` + // Estimated: `372197 + n * (70593 ±1_009) + m * (129441 ±2_167)` + // Minimum execution time: 470_052 nanoseconds. + Weight::from_parts(474_241_000, 372197) + // Standard Error: 3_644_687 + .saturating_add(Weight::from_ref_time(102_814_649).saturating_mul(n.into())) + // Standard Error: 7_825_065 + .saturating_add(Weight::from_ref_time(202_604_259).saturating_mul(m.into())) .saturating_add(T::DbWeight::get().reads(153_u64)) - .saturating_add(T::DbWeight::get().reads((30_u64).saturating_mul(n.into()))) - .saturating_add(T::DbWeight::get().reads((60_u64).saturating_mul(m.into()))) + .saturating_add(T::DbWeight::get().reads((27_u64).saturating_mul(n.into()))) + .saturating_add(T::DbWeight::get().reads((51_u64).saturating_mul(m.into()))) .saturating_add(T::DbWeight::get().writes(146_u64)) - .saturating_add(T::DbWeight::get().writes((28_u64).saturating_mul(n.into()))) - .saturating_add(T::DbWeight::get().writes((60_u64).saturating_mul(m.into()))) - .saturating_add(Weight::from_proof_size(77565).saturating_mul(n.into())) - .saturating_add(Weight::from_proof_size(151620).saturating_mul(m.into())) + .saturating_add(T::DbWeight::get().writes((25_u64).saturating_mul(n.into()))) + .saturating_add(T::DbWeight::get().writes((51_u64).saturating_mul(m.into()))) + .saturating_add(Weight::from_proof_size(70593).saturating_mul(n.into())) + .saturating_add(Weight::from_proof_size(129441).saturating_mul(m.into())) } } @@ -719,8 +732,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `335` // Estimated: `515` - // Minimum execution time: 113_601 nanoseconds. - Weight::from_parts(113_601_000, 515) + // Minimum execution time: 6_585 nanoseconds. + Weight::from_parts(6_893_000, 515) .saturating_add(RocksDbWeight::get().reads(1_u64)) } /// Storage: ParachainStaking Round (r:1 w:1) @@ -729,8 +742,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `335` // Estimated: `515` - // Minimum execution time: 208_914 nanoseconds. - Weight::from_parts(208_914_000, 515) + // Minimum execution time: 6_920 nanoseconds. + Weight::from_parts(7_182_000, 515) .saturating_add(RocksDbWeight::get().reads(1_u64)) .saturating_add(RocksDbWeight::get().writes(1_u64)) } @@ -748,8 +761,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `881` // Estimated: `4723` - // Minimum execution time: 490_534 nanoseconds. - Weight::from_parts(490_534_000, 4723) + // Minimum execution time: 20_955 nanoseconds. + Weight::from_parts(21_430_000, 4723) .saturating_add(RocksDbWeight::get().reads(5_u64)) .saturating_add(RocksDbWeight::get().writes(2_u64)) } @@ -759,8 +772,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 66_227 nanoseconds. - Weight::from_ref_time(66_227_000) + // Minimum execution time: 1_428 nanoseconds. + Weight::from_ref_time(1_597_000) .saturating_add(RocksDbWeight::get().writes(1_u64)) } /// Storage: ParachainStaking CandidatePool (r:76 w:0) @@ -781,22 +794,22 @@ impl WeightInfo for () { /// The range of component `m` is `[0, 35]`. fn set_inflation(n: u32, m: u32, ) -> Weight { // Proof Size summary in bytes: - // Measured: `0 + n * (3647 ±0) + m * (7587 ±0)` - // Estimated: `383346 + n * (77565 ±0) + m * (151620 ±65_757)` - // Minimum execution time: 9_013_393 nanoseconds. - Weight::from_parts(9_013_393_000, 383346) - // Standard Error: 4_266_402_895 - .saturating_add(Weight::from_ref_time(5_268_800_032).saturating_mul(n.into())) - // Standard Error: 9_142_291_918 - .saturating_add(Weight::from_ref_time(10_550_156_582).saturating_mul(m.into())) + // Measured: `0 + n * (3741 ±0) + m * (7573 ±0)` + // Estimated: `371694 + n * (70593 ±0) + m * (129441 ±2_167)` + // Minimum execution time: 471_938 nanoseconds. + Weight::from_parts(486_001_000, 371694) + // Standard Error: 4_379_278 + .saturating_add(Weight::from_ref_time(110_323_738).saturating_mul(n.into())) + // Standard Error: 9_402_215 + .saturating_add(Weight::from_ref_time(201_177_282).saturating_mul(m.into())) .saturating_add(RocksDbWeight::get().reads(152_u64)) - .saturating_add(RocksDbWeight::get().reads((30_u64).saturating_mul(n.into()))) - .saturating_add(RocksDbWeight::get().reads((60_u64).saturating_mul(m.into()))) + .saturating_add(RocksDbWeight::get().reads((27_u64).saturating_mul(n.into()))) + .saturating_add(RocksDbWeight::get().reads((51_u64).saturating_mul(m.into()))) .saturating_add(RocksDbWeight::get().writes(145_u64)) - .saturating_add(RocksDbWeight::get().writes((28_u64).saturating_mul(n.into()))) - .saturating_add(RocksDbWeight::get().writes((60_u64).saturating_mul(m.into()))) - .saturating_add(Weight::from_proof_size(77565).saturating_mul(n.into())) - .saturating_add(Weight::from_proof_size(151620).saturating_mul(m.into())) + .saturating_add(RocksDbWeight::get().writes((25_u64).saturating_mul(n.into()))) + .saturating_add(RocksDbWeight::get().writes((51_u64).saturating_mul(m.into()))) + .saturating_add(Weight::from_proof_size(70593).saturating_mul(n.into())) + .saturating_add(Weight::from_proof_size(129441).saturating_mul(m.into())) } /// Storage: ParachainStaking MaxSelectedCandidates (r:1 w:1) /// Proof: ParachainStaking MaxSelectedCandidates (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen) @@ -808,18 +821,20 @@ impl WeightInfo for () { /// Proof: ParachainStaking TotalCollatorStake (max_values: Some(1), max_size: Some(32), added: 527, mode: MaxEncodedLen) /// The range of component `n` is `[16, 75]`. /// The range of component `m` is `[0, 35]`. - fn set_max_selected_candidates(n: u32, _m: u32, ) -> Weight { + fn set_max_selected_candidates(n: u32, m: u32, ) -> Weight { // Proof Size summary in bytes: - // Measured: `0 + n * (1883 ±0) + m * (2832 ±0)` - // Estimated: `5168 + n * (3355 ±0)` - // Minimum execution time: 1_161_641 nanoseconds. - Weight::from_parts(1_161_641_000, 5168) - // Standard Error: 20_294_226 - .saturating_add(Weight::from_ref_time(81_538_225).saturating_mul(n.into())) + // Measured: `0 + n * (1875 ±0) + m * (2832 ±0)` + // Estimated: `9388 + n * (3554 ±9)` + // Minimum execution time: 22_719 nanoseconds. + Weight::from_parts(25_188_000, 9388) + // Standard Error: 20_395 + .saturating_add(Weight::from_ref_time(2_348_989).saturating_mul(n.into())) + // Standard Error: 45_143 + .saturating_add(Weight::from_ref_time(231_173).saturating_mul(m.into())) .saturating_add(RocksDbWeight::get().reads(3_u64)) .saturating_add(RocksDbWeight::get().reads((1_u64).saturating_mul(n.into()))) .saturating_add(RocksDbWeight::get().writes(2_u64)) - .saturating_add(Weight::from_proof_size(3355).saturating_mul(n.into())) + .saturating_add(Weight::from_proof_size(3554).saturating_mul(n.into())) } /// Storage: ParachainStaking Round (r:1 w:1) /// Proof: ParachainStaking Round (max_values: Some(1), max_size: Some(20), added: 515, mode: MaxEncodedLen) @@ -827,8 +842,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `335` // Estimated: `515` - // Minimum execution time: 691_001 nanoseconds. - Weight::from_parts(691_001_000, 515) + // Minimum execution time: 8_311 nanoseconds. + Weight::from_parts(8_758_000, 515) .saturating_add(RocksDbWeight::get().reads(1_u64)) .saturating_add(RocksDbWeight::get().writes(1_u64)) } @@ -864,20 +879,20 @@ impl WeightInfo for () { /// The range of component `m` is `[0, 35]`. fn force_remove_candidate(n: u32, m: u32, ) -> Weight { // Proof Size summary in bytes: - // Measured: `0 + n * (435 ±0) + m * (2388 ±0)` - // Estimated: `116721 + n * (372 ±138) + m * (16221 ±300)` - // Minimum execution time: 3_973_174 nanoseconds. - Weight::from_parts(3_973_174_000, 116721) - // Standard Error: 300_977_057 - .saturating_add(Weight::from_ref_time(221_044_787).saturating_mul(n.into())) - // Standard Error: 650_450_082 - .saturating_add(Weight::from_ref_time(754_831_595).saturating_mul(m.into())) + // Measured: `0 + n * (397 ±0) + m * (2335 ±0)` + // Estimated: `116648 + m * (16172 ±0) + n * (408 ±3)` + // Minimum execution time: 92_721 nanoseconds. + Weight::from_parts(95_409_000, 116648) + // Standard Error: 20_457 + .saturating_add(Weight::from_ref_time(647_332).saturating_mul(n.into())) + // Standard Error: 45_383 + .saturating_add(Weight::from_ref_time(18_774_487).saturating_mul(m.into())) .saturating_add(RocksDbWeight::get().reads(29_u64)) .saturating_add(RocksDbWeight::get().reads((4_u64).saturating_mul(m.into()))) .saturating_add(RocksDbWeight::get().writes(10_u64)) .saturating_add(RocksDbWeight::get().writes((4_u64).saturating_mul(m.into()))) - .saturating_add(Weight::from_proof_size(372).saturating_mul(n.into())) - .saturating_add(Weight::from_proof_size(16221).saturating_mul(m.into())) + .saturating_add(Weight::from_proof_size(16172).saturating_mul(m.into())) + .saturating_add(Weight::from_proof_size(408).saturating_mul(n.into())) } /// Storage: ParachainStaking CandidatePool (r:1 w:1) /// Proof: ParachainStaking CandidatePool (max_values: None, max_size: Some(1790), added: 4265, mode: MaxEncodedLen) @@ -903,16 +918,17 @@ impl WeightInfo for () { /// The range of component `m` is `[0, 35]`. fn join_candidates(n: u32, m: u32, ) -> Weight { // Proof Size summary in bytes: - // Measured: `78 + n * (83 ±0) + m * (85 ±0)` - // Estimated: `22098` - // Minimum execution time: 2_325_690 nanoseconds. - Weight::from_parts(2_470_811_246, 22098) - // Standard Error: 7_815_891 - .saturating_add(Weight::from_ref_time(599_753).saturating_mul(n.into())) - // Standard Error: 16_301_715 - .saturating_add(Weight::from_ref_time(3_997_428).saturating_mul(m.into())) + // Measured: `2728 + n * (75 ±0) + m * (36 ±0)` + // Estimated: `21571 + m * (15 ±0)` + // Minimum execution time: 50_529 nanoseconds. + Weight::from_parts(12_449_184, 21571) + // Standard Error: 6_788 + .saturating_add(Weight::from_ref_time(656_014).saturating_mul(n.into())) + // Standard Error: 14_097 + .saturating_add(Weight::from_ref_time(1_279_959).saturating_mul(m.into())) .saturating_add(RocksDbWeight::get().reads(10_u64)) .saturating_add(RocksDbWeight::get().writes(7_u64)) + .saturating_add(Weight::from_proof_size(15).saturating_mul(m.into())) } /// Storage: ParachainStaking CandidatePool (r:17 w:1) /// Proof: ParachainStaking CandidatePool (max_values: None, max_size: Some(1790), added: 4265, mode: MaxEncodedLen) @@ -926,14 +942,16 @@ impl WeightInfo for () { /// Proof: ParachainStaking TotalCollatorStake (max_values: Some(1), max_size: Some(32), added: 527, mode: MaxEncodedLen) /// The range of component `n` is `[17, 74]`. /// The range of component `m` is `[0, 35]`. - fn init_leave_candidates(n: u32, _m: u32, ) -> Weight { + fn init_leave_candidates(n: u32, m: u32, ) -> Weight { // Proof Size summary in bytes: - // Measured: `2447 + n * (72 ±0) + m * (818 ±0)` + // Measured: `2583 + n * (71 ±0) + m * (816 ±0)` // Estimated: `78143` - // Minimum execution time: 3_383_593 nanoseconds. - Weight::from_parts(5_399_481_017, 78143) - // Standard Error: 2_824_731 - .saturating_add(Weight::from_ref_time(10_745_175).saturating_mul(n.into())) + // Minimum execution time: 72_683 nanoseconds. + Weight::from_parts(33_415_490, 78143) + // Standard Error: 14_687 + .saturating_add(Weight::from_ref_time(661_837).saturating_mul(n.into())) + // Standard Error: 23_818 + .saturating_add(Weight::from_ref_time(1_550_824).saturating_mul(m.into())) .saturating_add(RocksDbWeight::get().reads(21_u64)) .saturating_add(RocksDbWeight::get().writes(3_u64)) } @@ -949,14 +967,14 @@ impl WeightInfo for () { /// The range of component `m` is `[0, 35]`. fn cancel_leave_candidates(n: u32, m: u32, ) -> Weight { // Proof Size summary in bytes: - // Measured: `846 + n * (53 ±0) + m * (96 ±0)` + // Measured: `876 + n * (53 ±0) + m * (96 ±0)` // Estimated: `13653` - // Minimum execution time: 1_403_818 nanoseconds. - Weight::from_parts(1_248_266_754, 13653) - // Standard Error: 93_940 - .saturating_add(Weight::from_ref_time(2_102_043).saturating_mul(n.into())) - // Standard Error: 152_989 - .saturating_add(Weight::from_ref_time(8_893_185).saturating_mul(m.into())) + // Minimum execution time: 32_109 nanoseconds. + Weight::from_parts(14_421_741, 13653) + // Standard Error: 6_708 + .saturating_add(Weight::from_ref_time(340_784).saturating_mul(n.into())) + // Standard Error: 10_878 + .saturating_add(Weight::from_ref_time(861_838).saturating_mul(m.into())) .saturating_add(RocksDbWeight::get().reads(5_u64)) .saturating_add(RocksDbWeight::get().writes(3_u64)) } @@ -990,18 +1008,20 @@ impl WeightInfo for () { /// The range of component `m` is `[0, 35]`. fn execute_leave_candidates(n: u32, m: u32, ) -> Weight { // Proof Size summary in bytes: - // Measured: `0 + n * (368 ±0) + m * (1611 ±0)` - // Estimated: `25299 + n * (312 ±117) + m * (14112 ±250)` - // Minimum execution time: 3_998_377 nanoseconds. - Weight::from_parts(7_690_223_368, 25299) - // Standard Error: 45_526_584 - .saturating_add(Weight::from_ref_time(526_019_957).saturating_mul(m.into())) + // Measured: `0 + n * (335 ±0) + m * (1566 ±0)` + // Estimated: `25226 + n * (354 ±3) + m * (14078 ±7)` + // Minimum execution time: 44_856 nanoseconds. + Weight::from_parts(46_295_000, 25226) + // Standard Error: 19_258 + .saturating_add(Weight::from_ref_time(461_761).saturating_mul(n.into())) + // Standard Error: 42_175 + .saturating_add(Weight::from_ref_time(18_350_882).saturating_mul(m.into())) .saturating_add(RocksDbWeight::get().reads(12_u64)) .saturating_add(RocksDbWeight::get().reads((4_u64).saturating_mul(m.into()))) .saturating_add(RocksDbWeight::get().writes(8_u64)) .saturating_add(RocksDbWeight::get().writes((4_u64).saturating_mul(m.into()))) - .saturating_add(Weight::from_proof_size(312).saturating_mul(n.into())) - .saturating_add(Weight::from_proof_size(14112).saturating_mul(m.into())) + .saturating_add(Weight::from_proof_size(354).saturating_mul(n.into())) + .saturating_add(Weight::from_proof_size(14078).saturating_mul(m.into())) } /// Storage: ParachainStaking CandidatePool (r:1 w:1) /// Proof: ParachainStaking CandidatePool (max_values: None, max_size: Some(1790), added: 4265, mode: MaxEncodedLen) @@ -1030,14 +1050,18 @@ impl WeightInfo for () { /// The range of component `n` is `[1, 74]`. /// The range of component `m` is `[0, 35]`. /// The range of component `u` is `[0, 9]`. - fn candidate_stake_more(_n: u32, m: u32, _u: u32, ) -> Weight { + fn candidate_stake_more(n: u32, m: u32, u: u32, ) -> Weight { // Proof Size summary in bytes: - // Measured: `510 + n * (83 ±0) + m * (128 ±0) + u * (27 ±0)` + // Measured: `3279 + n * (65 ±0) + m * (90 ±0) + u * (24 ±0)` // Estimated: `27204` - // Minimum execution time: 944_397 nanoseconds. - Weight::from_parts(2_720_317_328, 27204) - // Standard Error: 7_023_471 - .saturating_add(Weight::from_ref_time(11_520_095).saturating_mul(m.into())) + // Minimum execution time: 54_562 nanoseconds. + Weight::from_parts(3_255_828, 27204) + // Standard Error: 6_500 + .saturating_add(Weight::from_ref_time(703_655).saturating_mul(n.into())) + // Standard Error: 13_494 + .saturating_add(Weight::from_ref_time(1_460_642).saturating_mul(m.into())) + // Standard Error: 49_986 + .saturating_add(Weight::from_ref_time(1_058_323).saturating_mul(u.into())) .saturating_add(RocksDbWeight::get().reads(12_u64)) .saturating_add(RocksDbWeight::get().writes(8_u64)) } @@ -1063,14 +1087,14 @@ impl WeightInfo for () { /// The range of component `m` is `[0, 35]`. fn candidate_stake_less(n: u32, m: u32, ) -> Weight { // Proof Size summary in bytes: - // Measured: `49 + n * (72 ±0) + m * (103 ±0)` + // Measured: `2194 + n * (60 ±0) + m * (70 ±0)` // Estimated: `20312` - // Minimum execution time: 785_237 nanoseconds. - Weight::from_parts(742_635_808, 20312) - // Standard Error: 2_978_213 - .saturating_add(Weight::from_ref_time(575_691).saturating_mul(n.into())) - // Standard Error: 6_211_703 - .saturating_add(Weight::from_ref_time(8_698_185).saturating_mul(m.into())) + // Minimum execution time: 41_900 nanoseconds. + Weight::from_parts(5_266_239, 20312) + // Standard Error: 5_736 + .saturating_add(Weight::from_ref_time(623_337).saturating_mul(n.into())) + // Standard Error: 11_911 + .saturating_add(Weight::from_ref_time(1_231_834).saturating_mul(m.into())) .saturating_add(RocksDbWeight::get().reads(9_u64)) .saturating_add(RocksDbWeight::get().writes(6_u64)) } @@ -1102,14 +1126,14 @@ impl WeightInfo for () { /// The range of component `m` is `[1, 34]`. fn join_delegators(n: u32, m: u32, ) -> Weight { // Proof Size summary in bytes: - // Measured: `929 + n * (97 ±0) + m * (135 ±0)` + // Measured: `3843 + n * (83 ±0) + m * (92 ±0)` // Estimated: `30914` - // Minimum execution time: 1_355_329 nanoseconds. - Weight::from_parts(514_974_111, 30914) - // Standard Error: 18_069_222 - .saturating_add(Weight::from_ref_time(10_849_797).saturating_mul(n.into())) - // Standard Error: 40_518_861 - .saturating_add(Weight::from_ref_time(26_620_090).saturating_mul(m.into())) + // Minimum execution time: 57_315 nanoseconds. + Weight::from_parts(7_065_289, 30914) + // Standard Error: 9_469 + .saturating_add(Weight::from_ref_time(834_689).saturating_mul(n.into())) + // Standard Error: 21_044 + .saturating_add(Weight::from_ref_time(1_694_666).saturating_mul(m.into())) .saturating_add(RocksDbWeight::get().reads(12_u64)) .saturating_add(RocksDbWeight::get().writes(9_u64)) } @@ -1142,16 +1166,16 @@ impl WeightInfo for () { /// The range of component `u` is `[1, 9]`. fn delegator_stake_more(n: u32, m: u32, u: u32, ) -> Weight { // Proof Size summary in bytes: - // Measured: `1515 + n * (94 ±0) + m * (114 ±0) + u * (28 ±0)` + // Measured: `4371 + n * (72 ±0) + m * (88 ±0) + u * (24 ±0)` // Estimated: `29256` - // Minimum execution time: 1_246_972 nanoseconds. - Weight::from_parts(1_246_972_000, 29256) - // Standard Error: 12_836_560 - .saturating_add(Weight::from_ref_time(619_028).saturating_mul(n.into())) - // Standard Error: 28_546_338 - .saturating_add(Weight::from_ref_time(12_530_416).saturating_mul(m.into())) - // Standard Error: 111_851_300 - .saturating_add(Weight::from_ref_time(39_367_025).saturating_mul(u.into())) + // Minimum execution time: 60_730 nanoseconds. + Weight::from_parts(10_144_481, 29256) + // Standard Error: 7_191 + .saturating_add(Weight::from_ref_time(753_246).saturating_mul(n.into())) + // Standard Error: 15_977 + .saturating_add(Weight::from_ref_time(1_508_903).saturating_mul(m.into())) + // Standard Error: 61_966 + .saturating_add(Weight::from_ref_time(850_716).saturating_mul(u.into())) .saturating_add(RocksDbWeight::get().reads(12_u64)) .saturating_add(RocksDbWeight::get().writes(9_u64)) } @@ -1177,14 +1201,16 @@ impl WeightInfo for () { /// Proof: ParachainStaking InflationConfig (max_values: Some(1), max_size: Some(96), added: 591, mode: MaxEncodedLen) /// The range of component `n` is `[1, 75]`. /// The range of component `m` is `[1, 34]`. - fn delegator_stake_less(_n: u32, m: u32, ) -> Weight { + fn delegator_stake_less(n: u32, m: u32, ) -> Weight { // Proof Size summary in bytes: - // Measured: `1244 + n * (80 ±0) + m * (91 ±0)` + // Measured: `3079 + n * (67 ±0) + m * (71 ±0)` // Estimated: `22875` - // Minimum execution time: 1_190_530 nanoseconds. - Weight::from_parts(2_341_368_549, 22875) - // Standard Error: 1_366_168 - .saturating_add(Weight::from_ref_time(4_411_787).saturating_mul(m.into())) + // Minimum execution time: 48_740 nanoseconds. + Weight::from_parts(4_636_170, 22875) + // Standard Error: 8_874 + .saturating_add(Weight::from_ref_time(706_151).saturating_mul(n.into())) + // Standard Error: 19_723 + .saturating_add(Weight::from_ref_time(1_503_932).saturating_mul(m.into())) .saturating_add(RocksDbWeight::get().reads(10_u64)) .saturating_add(RocksDbWeight::get().writes(7_u64)) } @@ -1212,14 +1238,14 @@ impl WeightInfo for () { /// The range of component `m` is `[1, 34]`. fn leave_delegators(n: u32, m: u32, ) -> Weight { // Proof Size summary in bytes: - // Measured: `1244 + n * (80 ±0) + m * (91 ±0)` + // Measured: `3079 + n * (67 ±0) + m * (71 ±0)` // Estimated: `22875` - // Minimum execution time: 1_286_854 nanoseconds. - Weight::from_parts(1_086_482_788, 22875) - // Standard Error: 1_864_716 - .saturating_add(Weight::from_ref_time(18_697_878).saturating_mul(n.into())) - // Standard Error: 4_181_485 - .saturating_add(Weight::from_ref_time(5_343_333).saturating_mul(m.into())) + // Minimum execution time: 51_746 nanoseconds. + Weight::from_parts(24_470_146, 22875) + // Standard Error: 44_482 + .saturating_add(Weight::from_ref_time(987_177).saturating_mul(n.into())) + // Standard Error: 98_860 + .saturating_add(Weight::from_ref_time(859_000).saturating_mul(m.into())) .saturating_add(RocksDbWeight::get().reads(10_u64)) .saturating_add(RocksDbWeight::get().writes(7_u64)) } @@ -1230,12 +1256,14 @@ impl WeightInfo for () { /// Storage: System Account (r:1 w:1) /// Proof: System Account (max_values: None, max_size: Some(132), added: 2607, mode: MaxEncodedLen) /// The range of component `u` is `[1, 9]`. - fn unlock_unstaked(_u: u32, ) -> Weight { + fn unlock_unstaked(u: u32, ) -> Weight { // Proof Size summary in bytes: - // Measured: `1449 + u * (28 ±0)` + // Measured: `1488 + u * (24 ±0)` // Estimated: `9137` - // Minimum execution time: 2_286_484 nanoseconds. - Weight::from_parts(2_498_296_000, 9137) + // Minimum execution time: 19_448 nanoseconds. + Weight::from_parts(21_370_153, 9137) + // Standard Error: 12_069 + .saturating_add(Weight::from_ref_time(306_624).saturating_mul(u.into())) .saturating_add(RocksDbWeight::get().reads(3_u64)) .saturating_add(RocksDbWeight::get().writes(3_u64)) } @@ -1245,8 +1273,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 783_590 nanoseconds. - Weight::from_ref_time(783_590_000) + // Minimum execution time: 4_433 nanoseconds. + Weight::from_ref_time(4_771_000) .saturating_add(RocksDbWeight::get().writes(1_u64)) } /// Storage: ParachainStaking DelegatorState (r:1 w:0) @@ -1265,8 +1293,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `739` // Estimated: `11258` - // Minimum execution time: 903_094 nanoseconds. - Weight::from_parts(903_094_000, 11258) + // Minimum execution time: 15_795 nanoseconds. + Weight::from_parts(16_486_000, 11258) .saturating_add(RocksDbWeight::get().reads(6_u64)) .saturating_add(RocksDbWeight::get().writes(2_u64)) } @@ -1286,8 +1314,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `654` // Estimated: `12960` - // Minimum execution time: 901_321 nanoseconds. - Weight::from_parts(901_321_000, 12960) + // Minimum execution time: 13_394 nanoseconds. + Weight::from_parts(13_953_000, 12960) .saturating_add(RocksDbWeight::get().reads(6_u64)) .saturating_add(RocksDbWeight::get().writes(2_u64)) } @@ -1299,8 +1327,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `950` // Estimated: `5138` - // Minimum execution time: 1_190_439 nanoseconds. - Weight::from_parts(1_190_439_000, 5138) + // Minimum execution time: 17_970 nanoseconds. + Weight::from_parts(18_701_000, 5138) .saturating_add(RocksDbWeight::get().reads(2_u64)) .saturating_add(RocksDbWeight::get().writes(2_u64)) } @@ -1324,21 +1352,21 @@ impl WeightInfo for () { /// The range of component `m` is `[0, 35]`. fn execute_scheduled_reward_change(n: u32, m: u32, ) -> Weight { // Proof Size summary in bytes: - // Measured: `0 + n * (3587 ±0) + m * (7587 ±0)` - // Estimated: `383849 + n * (77565 ±0) + m * (151620 ±65_549)` - // Minimum execution time: 12_159_751 nanoseconds. - Weight::from_parts(12_159_751_000, 383849) - // Standard Error: 1_632_189_050 - .saturating_add(Weight::from_ref_time(1_883_578_629).saturating_mul(n.into())) - // Standard Error: 3_497_547_965 - .saturating_add(Weight::from_ref_time(4_279_523_148).saturating_mul(m.into())) + // Measured: `0 + n * (3679 ±0) + m * (7573 ±0)` + // Estimated: `372197 + n * (70593 ±1_009) + m * (129441 ±2_167)` + // Minimum execution time: 470_052 nanoseconds. + Weight::from_parts(474_241_000, 372197) + // Standard Error: 3_644_687 + .saturating_add(Weight::from_ref_time(102_814_649).saturating_mul(n.into())) + // Standard Error: 7_825_065 + .saturating_add(Weight::from_ref_time(202_604_259).saturating_mul(m.into())) .saturating_add(RocksDbWeight::get().reads(153_u64)) - .saturating_add(RocksDbWeight::get().reads((30_u64).saturating_mul(n.into()))) - .saturating_add(RocksDbWeight::get().reads((60_u64).saturating_mul(m.into()))) + .saturating_add(RocksDbWeight::get().reads((27_u64).saturating_mul(n.into()))) + .saturating_add(RocksDbWeight::get().reads((51_u64).saturating_mul(m.into()))) .saturating_add(RocksDbWeight::get().writes(146_u64)) - .saturating_add(RocksDbWeight::get().writes((28_u64).saturating_mul(n.into()))) - .saturating_add(RocksDbWeight::get().writes((60_u64).saturating_mul(m.into()))) - .saturating_add(Weight::from_proof_size(77565).saturating_mul(n.into())) - .saturating_add(Weight::from_proof_size(151620).saturating_mul(m.into())) + .saturating_add(RocksDbWeight::get().writes((25_u64).saturating_mul(n.into()))) + .saturating_add(RocksDbWeight::get().writes((51_u64).saturating_mul(m.into()))) + .saturating_add(Weight::from_proof_size(70593).saturating_mul(n.into())) + .saturating_add(Weight::from_proof_size(129441).saturating_mul(m.into())) } } diff --git a/pallets/public-credentials/src/default_weights.rs b/pallets/public-credentials/src/default_weights.rs index 1c22490f9..7e2e6766e 100644 --- a/pallets/public-credentials/src/default_weights.rs +++ b/pallets/public-credentials/src/default_weights.rs @@ -1,5 +1,3 @@ -// TODO: Update these weights - // KILT Blockchain – https://botlabs.org // Copyright (C) 2019-2023 BOTLabs GmbH @@ -21,14 +19,14 @@ //! Autogenerated weights for public_credentials //! //! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev -//! DATE: 2023-04-05 -//! STEPS: `2`, REPEAT: `1`, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! DATE: 2023-05-18 +//! STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` //! WORST CASE MAP SIZE: `1000000` //! HOSTNAME: `rust-2`, CPU: `12th Gen Intel(R) Core(TM) i9-12900K` //! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 1024 // Executed Command: -// ./target/debug/kilt-parachain +// ./target/release/kilt-parachain // benchmark // pallet // --template=.maintain/weight-template.hbs @@ -36,8 +34,8 @@ // --execution=wasm // --wasm-execution=compiled // --heap-pages=4096 -// --steps=2 -// --repeat=1 +// --steps=50 +// --repeat=20 // --chain=dev // --pallet=public-credentials // --extrinsic=* @@ -73,12 +71,14 @@ impl WeightInfo for SubstrateWeight { /// Storage: PublicCredentials CredentialSubjects (r:0 w:1) /// Proof: PublicCredentials CredentialSubjects (max_values: None, max_size: Some(312), added: 2787, mode: MaxEncodedLen) /// The range of component `c` is `[1, 100000]`. - fn add(_c: u32, ) -> Weight { + fn add(c: u32, ) -> Weight { // Proof Size summary in bytes: - // Measured: `863` + // Measured: `829` // Estimated: `8120` - // Minimum execution time: 590_891 nanoseconds. - Weight::from_parts(3_277_178_000, 8120) + // Minimum execution time: 27_323 nanoseconds. + Weight::from_parts(27_065_888, 8120) + // Standard Error: 15 + .saturating_add(Weight::from_ref_time(1_595).saturating_mul(c.into())) .saturating_add(T::DbWeight::get().reads(3_u64)) .saturating_add(T::DbWeight::get().writes(3_u64)) } @@ -88,10 +88,10 @@ impl WeightInfo for SubstrateWeight { /// Proof: PublicCredentials Credentials (max_values: None, max_size: Some(475), added: 2950, mode: MaxEncodedLen) fn revoke() -> Weight { // Proof Size summary in bytes: - // Measured: `948` + // Measured: `914` // Estimated: `5737` - // Minimum execution time: 322_692 nanoseconds. - Weight::from_parts(322_692_000, 5737) + // Minimum execution time: 15_690 nanoseconds. + Weight::from_parts(16_193_000, 5737) .saturating_add(T::DbWeight::get().reads(2_u64)) .saturating_add(T::DbWeight::get().writes(1_u64)) } @@ -101,10 +101,10 @@ impl WeightInfo for SubstrateWeight { /// Proof: PublicCredentials Credentials (max_values: None, max_size: Some(475), added: 2950, mode: MaxEncodedLen) fn unrevoke() -> Weight { // Proof Size summary in bytes: - // Measured: `948` + // Measured: `914` // Estimated: `5737` - // Minimum execution time: 322_135 nanoseconds. - Weight::from_parts(322_135_000, 5737) + // Minimum execution time: 17_962 nanoseconds. + Weight::from_parts(29_462_000, 5737) .saturating_add(T::DbWeight::get().reads(2_u64)) .saturating_add(T::DbWeight::get().writes(1_u64)) } @@ -116,10 +116,10 @@ impl WeightInfo for SubstrateWeight { /// Proof: System Account (max_values: None, max_size: Some(132), added: 2607, mode: MaxEncodedLen) fn remove() -> Weight { // Proof Size summary in bytes: - // Measured: `1626` + // Measured: `1592` // Estimated: `8344` - // Minimum execution time: 542_641 nanoseconds. - Weight::from_parts(542_641_000, 8344) + // Minimum execution time: 27_101 nanoseconds. + Weight::from_parts(29_244_000, 8344) .saturating_add(T::DbWeight::get().reads(3_u64)) .saturating_add(T::DbWeight::get().writes(3_u64)) } @@ -131,10 +131,10 @@ impl WeightInfo for SubstrateWeight { /// Proof: System Account (max_values: None, max_size: Some(132), added: 2607, mode: MaxEncodedLen) fn reclaim_deposit() -> Weight { // Proof Size summary in bytes: - // Measured: `1626` + // Measured: `1592` // Estimated: `8344` - // Minimum execution time: 543_391 nanoseconds. - Weight::from_parts(543_391_000, 8344) + // Minimum execution time: 27_519 nanoseconds. + Weight::from_parts(28_728_000, 8344) .saturating_add(T::DbWeight::get().reads(3_u64)) .saturating_add(T::DbWeight::get().writes(3_u64)) } @@ -146,10 +146,10 @@ impl WeightInfo for SubstrateWeight { /// Proof: System Account (max_values: None, max_size: Some(132), added: 2607, mode: MaxEncodedLen) fn change_deposit_owner() -> Weight { // Proof Size summary in bytes: - // Measured: `1499` + // Measured: `1465` // Estimated: `10951` - // Minimum execution time: 729_684 nanoseconds. - Weight::from_parts(729_684_000, 10951) + // Minimum execution time: 36_253 nanoseconds. + Weight::from_parts(38_070_000, 10951) .saturating_add(T::DbWeight::get().reads(4_u64)) .saturating_add(T::DbWeight::get().writes(3_u64)) } @@ -161,10 +161,10 @@ impl WeightInfo for SubstrateWeight { /// Proof: System Account (max_values: None, max_size: Some(132), added: 2607, mode: MaxEncodedLen) fn update_deposit() -> Weight { // Proof Size summary in bytes: - // Measured: `1086` + // Measured: `1052` // Estimated: `8344` - // Minimum execution time: 677_747 nanoseconds. - Weight::from_parts(677_747_000, 8344) + // Minimum execution time: 33_132 nanoseconds. + Weight::from_parts(34_010_000, 8344) .saturating_add(T::DbWeight::get().reads(3_u64)) .saturating_add(T::DbWeight::get().writes(2_u64)) } @@ -181,12 +181,14 @@ impl WeightInfo for () { /// Storage: PublicCredentials CredentialSubjects (r:0 w:1) /// Proof: PublicCredentials CredentialSubjects (max_values: None, max_size: Some(312), added: 2787, mode: MaxEncodedLen) /// The range of component `c` is `[1, 100000]`. - fn add(_c: u32, ) -> Weight { + fn add(c: u32, ) -> Weight { // Proof Size summary in bytes: - // Measured: `863` + // Measured: `829` // Estimated: `8120` - // Minimum execution time: 590_891 nanoseconds. - Weight::from_parts(3_277_178_000, 8120) + // Minimum execution time: 27_323 nanoseconds. + Weight::from_parts(27_065_888, 8120) + // Standard Error: 15 + .saturating_add(Weight::from_ref_time(1_595).saturating_mul(c.into())) .saturating_add(RocksDbWeight::get().reads(3_u64)) .saturating_add(RocksDbWeight::get().writes(3_u64)) } @@ -196,10 +198,10 @@ impl WeightInfo for () { /// Proof: PublicCredentials Credentials (max_values: None, max_size: Some(475), added: 2950, mode: MaxEncodedLen) fn revoke() -> Weight { // Proof Size summary in bytes: - // Measured: `948` + // Measured: `914` // Estimated: `5737` - // Minimum execution time: 322_692 nanoseconds. - Weight::from_parts(322_692_000, 5737) + // Minimum execution time: 15_690 nanoseconds. + Weight::from_parts(16_193_000, 5737) .saturating_add(RocksDbWeight::get().reads(2_u64)) .saturating_add(RocksDbWeight::get().writes(1_u64)) } @@ -209,10 +211,10 @@ impl WeightInfo for () { /// Proof: PublicCredentials Credentials (max_values: None, max_size: Some(475), added: 2950, mode: MaxEncodedLen) fn unrevoke() -> Weight { // Proof Size summary in bytes: - // Measured: `948` + // Measured: `914` // Estimated: `5737` - // Minimum execution time: 322_135 nanoseconds. - Weight::from_parts(322_135_000, 5737) + // Minimum execution time: 17_962 nanoseconds. + Weight::from_parts(29_462_000, 5737) .saturating_add(RocksDbWeight::get().reads(2_u64)) .saturating_add(RocksDbWeight::get().writes(1_u64)) } @@ -224,10 +226,10 @@ impl WeightInfo for () { /// Proof: System Account (max_values: None, max_size: Some(132), added: 2607, mode: MaxEncodedLen) fn remove() -> Weight { // Proof Size summary in bytes: - // Measured: `1626` + // Measured: `1592` // Estimated: `8344` - // Minimum execution time: 542_641 nanoseconds. - Weight::from_parts(542_641_000, 8344) + // Minimum execution time: 27_101 nanoseconds. + Weight::from_parts(29_244_000, 8344) .saturating_add(RocksDbWeight::get().reads(3_u64)) .saturating_add(RocksDbWeight::get().writes(3_u64)) } @@ -239,10 +241,10 @@ impl WeightInfo for () { /// Proof: System Account (max_values: None, max_size: Some(132), added: 2607, mode: MaxEncodedLen) fn reclaim_deposit() -> Weight { // Proof Size summary in bytes: - // Measured: `1626` + // Measured: `1592` // Estimated: `8344` - // Minimum execution time: 543_391 nanoseconds. - Weight::from_parts(543_391_000, 8344) + // Minimum execution time: 27_519 nanoseconds. + Weight::from_parts(28_728_000, 8344) .saturating_add(RocksDbWeight::get().reads(3_u64)) .saturating_add(RocksDbWeight::get().writes(3_u64)) } @@ -254,10 +256,10 @@ impl WeightInfo for () { /// Proof: System Account (max_values: None, max_size: Some(132), added: 2607, mode: MaxEncodedLen) fn change_deposit_owner() -> Weight { // Proof Size summary in bytes: - // Measured: `1499` + // Measured: `1465` // Estimated: `10951` - // Minimum execution time: 729_684 nanoseconds. - Weight::from_parts(729_684_000, 10951) + // Minimum execution time: 36_253 nanoseconds. + Weight::from_parts(38_070_000, 10951) .saturating_add(RocksDbWeight::get().reads(4_u64)) .saturating_add(RocksDbWeight::get().writes(3_u64)) } @@ -269,10 +271,10 @@ impl WeightInfo for () { /// Proof: System Account (max_values: None, max_size: Some(132), added: 2607, mode: MaxEncodedLen) fn update_deposit() -> Weight { // Proof Size summary in bytes: - // Measured: `1086` + // Measured: `1052` // Estimated: `8344` - // Minimum execution time: 677_747 nanoseconds. - Weight::from_parts(677_747_000, 8344) + // Minimum execution time: 33_132 nanoseconds. + Weight::from_parts(34_010_000, 8344) .saturating_add(RocksDbWeight::get().reads(3_u64)) .saturating_add(RocksDbWeight::get().writes(2_u64)) } diff --git a/runtimes/peregrine/src/weights/pallet_did_lookup.rs b/runtimes/peregrine/src/weights/pallet_did_lookup.rs index e34501bf8..ce7ef2dfb 100644 --- a/runtimes/peregrine/src/weights/pallet_did_lookup.rs +++ b/runtimes/peregrine/src/weights/pallet_did_lookup.rs @@ -192,23 +192,6 @@ impl pallet_did_lookup::WeightInfo for WeightInfo { .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().writes(2)) } - /// Storage: DidLookup MigrationStateStore (r:1 w:1) - /// Proof: DidLookup MigrationStateStore (max_values: Some(1), max_size: Some(35), added: 530, mode: MaxEncodedLen) - /// Storage: DidLookup ConnectedDids (r:101 w:184) - /// Proof: DidLookup ConnectedDids (max_values: None, max_size: Some(129), added: 2604, mode: MaxEncodedLen) - /// Storage: DidLookup ConnectedAccounts (r:92 w:184) - /// Proof: DidLookup ConnectedAccounts (max_values: None, max_size: Some(97), added: 2572, mode: MaxEncodedLen) - /// The range of component `n` is `[1, 100]`. - fn migrate(_n: u32, ) -> Weight { - // Proof Size summary in bytes: - // Measured: `2127 + n * (324 ±0)` - // Estimated: `500158` - // Minimum execution time: 62_088_000 picoseconds. - Weight::from_parts(1_119_084_000, 0) - .saturating_add(Weight::from_parts(0, 500158)) - .saturating_add(T::DbWeight::get().reads(194)) - .saturating_add(T::DbWeight::get().writes(369)) - } } #[cfg(test)] diff --git a/runtimes/spiritnet/src/weights/pallet_did_lookup.rs b/runtimes/spiritnet/src/weights/pallet_did_lookup.rs index 42a8117d2..ab00ac651 100644 --- a/runtimes/spiritnet/src/weights/pallet_did_lookup.rs +++ b/runtimes/spiritnet/src/weights/pallet_did_lookup.rs @@ -143,19 +143,4 @@ impl pallet_did_lookup::WeightInfo for WeightInfo { .saturating_add(T::DbWeight::get().reads(2 as u64)) .saturating_add(T::DbWeight::get().writes(2 as u64)) } - // Storage: DidLookup MigrationStateStore (r:1 w:1) - // Proof: DidLookup MigrationStateStore (max_values: Some(1), max_size: Some(35), added: 530, mode: MaxEncodedLen) - // Storage: DidLookup ConnectedDids (r:101 w:184) - // Proof: DidLookup ConnectedDids (max_values: None, max_size: Some(129), added: 2604, mode: MaxEncodedLen) - // Storage: DidLookup ConnectedAccounts (r:92 w:184) - // Proof: DidLookup ConnectedAccounts (max_values: None, max_size: Some(97), added: 2572, mode: MaxEncodedLen) - fn migrate(n: u32, ) -> Weight { - Weight::from_ref_time(64_929_466 as u64) - // Standard Error: 21_275 - .saturating_add(Weight::from_ref_time(16_042_707 as u64).saturating_mul(n as u64)) - .saturating_add(T::DbWeight::get().reads(3 as u64)) - .saturating_add(T::DbWeight::get().reads((2 as u64).saturating_mul(n as u64))) - .saturating_add(T::DbWeight::get().writes(3 as u64)) - .saturating_add(T::DbWeight::get().writes((4 as u64).saturating_mul(n as u64))) - } } diff --git a/scripts/run_benches_for_pallets.sh b/scripts/run_benches_for_pallets.sh index a5705b0c7..401909f81 100755 --- a/scripts/run_benches_for_pallets.sh +++ b/scripts/run_benches_for_pallets.sh @@ -6,7 +6,7 @@ runtime="$1" chain=$([ "$1" == "spiritnet" ] && echo "spiritnet-dev" || echo "dev") -standard_args="--locked --features=runtime-benchmarks --bin=kilt-parachain" +standard_args="--release --locked --features=runtime-benchmarks --bin=kilt-parachain" pallets=( attestation @@ -27,7 +27,7 @@ cargo build $standard_args for pallet in "${pallets[@]}"; do echo "Runtime: $runtime. Pallet: $pallet" # shellcheck disable=SC2086 - ./target/debug/kilt-parachain benchmark pallet \ + ./target/release/kilt-parachain benchmark pallet \ --template=".maintain/weight-template.hbs" \ --header="HEADER-GPL" \ --execution=wasm \