Fixes PoV over-estimation (#13766)

* Align log

Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>

* Use max instead of sum

Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>

* Make comment ordering deterministic

Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>

* Dont add Pov overhead when all is ignored

Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>

* Update test pallet weights

Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>

* Re-run weights on bm2

Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>

* Fix test

Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>

* Actually use new weights

Fucked up the merge for this file...

Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>

* Update contract weights

Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>

---------

Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>
This commit is contained in:
Oliver Tale-Yazdi
2023-04-13 15:11:58 +02:00
committed by GitHub
parent 46e2d3e5f8
commit ebfe00d590
54 changed files with 5526 additions and 5534 deletions
+180 -155
View File
@@ -18,9 +18,9 @@
//! Autogenerated weights for pallet_nomination_pools
//!
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
//! DATE: 2023-03-16, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
//! DATE: 2023-04-06, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
//! WORST CASE MAP SIZE: `1000000`
//! HOSTNAME: `bm3`, CPU: `Intel(R) Core(TM) i7-7700K CPU @ 4.20GHz`
//! HOSTNAME: `bm2`, CPU: `Intel(R) Core(TM) i7-7700K CPU @ 4.20GHz`
//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 1024
// Executed Command:
@@ -31,9 +31,6 @@
// --steps=50
// --repeat=20
// --pallet=pallet_nomination_pools
// --no-storage-info
// --no-median-slopes
// --no-min-squares
// --extrinsic=*
// --execution=wasm
// --wasm-execution=compiled
@@ -100,6 +97,8 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
/// Proof: NominationPools CounterForPoolMembers (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)
/// Storage: Balances Locks (r:1 w:1)
/// Proof: Balances Locks (max_values: None, max_size: Some(1299), added: 3774, mode: MaxEncodedLen)
/// Storage: Balances Freezes (r:1 w:0)
/// Proof: Balances Freezes (max_values: None, max_size: Some(49), added: 2524, mode: MaxEncodedLen)
/// Storage: VoterList ListNodes (r:3 w:3)
/// Proof: VoterList ListNodes (max_values: None, max_size: Some(154), added: 2629, mode: MaxEncodedLen)
/// Storage: VoterList ListBags (r:2 w:2)
@@ -107,10 +106,10 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
fn join() -> Weight {
// Proof Size summary in bytes:
// Measured: `3300`
// Estimated: `52435`
// Minimum execution time: 160_675_000 picoseconds.
Weight::from_parts(162_605_000, 52435)
.saturating_add(T::DbWeight::get().reads(18_u64))
// Estimated: `8877`
// Minimum execution time: 186_523_000 picoseconds.
Weight::from_parts(187_817_000, 8877)
.saturating_add(T::DbWeight::get().reads(19_u64))
.saturating_add(T::DbWeight::get().writes(12_u64))
}
/// Storage: NominationPools PoolMembers (r:1 w:1)
@@ -129,6 +128,8 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
/// Proof: Staking Ledger (max_values: None, max_size: Some(1091), added: 3566, mode: MaxEncodedLen)
/// Storage: Balances Locks (r:1 w:1)
/// Proof: Balances Locks (max_values: None, max_size: Some(1299), added: 3774, mode: MaxEncodedLen)
/// Storage: Balances Freezes (r:1 w:0)
/// Proof: Balances Freezes (max_values: None, max_size: Some(49), added: 2524, mode: MaxEncodedLen)
/// Storage: VoterList ListNodes (r:3 w:3)
/// Proof: VoterList ListNodes (max_values: None, max_size: Some(154), added: 2629, mode: MaxEncodedLen)
/// Storage: VoterList ListBags (r:2 w:2)
@@ -136,10 +137,10 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
fn bond_extra_transfer() -> Weight {
// Proof Size summary in bytes:
// Measured: `3310`
// Estimated: `49070`
// Minimum execution time: 156_820_000 picoseconds.
Weight::from_parts(159_798_000, 49070)
.saturating_add(T::DbWeight::get().reads(15_u64))
// Estimated: `8877`
// Minimum execution time: 183_120_000 picoseconds.
Weight::from_parts(184_749_000, 8877)
.saturating_add(T::DbWeight::get().reads(16_u64))
.saturating_add(T::DbWeight::get().writes(12_u64))
}
/// Storage: NominationPools ClaimPermissions (r:1 w:0)
@@ -160,6 +161,8 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
/// Proof: Staking Ledger (max_values: None, max_size: Some(1091), added: 3566, mode: MaxEncodedLen)
/// Storage: Balances Locks (r:1 w:1)
/// Proof: Balances Locks (max_values: None, max_size: Some(1299), added: 3774, mode: MaxEncodedLen)
/// Storage: Balances Freezes (r:1 w:0)
/// Proof: Balances Freezes (max_values: None, max_size: Some(49), added: 2524, mode: MaxEncodedLen)
/// Storage: VoterList ListNodes (r:3 w:3)
/// Proof: VoterList ListNodes (max_values: None, max_size: Some(154), added: 2629, mode: MaxEncodedLen)
/// Storage: VoterList ListBags (r:2 w:2)
@@ -167,10 +170,10 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
fn bond_extra_other() -> Weight {
// Proof Size summary in bytes:
// Measured: `3375`
// Estimated: `52576`
// Minimum execution time: 175_820_000 picoseconds.
Weight::from_parts(177_378_000, 52576)
.saturating_add(T::DbWeight::get().reads(16_u64))
// Estimated: `8877`
// Minimum execution time: 218_799_000 picoseconds.
Weight::from_parts(220_139_000, 8877)
.saturating_add(T::DbWeight::get().reads(17_u64))
.saturating_add(T::DbWeight::get().writes(13_u64))
}
/// Storage: NominationPools ClaimPermissions (r:1 w:0)
@@ -188,9 +191,9 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
fn claim_payout() -> Weight {
// Proof Size summary in bytes:
// Measured: `1171`
// Estimated: `19532`
// Minimum execution time: 62_011_000 picoseconds.
Weight::from_parts(62_680_000, 19532)
// Estimated: `3702`
// Minimum execution time: 79_493_000 picoseconds.
Weight::from_parts(80_266_000, 3702)
.saturating_add(T::DbWeight::get().reads(6_u64))
.saturating_add(T::DbWeight::get().writes(4_u64))
}
@@ -216,6 +219,8 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
/// Proof: Staking MinNominatorBond (max_values: Some(1), max_size: Some(16), added: 511, mode: MaxEncodedLen)
/// Storage: Balances Locks (r:1 w:1)
/// Proof: Balances Locks (max_values: None, max_size: Some(1299), added: 3774, mode: MaxEncodedLen)
/// Storage: Balances Freezes (r:1 w:0)
/// Proof: Balances Freezes (max_values: None, max_size: Some(49), added: 2524, mode: MaxEncodedLen)
/// Storage: VoterList ListNodes (r:3 w:3)
/// Proof: VoterList ListNodes (max_values: None, max_size: Some(154), added: 2629, mode: MaxEncodedLen)
/// Storage: VoterList ListBags (r:2 w:2)
@@ -227,10 +232,10 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
fn unbond() -> Weight {
// Proof Size summary in bytes:
// Measured: `3586`
// Estimated: `82816`
// Minimum execution time: 163_294_000 picoseconds.
Weight::from_parts(164_375_000, 82816)
.saturating_add(T::DbWeight::get().reads(19_u64))
// Estimated: `27847`
// Minimum execution time: 168_592_000 picoseconds.
Weight::from_parts(170_130_000, 27847)
.saturating_add(T::DbWeight::get().reads(20_u64))
.saturating_add(T::DbWeight::get().writes(13_u64))
}
/// Storage: NominationPools BondedPools (r:1 w:0)
@@ -243,16 +248,18 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
/// Proof: Staking CurrentEra (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)
/// Storage: Balances Locks (r:1 w:1)
/// Proof: Balances Locks (max_values: None, max_size: Some(1299), added: 3774, mode: MaxEncodedLen)
/// Storage: Balances Freezes (r:1 w:0)
/// Proof: Balances Freezes (max_values: None, max_size: Some(49), added: 2524, mode: MaxEncodedLen)
/// The range of component `s` is `[0, 100]`.
fn pool_withdraw_unbonded(s: u32, ) -> Weight {
// Proof Size summary in bytes:
// Measured: `1687`
// Estimated: `18031`
// Minimum execution time: 54_775_000 picoseconds.
Weight::from_parts(55_724_944, 18031)
// Standard Error: 536
.saturating_add(Weight::from_parts(10_059, 0).saturating_mul(s.into()))
.saturating_add(T::DbWeight::get().reads(5_u64))
// Estimated: `4764`
// Minimum execution time: 63_254_000 picoseconds.
Weight::from_parts(64_154_755, 4764)
// Standard Error: 344
.saturating_add(Weight::from_parts(8_798, 0).saturating_mul(s.into()))
.saturating_add(T::DbWeight::get().reads(6_u64))
.saturating_add(T::DbWeight::get().writes(2_u64))
}
/// Storage: NominationPools PoolMembers (r:1 w:1)
@@ -269,6 +276,8 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
/// Proof: Staking Ledger (max_values: None, max_size: Some(1091), added: 3566, mode: MaxEncodedLen)
/// Storage: Balances Locks (r:1 w:1)
/// Proof: Balances Locks (max_values: None, max_size: Some(1299), added: 3774, mode: MaxEncodedLen)
/// Storage: Balances Freezes (r:1 w:0)
/// Proof: Balances Freezes (max_values: None, max_size: Some(49), added: 2524, mode: MaxEncodedLen)
/// Storage: System Account (r:1 w:1)
/// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen)
/// Storage: NominationPools CounterForPoolMembers (r:1 w:1)
@@ -279,12 +288,12 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
fn withdraw_unbonded_update(s: u32, ) -> Weight {
// Proof Size summary in bytes:
// Measured: `2115`
// Estimated: `54662`
// Minimum execution time: 106_820_000 picoseconds.
Weight::from_parts(109_870_849, 54662)
// Standard Error: 11_111
.saturating_add(Weight::from_parts(2_006, 0).saturating_mul(s.into()))
.saturating_add(T::DbWeight::get().reads(9_u64))
// Estimated: `27847`
// Minimum execution time: 131_339_000 picoseconds.
Weight::from_parts(133_590_267, 27847)
// Standard Error: 1_058
.saturating_add(Weight::from_parts(9_932, 0).saturating_mul(s.into()))
.saturating_add(T::DbWeight::get().reads(10_u64))
.saturating_add(T::DbWeight::get().writes(8_u64))
}
/// Storage: NominationPools PoolMembers (r:1 w:1)
@@ -309,6 +318,8 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
/// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen)
/// Storage: Balances Locks (r:1 w:1)
/// Proof: Balances Locks (max_values: None, max_size: Some(1299), added: 3774, mode: MaxEncodedLen)
/// Storage: Balances Freezes (r:1 w:0)
/// Proof: Balances Freezes (max_values: None, max_size: Some(49), added: 2524, mode: MaxEncodedLen)
/// Storage: NominationPools CounterForPoolMembers (r:1 w:1)
/// Proof: NominationPools CounterForPoolMembers (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)
/// Storage: NominationPools ReversePoolIdLookup (r:1 w:1)
@@ -330,15 +341,13 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
/// Storage: NominationPools ClaimPermissions (r:0 w:1)
/// Proof: NominationPools ClaimPermissions (max_values: None, max_size: Some(41), added: 2516, mode: MaxEncodedLen)
/// The range of component `s` is `[0, 100]`.
fn withdraw_unbonded_kill(s: u32, ) -> Weight {
fn withdraw_unbonded_kill(_s: u32, ) -> Weight {
// Proof Size summary in bytes:
// Measured: `2470`
// Estimated: `87490`
// Minimum execution time: 170_908_000 picoseconds.
Weight::from_parts(173_616_555, 87490)
// Standard Error: 2_324
.saturating_add(Weight::from_parts(4_397, 0).saturating_mul(s.into()))
.saturating_add(T::DbWeight::get().reads(20_u64))
// Estimated: `27847`
// Minimum execution time: 219_026_000 picoseconds.
Weight::from_parts(223_230_356, 27847)
.saturating_add(T::DbWeight::get().reads(21_u64))
.saturating_add(T::DbWeight::get().writes(18_u64))
}
/// Storage: NominationPools LastPoolId (r:1 w:1)
@@ -371,6 +380,8 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
/// Proof: Staking CurrentEra (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)
/// Storage: Balances Locks (r:1 w:1)
/// Proof: Balances Locks (max_values: None, max_size: Some(1299), added: 3774, mode: MaxEncodedLen)
/// Storage: Balances Freezes (r:1 w:0)
/// Proof: Balances Freezes (max_values: None, max_size: Some(49), added: 2524, mode: MaxEncodedLen)
/// Storage: NominationPools RewardPools (r:1 w:1)
/// Proof: NominationPools RewardPools (max_values: None, max_size: Some(92), added: 2567, mode: MaxEncodedLen)
/// Storage: NominationPools CounterForRewardPools (r:1 w:1)
@@ -386,10 +397,10 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
fn create() -> Weight {
// Proof Size summary in bytes:
// Measured: `1289`
// Estimated: `51410`
// Minimum execution time: 148_934_000 picoseconds.
Weight::from_parts(149_702_000, 51410)
.saturating_add(T::DbWeight::get().reads(21_u64))
// Estimated: `6196`
// Minimum execution time: 189_710_000 picoseconds.
Weight::from_parts(190_251_000, 6196)
.saturating_add(T::DbWeight::get().reads(22_u64))
.saturating_add(T::DbWeight::get().writes(15_u64))
}
/// Storage: NominationPools BondedPools (r:1 w:0)
@@ -420,11 +431,11 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
fn nominate(n: u32, ) -> Weight {
// Proof Size summary in bytes:
// Measured: `1849`
// Estimated: `33934 + n * (2520 ±0)`
// Minimum execution time: 68_986_000 picoseconds.
Weight::from_parts(69_474_269, 33934)
// Standard Error: 6_602
.saturating_add(Weight::from_parts(1_416_294, 0).saturating_mul(n.into()))
// Estimated: `4556 + n * (2520 ±0)`
// Minimum execution time: 70_044_000 picoseconds.
Weight::from_parts(69_307_256, 4556)
// Standard Error: 6_066
.saturating_add(Weight::from_parts(1_517_942, 0).saturating_mul(n.into()))
.saturating_add(T::DbWeight::get().reads(12_u64))
.saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(n.into())))
.saturating_add(T::DbWeight::get().writes(5_u64))
@@ -439,9 +450,9 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
fn set_state() -> Weight {
// Proof Size summary in bytes:
// Measured: `1438`
// Estimated: `11778`
// Minimum execution time: 36_300_000 picoseconds.
Weight::from_parts(36_713_000, 11778)
// Estimated: `4556`
// Minimum execution time: 36_610_000 picoseconds.
Weight::from_parts(37_212_000, 4556)
.saturating_add(T::DbWeight::get().reads(3_u64))
.saturating_add(T::DbWeight::get().writes(1_u64))
}
@@ -455,11 +466,11 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
fn set_metadata(n: u32, ) -> Weight {
// Proof Size summary in bytes:
// Measured: `531`
// Estimated: `8909`
// Minimum execution time: 14_976_000 picoseconds.
Weight::from_parts(15_538_088, 8909)
// Standard Error: 71
.saturating_add(Weight::from_parts(1_548, 0).saturating_mul(n.into()))
// Estimated: `3735`
// Minimum execution time: 15_334_000 picoseconds.
Weight::from_parts(15_753_107, 3735)
// Standard Error: 62
.saturating_add(Weight::from_parts(1_365, 0).saturating_mul(n.into()))
.saturating_add(T::DbWeight::get().reads(3_u64))
.saturating_add(T::DbWeight::get().writes(2_u64))
}
@@ -479,8 +490,8 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
// Proof Size summary in bytes:
// Measured: `0`
// Estimated: `0`
// Minimum execution time: 7_259_000 picoseconds.
Weight::from_parts(7_499_000, 0)
// Minimum execution time: 7_156_000 picoseconds.
Weight::from_parts(7_596_000, 0)
.saturating_add(T::DbWeight::get().writes(6_u64))
}
/// Storage: NominationPools BondedPools (r:1 w:1)
@@ -489,8 +500,8 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
// Proof Size summary in bytes:
// Measured: `531`
// Estimated: `3685`
// Minimum execution time: 20_454_000 picoseconds.
Weight::from_parts(20_771_000, 3685)
// Minimum execution time: 20_342_000 picoseconds.
Weight::from_parts(20_699_000, 3685)
.saturating_add(T::DbWeight::get().reads(1_u64))
.saturating_add(T::DbWeight::get().writes(1_u64))
}
@@ -515,9 +526,9 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
fn chill() -> Weight {
// Proof Size summary in bytes:
// Measured: `2012`
// Estimated: `29455`
// Minimum execution time: 66_404_000 picoseconds.
Weight::from_parts(66_872_000, 29455)
// Estimated: `4556`
// Minimum execution time: 66_608_000 picoseconds.
Weight::from_parts(67_416_000, 4556)
.saturating_add(T::DbWeight::get().reads(9_u64))
.saturating_add(T::DbWeight::get().writes(5_u64))
}
@@ -532,9 +543,9 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
fn set_commission() -> Weight {
// Proof Size summary in bytes:
// Measured: `770`
// Estimated: `12324`
// Minimum execution time: 34_240_000 picoseconds.
Weight::from_parts(34_797_000, 12324)
// Estimated: `3685`
// Minimum execution time: 34_619_000 picoseconds.
Weight::from_parts(34_894_000, 3685)
.saturating_add(T::DbWeight::get().reads(4_u64))
.saturating_add(T::DbWeight::get().writes(2_u64))
}
@@ -544,8 +555,8 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
// Proof Size summary in bytes:
// Measured: `571`
// Estimated: `3685`
// Minimum execution time: 19_469_000 picoseconds.
Weight::from_parts(19_865_000, 3685)
// Minimum execution time: 19_676_000 picoseconds.
Weight::from_parts(19_958_000, 3685)
.saturating_add(T::DbWeight::get().reads(1_u64))
.saturating_add(T::DbWeight::get().writes(1_u64))
}
@@ -555,8 +566,8 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
// Proof Size summary in bytes:
// Measured: `531`
// Estimated: `3685`
// Minimum execution time: 20_423_000 picoseconds.
Weight::from_parts(20_620_000, 3685)
// Minimum execution time: 20_404_000 picoseconds.
Weight::from_parts(20_859_000, 3685)
.saturating_add(T::DbWeight::get().reads(1_u64))
.saturating_add(T::DbWeight::get().writes(1_u64))
}
@@ -567,9 +578,9 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
fn set_claim_permission() -> Weight {
// Proof Size summary in bytes:
// Measured: `542`
// Estimated: `7208`
// Minimum execution time: 15_346_000 picoseconds.
Weight::from_parts(15_613_000, 7208)
// Estimated: `3702`
// Minimum execution time: 15_401_000 picoseconds.
Weight::from_parts(15_706_000, 3702)
.saturating_add(T::DbWeight::get().reads(2_u64))
.saturating_add(T::DbWeight::get().writes(1_u64))
}
@@ -584,9 +595,9 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
fn claim_commission() -> Weight {
// Proof Size summary in bytes:
// Measured: `968`
// Estimated: `12324`
// Minimum execution time: 48_749_000 picoseconds.
Weight::from_parts(49_131_000, 12324)
// Estimated: `3685`
// Minimum execution time: 66_775_000 picoseconds.
Weight::from_parts(67_242_000, 3685)
.saturating_add(T::DbWeight::get().reads(4_u64))
.saturating_add(T::DbWeight::get().writes(2_u64))
}
@@ -618,6 +629,8 @@ impl WeightInfo for () {
/// Proof: NominationPools CounterForPoolMembers (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)
/// Storage: Balances Locks (r:1 w:1)
/// Proof: Balances Locks (max_values: None, max_size: Some(1299), added: 3774, mode: MaxEncodedLen)
/// Storage: Balances Freezes (r:1 w:0)
/// Proof: Balances Freezes (max_values: None, max_size: Some(49), added: 2524, mode: MaxEncodedLen)
/// Storage: VoterList ListNodes (r:3 w:3)
/// Proof: VoterList ListNodes (max_values: None, max_size: Some(154), added: 2629, mode: MaxEncodedLen)
/// Storage: VoterList ListBags (r:2 w:2)
@@ -625,10 +638,10 @@ impl WeightInfo for () {
fn join() -> Weight {
// Proof Size summary in bytes:
// Measured: `3300`
// Estimated: `52435`
// Minimum execution time: 160_675_000 picoseconds.
Weight::from_parts(162_605_000, 52435)
.saturating_add(RocksDbWeight::get().reads(18_u64))
// Estimated: `8877`
// Minimum execution time: 186_523_000 picoseconds.
Weight::from_parts(187_817_000, 8877)
.saturating_add(RocksDbWeight::get().reads(19_u64))
.saturating_add(RocksDbWeight::get().writes(12_u64))
}
/// Storage: NominationPools PoolMembers (r:1 w:1)
@@ -647,6 +660,8 @@ impl WeightInfo for () {
/// Proof: Staking Ledger (max_values: None, max_size: Some(1091), added: 3566, mode: MaxEncodedLen)
/// Storage: Balances Locks (r:1 w:1)
/// Proof: Balances Locks (max_values: None, max_size: Some(1299), added: 3774, mode: MaxEncodedLen)
/// Storage: Balances Freezes (r:1 w:0)
/// Proof: Balances Freezes (max_values: None, max_size: Some(49), added: 2524, mode: MaxEncodedLen)
/// Storage: VoterList ListNodes (r:3 w:3)
/// Proof: VoterList ListNodes (max_values: None, max_size: Some(154), added: 2629, mode: MaxEncodedLen)
/// Storage: VoterList ListBags (r:2 w:2)
@@ -654,10 +669,10 @@ impl WeightInfo for () {
fn bond_extra_transfer() -> Weight {
// Proof Size summary in bytes:
// Measured: `3310`
// Estimated: `49070`
// Minimum execution time: 156_820_000 picoseconds.
Weight::from_parts(159_798_000, 49070)
.saturating_add(RocksDbWeight::get().reads(15_u64))
// Estimated: `8877`
// Minimum execution time: 183_120_000 picoseconds.
Weight::from_parts(184_749_000, 8877)
.saturating_add(RocksDbWeight::get().reads(16_u64))
.saturating_add(RocksDbWeight::get().writes(12_u64))
}
/// Storage: NominationPools ClaimPermissions (r:1 w:0)
@@ -678,6 +693,8 @@ impl WeightInfo for () {
/// Proof: Staking Ledger (max_values: None, max_size: Some(1091), added: 3566, mode: MaxEncodedLen)
/// Storage: Balances Locks (r:1 w:1)
/// Proof: Balances Locks (max_values: None, max_size: Some(1299), added: 3774, mode: MaxEncodedLen)
/// Storage: Balances Freezes (r:1 w:0)
/// Proof: Balances Freezes (max_values: None, max_size: Some(49), added: 2524, mode: MaxEncodedLen)
/// Storage: VoterList ListNodes (r:3 w:3)
/// Proof: VoterList ListNodes (max_values: None, max_size: Some(154), added: 2629, mode: MaxEncodedLen)
/// Storage: VoterList ListBags (r:2 w:2)
@@ -685,10 +702,10 @@ impl WeightInfo for () {
fn bond_extra_other() -> Weight {
// Proof Size summary in bytes:
// Measured: `3375`
// Estimated: `52576`
// Minimum execution time: 175_820_000 picoseconds.
Weight::from_parts(177_378_000, 52576)
.saturating_add(RocksDbWeight::get().reads(16_u64))
// Estimated: `8877`
// Minimum execution time: 218_799_000 picoseconds.
Weight::from_parts(220_139_000, 8877)
.saturating_add(RocksDbWeight::get().reads(17_u64))
.saturating_add(RocksDbWeight::get().writes(13_u64))
}
/// Storage: NominationPools ClaimPermissions (r:1 w:0)
@@ -706,9 +723,9 @@ impl WeightInfo for () {
fn claim_payout() -> Weight {
// Proof Size summary in bytes:
// Measured: `1171`
// Estimated: `19532`
// Minimum execution time: 62_011_000 picoseconds.
Weight::from_parts(62_680_000, 19532)
// Estimated: `3702`
// Minimum execution time: 79_493_000 picoseconds.
Weight::from_parts(80_266_000, 3702)
.saturating_add(RocksDbWeight::get().reads(6_u64))
.saturating_add(RocksDbWeight::get().writes(4_u64))
}
@@ -734,6 +751,8 @@ impl WeightInfo for () {
/// Proof: Staking MinNominatorBond (max_values: Some(1), max_size: Some(16), added: 511, mode: MaxEncodedLen)
/// Storage: Balances Locks (r:1 w:1)
/// Proof: Balances Locks (max_values: None, max_size: Some(1299), added: 3774, mode: MaxEncodedLen)
/// Storage: Balances Freezes (r:1 w:0)
/// Proof: Balances Freezes (max_values: None, max_size: Some(49), added: 2524, mode: MaxEncodedLen)
/// Storage: VoterList ListNodes (r:3 w:3)
/// Proof: VoterList ListNodes (max_values: None, max_size: Some(154), added: 2629, mode: MaxEncodedLen)
/// Storage: VoterList ListBags (r:2 w:2)
@@ -745,10 +764,10 @@ impl WeightInfo for () {
fn unbond() -> Weight {
// Proof Size summary in bytes:
// Measured: `3586`
// Estimated: `82816`
// Minimum execution time: 163_294_000 picoseconds.
Weight::from_parts(164_375_000, 82816)
.saturating_add(RocksDbWeight::get().reads(19_u64))
// Estimated: `27847`
// Minimum execution time: 168_592_000 picoseconds.
Weight::from_parts(170_130_000, 27847)
.saturating_add(RocksDbWeight::get().reads(20_u64))
.saturating_add(RocksDbWeight::get().writes(13_u64))
}
/// Storage: NominationPools BondedPools (r:1 w:0)
@@ -761,16 +780,18 @@ impl WeightInfo for () {
/// Proof: Staking CurrentEra (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)
/// Storage: Balances Locks (r:1 w:1)
/// Proof: Balances Locks (max_values: None, max_size: Some(1299), added: 3774, mode: MaxEncodedLen)
/// Storage: Balances Freezes (r:1 w:0)
/// Proof: Balances Freezes (max_values: None, max_size: Some(49), added: 2524, mode: MaxEncodedLen)
/// The range of component `s` is `[0, 100]`.
fn pool_withdraw_unbonded(s: u32, ) -> Weight {
// Proof Size summary in bytes:
// Measured: `1687`
// Estimated: `18031`
// Minimum execution time: 54_775_000 picoseconds.
Weight::from_parts(55_724_944, 18031)
// Standard Error: 536
.saturating_add(Weight::from_parts(10_059, 0).saturating_mul(s.into()))
.saturating_add(RocksDbWeight::get().reads(5_u64))
// Estimated: `4764`
// Minimum execution time: 63_254_000 picoseconds.
Weight::from_parts(64_154_755, 4764)
// Standard Error: 344
.saturating_add(Weight::from_parts(8_798, 0).saturating_mul(s.into()))
.saturating_add(RocksDbWeight::get().reads(6_u64))
.saturating_add(RocksDbWeight::get().writes(2_u64))
}
/// Storage: NominationPools PoolMembers (r:1 w:1)
@@ -787,6 +808,8 @@ impl WeightInfo for () {
/// Proof: Staking Ledger (max_values: None, max_size: Some(1091), added: 3566, mode: MaxEncodedLen)
/// Storage: Balances Locks (r:1 w:1)
/// Proof: Balances Locks (max_values: None, max_size: Some(1299), added: 3774, mode: MaxEncodedLen)
/// Storage: Balances Freezes (r:1 w:0)
/// Proof: Balances Freezes (max_values: None, max_size: Some(49), added: 2524, mode: MaxEncodedLen)
/// Storage: System Account (r:1 w:1)
/// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen)
/// Storage: NominationPools CounterForPoolMembers (r:1 w:1)
@@ -797,12 +820,12 @@ impl WeightInfo for () {
fn withdraw_unbonded_update(s: u32, ) -> Weight {
// Proof Size summary in bytes:
// Measured: `2115`
// Estimated: `54662`
// Minimum execution time: 106_820_000 picoseconds.
Weight::from_parts(109_870_849, 54662)
// Standard Error: 11_111
.saturating_add(Weight::from_parts(2_006, 0).saturating_mul(s.into()))
.saturating_add(RocksDbWeight::get().reads(9_u64))
// Estimated: `27847`
// Minimum execution time: 131_339_000 picoseconds.
Weight::from_parts(133_590_267, 27847)
// Standard Error: 1_058
.saturating_add(Weight::from_parts(9_932, 0).saturating_mul(s.into()))
.saturating_add(RocksDbWeight::get().reads(10_u64))
.saturating_add(RocksDbWeight::get().writes(8_u64))
}
/// Storage: NominationPools PoolMembers (r:1 w:1)
@@ -827,6 +850,8 @@ impl WeightInfo for () {
/// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen)
/// Storage: Balances Locks (r:1 w:1)
/// Proof: Balances Locks (max_values: None, max_size: Some(1299), added: 3774, mode: MaxEncodedLen)
/// Storage: Balances Freezes (r:1 w:0)
/// Proof: Balances Freezes (max_values: None, max_size: Some(49), added: 2524, mode: MaxEncodedLen)
/// Storage: NominationPools CounterForPoolMembers (r:1 w:1)
/// Proof: NominationPools CounterForPoolMembers (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)
/// Storage: NominationPools ReversePoolIdLookup (r:1 w:1)
@@ -848,15 +873,13 @@ impl WeightInfo for () {
/// Storage: NominationPools ClaimPermissions (r:0 w:1)
/// Proof: NominationPools ClaimPermissions (max_values: None, max_size: Some(41), added: 2516, mode: MaxEncodedLen)
/// The range of component `s` is `[0, 100]`.
fn withdraw_unbonded_kill(s: u32, ) -> Weight {
fn withdraw_unbonded_kill(_s: u32, ) -> Weight {
// Proof Size summary in bytes:
// Measured: `2470`
// Estimated: `87490`
// Minimum execution time: 170_908_000 picoseconds.
Weight::from_parts(173_616_555, 87490)
// Standard Error: 2_324
.saturating_add(Weight::from_parts(4_397, 0).saturating_mul(s.into()))
.saturating_add(RocksDbWeight::get().reads(20_u64))
// Estimated: `27847`
// Minimum execution time: 219_026_000 picoseconds.
Weight::from_parts(223_230_356, 27847)
.saturating_add(RocksDbWeight::get().reads(21_u64))
.saturating_add(RocksDbWeight::get().writes(18_u64))
}
/// Storage: NominationPools LastPoolId (r:1 w:1)
@@ -889,6 +912,8 @@ impl WeightInfo for () {
/// Proof: Staking CurrentEra (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)
/// Storage: Balances Locks (r:1 w:1)
/// Proof: Balances Locks (max_values: None, max_size: Some(1299), added: 3774, mode: MaxEncodedLen)
/// Storage: Balances Freezes (r:1 w:0)
/// Proof: Balances Freezes (max_values: None, max_size: Some(49), added: 2524, mode: MaxEncodedLen)
/// Storage: NominationPools RewardPools (r:1 w:1)
/// Proof: NominationPools RewardPools (max_values: None, max_size: Some(92), added: 2567, mode: MaxEncodedLen)
/// Storage: NominationPools CounterForRewardPools (r:1 w:1)
@@ -904,10 +929,10 @@ impl WeightInfo for () {
fn create() -> Weight {
// Proof Size summary in bytes:
// Measured: `1289`
// Estimated: `51410`
// Minimum execution time: 148_934_000 picoseconds.
Weight::from_parts(149_702_000, 51410)
.saturating_add(RocksDbWeight::get().reads(21_u64))
// Estimated: `6196`
// Minimum execution time: 189_710_000 picoseconds.
Weight::from_parts(190_251_000, 6196)
.saturating_add(RocksDbWeight::get().reads(22_u64))
.saturating_add(RocksDbWeight::get().writes(15_u64))
}
/// Storage: NominationPools BondedPools (r:1 w:0)
@@ -938,11 +963,11 @@ impl WeightInfo for () {
fn nominate(n: u32, ) -> Weight {
// Proof Size summary in bytes:
// Measured: `1849`
// Estimated: `33934 + n * (2520 ±0)`
// Minimum execution time: 68_986_000 picoseconds.
Weight::from_parts(69_474_269, 33934)
// Standard Error: 6_602
.saturating_add(Weight::from_parts(1_416_294, 0).saturating_mul(n.into()))
// Estimated: `4556 + n * (2520 ±0)`
// Minimum execution time: 70_044_000 picoseconds.
Weight::from_parts(69_307_256, 4556)
// Standard Error: 6_066
.saturating_add(Weight::from_parts(1_517_942, 0).saturating_mul(n.into()))
.saturating_add(RocksDbWeight::get().reads(12_u64))
.saturating_add(RocksDbWeight::get().reads((1_u64).saturating_mul(n.into())))
.saturating_add(RocksDbWeight::get().writes(5_u64))
@@ -957,9 +982,9 @@ impl WeightInfo for () {
fn set_state() -> Weight {
// Proof Size summary in bytes:
// Measured: `1438`
// Estimated: `11778`
// Minimum execution time: 36_300_000 picoseconds.
Weight::from_parts(36_713_000, 11778)
// Estimated: `4556`
// Minimum execution time: 36_610_000 picoseconds.
Weight::from_parts(37_212_000, 4556)
.saturating_add(RocksDbWeight::get().reads(3_u64))
.saturating_add(RocksDbWeight::get().writes(1_u64))
}
@@ -973,11 +998,11 @@ impl WeightInfo for () {
fn set_metadata(n: u32, ) -> Weight {
// Proof Size summary in bytes:
// Measured: `531`
// Estimated: `8909`
// Minimum execution time: 14_976_000 picoseconds.
Weight::from_parts(15_538_088, 8909)
// Standard Error: 71
.saturating_add(Weight::from_parts(1_548, 0).saturating_mul(n.into()))
// Estimated: `3735`
// Minimum execution time: 15_334_000 picoseconds.
Weight::from_parts(15_753_107, 3735)
// Standard Error: 62
.saturating_add(Weight::from_parts(1_365, 0).saturating_mul(n.into()))
.saturating_add(RocksDbWeight::get().reads(3_u64))
.saturating_add(RocksDbWeight::get().writes(2_u64))
}
@@ -997,8 +1022,8 @@ impl WeightInfo for () {
// Proof Size summary in bytes:
// Measured: `0`
// Estimated: `0`
// Minimum execution time: 7_259_000 picoseconds.
Weight::from_parts(7_499_000, 0)
// Minimum execution time: 7_156_000 picoseconds.
Weight::from_parts(7_596_000, 0)
.saturating_add(RocksDbWeight::get().writes(6_u64))
}
/// Storage: NominationPools BondedPools (r:1 w:1)
@@ -1007,8 +1032,8 @@ impl WeightInfo for () {
// Proof Size summary in bytes:
// Measured: `531`
// Estimated: `3685`
// Minimum execution time: 20_454_000 picoseconds.
Weight::from_parts(20_771_000, 3685)
// Minimum execution time: 20_342_000 picoseconds.
Weight::from_parts(20_699_000, 3685)
.saturating_add(RocksDbWeight::get().reads(1_u64))
.saturating_add(RocksDbWeight::get().writes(1_u64))
}
@@ -1033,9 +1058,9 @@ impl WeightInfo for () {
fn chill() -> Weight {
// Proof Size summary in bytes:
// Measured: `2012`
// Estimated: `29455`
// Minimum execution time: 66_404_000 picoseconds.
Weight::from_parts(66_872_000, 29455)
// Estimated: `4556`
// Minimum execution time: 66_608_000 picoseconds.
Weight::from_parts(67_416_000, 4556)
.saturating_add(RocksDbWeight::get().reads(9_u64))
.saturating_add(RocksDbWeight::get().writes(5_u64))
}
@@ -1050,9 +1075,9 @@ impl WeightInfo for () {
fn set_commission() -> Weight {
// Proof Size summary in bytes:
// Measured: `770`
// Estimated: `12324`
// Minimum execution time: 34_240_000 picoseconds.
Weight::from_parts(34_797_000, 12324)
// Estimated: `3685`
// Minimum execution time: 34_619_000 picoseconds.
Weight::from_parts(34_894_000, 3685)
.saturating_add(RocksDbWeight::get().reads(4_u64))
.saturating_add(RocksDbWeight::get().writes(2_u64))
}
@@ -1062,8 +1087,8 @@ impl WeightInfo for () {
// Proof Size summary in bytes:
// Measured: `571`
// Estimated: `3685`
// Minimum execution time: 19_469_000 picoseconds.
Weight::from_parts(19_865_000, 3685)
// Minimum execution time: 19_676_000 picoseconds.
Weight::from_parts(19_958_000, 3685)
.saturating_add(RocksDbWeight::get().reads(1_u64))
.saturating_add(RocksDbWeight::get().writes(1_u64))
}
@@ -1073,8 +1098,8 @@ impl WeightInfo for () {
// Proof Size summary in bytes:
// Measured: `531`
// Estimated: `3685`
// Minimum execution time: 20_423_000 picoseconds.
Weight::from_parts(20_620_000, 3685)
// Minimum execution time: 20_404_000 picoseconds.
Weight::from_parts(20_859_000, 3685)
.saturating_add(RocksDbWeight::get().reads(1_u64))
.saturating_add(RocksDbWeight::get().writes(1_u64))
}
@@ -1085,9 +1110,9 @@ impl WeightInfo for () {
fn set_claim_permission() -> Weight {
// Proof Size summary in bytes:
// Measured: `542`
// Estimated: `7208`
// Minimum execution time: 15_346_000 picoseconds.
Weight::from_parts(15_613_000, 7208)
// Estimated: `3702`
// Minimum execution time: 15_401_000 picoseconds.
Weight::from_parts(15_706_000, 3702)
.saturating_add(RocksDbWeight::get().reads(2_u64))
.saturating_add(RocksDbWeight::get().writes(1_u64))
}
@@ -1102,9 +1127,9 @@ impl WeightInfo for () {
fn claim_commission() -> Weight {
// Proof Size summary in bytes:
// Measured: `968`
// Estimated: `12324`
// Minimum execution time: 48_749_000 picoseconds.
Weight::from_parts(49_131_000, 12324)
// Estimated: `3685`
// Minimum execution time: 66_775_000 picoseconds.
Weight::from_parts(67_242_000, 3685)
.saturating_add(RocksDbWeight::get().reads(4_u64))
.saturating_add(RocksDbWeight::get().writes(2_u64))
}