mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-13 07:01:05 +00:00
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:
committed by
GitHub
parent
46e2d3e5f8
commit
ebfe00d590
+78
-85
@@ -18,9 +18,9 @@
|
||||
//! Autogenerated weights for pallet_membership
|
||||
//!
|
||||
//! 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_membership
|
||||
// --no-storage-info
|
||||
// --no-median-slopes
|
||||
// --no-min-squares
|
||||
// --extrinsic=*
|
||||
// --execution=wasm
|
||||
// --wasm-execution=compiled
|
||||
@@ -75,14 +72,14 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
||||
fn add_member(m: u32, ) -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `174 + m * (64 ±0)`
|
||||
// Estimated: `6691 + m * (192 ±0)`
|
||||
// Minimum execution time: 17_587_000 picoseconds.
|
||||
Weight::from_parts(18_658_163, 6691)
|
||||
// Standard Error: 710
|
||||
.saturating_add(Weight::from_parts(46_294, 0).saturating_mul(m.into()))
|
||||
// Estimated: `4687 + m * (64 ±0)`
|
||||
// Minimum execution time: 18_264_000 picoseconds.
|
||||
Weight::from_parts(19_343_697, 4687)
|
||||
// Standard Error: 699
|
||||
.saturating_add(Weight::from_parts(44_401, 0).saturating_mul(m.into()))
|
||||
.saturating_add(T::DbWeight::get().reads(2_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(3_u64))
|
||||
.saturating_add(Weight::from_parts(0, 192).saturating_mul(m.into()))
|
||||
.saturating_add(Weight::from_parts(0, 64).saturating_mul(m.into()))
|
||||
}
|
||||
/// Storage: TechnicalMembership Members (r:1 w:1)
|
||||
/// Proof: TechnicalMembership Members (max_values: Some(1), max_size: Some(3202), added: 3697, mode: MaxEncodedLen)
|
||||
@@ -98,14 +95,14 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
||||
fn remove_member(m: u32, ) -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `278 + m * (64 ±0)`
|
||||
// Estimated: `8520 + m * (192 ±0)`
|
||||
// Minimum execution time: 20_402_000 picoseconds.
|
||||
Weight::from_parts(21_165_819, 8520)
|
||||
// Standard Error: 643
|
||||
.saturating_add(Weight::from_parts(45_481, 0).saturating_mul(m.into()))
|
||||
// Estimated: `4687 + m * (64 ±0)`
|
||||
// Minimum execution time: 21_092_000 picoseconds.
|
||||
Weight::from_parts(22_140_391, 4687)
|
||||
// Standard Error: 545
|
||||
.saturating_add(Weight::from_parts(40_638, 0).saturating_mul(m.into()))
|
||||
.saturating_add(T::DbWeight::get().reads(3_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(3_u64))
|
||||
.saturating_add(Weight::from_parts(0, 192).saturating_mul(m.into()))
|
||||
.saturating_add(Weight::from_parts(0, 64).saturating_mul(m.into()))
|
||||
}
|
||||
/// Storage: TechnicalMembership Members (r:1 w:1)
|
||||
/// Proof: TechnicalMembership Members (max_values: Some(1), max_size: Some(3202), added: 3697, mode: MaxEncodedLen)
|
||||
@@ -121,14 +118,14 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
||||
fn swap_member(m: u32, ) -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `278 + m * (64 ±0)`
|
||||
// Estimated: `8520 + m * (192 ±0)`
|
||||
// Minimum execution time: 20_380_000 picoseconds.
|
||||
Weight::from_parts(21_633_260, 8520)
|
||||
// Standard Error: 770
|
||||
.saturating_add(Weight::from_parts(55_504, 0).saturating_mul(m.into()))
|
||||
// Estimated: `4687 + m * (64 ±0)`
|
||||
// Minimum execution time: 21_002_000 picoseconds.
|
||||
Weight::from_parts(22_364_944, 4687)
|
||||
// Standard Error: 752
|
||||
.saturating_add(Weight::from_parts(54_363, 0).saturating_mul(m.into()))
|
||||
.saturating_add(T::DbWeight::get().reads(3_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(3_u64))
|
||||
.saturating_add(Weight::from_parts(0, 192).saturating_mul(m.into()))
|
||||
.saturating_add(Weight::from_parts(0, 64).saturating_mul(m.into()))
|
||||
}
|
||||
/// Storage: TechnicalMembership Members (r:1 w:1)
|
||||
/// Proof: TechnicalMembership Members (max_values: Some(1), max_size: Some(3202), added: 3697, mode: MaxEncodedLen)
|
||||
@@ -144,14 +141,14 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
||||
fn reset_member(m: u32, ) -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `278 + m * (64 ±0)`
|
||||
// Estimated: `8520 + m * (192 ±0)`
|
||||
// Minimum execution time: 19_989_000 picoseconds.
|
||||
Weight::from_parts(22_352_059, 8520)
|
||||
// Standard Error: 2_878
|
||||
.saturating_add(Weight::from_parts(156_367, 0).saturating_mul(m.into()))
|
||||
// Estimated: `4687 + m * (64 ±0)`
|
||||
// Minimum execution time: 20_443_000 picoseconds.
|
||||
Weight::from_parts(22_188_301, 4687)
|
||||
// Standard Error: 945
|
||||
.saturating_add(Weight::from_parts(162_799, 0).saturating_mul(m.into()))
|
||||
.saturating_add(T::DbWeight::get().reads(3_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(3_u64))
|
||||
.saturating_add(Weight::from_parts(0, 192).saturating_mul(m.into()))
|
||||
.saturating_add(Weight::from_parts(0, 64).saturating_mul(m.into()))
|
||||
}
|
||||
/// Storage: TechnicalMembership Members (r:1 w:1)
|
||||
/// Proof: TechnicalMembership Members (max_values: Some(1), max_size: Some(3202), added: 3697, mode: MaxEncodedLen)
|
||||
@@ -167,14 +164,14 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
||||
fn change_key(m: u32, ) -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `278 + m * (64 ±0)`
|
||||
// Estimated: `8520 + m * (192 ±0)`
|
||||
// Minimum execution time: 21_275_000 picoseconds.
|
||||
Weight::from_parts(23_344_594, 8520)
|
||||
// Standard Error: 2_750
|
||||
.saturating_add(Weight::from_parts(46_736, 0).saturating_mul(m.into()))
|
||||
// Estimated: `4687 + m * (64 ±0)`
|
||||
// Minimum execution time: 21_527_000 picoseconds.
|
||||
Weight::from_parts(23_146_706, 4687)
|
||||
// Standard Error: 724
|
||||
.saturating_add(Weight::from_parts(55_027, 0).saturating_mul(m.into()))
|
||||
.saturating_add(T::DbWeight::get().reads(3_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(4_u64))
|
||||
.saturating_add(Weight::from_parts(0, 192).saturating_mul(m.into()))
|
||||
.saturating_add(Weight::from_parts(0, 64).saturating_mul(m.into()))
|
||||
}
|
||||
/// Storage: TechnicalMembership Members (r:1 w:0)
|
||||
/// Proof: TechnicalMembership Members (max_values: Some(1), max_size: Some(3202), added: 3697, mode: MaxEncodedLen)
|
||||
@@ -186,11 +183,11 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
||||
fn set_prime(m: u32, ) -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `32 + m * (32 ±0)`
|
||||
// Estimated: `4719 + m * (32 ±0)`
|
||||
// Minimum execution time: 8_087_000 picoseconds.
|
||||
Weight::from_parts(8_909_627, 4719)
|
||||
// Standard Error: 1_572
|
||||
.saturating_add(Weight::from_parts(17_186, 0).saturating_mul(m.into()))
|
||||
// Estimated: `4687 + m * (32 ±0)`
|
||||
// Minimum execution time: 8_054_000 picoseconds.
|
||||
Weight::from_parts(8_558_341, 4687)
|
||||
// Standard Error: 360
|
||||
.saturating_add(Weight::from_parts(16_362, 0).saturating_mul(m.into()))
|
||||
.saturating_add(T::DbWeight::get().reads(1_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(2_u64))
|
||||
.saturating_add(Weight::from_parts(0, 32).saturating_mul(m.into()))
|
||||
@@ -200,14 +197,12 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
||||
/// Storage: TechnicalCommittee Prime (r:0 w:1)
|
||||
/// Proof Skipped: TechnicalCommittee Prime (max_values: Some(1), max_size: None, mode: Measured)
|
||||
/// The range of component `m` is `[1, 100]`.
|
||||
fn clear_prime(m: u32, ) -> Weight {
|
||||
fn clear_prime(_m: u32, ) -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `0`
|
||||
// Estimated: `0`
|
||||
// Minimum execution time: 3_752_000 picoseconds.
|
||||
Weight::from_parts(4_081_144, 0)
|
||||
// Standard Error: 229
|
||||
.saturating_add(Weight::from_parts(1_298, 0).saturating_mul(m.into()))
|
||||
// Minimum execution time: 3_784_000 picoseconds.
|
||||
Weight::from_parts(4_100_031, 0)
|
||||
.saturating_add(T::DbWeight::get().writes(2_u64))
|
||||
}
|
||||
}
|
||||
@@ -226,14 +221,14 @@ impl WeightInfo for () {
|
||||
fn add_member(m: u32, ) -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `174 + m * (64 ±0)`
|
||||
// Estimated: `6691 + m * (192 ±0)`
|
||||
// Minimum execution time: 17_587_000 picoseconds.
|
||||
Weight::from_parts(18_658_163, 6691)
|
||||
// Standard Error: 710
|
||||
.saturating_add(Weight::from_parts(46_294, 0).saturating_mul(m.into()))
|
||||
// Estimated: `4687 + m * (64 ±0)`
|
||||
// Minimum execution time: 18_264_000 picoseconds.
|
||||
Weight::from_parts(19_343_697, 4687)
|
||||
// Standard Error: 699
|
||||
.saturating_add(Weight::from_parts(44_401, 0).saturating_mul(m.into()))
|
||||
.saturating_add(RocksDbWeight::get().reads(2_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(3_u64))
|
||||
.saturating_add(Weight::from_parts(0, 192).saturating_mul(m.into()))
|
||||
.saturating_add(Weight::from_parts(0, 64).saturating_mul(m.into()))
|
||||
}
|
||||
/// Storage: TechnicalMembership Members (r:1 w:1)
|
||||
/// Proof: TechnicalMembership Members (max_values: Some(1), max_size: Some(3202), added: 3697, mode: MaxEncodedLen)
|
||||
@@ -249,14 +244,14 @@ impl WeightInfo for () {
|
||||
fn remove_member(m: u32, ) -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `278 + m * (64 ±0)`
|
||||
// Estimated: `8520 + m * (192 ±0)`
|
||||
// Minimum execution time: 20_402_000 picoseconds.
|
||||
Weight::from_parts(21_165_819, 8520)
|
||||
// Standard Error: 643
|
||||
.saturating_add(Weight::from_parts(45_481, 0).saturating_mul(m.into()))
|
||||
// Estimated: `4687 + m * (64 ±0)`
|
||||
// Minimum execution time: 21_092_000 picoseconds.
|
||||
Weight::from_parts(22_140_391, 4687)
|
||||
// Standard Error: 545
|
||||
.saturating_add(Weight::from_parts(40_638, 0).saturating_mul(m.into()))
|
||||
.saturating_add(RocksDbWeight::get().reads(3_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(3_u64))
|
||||
.saturating_add(Weight::from_parts(0, 192).saturating_mul(m.into()))
|
||||
.saturating_add(Weight::from_parts(0, 64).saturating_mul(m.into()))
|
||||
}
|
||||
/// Storage: TechnicalMembership Members (r:1 w:1)
|
||||
/// Proof: TechnicalMembership Members (max_values: Some(1), max_size: Some(3202), added: 3697, mode: MaxEncodedLen)
|
||||
@@ -272,14 +267,14 @@ impl WeightInfo for () {
|
||||
fn swap_member(m: u32, ) -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `278 + m * (64 ±0)`
|
||||
// Estimated: `8520 + m * (192 ±0)`
|
||||
// Minimum execution time: 20_380_000 picoseconds.
|
||||
Weight::from_parts(21_633_260, 8520)
|
||||
// Standard Error: 770
|
||||
.saturating_add(Weight::from_parts(55_504, 0).saturating_mul(m.into()))
|
||||
// Estimated: `4687 + m * (64 ±0)`
|
||||
// Minimum execution time: 21_002_000 picoseconds.
|
||||
Weight::from_parts(22_364_944, 4687)
|
||||
// Standard Error: 752
|
||||
.saturating_add(Weight::from_parts(54_363, 0).saturating_mul(m.into()))
|
||||
.saturating_add(RocksDbWeight::get().reads(3_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(3_u64))
|
||||
.saturating_add(Weight::from_parts(0, 192).saturating_mul(m.into()))
|
||||
.saturating_add(Weight::from_parts(0, 64).saturating_mul(m.into()))
|
||||
}
|
||||
/// Storage: TechnicalMembership Members (r:1 w:1)
|
||||
/// Proof: TechnicalMembership Members (max_values: Some(1), max_size: Some(3202), added: 3697, mode: MaxEncodedLen)
|
||||
@@ -295,14 +290,14 @@ impl WeightInfo for () {
|
||||
fn reset_member(m: u32, ) -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `278 + m * (64 ±0)`
|
||||
// Estimated: `8520 + m * (192 ±0)`
|
||||
// Minimum execution time: 19_989_000 picoseconds.
|
||||
Weight::from_parts(22_352_059, 8520)
|
||||
// Standard Error: 2_878
|
||||
.saturating_add(Weight::from_parts(156_367, 0).saturating_mul(m.into()))
|
||||
// Estimated: `4687 + m * (64 ±0)`
|
||||
// Minimum execution time: 20_443_000 picoseconds.
|
||||
Weight::from_parts(22_188_301, 4687)
|
||||
// Standard Error: 945
|
||||
.saturating_add(Weight::from_parts(162_799, 0).saturating_mul(m.into()))
|
||||
.saturating_add(RocksDbWeight::get().reads(3_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(3_u64))
|
||||
.saturating_add(Weight::from_parts(0, 192).saturating_mul(m.into()))
|
||||
.saturating_add(Weight::from_parts(0, 64).saturating_mul(m.into()))
|
||||
}
|
||||
/// Storage: TechnicalMembership Members (r:1 w:1)
|
||||
/// Proof: TechnicalMembership Members (max_values: Some(1), max_size: Some(3202), added: 3697, mode: MaxEncodedLen)
|
||||
@@ -318,14 +313,14 @@ impl WeightInfo for () {
|
||||
fn change_key(m: u32, ) -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `278 + m * (64 ±0)`
|
||||
// Estimated: `8520 + m * (192 ±0)`
|
||||
// Minimum execution time: 21_275_000 picoseconds.
|
||||
Weight::from_parts(23_344_594, 8520)
|
||||
// Standard Error: 2_750
|
||||
.saturating_add(Weight::from_parts(46_736, 0).saturating_mul(m.into()))
|
||||
// Estimated: `4687 + m * (64 ±0)`
|
||||
// Minimum execution time: 21_527_000 picoseconds.
|
||||
Weight::from_parts(23_146_706, 4687)
|
||||
// Standard Error: 724
|
||||
.saturating_add(Weight::from_parts(55_027, 0).saturating_mul(m.into()))
|
||||
.saturating_add(RocksDbWeight::get().reads(3_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(4_u64))
|
||||
.saturating_add(Weight::from_parts(0, 192).saturating_mul(m.into()))
|
||||
.saturating_add(Weight::from_parts(0, 64).saturating_mul(m.into()))
|
||||
}
|
||||
/// Storage: TechnicalMembership Members (r:1 w:0)
|
||||
/// Proof: TechnicalMembership Members (max_values: Some(1), max_size: Some(3202), added: 3697, mode: MaxEncodedLen)
|
||||
@@ -337,11 +332,11 @@ impl WeightInfo for () {
|
||||
fn set_prime(m: u32, ) -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `32 + m * (32 ±0)`
|
||||
// Estimated: `4719 + m * (32 ±0)`
|
||||
// Minimum execution time: 8_087_000 picoseconds.
|
||||
Weight::from_parts(8_909_627, 4719)
|
||||
// Standard Error: 1_572
|
||||
.saturating_add(Weight::from_parts(17_186, 0).saturating_mul(m.into()))
|
||||
// Estimated: `4687 + m * (32 ±0)`
|
||||
// Minimum execution time: 8_054_000 picoseconds.
|
||||
Weight::from_parts(8_558_341, 4687)
|
||||
// Standard Error: 360
|
||||
.saturating_add(Weight::from_parts(16_362, 0).saturating_mul(m.into()))
|
||||
.saturating_add(RocksDbWeight::get().reads(1_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(2_u64))
|
||||
.saturating_add(Weight::from_parts(0, 32).saturating_mul(m.into()))
|
||||
@@ -351,14 +346,12 @@ impl WeightInfo for () {
|
||||
/// Storage: TechnicalCommittee Prime (r:0 w:1)
|
||||
/// Proof Skipped: TechnicalCommittee Prime (max_values: Some(1), max_size: None, mode: Measured)
|
||||
/// The range of component `m` is `[1, 100]`.
|
||||
fn clear_prime(m: u32, ) -> Weight {
|
||||
fn clear_prime(_m: u32, ) -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `0`
|
||||
// Estimated: `0`
|
||||
// Minimum execution time: 3_752_000 picoseconds.
|
||||
Weight::from_parts(4_081_144, 0)
|
||||
// Standard Error: 229
|
||||
.saturating_add(Weight::from_parts(1_298, 0).saturating_mul(m.into()))
|
||||
// Minimum execution time: 3_784_000 picoseconds.
|
||||
Weight::from_parts(4_100_031, 0)
|
||||
.saturating_add(RocksDbWeight::get().writes(2_u64))
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user