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
+40 -43
View File
@@ -18,9 +18,9 @@
//! Autogenerated weights for pallet_salary
//!
//! 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_salary
// --no-storage-info
// --no-median-slopes
// --no-min-squares
// --extrinsic=*
// --execution=wasm
// --wasm-execution=compiled
@@ -69,8 +66,8 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
// Proof Size summary in bytes:
// Measured: `4`
// Estimated: `1541`
// Minimum execution time: 11_732_000 picoseconds.
Weight::from_parts(12_162_000, 1541)
// Minimum execution time: 11_785_000 picoseconds.
Weight::from_parts(12_086_000, 1541)
.saturating_add(T::DbWeight::get().reads(1_u64))
.saturating_add(T::DbWeight::get().writes(1_u64))
}
@@ -80,8 +77,8 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
// Proof Size summary in bytes:
// Measured: `86`
// Estimated: `1541`
// Minimum execution time: 12_966_000 picoseconds.
Weight::from_parts(13_443_000, 1541)
// Minimum execution time: 12_721_000 picoseconds.
Weight::from_parts(13_033_000, 1541)
.saturating_add(T::DbWeight::get().reads(1_u64))
.saturating_add(T::DbWeight::get().writes(1_u64))
}
@@ -94,9 +91,9 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
fn induct() -> Weight {
// Proof Size summary in bytes:
// Measured: `362`
// Estimated: `8591`
// Minimum execution time: 20_467_000 picoseconds.
Weight::from_parts(20_782_000, 8591)
// Estimated: `3543`
// Minimum execution time: 19_516_000 picoseconds.
Weight::from_parts(19_938_000, 3543)
.saturating_add(T::DbWeight::get().reads(3_u64))
.saturating_add(T::DbWeight::get().writes(1_u64))
}
@@ -109,9 +106,9 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
fn register() -> Weight {
// Proof Size summary in bytes:
// Measured: `429`
// Estimated: `8591`
// Minimum execution time: 23_547_000 picoseconds.
Weight::from_parts(23_911_000, 8591)
// Estimated: `3543`
// Minimum execution time: 23_145_000 picoseconds.
Weight::from_parts(23_804_000, 3543)
.saturating_add(T::DbWeight::get().reads(3_u64))
.saturating_add(T::DbWeight::get().writes(2_u64))
}
@@ -124,9 +121,9 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
fn payout() -> Weight {
// Proof Size summary in bytes:
// Measured: `429`
// Estimated: `8591`
// Minimum execution time: 47_145_000 picoseconds.
Weight::from_parts(47_778_000, 8591)
// Estimated: `3543`
// Minimum execution time: 62_187_000 picoseconds.
Weight::from_parts(63_016_000, 3543)
.saturating_add(T::DbWeight::get().reads(3_u64))
.saturating_add(T::DbWeight::get().writes(2_u64))
}
@@ -141,9 +138,9 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
fn payout_other() -> Weight {
// Proof Size summary in bytes:
// Measured: `429`
// Estimated: `12184`
// Minimum execution time: 48_763_000 picoseconds.
Weight::from_parts(49_853_000, 12184)
// Estimated: `3593`
// Minimum execution time: 63_828_000 picoseconds.
Weight::from_parts(64_791_000, 3593)
.saturating_add(T::DbWeight::get().reads(4_u64))
.saturating_add(T::DbWeight::get().writes(3_u64))
}
@@ -154,9 +151,9 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
fn check_payment() -> Weight {
// Proof Size summary in bytes:
// Measured: `170`
// Estimated: `5084`
// Minimum execution time: 12_825_000 picoseconds.
Weight::from_parts(13_143_000, 5084)
// Estimated: `3543`
// Minimum execution time: 12_911_000 picoseconds.
Weight::from_parts(13_079_000, 3543)
.saturating_add(T::DbWeight::get().reads(2_u64))
.saturating_add(T::DbWeight::get().writes(2_u64))
}
@@ -170,8 +167,8 @@ impl WeightInfo for () {
// Proof Size summary in bytes:
// Measured: `4`
// Estimated: `1541`
// Minimum execution time: 11_732_000 picoseconds.
Weight::from_parts(12_162_000, 1541)
// Minimum execution time: 11_785_000 picoseconds.
Weight::from_parts(12_086_000, 1541)
.saturating_add(RocksDbWeight::get().reads(1_u64))
.saturating_add(RocksDbWeight::get().writes(1_u64))
}
@@ -181,8 +178,8 @@ impl WeightInfo for () {
// Proof Size summary in bytes:
// Measured: `86`
// Estimated: `1541`
// Minimum execution time: 12_966_000 picoseconds.
Weight::from_parts(13_443_000, 1541)
// Minimum execution time: 12_721_000 picoseconds.
Weight::from_parts(13_033_000, 1541)
.saturating_add(RocksDbWeight::get().reads(1_u64))
.saturating_add(RocksDbWeight::get().writes(1_u64))
}
@@ -195,9 +192,9 @@ impl WeightInfo for () {
fn induct() -> Weight {
// Proof Size summary in bytes:
// Measured: `362`
// Estimated: `8591`
// Minimum execution time: 20_467_000 picoseconds.
Weight::from_parts(20_782_000, 8591)
// Estimated: `3543`
// Minimum execution time: 19_516_000 picoseconds.
Weight::from_parts(19_938_000, 3543)
.saturating_add(RocksDbWeight::get().reads(3_u64))
.saturating_add(RocksDbWeight::get().writes(1_u64))
}
@@ -210,9 +207,9 @@ impl WeightInfo for () {
fn register() -> Weight {
// Proof Size summary in bytes:
// Measured: `429`
// Estimated: `8591`
// Minimum execution time: 23_547_000 picoseconds.
Weight::from_parts(23_911_000, 8591)
// Estimated: `3543`
// Minimum execution time: 23_145_000 picoseconds.
Weight::from_parts(23_804_000, 3543)
.saturating_add(RocksDbWeight::get().reads(3_u64))
.saturating_add(RocksDbWeight::get().writes(2_u64))
}
@@ -225,9 +222,9 @@ impl WeightInfo for () {
fn payout() -> Weight {
// Proof Size summary in bytes:
// Measured: `429`
// Estimated: `8591`
// Minimum execution time: 47_145_000 picoseconds.
Weight::from_parts(47_778_000, 8591)
// Estimated: `3543`
// Minimum execution time: 62_187_000 picoseconds.
Weight::from_parts(63_016_000, 3543)
.saturating_add(RocksDbWeight::get().reads(3_u64))
.saturating_add(RocksDbWeight::get().writes(2_u64))
}
@@ -242,9 +239,9 @@ impl WeightInfo for () {
fn payout_other() -> Weight {
// Proof Size summary in bytes:
// Measured: `429`
// Estimated: `12184`
// Minimum execution time: 48_763_000 picoseconds.
Weight::from_parts(49_853_000, 12184)
// Estimated: `3593`
// Minimum execution time: 63_828_000 picoseconds.
Weight::from_parts(64_791_000, 3593)
.saturating_add(RocksDbWeight::get().reads(4_u64))
.saturating_add(RocksDbWeight::get().writes(3_u64))
}
@@ -255,9 +252,9 @@ impl WeightInfo for () {
fn check_payment() -> Weight {
// Proof Size summary in bytes:
// Measured: `170`
// Estimated: `5084`
// Minimum execution time: 12_825_000 picoseconds.
Weight::from_parts(13_143_000, 5084)
// Estimated: `3543`
// Minimum execution time: 12_911_000 picoseconds.
Weight::from_parts(13_079_000, 3543)
.saturating_add(RocksDbWeight::get().reads(2_u64))
.saturating_add(RocksDbWeight::get().writes(2_u64))
}