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
+36 -39
View File
@@ -18,9 +18,9 @@
//! Autogenerated weights for pallet_state_trie_migration
//!
//! 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_state_trie_migration
// --no-storage-info
// --no-median-slopes
// --no-min-squares
// --extrinsic=*
// --execution=wasm
// --wasm-execution=compiled
@@ -70,9 +67,9 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
fn continue_migrate() -> Weight {
// Proof Size summary in bytes:
// Measured: `108`
// Estimated: `4020`
// Minimum execution time: 15_449_000 picoseconds.
Weight::from_parts(16_040_000, 4020)
// Estimated: `2527`
// Minimum execution time: 17_385_000 picoseconds.
Weight::from_parts(17_766_000, 2527)
.saturating_add(T::DbWeight::get().reads(2_u64))
.saturating_add(T::DbWeight::get().writes(1_u64))
}
@@ -82,16 +79,16 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
// Proof Size summary in bytes:
// Measured: `76`
// Estimated: `1493`
// Minimum execution time: 4_632_000 picoseconds.
Weight::from_parts(4_768_000, 1493)
// Minimum execution time: 4_537_000 picoseconds.
Weight::from_parts(4_734_000, 1493)
.saturating_add(T::DbWeight::get().reads(1_u64))
}
fn migrate_custom_top_success() -> Weight {
// Proof Size summary in bytes:
// Measured: `0`
// Estimated: `0`
// Minimum execution time: 9_596_000 picoseconds.
Weight::from_parts(9_866_000, 0)
// Minimum execution time: 10_127_000 picoseconds.
Weight::from_parts(10_384_000, 0)
}
/// Storage: unknown `0x666f6f` (r:1 w:1)
/// Proof Skipped: unknown `0x666f6f` (r:1 w:1)
@@ -99,8 +96,8 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
// Proof Size summary in bytes:
// Measured: `113`
// Estimated: `3578`
// Minimum execution time: 27_352_000 picoseconds.
Weight::from_parts(28_089_000, 3578)
// Minimum execution time: 31_113_000 picoseconds.
Weight::from_parts(31_833_000, 3578)
.saturating_add(T::DbWeight::get().reads(1_u64))
.saturating_add(T::DbWeight::get().writes(1_u64))
}
@@ -108,8 +105,8 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
// Proof Size summary in bytes:
// Measured: `0`
// Estimated: `0`
// Minimum execution time: 10_286_000 picoseconds.
Weight::from_parts(10_761_000, 0)
// Minimum execution time: 10_445_000 picoseconds.
Weight::from_parts(10_726_000, 0)
}
/// Storage: unknown `0x666f6f` (r:1 w:1)
/// Proof Skipped: unknown `0x666f6f` (r:1 w:1)
@@ -117,8 +114,8 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
// Proof Size summary in bytes:
// Measured: `105`
// Estimated: `3570`
// Minimum execution time: 27_355_000 picoseconds.
Weight::from_parts(28_092_000, 3570)
// Minimum execution time: 31_795_000 picoseconds.
Weight::from_parts(32_737_000, 3570)
.saturating_add(T::DbWeight::get().reads(1_u64))
.saturating_add(T::DbWeight::get().writes(1_u64))
}
@@ -129,10 +126,10 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
// Proof Size summary in bytes:
// Measured: `197 + v * (1 ±0)`
// Estimated: `3662 + v * (1 ±0)`
// Minimum execution time: 6_004_000 picoseconds.
Weight::from_parts(6_188_000, 3662)
// Standard Error: 1
.saturating_add(Weight::from_parts(1_073, 0).saturating_mul(v.into()))
// Minimum execution time: 5_933_000 picoseconds.
Weight::from_parts(6_040_000, 3662)
// Standard Error: 3
.saturating_add(Weight::from_parts(1_336, 0).saturating_mul(v.into()))
.saturating_add(T::DbWeight::get().reads(1_u64))
.saturating_add(T::DbWeight::get().writes(1_u64))
.saturating_add(Weight::from_parts(0, 1).saturating_mul(v.into()))
@@ -148,9 +145,9 @@ impl WeightInfo for () {
fn continue_migrate() -> Weight {
// Proof Size summary in bytes:
// Measured: `108`
// Estimated: `4020`
// Minimum execution time: 15_449_000 picoseconds.
Weight::from_parts(16_040_000, 4020)
// Estimated: `2527`
// Minimum execution time: 17_385_000 picoseconds.
Weight::from_parts(17_766_000, 2527)
.saturating_add(RocksDbWeight::get().reads(2_u64))
.saturating_add(RocksDbWeight::get().writes(1_u64))
}
@@ -160,16 +157,16 @@ impl WeightInfo for () {
// Proof Size summary in bytes:
// Measured: `76`
// Estimated: `1493`
// Minimum execution time: 4_632_000 picoseconds.
Weight::from_parts(4_768_000, 1493)
// Minimum execution time: 4_537_000 picoseconds.
Weight::from_parts(4_734_000, 1493)
.saturating_add(RocksDbWeight::get().reads(1_u64))
}
fn migrate_custom_top_success() -> Weight {
// Proof Size summary in bytes:
// Measured: `0`
// Estimated: `0`
// Minimum execution time: 9_596_000 picoseconds.
Weight::from_parts(9_866_000, 0)
// Minimum execution time: 10_127_000 picoseconds.
Weight::from_parts(10_384_000, 0)
}
/// Storage: unknown `0x666f6f` (r:1 w:1)
/// Proof Skipped: unknown `0x666f6f` (r:1 w:1)
@@ -177,8 +174,8 @@ impl WeightInfo for () {
// Proof Size summary in bytes:
// Measured: `113`
// Estimated: `3578`
// Minimum execution time: 27_352_000 picoseconds.
Weight::from_parts(28_089_000, 3578)
// Minimum execution time: 31_113_000 picoseconds.
Weight::from_parts(31_833_000, 3578)
.saturating_add(RocksDbWeight::get().reads(1_u64))
.saturating_add(RocksDbWeight::get().writes(1_u64))
}
@@ -186,8 +183,8 @@ impl WeightInfo for () {
// Proof Size summary in bytes:
// Measured: `0`
// Estimated: `0`
// Minimum execution time: 10_286_000 picoseconds.
Weight::from_parts(10_761_000, 0)
// Minimum execution time: 10_445_000 picoseconds.
Weight::from_parts(10_726_000, 0)
}
/// Storage: unknown `0x666f6f` (r:1 w:1)
/// Proof Skipped: unknown `0x666f6f` (r:1 w:1)
@@ -195,8 +192,8 @@ impl WeightInfo for () {
// Proof Size summary in bytes:
// Measured: `105`
// Estimated: `3570`
// Minimum execution time: 27_355_000 picoseconds.
Weight::from_parts(28_092_000, 3570)
// Minimum execution time: 31_795_000 picoseconds.
Weight::from_parts(32_737_000, 3570)
.saturating_add(RocksDbWeight::get().reads(1_u64))
.saturating_add(RocksDbWeight::get().writes(1_u64))
}
@@ -207,10 +204,10 @@ impl WeightInfo for () {
// Proof Size summary in bytes:
// Measured: `197 + v * (1 ±0)`
// Estimated: `3662 + v * (1 ±0)`
// Minimum execution time: 6_004_000 picoseconds.
Weight::from_parts(6_188_000, 3662)
// Standard Error: 1
.saturating_add(Weight::from_parts(1_073, 0).saturating_mul(v.into()))
// Minimum execution time: 5_933_000 picoseconds.
Weight::from_parts(6_040_000, 3662)
// Standard Error: 3
.saturating_add(Weight::from_parts(1_336, 0).saturating_mul(v.into()))
.saturating_add(RocksDbWeight::get().reads(1_u64))
.saturating_add(RocksDbWeight::get().writes(1_u64))
.saturating_add(Weight::from_parts(0, 1).saturating_mul(v.into()))