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
+220 -203
View File
@@ -18,9 +18,9 @@
//! Autogenerated weights for pallet_democracy
//!
//! 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_democracy
// --no-storage-info
// --no-median-slopes
// --no-min-squares
// --extrinsic=*
// --execution=wasm
// --wasm-execution=compiled
@@ -95,9 +92,9 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
fn propose() -> Weight {
// Proof Size summary in bytes:
// Measured: `4801`
// Estimated: `26379`
// Minimum execution time: 39_171_000 picoseconds.
Weight::from_parts(39_779_000, 26379)
// Estimated: `18187`
// Minimum execution time: 43_810_000 picoseconds.
Weight::from_parts(44_439_000, 18187)
.saturating_add(T::DbWeight::get().reads(3_u64))
.saturating_add(T::DbWeight::get().writes(3_u64))
}
@@ -107,8 +104,8 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
// Proof Size summary in bytes:
// Measured: `3556`
// Estimated: `6695`
// Minimum execution time: 35_694_000 picoseconds.
Weight::from_parts(36_181_000, 6695)
// Minimum execution time: 40_003_000 picoseconds.
Weight::from_parts(40_448_000, 6695)
.saturating_add(T::DbWeight::get().reads(1_u64))
.saturating_add(T::DbWeight::get().writes(1_u64))
}
@@ -118,13 +115,15 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
/// Proof: Democracy VotingOf (max_values: None, max_size: Some(3795), added: 6270, 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)
fn vote_new() -> Weight {
// Proof Size summary in bytes:
// Measured: `3470`
// Estimated: `15690`
// Minimum execution time: 50_274_000 picoseconds.
Weight::from_parts(51_216_000, 15690)
.saturating_add(T::DbWeight::get().reads(3_u64))
// Estimated: `7260`
// Minimum execution time: 54_737_000 picoseconds.
Weight::from_parts(55_154_000, 7260)
.saturating_add(T::DbWeight::get().reads(4_u64))
.saturating_add(T::DbWeight::get().writes(3_u64))
}
/// Storage: Democracy ReferendumInfoOf (r:1 w:1)
@@ -133,13 +132,15 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
/// Proof: Democracy VotingOf (max_values: None, max_size: Some(3795), added: 6270, 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)
fn vote_existing() -> Weight {
// Proof Size summary in bytes:
// Measured: `3492`
// Estimated: `15690`
// Minimum execution time: 50_559_000 picoseconds.
Weight::from_parts(51_030_000, 15690)
.saturating_add(T::DbWeight::get().reads(3_u64))
// Estimated: `7260`
// Minimum execution time: 59_545_000 picoseconds.
Weight::from_parts(59_955_000, 7260)
.saturating_add(T::DbWeight::get().reads(4_u64))
.saturating_add(T::DbWeight::get().writes(3_u64))
}
/// Storage: Democracy ReferendumInfoOf (r:1 w:1)
@@ -151,9 +152,9 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
fn emergency_cancel() -> Weight {
// Proof Size summary in bytes:
// Measured: `366`
// Estimated: `10682`
// Minimum execution time: 27_539_000 picoseconds.
Weight::from_parts(28_040_000, 10682)
// Estimated: `3666`
// Minimum execution time: 27_886_000 picoseconds.
Weight::from_parts(28_372_000, 3666)
.saturating_add(T::DbWeight::get().reads(3_u64))
.saturating_add(T::DbWeight::get().writes(3_u64))
}
@@ -174,9 +175,9 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
fn blacklist() -> Weight {
// Proof Size summary in bytes:
// Measured: `5910`
// Estimated: `42332`
// Minimum execution time: 93_053_000 picoseconds.
Weight::from_parts(94_193_000, 42332)
// Estimated: `18187`
// Minimum execution time: 99_273_000 picoseconds.
Weight::from_parts(100_398_000, 18187)
.saturating_add(T::DbWeight::get().reads(8_u64))
.saturating_add(T::DbWeight::get().writes(7_u64))
}
@@ -187,9 +188,9 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
fn external_propose() -> Weight {
// Proof Size summary in bytes:
// Measured: `3416`
// Estimated: `8320`
// Minimum execution time: 14_664_000 picoseconds.
Weight::from_parts(15_064_000, 8320)
// Estimated: `6703`
// Minimum execution time: 14_946_000 picoseconds.
Weight::from_parts(15_114_000, 6703)
.saturating_add(T::DbWeight::get().reads(2_u64))
.saturating_add(T::DbWeight::get().writes(1_u64))
}
@@ -199,8 +200,8 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
// Proof Size summary in bytes:
// Measured: `0`
// Estimated: `0`
// Minimum execution time: 4_073_000 picoseconds.
Weight::from_parts(4_242_000, 0)
// Minimum execution time: 3_870_000 picoseconds.
Weight::from_parts(4_083_000, 0)
.saturating_add(T::DbWeight::get().writes(1_u64))
}
/// Storage: Democracy NextExternal (r:0 w:1)
@@ -209,8 +210,8 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
// Proof Size summary in bytes:
// Measured: `0`
// Estimated: `0`
// Minimum execution time: 3_779_000 picoseconds.
Weight::from_parts(4_091_000, 0)
// Minimum execution time: 3_989_000 picoseconds.
Weight::from_parts(4_166_000, 0)
.saturating_add(T::DbWeight::get().writes(1_u64))
}
/// Storage: Democracy NextExternal (r:1 w:1)
@@ -224,9 +225,9 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
fn fast_track() -> Weight {
// Proof Size summary in bytes:
// Measured: `286`
// Estimated: `6624`
// Minimum execution time: 29_596_000 picoseconds.
Weight::from_parts(30_083_000, 6624)
// Estimated: `3518`
// Minimum execution time: 29_776_000 picoseconds.
Weight::from_parts(30_186_000, 3518)
.saturating_add(T::DbWeight::get().reads(3_u64))
.saturating_add(T::DbWeight::get().writes(5_u64))
}
@@ -239,9 +240,9 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
fn veto_external() -> Weight {
// Proof Size summary in bytes:
// Measured: `3519`
// Estimated: `11838`
// Minimum execution time: 34_721_000 picoseconds.
Weight::from_parts(34_989_000, 11838)
// Estimated: `6703`
// Minimum execution time: 33_891_000 picoseconds.
Weight::from_parts(34_265_000, 6703)
.saturating_add(T::DbWeight::get().reads(3_u64))
.saturating_add(T::DbWeight::get().writes(3_u64))
}
@@ -256,9 +257,9 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
fn cancel_proposal() -> Weight {
// Proof Size summary in bytes:
// Measured: `5821`
// Estimated: `31993`
// Minimum execution time: 74_835_000 picoseconds.
Weight::from_parts(75_807_000, 31993)
// Estimated: `18187`
// Minimum execution time: 81_510_000 picoseconds.
Weight::from_parts(82_483_000, 18187)
.saturating_add(T::DbWeight::get().reads(4_u64))
.saturating_add(T::DbWeight::get().writes(4_u64))
}
@@ -270,8 +271,8 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
// Proof Size summary in bytes:
// Measured: `271`
// Estimated: `3518`
// Minimum execution time: 20_995_000 picoseconds.
Weight::from_parts(21_425_000, 3518)
// Minimum execution time: 21_164_000 picoseconds.
Weight::from_parts(21_624_000, 3518)
.saturating_add(T::DbWeight::get().reads(1_u64))
.saturating_add(T::DbWeight::get().writes(2_u64))
}
@@ -285,11 +286,11 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
fn on_initialize_base(r: u32, ) -> Weight {
// Proof Size summary in bytes:
// Measured: `244 + r * (86 ±0)`
// Estimated: `3968 + r * (2676 ±0)`
// Minimum execution time: 7_002_000 picoseconds.
Weight::from_parts(10_543_534, 3968)
// Standard Error: 7_286
.saturating_add(Weight::from_parts(2_911_122, 0).saturating_mul(r.into()))
// Estimated: `1489 + r * (2676 ±0)`
// Minimum execution time: 6_925_000 picoseconds.
Weight::from_parts(10_624_198, 1489)
// Standard Error: 5_780
.saturating_add(Weight::from_parts(2_934_169, 0).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(1_u64))
@@ -311,11 +312,11 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
fn on_initialize_base_with_launch_period(r: u32, ) -> Weight {
// Proof Size summary in bytes:
// Measured: `244 + r * (86 ±0)`
// Estimated: `25258 + r * (2676 ±0)`
// Minimum execution time: 10_824_000 picoseconds.
Weight::from_parts(14_187_527, 25258)
// Standard Error: 7_148
.saturating_add(Weight::from_parts(2_886_910, 0).saturating_mul(r.into()))
// Estimated: `18187 + r * (2676 ±0)`
// Minimum execution time: 10_551_000 picoseconds.
Weight::from_parts(13_126_123, 18187)
// Standard Error: 6_391
.saturating_add(Weight::from_parts(2_952_789, 0).saturating_mul(r.into()))
.saturating_add(T::DbWeight::get().reads(5_u64))
.saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(r.into())))
.saturating_add(T::DbWeight::get().writes(1_u64))
@@ -327,16 +328,18 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
/// Proof: Democracy ReferendumInfoOf (max_values: None, max_size: Some(201), added: 2676, 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 `r` is `[0, 99]`.
fn delegate(r: u32, ) -> Weight {
// Proof Size summary in bytes:
// Measured: `830 + r * (108 ±0)`
// Estimated: `25554 + r * (2676 ±0)`
// Minimum execution time: 42_940_000 picoseconds.
Weight::from_parts(45_288_082, 25554)
// Standard Error: 6_380
.saturating_add(Weight::from_parts(4_219_163, 0).saturating_mul(r.into()))
.saturating_add(T::DbWeight::get().reads(4_u64))
// Estimated: `19800 + r * (2676 ±0)`
// Minimum execution time: 47_172_000 picoseconds.
Weight::from_parts(49_667_954, 19800)
// Standard Error: 6_129
.saturating_add(Weight::from_parts(4_230_402, 0).saturating_mul(r.into()))
.saturating_add(T::DbWeight::get().reads(5_u64))
.saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(r.into())))
.saturating_add(T::DbWeight::get().writes(4_u64))
.saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(r.into())))
@@ -350,11 +353,11 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
fn undelegate(r: u32, ) -> Weight {
// Proof Size summary in bytes:
// Measured: `493 + r * (108 ±0)`
// Estimated: `14520 + r * (2676 ±0)`
// Minimum execution time: 22_203_000 picoseconds.
Weight::from_parts(22_307_372, 14520)
// Standard Error: 7_095
.saturating_add(Weight::from_parts(4_202_995, 0).saturating_mul(r.into()))
// Estimated: `13530 + r * (2676 ±0)`
// Minimum execution time: 22_360_000 picoseconds.
Weight::from_parts(25_063_237, 13530)
// Standard Error: 5_326
.saturating_add(Weight::from_parts(4_163_683, 0).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(2_u64))
@@ -367,44 +370,48 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
// Proof Size summary in bytes:
// Measured: `0`
// Estimated: `0`
// Minimum execution time: 4_046_000 picoseconds.
Weight::from_parts(4_191_000, 0)
// Minimum execution time: 4_047_000 picoseconds.
Weight::from_parts(4_139_000, 0)
.saturating_add(T::DbWeight::get().writes(1_u64))
}
/// Storage: Democracy VotingOf (r:1 w:1)
/// Proof: Democracy VotingOf (max_values: None, max_size: Some(3795), added: 6270, 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)
/// The range of component `r` is `[0, 99]`.
fn unlock_remove(r: u32, ) -> Weight {
// Proof Size summary in bytes:
// Measured: `563`
// Estimated: `15617`
// Minimum execution time: 22_585_000 picoseconds.
Weight::from_parts(28_461_437, 15617)
// Standard Error: 1_636
.saturating_add(Weight::from_parts(19_140, 0).saturating_mul(r.into()))
.saturating_add(T::DbWeight::get().reads(3_u64))
// Estimated: `7260`
// Minimum execution time: 27_322_000 picoseconds.
Weight::from_parts(39_909_589, 7260)
// Standard Error: 2_758
.saturating_add(Weight::from_parts(29_497, 0).saturating_mul(r.into()))
.saturating_add(T::DbWeight::get().reads(4_u64))
.saturating_add(T::DbWeight::get().writes(3_u64))
}
/// Storage: Democracy VotingOf (r:1 w:1)
/// Proof: Democracy VotingOf (max_values: None, max_size: Some(3795), added: 6270, 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)
/// The range of component `r` is `[0, 99]`.
fn unlock_set(r: u32, ) -> Weight {
// Proof Size summary in bytes:
// Measured: `564 + r * (22 ±0)`
// Estimated: `15617`
// Minimum execution time: 26_674_000 picoseconds.
Weight::from_parts(27_815_260, 15617)
// Standard Error: 490
.saturating_add(Weight::from_parts(68_478, 0).saturating_mul(r.into()))
.saturating_add(T::DbWeight::get().reads(3_u64))
// Estimated: `7260`
// Minimum execution time: 37_082_000 picoseconds.
Weight::from_parts(38_580_061, 7260)
// Standard Error: 664
.saturating_add(Weight::from_parts(62_401, 0).saturating_mul(r.into()))
.saturating_add(T::DbWeight::get().reads(4_u64))
.saturating_add(T::DbWeight::get().writes(3_u64))
}
/// Storage: Democracy ReferendumInfoOf (r:1 w:1)
@@ -415,11 +422,11 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
fn remove_vote(r: u32, ) -> Weight {
// Proof Size summary in bytes:
// Measured: `728 + r * (26 ±0)`
// Estimated: `10926`
// Minimum execution time: 17_381_000 picoseconds.
Weight::from_parts(19_728_665, 10926)
// Standard Error: 1_065
.saturating_add(Weight::from_parts(84_481, 0).saturating_mul(r.into()))
// Estimated: `7260`
// Minimum execution time: 17_528_000 picoseconds.
Weight::from_parts(20_075_412, 7260)
// Standard Error: 1_072
.saturating_add(Weight::from_parts(81_734, 0).saturating_mul(r.into()))
.saturating_add(T::DbWeight::get().reads(2_u64))
.saturating_add(T::DbWeight::get().writes(2_u64))
}
@@ -431,11 +438,11 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
fn remove_other_vote(r: u32, ) -> Weight {
// Proof Size summary in bytes:
// Measured: `728 + r * (26 ±0)`
// Estimated: `10926`
// Minimum execution time: 17_496_000 picoseconds.
Weight::from_parts(19_845_941, 10926)
// Standard Error: 1_169
.saturating_add(Weight::from_parts(85_004, 0).saturating_mul(r.into()))
// Estimated: `7260`
// Minimum execution time: 17_517_000 picoseconds.
Weight::from_parts(20_090_718, 7260)
// Standard Error: 1_105
.saturating_add(Weight::from_parts(82_651, 0).saturating_mul(r.into()))
.saturating_add(T::DbWeight::get().reads(2_u64))
.saturating_add(T::DbWeight::get().writes(2_u64))
}
@@ -448,9 +455,9 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
fn set_external_metadata() -> Weight {
// Proof Size summary in bytes:
// Measured: `356`
// Estimated: `5173`
// Minimum execution time: 19_076_000 picoseconds.
Weight::from_parts(19_650_000, 5173)
// Estimated: `3556`
// Minimum execution time: 19_234_000 picoseconds.
Weight::from_parts(19_755_000, 3556)
.saturating_add(T::DbWeight::get().reads(2_u64))
.saturating_add(T::DbWeight::get().writes(1_u64))
}
@@ -461,9 +468,9 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
fn clear_external_metadata() -> Weight {
// Proof Size summary in bytes:
// Measured: `286`
// Estimated: `5135`
// Minimum execution time: 17_588_000 picoseconds.
Weight::from_parts(17_781_000, 5135)
// Estimated: `3518`
// Minimum execution time: 17_621_000 picoseconds.
Weight::from_parts(17_861_000, 3518)
.saturating_add(T::DbWeight::get().reads(2_u64))
.saturating_add(T::DbWeight::get().writes(1_u64))
}
@@ -476,9 +483,9 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
fn set_proposal_metadata() -> Weight {
// Proof Size summary in bytes:
// Measured: `4888`
// Estimated: `21743`
// Minimum execution time: 34_828_000 picoseconds.
Weight::from_parts(35_364_000, 21743)
// Estimated: `18187`
// Minimum execution time: 35_785_000 picoseconds.
Weight::from_parts(36_102_000, 18187)
.saturating_add(T::DbWeight::get().reads(2_u64))
.saturating_add(T::DbWeight::get().writes(1_u64))
}
@@ -489,9 +496,9 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
fn clear_proposal_metadata() -> Weight {
// Proof Size summary in bytes:
// Measured: `4822`
// Estimated: `21705`
// Minimum execution time: 32_035_000 picoseconds.
Weight::from_parts(32_554_000, 21705)
// Estimated: `18187`
// Minimum execution time: 33_493_000 picoseconds.
Weight::from_parts(33_747_000, 18187)
.saturating_add(T::DbWeight::get().reads(2_u64))
.saturating_add(T::DbWeight::get().writes(1_u64))
}
@@ -503,8 +510,8 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
// Proof Size summary in bytes:
// Measured: `144`
// Estimated: `3556`
// Minimum execution time: 15_279_000 picoseconds.
Weight::from_parts(15_556_000, 3556)
// Minimum execution time: 15_557_000 picoseconds.
Weight::from_parts(15_844_000, 3556)
.saturating_add(T::DbWeight::get().reads(1_u64))
.saturating_add(T::DbWeight::get().writes(1_u64))
}
@@ -515,9 +522,9 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
fn clear_referendum_metadata() -> Weight {
// Proof Size summary in bytes:
// Measured: `302`
// Estimated: `7184`
// Minimum execution time: 19_622_000 picoseconds.
Weight::from_parts(19_978_000, 7184)
// Estimated: `3666`
// Minimum execution time: 19_940_000 picoseconds.
Weight::from_parts(20_301_000, 3666)
.saturating_add(T::DbWeight::get().reads(2_u64))
.saturating_add(T::DbWeight::get().writes(1_u64))
}
@@ -536,9 +543,9 @@ impl WeightInfo for () {
fn propose() -> Weight {
// Proof Size summary in bytes:
// Measured: `4801`
// Estimated: `26379`
// Minimum execution time: 39_171_000 picoseconds.
Weight::from_parts(39_779_000, 26379)
// Estimated: `18187`
// Minimum execution time: 43_810_000 picoseconds.
Weight::from_parts(44_439_000, 18187)
.saturating_add(RocksDbWeight::get().reads(3_u64))
.saturating_add(RocksDbWeight::get().writes(3_u64))
}
@@ -548,8 +555,8 @@ impl WeightInfo for () {
// Proof Size summary in bytes:
// Measured: `3556`
// Estimated: `6695`
// Minimum execution time: 35_694_000 picoseconds.
Weight::from_parts(36_181_000, 6695)
// Minimum execution time: 40_003_000 picoseconds.
Weight::from_parts(40_448_000, 6695)
.saturating_add(RocksDbWeight::get().reads(1_u64))
.saturating_add(RocksDbWeight::get().writes(1_u64))
}
@@ -559,13 +566,15 @@ impl WeightInfo for () {
/// Proof: Democracy VotingOf (max_values: None, max_size: Some(3795), added: 6270, 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)
fn vote_new() -> Weight {
// Proof Size summary in bytes:
// Measured: `3470`
// Estimated: `15690`
// Minimum execution time: 50_274_000 picoseconds.
Weight::from_parts(51_216_000, 15690)
.saturating_add(RocksDbWeight::get().reads(3_u64))
// Estimated: `7260`
// Minimum execution time: 54_737_000 picoseconds.
Weight::from_parts(55_154_000, 7260)
.saturating_add(RocksDbWeight::get().reads(4_u64))
.saturating_add(RocksDbWeight::get().writes(3_u64))
}
/// Storage: Democracy ReferendumInfoOf (r:1 w:1)
@@ -574,13 +583,15 @@ impl WeightInfo for () {
/// Proof: Democracy VotingOf (max_values: None, max_size: Some(3795), added: 6270, 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)
fn vote_existing() -> Weight {
// Proof Size summary in bytes:
// Measured: `3492`
// Estimated: `15690`
// Minimum execution time: 50_559_000 picoseconds.
Weight::from_parts(51_030_000, 15690)
.saturating_add(RocksDbWeight::get().reads(3_u64))
// Estimated: `7260`
// Minimum execution time: 59_545_000 picoseconds.
Weight::from_parts(59_955_000, 7260)
.saturating_add(RocksDbWeight::get().reads(4_u64))
.saturating_add(RocksDbWeight::get().writes(3_u64))
}
/// Storage: Democracy ReferendumInfoOf (r:1 w:1)
@@ -592,9 +603,9 @@ impl WeightInfo for () {
fn emergency_cancel() -> Weight {
// Proof Size summary in bytes:
// Measured: `366`
// Estimated: `10682`
// Minimum execution time: 27_539_000 picoseconds.
Weight::from_parts(28_040_000, 10682)
// Estimated: `3666`
// Minimum execution time: 27_886_000 picoseconds.
Weight::from_parts(28_372_000, 3666)
.saturating_add(RocksDbWeight::get().reads(3_u64))
.saturating_add(RocksDbWeight::get().writes(3_u64))
}
@@ -615,9 +626,9 @@ impl WeightInfo for () {
fn blacklist() -> Weight {
// Proof Size summary in bytes:
// Measured: `5910`
// Estimated: `42332`
// Minimum execution time: 93_053_000 picoseconds.
Weight::from_parts(94_193_000, 42332)
// Estimated: `18187`
// Minimum execution time: 99_273_000 picoseconds.
Weight::from_parts(100_398_000, 18187)
.saturating_add(RocksDbWeight::get().reads(8_u64))
.saturating_add(RocksDbWeight::get().writes(7_u64))
}
@@ -628,9 +639,9 @@ impl WeightInfo for () {
fn external_propose() -> Weight {
// Proof Size summary in bytes:
// Measured: `3416`
// Estimated: `8320`
// Minimum execution time: 14_664_000 picoseconds.
Weight::from_parts(15_064_000, 8320)
// Estimated: `6703`
// Minimum execution time: 14_946_000 picoseconds.
Weight::from_parts(15_114_000, 6703)
.saturating_add(RocksDbWeight::get().reads(2_u64))
.saturating_add(RocksDbWeight::get().writes(1_u64))
}
@@ -640,8 +651,8 @@ impl WeightInfo for () {
// Proof Size summary in bytes:
// Measured: `0`
// Estimated: `0`
// Minimum execution time: 4_073_000 picoseconds.
Weight::from_parts(4_242_000, 0)
// Minimum execution time: 3_870_000 picoseconds.
Weight::from_parts(4_083_000, 0)
.saturating_add(RocksDbWeight::get().writes(1_u64))
}
/// Storage: Democracy NextExternal (r:0 w:1)
@@ -650,8 +661,8 @@ impl WeightInfo for () {
// Proof Size summary in bytes:
// Measured: `0`
// Estimated: `0`
// Minimum execution time: 3_779_000 picoseconds.
Weight::from_parts(4_091_000, 0)
// Minimum execution time: 3_989_000 picoseconds.
Weight::from_parts(4_166_000, 0)
.saturating_add(RocksDbWeight::get().writes(1_u64))
}
/// Storage: Democracy NextExternal (r:1 w:1)
@@ -665,9 +676,9 @@ impl WeightInfo for () {
fn fast_track() -> Weight {
// Proof Size summary in bytes:
// Measured: `286`
// Estimated: `6624`
// Minimum execution time: 29_596_000 picoseconds.
Weight::from_parts(30_083_000, 6624)
// Estimated: `3518`
// Minimum execution time: 29_776_000 picoseconds.
Weight::from_parts(30_186_000, 3518)
.saturating_add(RocksDbWeight::get().reads(3_u64))
.saturating_add(RocksDbWeight::get().writes(5_u64))
}
@@ -680,9 +691,9 @@ impl WeightInfo for () {
fn veto_external() -> Weight {
// Proof Size summary in bytes:
// Measured: `3519`
// Estimated: `11838`
// Minimum execution time: 34_721_000 picoseconds.
Weight::from_parts(34_989_000, 11838)
// Estimated: `6703`
// Minimum execution time: 33_891_000 picoseconds.
Weight::from_parts(34_265_000, 6703)
.saturating_add(RocksDbWeight::get().reads(3_u64))
.saturating_add(RocksDbWeight::get().writes(3_u64))
}
@@ -697,9 +708,9 @@ impl WeightInfo for () {
fn cancel_proposal() -> Weight {
// Proof Size summary in bytes:
// Measured: `5821`
// Estimated: `31993`
// Minimum execution time: 74_835_000 picoseconds.
Weight::from_parts(75_807_000, 31993)
// Estimated: `18187`
// Minimum execution time: 81_510_000 picoseconds.
Weight::from_parts(82_483_000, 18187)
.saturating_add(RocksDbWeight::get().reads(4_u64))
.saturating_add(RocksDbWeight::get().writes(4_u64))
}
@@ -711,8 +722,8 @@ impl WeightInfo for () {
// Proof Size summary in bytes:
// Measured: `271`
// Estimated: `3518`
// Minimum execution time: 20_995_000 picoseconds.
Weight::from_parts(21_425_000, 3518)
// Minimum execution time: 21_164_000 picoseconds.
Weight::from_parts(21_624_000, 3518)
.saturating_add(RocksDbWeight::get().reads(1_u64))
.saturating_add(RocksDbWeight::get().writes(2_u64))
}
@@ -726,11 +737,11 @@ impl WeightInfo for () {
fn on_initialize_base(r: u32, ) -> Weight {
// Proof Size summary in bytes:
// Measured: `244 + r * (86 ±0)`
// Estimated: `3968 + r * (2676 ±0)`
// Minimum execution time: 7_002_000 picoseconds.
Weight::from_parts(10_543_534, 3968)
// Standard Error: 7_286
.saturating_add(Weight::from_parts(2_911_122, 0).saturating_mul(r.into()))
// Estimated: `1489 + r * (2676 ±0)`
// Minimum execution time: 6_925_000 picoseconds.
Weight::from_parts(10_624_198, 1489)
// Standard Error: 5_780
.saturating_add(Weight::from_parts(2_934_169, 0).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(1_u64))
@@ -752,11 +763,11 @@ impl WeightInfo for () {
fn on_initialize_base_with_launch_period(r: u32, ) -> Weight {
// Proof Size summary in bytes:
// Measured: `244 + r * (86 ±0)`
// Estimated: `25258 + r * (2676 ±0)`
// Minimum execution time: 10_824_000 picoseconds.
Weight::from_parts(14_187_527, 25258)
// Standard Error: 7_148
.saturating_add(Weight::from_parts(2_886_910, 0).saturating_mul(r.into()))
// Estimated: `18187 + r * (2676 ±0)`
// Minimum execution time: 10_551_000 picoseconds.
Weight::from_parts(13_126_123, 18187)
// Standard Error: 6_391
.saturating_add(Weight::from_parts(2_952_789, 0).saturating_mul(r.into()))
.saturating_add(RocksDbWeight::get().reads(5_u64))
.saturating_add(RocksDbWeight::get().reads((1_u64).saturating_mul(r.into())))
.saturating_add(RocksDbWeight::get().writes(1_u64))
@@ -768,16 +779,18 @@ impl WeightInfo for () {
/// Proof: Democracy ReferendumInfoOf (max_values: None, max_size: Some(201), added: 2676, 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 `r` is `[0, 99]`.
fn delegate(r: u32, ) -> Weight {
// Proof Size summary in bytes:
// Measured: `830 + r * (108 ±0)`
// Estimated: `25554 + r * (2676 ±0)`
// Minimum execution time: 42_940_000 picoseconds.
Weight::from_parts(45_288_082, 25554)
// Standard Error: 6_380
.saturating_add(Weight::from_parts(4_219_163, 0).saturating_mul(r.into()))
.saturating_add(RocksDbWeight::get().reads(4_u64))
// Estimated: `19800 + r * (2676 ±0)`
// Minimum execution time: 47_172_000 picoseconds.
Weight::from_parts(49_667_954, 19800)
// Standard Error: 6_129
.saturating_add(Weight::from_parts(4_230_402, 0).saturating_mul(r.into()))
.saturating_add(RocksDbWeight::get().reads(5_u64))
.saturating_add(RocksDbWeight::get().reads((1_u64).saturating_mul(r.into())))
.saturating_add(RocksDbWeight::get().writes(4_u64))
.saturating_add(RocksDbWeight::get().writes((1_u64).saturating_mul(r.into())))
@@ -791,11 +804,11 @@ impl WeightInfo for () {
fn undelegate(r: u32, ) -> Weight {
// Proof Size summary in bytes:
// Measured: `493 + r * (108 ±0)`
// Estimated: `14520 + r * (2676 ±0)`
// Minimum execution time: 22_203_000 picoseconds.
Weight::from_parts(22_307_372, 14520)
// Standard Error: 7_095
.saturating_add(Weight::from_parts(4_202_995, 0).saturating_mul(r.into()))
// Estimated: `13530 + r * (2676 ±0)`
// Minimum execution time: 22_360_000 picoseconds.
Weight::from_parts(25_063_237, 13530)
// Standard Error: 5_326
.saturating_add(Weight::from_parts(4_163_683, 0).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(2_u64))
@@ -808,44 +821,48 @@ impl WeightInfo for () {
// Proof Size summary in bytes:
// Measured: `0`
// Estimated: `0`
// Minimum execution time: 4_046_000 picoseconds.
Weight::from_parts(4_191_000, 0)
// Minimum execution time: 4_047_000 picoseconds.
Weight::from_parts(4_139_000, 0)
.saturating_add(RocksDbWeight::get().writes(1_u64))
}
/// Storage: Democracy VotingOf (r:1 w:1)
/// Proof: Democracy VotingOf (max_values: None, max_size: Some(3795), added: 6270, 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)
/// The range of component `r` is `[0, 99]`.
fn unlock_remove(r: u32, ) -> Weight {
// Proof Size summary in bytes:
// Measured: `563`
// Estimated: `15617`
// Minimum execution time: 22_585_000 picoseconds.
Weight::from_parts(28_461_437, 15617)
// Standard Error: 1_636
.saturating_add(Weight::from_parts(19_140, 0).saturating_mul(r.into()))
.saturating_add(RocksDbWeight::get().reads(3_u64))
// Estimated: `7260`
// Minimum execution time: 27_322_000 picoseconds.
Weight::from_parts(39_909_589, 7260)
// Standard Error: 2_758
.saturating_add(Weight::from_parts(29_497, 0).saturating_mul(r.into()))
.saturating_add(RocksDbWeight::get().reads(4_u64))
.saturating_add(RocksDbWeight::get().writes(3_u64))
}
/// Storage: Democracy VotingOf (r:1 w:1)
/// Proof: Democracy VotingOf (max_values: None, max_size: Some(3795), added: 6270, 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)
/// The range of component `r` is `[0, 99]`.
fn unlock_set(r: u32, ) -> Weight {
// Proof Size summary in bytes:
// Measured: `564 + r * (22 ±0)`
// Estimated: `15617`
// Minimum execution time: 26_674_000 picoseconds.
Weight::from_parts(27_815_260, 15617)
// Standard Error: 490
.saturating_add(Weight::from_parts(68_478, 0).saturating_mul(r.into()))
.saturating_add(RocksDbWeight::get().reads(3_u64))
// Estimated: `7260`
// Minimum execution time: 37_082_000 picoseconds.
Weight::from_parts(38_580_061, 7260)
// Standard Error: 664
.saturating_add(Weight::from_parts(62_401, 0).saturating_mul(r.into()))
.saturating_add(RocksDbWeight::get().reads(4_u64))
.saturating_add(RocksDbWeight::get().writes(3_u64))
}
/// Storage: Democracy ReferendumInfoOf (r:1 w:1)
@@ -856,11 +873,11 @@ impl WeightInfo for () {
fn remove_vote(r: u32, ) -> Weight {
// Proof Size summary in bytes:
// Measured: `728 + r * (26 ±0)`
// Estimated: `10926`
// Minimum execution time: 17_381_000 picoseconds.
Weight::from_parts(19_728_665, 10926)
// Standard Error: 1_065
.saturating_add(Weight::from_parts(84_481, 0).saturating_mul(r.into()))
// Estimated: `7260`
// Minimum execution time: 17_528_000 picoseconds.
Weight::from_parts(20_075_412, 7260)
// Standard Error: 1_072
.saturating_add(Weight::from_parts(81_734, 0).saturating_mul(r.into()))
.saturating_add(RocksDbWeight::get().reads(2_u64))
.saturating_add(RocksDbWeight::get().writes(2_u64))
}
@@ -872,11 +889,11 @@ impl WeightInfo for () {
fn remove_other_vote(r: u32, ) -> Weight {
// Proof Size summary in bytes:
// Measured: `728 + r * (26 ±0)`
// Estimated: `10926`
// Minimum execution time: 17_496_000 picoseconds.
Weight::from_parts(19_845_941, 10926)
// Standard Error: 1_169
.saturating_add(Weight::from_parts(85_004, 0).saturating_mul(r.into()))
// Estimated: `7260`
// Minimum execution time: 17_517_000 picoseconds.
Weight::from_parts(20_090_718, 7260)
// Standard Error: 1_105
.saturating_add(Weight::from_parts(82_651, 0).saturating_mul(r.into()))
.saturating_add(RocksDbWeight::get().reads(2_u64))
.saturating_add(RocksDbWeight::get().writes(2_u64))
}
@@ -889,9 +906,9 @@ impl WeightInfo for () {
fn set_external_metadata() -> Weight {
// Proof Size summary in bytes:
// Measured: `356`
// Estimated: `5173`
// Minimum execution time: 19_076_000 picoseconds.
Weight::from_parts(19_650_000, 5173)
// Estimated: `3556`
// Minimum execution time: 19_234_000 picoseconds.
Weight::from_parts(19_755_000, 3556)
.saturating_add(RocksDbWeight::get().reads(2_u64))
.saturating_add(RocksDbWeight::get().writes(1_u64))
}
@@ -902,9 +919,9 @@ impl WeightInfo for () {
fn clear_external_metadata() -> Weight {
// Proof Size summary in bytes:
// Measured: `286`
// Estimated: `5135`
// Minimum execution time: 17_588_000 picoseconds.
Weight::from_parts(17_781_000, 5135)
// Estimated: `3518`
// Minimum execution time: 17_621_000 picoseconds.
Weight::from_parts(17_861_000, 3518)
.saturating_add(RocksDbWeight::get().reads(2_u64))
.saturating_add(RocksDbWeight::get().writes(1_u64))
}
@@ -917,9 +934,9 @@ impl WeightInfo for () {
fn set_proposal_metadata() -> Weight {
// Proof Size summary in bytes:
// Measured: `4888`
// Estimated: `21743`
// Minimum execution time: 34_828_000 picoseconds.
Weight::from_parts(35_364_000, 21743)
// Estimated: `18187`
// Minimum execution time: 35_785_000 picoseconds.
Weight::from_parts(36_102_000, 18187)
.saturating_add(RocksDbWeight::get().reads(2_u64))
.saturating_add(RocksDbWeight::get().writes(1_u64))
}
@@ -930,9 +947,9 @@ impl WeightInfo for () {
fn clear_proposal_metadata() -> Weight {
// Proof Size summary in bytes:
// Measured: `4822`
// Estimated: `21705`
// Minimum execution time: 32_035_000 picoseconds.
Weight::from_parts(32_554_000, 21705)
// Estimated: `18187`
// Minimum execution time: 33_493_000 picoseconds.
Weight::from_parts(33_747_000, 18187)
.saturating_add(RocksDbWeight::get().reads(2_u64))
.saturating_add(RocksDbWeight::get().writes(1_u64))
}
@@ -944,8 +961,8 @@ impl WeightInfo for () {
// Proof Size summary in bytes:
// Measured: `144`
// Estimated: `3556`
// Minimum execution time: 15_279_000 picoseconds.
Weight::from_parts(15_556_000, 3556)
// Minimum execution time: 15_557_000 picoseconds.
Weight::from_parts(15_844_000, 3556)
.saturating_add(RocksDbWeight::get().reads(1_u64))
.saturating_add(RocksDbWeight::get().writes(1_u64))
}
@@ -956,9 +973,9 @@ impl WeightInfo for () {
fn clear_referendum_metadata() -> Weight {
// Proof Size summary in bytes:
// Measured: `302`
// Estimated: `7184`
// Minimum execution time: 19_622_000 picoseconds.
Weight::from_parts(19_978_000, 7184)
// Estimated: `3666`
// Minimum execution time: 19_940_000 picoseconds.
Weight::from_parts(20_301_000, 3666)
.saturating_add(RocksDbWeight::get().reads(2_u64))
.saturating_add(RocksDbWeight::get().writes(1_u64))
}