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
+32 -35
View File
@@ -18,9 +18,9 @@
//! Autogenerated weights for pallet_whitelist
//!
//! 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_whitelist
// --no-storage-info
// --no-median-slopes
// --no-min-squares
// --extrinsic=*
// --execution=wasm
// --wasm-execution=compiled
@@ -67,9 +64,9 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
fn whitelist_call() -> Weight {
// Proof Size summary in bytes:
// Measured: `217`
// Estimated: `7061`
// Minimum execution time: 21_530_000 picoseconds.
Weight::from_parts(21_986_000, 7061)
// Estimated: `3556`
// Minimum execution time: 21_370_000 picoseconds.
Weight::from_parts(21_834_000, 3556)
.saturating_add(T::DbWeight::get().reads(2_u64))
.saturating_add(T::DbWeight::get().writes(2_u64))
}
@@ -80,9 +77,9 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
fn remove_whitelisted_call() -> Weight {
// Proof Size summary in bytes:
// Measured: `346`
// Estimated: `7061`
// Minimum execution time: 18_980_000 picoseconds.
Weight::from_parts(19_474_000, 7061)
// Estimated: `3556`
// Minimum execution time: 19_222_000 picoseconds.
Weight::from_parts(19_582_000, 3556)
.saturating_add(T::DbWeight::get().reads(2_u64))
.saturating_add(T::DbWeight::get().writes(2_u64))
}
@@ -96,11 +93,11 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
fn dispatch_whitelisted_call(n: u32, ) -> Weight {
// Proof Size summary in bytes:
// Measured: `422 + n * (1 ±0)`
// Estimated: `10947 + n * (1 ±0)`
// Minimum execution time: 32_377_000 picoseconds.
Weight::from_parts(32_643_000, 10947)
// Standard Error: 0
.saturating_add(Weight::from_parts(1_147, 0).saturating_mul(n.into()))
// Estimated: `3886 + n * (1 ±0)`
// Minimum execution time: 31_417_000 picoseconds.
Weight::from_parts(31_620_000, 3886)
// Standard Error: 1
.saturating_add(Weight::from_parts(1_145, 0).saturating_mul(n.into()))
.saturating_add(T::DbWeight::get().reads(3_u64))
.saturating_add(T::DbWeight::get().writes(3_u64))
.saturating_add(Weight::from_parts(0, 1).saturating_mul(n.into()))
@@ -113,11 +110,11 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
fn dispatch_whitelisted_call_with_preimage(n: u32, ) -> Weight {
// Proof Size summary in bytes:
// Measured: `346`
// Estimated: `7061`
// Minimum execution time: 23_421_000 picoseconds.
Weight::from_parts(24_488_523, 7061)
// Estimated: `3556`
// Minimum execution time: 23_092_000 picoseconds.
Weight::from_parts(24_043_432, 3556)
// Standard Error: 5
.saturating_add(Weight::from_parts(1_217, 0).saturating_mul(n.into()))
.saturating_add(Weight::from_parts(1_227, 0).saturating_mul(n.into()))
.saturating_add(T::DbWeight::get().reads(2_u64))
.saturating_add(T::DbWeight::get().writes(2_u64))
}
@@ -132,9 +129,9 @@ impl WeightInfo for () {
fn whitelist_call() -> Weight {
// Proof Size summary in bytes:
// Measured: `217`
// Estimated: `7061`
// Minimum execution time: 21_530_000 picoseconds.
Weight::from_parts(21_986_000, 7061)
// Estimated: `3556`
// Minimum execution time: 21_370_000 picoseconds.
Weight::from_parts(21_834_000, 3556)
.saturating_add(RocksDbWeight::get().reads(2_u64))
.saturating_add(RocksDbWeight::get().writes(2_u64))
}
@@ -145,9 +142,9 @@ impl WeightInfo for () {
fn remove_whitelisted_call() -> Weight {
// Proof Size summary in bytes:
// Measured: `346`
// Estimated: `7061`
// Minimum execution time: 18_980_000 picoseconds.
Weight::from_parts(19_474_000, 7061)
// Estimated: `3556`
// Minimum execution time: 19_222_000 picoseconds.
Weight::from_parts(19_582_000, 3556)
.saturating_add(RocksDbWeight::get().reads(2_u64))
.saturating_add(RocksDbWeight::get().writes(2_u64))
}
@@ -161,11 +158,11 @@ impl WeightInfo for () {
fn dispatch_whitelisted_call(n: u32, ) -> Weight {
// Proof Size summary in bytes:
// Measured: `422 + n * (1 ±0)`
// Estimated: `10947 + n * (1 ±0)`
// Minimum execution time: 32_377_000 picoseconds.
Weight::from_parts(32_643_000, 10947)
// Standard Error: 0
.saturating_add(Weight::from_parts(1_147, 0).saturating_mul(n.into()))
// Estimated: `3886 + n * (1 ±0)`
// Minimum execution time: 31_417_000 picoseconds.
Weight::from_parts(31_620_000, 3886)
// Standard Error: 1
.saturating_add(Weight::from_parts(1_145, 0).saturating_mul(n.into()))
.saturating_add(RocksDbWeight::get().reads(3_u64))
.saturating_add(RocksDbWeight::get().writes(3_u64))
.saturating_add(Weight::from_parts(0, 1).saturating_mul(n.into()))
@@ -178,11 +175,11 @@ impl WeightInfo for () {
fn dispatch_whitelisted_call_with_preimage(n: u32, ) -> Weight {
// Proof Size summary in bytes:
// Measured: `346`
// Estimated: `7061`
// Minimum execution time: 23_421_000 picoseconds.
Weight::from_parts(24_488_523, 7061)
// Estimated: `3556`
// Minimum execution time: 23_092_000 picoseconds.
Weight::from_parts(24_043_432, 3556)
// Standard Error: 5
.saturating_add(Weight::from_parts(1_217, 0).saturating_mul(n.into()))
.saturating_add(Weight::from_parts(1_227, 0).saturating_mul(n.into()))
.saturating_add(RocksDbWeight::get().reads(2_u64))
.saturating_add(RocksDbWeight::get().writes(2_u64))
}