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
+26 -29
View File
@@ -18,9 +18,9 @@
//! Autogenerated weights for pallet_indices
//!
//! 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_indices
// --no-storage-info
// --no-median-slopes
// --no-min-squares
// --extrinsic=*
// --execution=wasm
// --wasm-execution=compiled
@@ -67,8 +64,8 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
// Proof Size summary in bytes:
// Measured: `76`
// Estimated: `3534`
// Minimum execution time: 22_365_000 picoseconds.
Weight::from_parts(22_713_000, 3534)
// Minimum execution time: 27_250_000 picoseconds.
Weight::from_parts(27_829_000, 3534)
.saturating_add(T::DbWeight::get().reads(1_u64))
.saturating_add(T::DbWeight::get().writes(1_u64))
}
@@ -79,9 +76,9 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
fn transfer() -> Weight {
// Proof Size summary in bytes:
// Measured: `275`
// Estimated: `7127`
// Minimum execution time: 28_380_000 picoseconds.
Weight::from_parts(29_251_000, 7127)
// Estimated: `3593`
// Minimum execution time: 37_880_000 picoseconds.
Weight::from_parts(38_329_000, 3593)
.saturating_add(T::DbWeight::get().reads(2_u64))
.saturating_add(T::DbWeight::get().writes(2_u64))
}
@@ -91,8 +88,8 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
// Proof Size summary in bytes:
// Measured: `172`
// Estimated: `3534`
// Minimum execution time: 22_932_000 picoseconds.
Weight::from_parts(23_442_000, 3534)
// Minimum execution time: 27_455_000 picoseconds.
Weight::from_parts(27_788_000, 3534)
.saturating_add(T::DbWeight::get().reads(1_u64))
.saturating_add(T::DbWeight::get().writes(1_u64))
}
@@ -103,9 +100,9 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
fn force_transfer() -> Weight {
// Proof Size summary in bytes:
// Measured: `275`
// Estimated: `7127`
// Minimum execution time: 25_223_000 picoseconds.
Weight::from_parts(25_519_000, 7127)
// Estimated: `3593`
// Minimum execution time: 29_865_000 picoseconds.
Weight::from_parts(30_420_000, 3593)
.saturating_add(T::DbWeight::get().reads(2_u64))
.saturating_add(T::DbWeight::get().writes(2_u64))
}
@@ -115,8 +112,8 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
// Proof Size summary in bytes:
// Measured: `172`
// Estimated: `3534`
// Minimum execution time: 25_223_000 picoseconds.
Weight::from_parts(26_127_000, 3534)
// Minimum execution time: 29_689_000 picoseconds.
Weight::from_parts(30_443_000, 3534)
.saturating_add(T::DbWeight::get().reads(1_u64))
.saturating_add(T::DbWeight::get().writes(1_u64))
}
@@ -130,8 +127,8 @@ impl WeightInfo for () {
// Proof Size summary in bytes:
// Measured: `76`
// Estimated: `3534`
// Minimum execution time: 22_365_000 picoseconds.
Weight::from_parts(22_713_000, 3534)
// Minimum execution time: 27_250_000 picoseconds.
Weight::from_parts(27_829_000, 3534)
.saturating_add(RocksDbWeight::get().reads(1_u64))
.saturating_add(RocksDbWeight::get().writes(1_u64))
}
@@ -142,9 +139,9 @@ impl WeightInfo for () {
fn transfer() -> Weight {
// Proof Size summary in bytes:
// Measured: `275`
// Estimated: `7127`
// Minimum execution time: 28_380_000 picoseconds.
Weight::from_parts(29_251_000, 7127)
// Estimated: `3593`
// Minimum execution time: 37_880_000 picoseconds.
Weight::from_parts(38_329_000, 3593)
.saturating_add(RocksDbWeight::get().reads(2_u64))
.saturating_add(RocksDbWeight::get().writes(2_u64))
}
@@ -154,8 +151,8 @@ impl WeightInfo for () {
// Proof Size summary in bytes:
// Measured: `172`
// Estimated: `3534`
// Minimum execution time: 22_932_000 picoseconds.
Weight::from_parts(23_442_000, 3534)
// Minimum execution time: 27_455_000 picoseconds.
Weight::from_parts(27_788_000, 3534)
.saturating_add(RocksDbWeight::get().reads(1_u64))
.saturating_add(RocksDbWeight::get().writes(1_u64))
}
@@ -166,9 +163,9 @@ impl WeightInfo for () {
fn force_transfer() -> Weight {
// Proof Size summary in bytes:
// Measured: `275`
// Estimated: `7127`
// Minimum execution time: 25_223_000 picoseconds.
Weight::from_parts(25_519_000, 7127)
// Estimated: `3593`
// Minimum execution time: 29_865_000 picoseconds.
Weight::from_parts(30_420_000, 3593)
.saturating_add(RocksDbWeight::get().reads(2_u64))
.saturating_add(RocksDbWeight::get().writes(2_u64))
}
@@ -178,8 +175,8 @@ impl WeightInfo for () {
// Proof Size summary in bytes:
// Measured: `172`
// Estimated: `3534`
// Minimum execution time: 25_223_000 picoseconds.
Weight::from_parts(26_127_000, 3534)
// Minimum execution time: 29_689_000 picoseconds.
Weight::from_parts(30_443_000, 3534)
.saturating_add(RocksDbWeight::get().reads(1_u64))
.saturating_add(RocksDbWeight::get().writes(1_u64))
}