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
+54 -57
View File
@@ -18,9 +18,9 @@
//! Autogenerated weights for pallet_message_queue
//!
//! 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_message_queue
// --no-storage-info
// --no-median-slopes
// --no-min-squares
// --extrinsic=*
// --execution=wasm
// --wasm-execution=compiled
@@ -73,9 +70,9 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
fn ready_ring_knit() -> Weight {
// Proof Size summary in bytes:
// Measured: `233`
// Estimated: `7527`
// Minimum execution time: 12_561_000 picoseconds.
Weight::from_parts(12_758_000, 7527)
// Estimated: `6038`
// Minimum execution time: 12_076_000 picoseconds.
Weight::from_parts(12_350_000, 6038)
.saturating_add(T::DbWeight::get().reads(3_u64))
.saturating_add(T::DbWeight::get().writes(2_u64))
}
@@ -86,9 +83,9 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
fn ready_ring_unknit() -> Weight {
// Proof Size summary in bytes:
// Measured: `233`
// Estimated: `7527`
// Minimum execution time: 11_854_000 picoseconds.
Weight::from_parts(12_178_000, 7527)
// Estimated: `6038`
// Minimum execution time: 11_586_000 picoseconds.
Weight::from_parts(11_912_000, 6038)
.saturating_add(T::DbWeight::get().reads(3_u64))
.saturating_add(T::DbWeight::get().writes(3_u64))
}
@@ -98,8 +95,8 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
// Proof Size summary in bytes:
// Measured: `42`
// Estimated: `3514`
// Minimum execution time: 7_900_000 picoseconds.
Weight::from_parts(8_046_000, 3514)
// Minimum execution time: 4_581_000 picoseconds.
Weight::from_parts(4_715_000, 3514)
.saturating_add(T::DbWeight::get().reads(1_u64))
.saturating_add(T::DbWeight::get().writes(1_u64))
}
@@ -109,8 +106,8 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
// Proof Size summary in bytes:
// Measured: `113`
// Estimated: `69049`
// Minimum execution time: 6_284_000 picoseconds.
Weight::from_parts(6_433_000, 69049)
// Minimum execution time: 5_826_000 picoseconds.
Weight::from_parts(5_932_000, 69049)
.saturating_add(T::DbWeight::get().reads(1_u64))
.saturating_add(T::DbWeight::get().writes(1_u64))
}
@@ -120,8 +117,8 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
// Proof Size summary in bytes:
// Measured: `113`
// Estimated: `69049`
// Minimum execution time: 6_418_000 picoseconds.
Weight::from_parts(6_633_000, 69049)
// Minimum execution time: 6_235_000 picoseconds.
Weight::from_parts(6_430_000, 69049)
.saturating_add(T::DbWeight::get().reads(1_u64))
.saturating_add(T::DbWeight::get().writes(1_u64))
}
@@ -129,8 +126,8 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
// Proof Size summary in bytes:
// Measured: `0`
// Estimated: `0`
// Minimum execution time: 52_661_000 picoseconds.
Weight::from_parts(52_994_000, 0)
// Minimum execution time: 53_860_000 picoseconds.
Weight::from_parts(53_984_000, 0)
}
/// Storage: MessageQueue ServiceHead (r:1 w:1)
/// Proof: MessageQueue ServiceHead (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)
@@ -139,9 +136,9 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
fn bump_service_head() -> Weight {
// Proof Size summary in bytes:
// Measured: `140`
// Estimated: `5003`
// Minimum execution time: 7_132_000 picoseconds.
Weight::from_parts(7_386_000, 5003)
// Estimated: `3514`
// Minimum execution time: 7_018_000 picoseconds.
Weight::from_parts(7_205_000, 3514)
.saturating_add(T::DbWeight::get().reads(2_u64))
.saturating_add(T::DbWeight::get().writes(1_u64))
}
@@ -152,9 +149,9 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
fn reap_page() -> Weight {
// Proof Size summary in bytes:
// Measured: `65710`
// Estimated: `72563`
// Minimum execution time: 54_377_000 picoseconds.
Weight::from_parts(54_804_000, 72563)
// Estimated: `69049`
// Minimum execution time: 53_485_000 picoseconds.
Weight::from_parts(54_154_000, 69049)
.saturating_add(T::DbWeight::get().reads(2_u64))
.saturating_add(T::DbWeight::get().writes(2_u64))
}
@@ -165,9 +162,9 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
fn execute_overweight_page_removed() -> Weight {
// Proof Size summary in bytes:
// Measured: `65710`
// Estimated: `72563`
// Minimum execution time: 69_461_000 picoseconds.
Weight::from_parts(70_016_000, 72563)
// Estimated: `69049`
// Minimum execution time: 68_830_000 picoseconds.
Weight::from_parts(69_487_000, 69049)
.saturating_add(T::DbWeight::get().reads(2_u64))
.saturating_add(T::DbWeight::get().writes(2_u64))
}
@@ -178,9 +175,9 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
fn execute_overweight_page_updated() -> Weight {
// Proof Size summary in bytes:
// Measured: `65710`
// Estimated: `72563`
// Minimum execution time: 81_787_000 picoseconds.
Weight::from_parts(83_100_000, 72563)
// Estimated: `69049`
// Minimum execution time: 81_643_000 picoseconds.
Weight::from_parts(82_399_000, 69049)
.saturating_add(T::DbWeight::get().reads(2_u64))
.saturating_add(T::DbWeight::get().writes(2_u64))
}
@@ -195,9 +192,9 @@ impl WeightInfo for () {
fn ready_ring_knit() -> Weight {
// Proof Size summary in bytes:
// Measured: `233`
// Estimated: `7527`
// Minimum execution time: 12_561_000 picoseconds.
Weight::from_parts(12_758_000, 7527)
// Estimated: `6038`
// Minimum execution time: 12_076_000 picoseconds.
Weight::from_parts(12_350_000, 6038)
.saturating_add(RocksDbWeight::get().reads(3_u64))
.saturating_add(RocksDbWeight::get().writes(2_u64))
}
@@ -208,9 +205,9 @@ impl WeightInfo for () {
fn ready_ring_unknit() -> Weight {
// Proof Size summary in bytes:
// Measured: `233`
// Estimated: `7527`
// Minimum execution time: 11_854_000 picoseconds.
Weight::from_parts(12_178_000, 7527)
// Estimated: `6038`
// Minimum execution time: 11_586_000 picoseconds.
Weight::from_parts(11_912_000, 6038)
.saturating_add(RocksDbWeight::get().reads(3_u64))
.saturating_add(RocksDbWeight::get().writes(3_u64))
}
@@ -220,8 +217,8 @@ impl WeightInfo for () {
// Proof Size summary in bytes:
// Measured: `42`
// Estimated: `3514`
// Minimum execution time: 7_900_000 picoseconds.
Weight::from_parts(8_046_000, 3514)
// Minimum execution time: 4_581_000 picoseconds.
Weight::from_parts(4_715_000, 3514)
.saturating_add(RocksDbWeight::get().reads(1_u64))
.saturating_add(RocksDbWeight::get().writes(1_u64))
}
@@ -231,8 +228,8 @@ impl WeightInfo for () {
// Proof Size summary in bytes:
// Measured: `113`
// Estimated: `69049`
// Minimum execution time: 6_284_000 picoseconds.
Weight::from_parts(6_433_000, 69049)
// Minimum execution time: 5_826_000 picoseconds.
Weight::from_parts(5_932_000, 69049)
.saturating_add(RocksDbWeight::get().reads(1_u64))
.saturating_add(RocksDbWeight::get().writes(1_u64))
}
@@ -242,8 +239,8 @@ impl WeightInfo for () {
// Proof Size summary in bytes:
// Measured: `113`
// Estimated: `69049`
// Minimum execution time: 6_418_000 picoseconds.
Weight::from_parts(6_633_000, 69049)
// Minimum execution time: 6_235_000 picoseconds.
Weight::from_parts(6_430_000, 69049)
.saturating_add(RocksDbWeight::get().reads(1_u64))
.saturating_add(RocksDbWeight::get().writes(1_u64))
}
@@ -251,8 +248,8 @@ impl WeightInfo for () {
// Proof Size summary in bytes:
// Measured: `0`
// Estimated: `0`
// Minimum execution time: 52_661_000 picoseconds.
Weight::from_parts(52_994_000, 0)
// Minimum execution time: 53_860_000 picoseconds.
Weight::from_parts(53_984_000, 0)
}
/// Storage: MessageQueue ServiceHead (r:1 w:1)
/// Proof: MessageQueue ServiceHead (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)
@@ -261,9 +258,9 @@ impl WeightInfo for () {
fn bump_service_head() -> Weight {
// Proof Size summary in bytes:
// Measured: `140`
// Estimated: `5003`
// Minimum execution time: 7_132_000 picoseconds.
Weight::from_parts(7_386_000, 5003)
// Estimated: `3514`
// Minimum execution time: 7_018_000 picoseconds.
Weight::from_parts(7_205_000, 3514)
.saturating_add(RocksDbWeight::get().reads(2_u64))
.saturating_add(RocksDbWeight::get().writes(1_u64))
}
@@ -274,9 +271,9 @@ impl WeightInfo for () {
fn reap_page() -> Weight {
// Proof Size summary in bytes:
// Measured: `65710`
// Estimated: `72563`
// Minimum execution time: 54_377_000 picoseconds.
Weight::from_parts(54_804_000, 72563)
// Estimated: `69049`
// Minimum execution time: 53_485_000 picoseconds.
Weight::from_parts(54_154_000, 69049)
.saturating_add(RocksDbWeight::get().reads(2_u64))
.saturating_add(RocksDbWeight::get().writes(2_u64))
}
@@ -287,9 +284,9 @@ impl WeightInfo for () {
fn execute_overweight_page_removed() -> Weight {
// Proof Size summary in bytes:
// Measured: `65710`
// Estimated: `72563`
// Minimum execution time: 69_461_000 picoseconds.
Weight::from_parts(70_016_000, 72563)
// Estimated: `69049`
// Minimum execution time: 68_830_000 picoseconds.
Weight::from_parts(69_487_000, 69049)
.saturating_add(RocksDbWeight::get().reads(2_u64))
.saturating_add(RocksDbWeight::get().writes(2_u64))
}
@@ -300,9 +297,9 @@ impl WeightInfo for () {
fn execute_overweight_page_updated() -> Weight {
// Proof Size summary in bytes:
// Measured: `65710`
// Estimated: `72563`
// Minimum execution time: 81_787_000 picoseconds.
Weight::from_parts(83_100_000, 72563)
// Estimated: `69049`
// Minimum execution time: 81_643_000 picoseconds.
Weight::from_parts(82_399_000, 69049)
.saturating_add(RocksDbWeight::get().reads(2_u64))
.saturating_add(RocksDbWeight::get().writes(2_u64))
}