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
+56 -59
View File
@@ -18,9 +18,9 @@
//! Autogenerated weights for pallet_preimage
//!
//! 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_preimage
// --no-storage-info
// --no-median-slopes
// --no-min-squares
// --extrinsic=*
// --execution=wasm
// --wasm-execution=compiled
@@ -77,10 +74,10 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
// Proof Size summary in bytes:
// Measured: `143`
// Estimated: `3556`
// Minimum execution time: 27_010_000 picoseconds.
Weight::from_parts(27_665_000, 3556)
// Minimum execution time: 31_578_000 picoseconds.
Weight::from_parts(31_955_000, 3556)
// Standard Error: 0
.saturating_add(Weight::from_parts(1_414, 0).saturating_mul(s.into()))
.saturating_add(Weight::from_parts(1_395, 0).saturating_mul(s.into()))
.saturating_add(T::DbWeight::get().reads(1_u64))
.saturating_add(T::DbWeight::get().writes(2_u64))
}
@@ -93,10 +90,10 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
// Proof Size summary in bytes:
// Measured: `106`
// Estimated: `3556`
// Minimum execution time: 16_984_000 picoseconds.
Weight::from_parts(17_455_000, 3556)
// Minimum execution time: 17_017_000 picoseconds.
Weight::from_parts(17_549_000, 3556)
// Standard Error: 0
.saturating_add(Weight::from_parts(1_414, 0).saturating_mul(s.into()))
.saturating_add(Weight::from_parts(1_394, 0).saturating_mul(s.into()))
.saturating_add(T::DbWeight::get().reads(1_u64))
.saturating_add(T::DbWeight::get().writes(2_u64))
}
@@ -109,10 +106,10 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
// Proof Size summary in bytes:
// Measured: `106`
// Estimated: `3556`
// Minimum execution time: 16_579_000 picoseconds.
Weight::from_parts(16_849_000, 3556)
// Minimum execution time: 16_507_000 picoseconds.
Weight::from_parts(16_624_000, 3556)
// Standard Error: 0
.saturating_add(Weight::from_parts(1_414, 0).saturating_mul(s.into()))
.saturating_add(Weight::from_parts(1_395, 0).saturating_mul(s.into()))
.saturating_add(T::DbWeight::get().reads(1_u64))
.saturating_add(T::DbWeight::get().writes(2_u64))
}
@@ -124,8 +121,8 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
// Proof Size summary in bytes:
// Measured: `289`
// Estimated: `3556`
// Minimum execution time: 33_552_000 picoseconds.
Weight::from_parts(35_134_000, 3556)
// Minimum execution time: 38_016_000 picoseconds.
Weight::from_parts(38_909_000, 3556)
.saturating_add(T::DbWeight::get().reads(1_u64))
.saturating_add(T::DbWeight::get().writes(2_u64))
}
@@ -137,8 +134,8 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
// Proof Size summary in bytes:
// Measured: `144`
// Estimated: `3556`
// Minimum execution time: 22_102_000 picoseconds.
Weight::from_parts(22_860_000, 3556)
// Minimum execution time: 21_408_000 picoseconds.
Weight::from_parts(22_343_000, 3556)
.saturating_add(T::DbWeight::get().reads(1_u64))
.saturating_add(T::DbWeight::get().writes(2_u64))
}
@@ -148,8 +145,8 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
// Proof Size summary in bytes:
// Measured: `188`
// Estimated: `3556`
// Minimum execution time: 19_590_000 picoseconds.
Weight::from_parts(20_638_000, 3556)
// Minimum execution time: 20_035_000 picoseconds.
Weight::from_parts(20_639_000, 3556)
.saturating_add(T::DbWeight::get().reads(1_u64))
.saturating_add(T::DbWeight::get().writes(1_u64))
}
@@ -159,8 +156,8 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
// Proof Size summary in bytes:
// Measured: `144`
// Estimated: `3556`
// Minimum execution time: 11_689_000 picoseconds.
Weight::from_parts(12_577_000, 3556)
// Minimum execution time: 12_028_000 picoseconds.
Weight::from_parts(12_509_000, 3556)
.saturating_add(T::DbWeight::get().reads(1_u64))
.saturating_add(T::DbWeight::get().writes(1_u64))
}
@@ -170,8 +167,8 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
// Proof Size summary in bytes:
// Measured: `42`
// Estimated: `3556`
// Minimum execution time: 13_673_000 picoseconds.
Weight::from_parts(14_210_000, 3556)
// Minimum execution time: 13_568_000 picoseconds.
Weight::from_parts(14_161_000, 3556)
.saturating_add(T::DbWeight::get().reads(1_u64))
.saturating_add(T::DbWeight::get().writes(1_u64))
}
@@ -181,8 +178,8 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
// Proof Size summary in bytes:
// Measured: `106`
// Estimated: `3556`
// Minimum execution time: 8_810_000 picoseconds.
Weight::from_parts(9_044_000, 3556)
// Minimum execution time: 8_538_000 picoseconds.
Weight::from_parts(8_933_000, 3556)
.saturating_add(T::DbWeight::get().reads(1_u64))
.saturating_add(T::DbWeight::get().writes(1_u64))
}
@@ -194,8 +191,8 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
// Proof Size summary in bytes:
// Measured: `144`
// Estimated: `3556`
// Minimum execution time: 21_236_000 picoseconds.
Weight::from_parts(21_684_000, 3556)
// Minimum execution time: 20_692_000 picoseconds.
Weight::from_parts(21_770_000, 3556)
.saturating_add(T::DbWeight::get().reads(1_u64))
.saturating_add(T::DbWeight::get().writes(2_u64))
}
@@ -205,8 +202,8 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
// Proof Size summary in bytes:
// Measured: `106`
// Estimated: `3556`
// Minimum execution time: 8_709_000 picoseconds.
Weight::from_parts(8_970_000, 3556)
// Minimum execution time: 8_572_000 picoseconds.
Weight::from_parts(8_795_000, 3556)
.saturating_add(T::DbWeight::get().reads(1_u64))
.saturating_add(T::DbWeight::get().writes(1_u64))
}
@@ -216,8 +213,8 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
// Proof Size summary in bytes:
// Measured: `106`
// Estimated: `3556`
// Minimum execution time: 8_976_000 picoseconds.
Weight::from_parts(9_164_000, 3556)
// Minimum execution time: 8_266_000 picoseconds.
Weight::from_parts(8_721_000, 3556)
.saturating_add(T::DbWeight::get().reads(1_u64))
.saturating_add(T::DbWeight::get().writes(1_u64))
}
@@ -234,10 +231,10 @@ impl WeightInfo for () {
// Proof Size summary in bytes:
// Measured: `143`
// Estimated: `3556`
// Minimum execution time: 27_010_000 picoseconds.
Weight::from_parts(27_665_000, 3556)
// Minimum execution time: 31_578_000 picoseconds.
Weight::from_parts(31_955_000, 3556)
// Standard Error: 0
.saturating_add(Weight::from_parts(1_414, 0).saturating_mul(s.into()))
.saturating_add(Weight::from_parts(1_395, 0).saturating_mul(s.into()))
.saturating_add(RocksDbWeight::get().reads(1_u64))
.saturating_add(RocksDbWeight::get().writes(2_u64))
}
@@ -250,10 +247,10 @@ impl WeightInfo for () {
// Proof Size summary in bytes:
// Measured: `106`
// Estimated: `3556`
// Minimum execution time: 16_984_000 picoseconds.
Weight::from_parts(17_455_000, 3556)
// Minimum execution time: 17_017_000 picoseconds.
Weight::from_parts(17_549_000, 3556)
// Standard Error: 0
.saturating_add(Weight::from_parts(1_414, 0).saturating_mul(s.into()))
.saturating_add(Weight::from_parts(1_394, 0).saturating_mul(s.into()))
.saturating_add(RocksDbWeight::get().reads(1_u64))
.saturating_add(RocksDbWeight::get().writes(2_u64))
}
@@ -266,10 +263,10 @@ impl WeightInfo for () {
// Proof Size summary in bytes:
// Measured: `106`
// Estimated: `3556`
// Minimum execution time: 16_579_000 picoseconds.
Weight::from_parts(16_849_000, 3556)
// Minimum execution time: 16_507_000 picoseconds.
Weight::from_parts(16_624_000, 3556)
// Standard Error: 0
.saturating_add(Weight::from_parts(1_414, 0).saturating_mul(s.into()))
.saturating_add(Weight::from_parts(1_395, 0).saturating_mul(s.into()))
.saturating_add(RocksDbWeight::get().reads(1_u64))
.saturating_add(RocksDbWeight::get().writes(2_u64))
}
@@ -281,8 +278,8 @@ impl WeightInfo for () {
// Proof Size summary in bytes:
// Measured: `289`
// Estimated: `3556`
// Minimum execution time: 33_552_000 picoseconds.
Weight::from_parts(35_134_000, 3556)
// Minimum execution time: 38_016_000 picoseconds.
Weight::from_parts(38_909_000, 3556)
.saturating_add(RocksDbWeight::get().reads(1_u64))
.saturating_add(RocksDbWeight::get().writes(2_u64))
}
@@ -294,8 +291,8 @@ impl WeightInfo for () {
// Proof Size summary in bytes:
// Measured: `144`
// Estimated: `3556`
// Minimum execution time: 22_102_000 picoseconds.
Weight::from_parts(22_860_000, 3556)
// Minimum execution time: 21_408_000 picoseconds.
Weight::from_parts(22_343_000, 3556)
.saturating_add(RocksDbWeight::get().reads(1_u64))
.saturating_add(RocksDbWeight::get().writes(2_u64))
}
@@ -305,8 +302,8 @@ impl WeightInfo for () {
// Proof Size summary in bytes:
// Measured: `188`
// Estimated: `3556`
// Minimum execution time: 19_590_000 picoseconds.
Weight::from_parts(20_638_000, 3556)
// Minimum execution time: 20_035_000 picoseconds.
Weight::from_parts(20_639_000, 3556)
.saturating_add(RocksDbWeight::get().reads(1_u64))
.saturating_add(RocksDbWeight::get().writes(1_u64))
}
@@ -316,8 +313,8 @@ impl WeightInfo for () {
// Proof Size summary in bytes:
// Measured: `144`
// Estimated: `3556`
// Minimum execution time: 11_689_000 picoseconds.
Weight::from_parts(12_577_000, 3556)
// Minimum execution time: 12_028_000 picoseconds.
Weight::from_parts(12_509_000, 3556)
.saturating_add(RocksDbWeight::get().reads(1_u64))
.saturating_add(RocksDbWeight::get().writes(1_u64))
}
@@ -327,8 +324,8 @@ impl WeightInfo for () {
// Proof Size summary in bytes:
// Measured: `42`
// Estimated: `3556`
// Minimum execution time: 13_673_000 picoseconds.
Weight::from_parts(14_210_000, 3556)
// Minimum execution time: 13_568_000 picoseconds.
Weight::from_parts(14_161_000, 3556)
.saturating_add(RocksDbWeight::get().reads(1_u64))
.saturating_add(RocksDbWeight::get().writes(1_u64))
}
@@ -338,8 +335,8 @@ impl WeightInfo for () {
// Proof Size summary in bytes:
// Measured: `106`
// Estimated: `3556`
// Minimum execution time: 8_810_000 picoseconds.
Weight::from_parts(9_044_000, 3556)
// Minimum execution time: 8_538_000 picoseconds.
Weight::from_parts(8_933_000, 3556)
.saturating_add(RocksDbWeight::get().reads(1_u64))
.saturating_add(RocksDbWeight::get().writes(1_u64))
}
@@ -351,8 +348,8 @@ impl WeightInfo for () {
// Proof Size summary in bytes:
// Measured: `144`
// Estimated: `3556`
// Minimum execution time: 21_236_000 picoseconds.
Weight::from_parts(21_684_000, 3556)
// Minimum execution time: 20_692_000 picoseconds.
Weight::from_parts(21_770_000, 3556)
.saturating_add(RocksDbWeight::get().reads(1_u64))
.saturating_add(RocksDbWeight::get().writes(2_u64))
}
@@ -362,8 +359,8 @@ impl WeightInfo for () {
// Proof Size summary in bytes:
// Measured: `106`
// Estimated: `3556`
// Minimum execution time: 8_709_000 picoseconds.
Weight::from_parts(8_970_000, 3556)
// Minimum execution time: 8_572_000 picoseconds.
Weight::from_parts(8_795_000, 3556)
.saturating_add(RocksDbWeight::get().reads(1_u64))
.saturating_add(RocksDbWeight::get().writes(1_u64))
}
@@ -373,8 +370,8 @@ impl WeightInfo for () {
// Proof Size summary in bytes:
// Measured: `106`
// Estimated: `3556`
// Minimum execution time: 8_976_000 picoseconds.
Weight::from_parts(9_164_000, 3556)
// Minimum execution time: 8_266_000 picoseconds.
Weight::from_parts(8_721_000, 3556)
.saturating_add(RocksDbWeight::get().reads(1_u64))
.saturating_add(RocksDbWeight::get().writes(1_u64))
}