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
+42 -45
View File
@@ -18,9 +18,9 @@
//! Autogenerated weights for frame_system
//!
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
//! DATE: 2023-03-15, 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=frame_system
// --no-storage-info
// --no-median-slopes
// --no-min-squares
// --extrinsic=*
// --execution=wasm
// --wasm-execution=compiled
@@ -67,20 +64,20 @@ impl<T: crate::Config> WeightInfo for SubstrateWeight<T> {
// Proof Size summary in bytes:
// Measured: `0`
// Estimated: `0`
// Minimum execution time: 2_519_000 picoseconds.
Weight::from_parts(2_576_000, 0)
// Minimum execution time: 2_430_000 picoseconds.
Weight::from_parts(2_522_000, 0)
// Standard Error: 0
.saturating_add(Weight::from_parts(365, 0).saturating_mul(b.into()))
.saturating_add(Weight::from_parts(362, 0).saturating_mul(b.into()))
}
/// The range of component `b` is `[0, 3932160]`.
fn remark_with_event(b: u32, ) -> Weight {
// Proof Size summary in bytes:
// Measured: `0`
// Estimated: `0`
// Minimum execution time: 8_687_000 picoseconds.
Weight::from_parts(8_875_000, 0)
// Minimum execution time: 8_738_000 picoseconds.
Weight::from_parts(8_963_000, 0)
// Standard Error: 0
.saturating_add(Weight::from_parts(1_121, 0).saturating_mul(b.into()))
.saturating_add(Weight::from_parts(1_113, 0).saturating_mul(b.into()))
}
/// Storage: System Digest (r:1 w:1)
/// Proof Skipped: System Digest (max_values: Some(1), max_size: None, mode: Measured)
@@ -90,8 +87,8 @@ impl<T: crate::Config> WeightInfo for SubstrateWeight<T> {
// Proof Size summary in bytes:
// Measured: `0`
// Estimated: `1485`
// Minimum execution time: 5_281_000 picoseconds.
Weight::from_parts(5_383_000, 1485)
// Minimum execution time: 5_109_000 picoseconds.
Weight::from_parts(5_336_000, 1485)
.saturating_add(T::DbWeight::get().reads(1_u64))
.saturating_add(T::DbWeight::get().writes(2_u64))
}
@@ -102,10 +99,10 @@ impl<T: crate::Config> WeightInfo for SubstrateWeight<T> {
// Proof Size summary in bytes:
// Measured: `0`
// Estimated: `0`
// Minimum execution time: 2_346_000 picoseconds.
Weight::from_parts(2_491_000, 0)
// Standard Error: 815
.saturating_add(Weight::from_parts(731_217, 0).saturating_mul(i.into()))
// Minimum execution time: 2_531_000 picoseconds.
Weight::from_parts(2_617_000, 0)
// Standard Error: 861
.saturating_add(Weight::from_parts(761_465, 0).saturating_mul(i.into()))
.saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(i.into())))
}
/// Storage: Skipped Metadata (r:0 w:0)
@@ -115,10 +112,10 @@ impl<T: crate::Config> WeightInfo for SubstrateWeight<T> {
// Proof Size summary in bytes:
// Measured: `0`
// Estimated: `0`
// Minimum execution time: 2_394_000 picoseconds.
Weight::from_parts(2_567_000, 0)
// Standard Error: 935
.saturating_add(Weight::from_parts(554_023, 0).saturating_mul(i.into()))
// Minimum execution time: 2_631_000 picoseconds.
Weight::from_parts(2_717_000, 0)
// Standard Error: 1_097
.saturating_add(Weight::from_parts(570_803, 0).saturating_mul(i.into()))
.saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(i.into())))
}
/// Storage: Skipped Metadata (r:0 w:0)
@@ -128,10 +125,10 @@ impl<T: crate::Config> WeightInfo for SubstrateWeight<T> {
// Proof Size summary in bytes:
// Measured: `116 + p * (69 ±0)`
// Estimated: `121 + p * (70 ±0)`
// Minimum execution time: 4_706_000 picoseconds.
Weight::from_parts(4_858_000, 121)
// Standard Error: 1_291
.saturating_add(Weight::from_parts(1_142_198, 0).saturating_mul(p.into()))
// Minimum execution time: 4_692_000 picoseconds.
Weight::from_parts(4_789_000, 121)
// Standard Error: 1_013
.saturating_add(Weight::from_parts(1_143_616, 0).saturating_mul(p.into()))
.saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(p.into())))
.saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(p.into())))
.saturating_add(Weight::from_parts(0, 70).saturating_mul(p.into()))
@@ -145,20 +142,20 @@ impl WeightInfo for () {
// Proof Size summary in bytes:
// Measured: `0`
// Estimated: `0`
// Minimum execution time: 2_519_000 picoseconds.
Weight::from_parts(2_576_000, 0)
// Minimum execution time: 2_430_000 picoseconds.
Weight::from_parts(2_522_000, 0)
// Standard Error: 0
.saturating_add(Weight::from_parts(365, 0).saturating_mul(b.into()))
.saturating_add(Weight::from_parts(362, 0).saturating_mul(b.into()))
}
/// The range of component `b` is `[0, 3932160]`.
fn remark_with_event(b: u32, ) -> Weight {
// Proof Size summary in bytes:
// Measured: `0`
// Estimated: `0`
// Minimum execution time: 8_687_000 picoseconds.
Weight::from_parts(8_875_000, 0)
// Minimum execution time: 8_738_000 picoseconds.
Weight::from_parts(8_963_000, 0)
// Standard Error: 0
.saturating_add(Weight::from_parts(1_121, 0).saturating_mul(b.into()))
.saturating_add(Weight::from_parts(1_113, 0).saturating_mul(b.into()))
}
/// Storage: System Digest (r:1 w:1)
/// Proof Skipped: System Digest (max_values: Some(1), max_size: None, mode: Measured)
@@ -168,8 +165,8 @@ impl WeightInfo for () {
// Proof Size summary in bytes:
// Measured: `0`
// Estimated: `1485`
// Minimum execution time: 5_281_000 picoseconds.
Weight::from_parts(5_383_000, 1485)
// Minimum execution time: 5_109_000 picoseconds.
Weight::from_parts(5_336_000, 1485)
.saturating_add(RocksDbWeight::get().reads(1_u64))
.saturating_add(RocksDbWeight::get().writes(2_u64))
}
@@ -180,10 +177,10 @@ impl WeightInfo for () {
// Proof Size summary in bytes:
// Measured: `0`
// Estimated: `0`
// Minimum execution time: 2_346_000 picoseconds.
Weight::from_parts(2_491_000, 0)
// Standard Error: 815
.saturating_add(Weight::from_parts(731_217, 0).saturating_mul(i.into()))
// Minimum execution time: 2_531_000 picoseconds.
Weight::from_parts(2_617_000, 0)
// Standard Error: 861
.saturating_add(Weight::from_parts(761_465, 0).saturating_mul(i.into()))
.saturating_add(RocksDbWeight::get().writes((1_u64).saturating_mul(i.into())))
}
/// Storage: Skipped Metadata (r:0 w:0)
@@ -193,10 +190,10 @@ impl WeightInfo for () {
// Proof Size summary in bytes:
// Measured: `0`
// Estimated: `0`
// Minimum execution time: 2_394_000 picoseconds.
Weight::from_parts(2_567_000, 0)
// Standard Error: 935
.saturating_add(Weight::from_parts(554_023, 0).saturating_mul(i.into()))
// Minimum execution time: 2_631_000 picoseconds.
Weight::from_parts(2_717_000, 0)
// Standard Error: 1_097
.saturating_add(Weight::from_parts(570_803, 0).saturating_mul(i.into()))
.saturating_add(RocksDbWeight::get().writes((1_u64).saturating_mul(i.into())))
}
/// Storage: Skipped Metadata (r:0 w:0)
@@ -206,10 +203,10 @@ impl WeightInfo for () {
// Proof Size summary in bytes:
// Measured: `116 + p * (69 ±0)`
// Estimated: `121 + p * (70 ±0)`
// Minimum execution time: 4_706_000 picoseconds.
Weight::from_parts(4_858_000, 121)
// Standard Error: 1_291
.saturating_add(Weight::from_parts(1_142_198, 0).saturating_mul(p.into()))
// Minimum execution time: 4_692_000 picoseconds.
Weight::from_parts(4_789_000, 121)
// Standard Error: 1_013
.saturating_add(Weight::from_parts(1_143_616, 0).saturating_mul(p.into()))
.saturating_add(RocksDbWeight::get().reads((1_u64).saturating_mul(p.into())))
.saturating_add(RocksDbWeight::get().writes((1_u64).saturating_mul(p.into())))
.saturating_add(Weight::from_parts(0, 70).saturating_mul(p.into()))