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
+52 -59
View File
@@ -18,9 +18,9 @@
//! Autogenerated weights for pallet_child_bounties
//!
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
//! DATE: 2023-03-15, 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_child_bounties
// --no-storage-info
// --no-median-slopes
// --no-min-squares
// --extrinsic=*
// --execution=wasm
// --wasm-execution=compiled
@@ -77,14 +74,12 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
/// Storage: ChildBounties ChildBounties (r:0 w:1)
/// Proof: ChildBounties ChildBounties (max_values: None, max_size: Some(145), added: 2620, mode: MaxEncodedLen)
/// The range of component `d` is `[0, 300]`.
fn add_child_bounty(d: u32, ) -> Weight {
fn add_child_bounty(_d: u32, ) -> Weight {
// Proof Size summary in bytes:
// Measured: `678`
// Estimated: `14808`
// Minimum execution time: 54_017_000 picoseconds.
Weight::from_parts(55_142_443, 14808)
// Standard Error: 310
.saturating_add(Weight::from_parts(1_199, 0).saturating_mul(d.into()))
// Estimated: `6196`
// Minimum execution time: 69_784_000 picoseconds.
Weight::from_parts(71_225_354, 6196)
.saturating_add(T::DbWeight::get().reads(5_u64))
.saturating_add(T::DbWeight::get().writes(6_u64))
}
@@ -97,9 +92,9 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
fn propose_curator() -> Weight {
// Proof Size summary in bytes:
// Measured: `732`
// Estimated: `10745`
// Minimum execution time: 19_222_000 picoseconds.
Weight::from_parts(19_446_000, 10745)
// Estimated: `3642`
// Minimum execution time: 19_008_000 picoseconds.
Weight::from_parts(19_219_000, 3642)
.saturating_add(T::DbWeight::get().reads(3_u64))
.saturating_add(T::DbWeight::get().writes(2_u64))
}
@@ -112,9 +107,9 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
fn accept_curator() -> Weight {
// Proof Size summary in bytes:
// Measured: `878`
// Estimated: `10845`
// Minimum execution time: 31_049_000 picoseconds.
Weight::from_parts(31_546_000, 10845)
// Estimated: `3642`
// Minimum execution time: 35_457_000 picoseconds.
Weight::from_parts(36_088_000, 3642)
.saturating_add(T::DbWeight::get().reads(3_u64))
.saturating_add(T::DbWeight::get().writes(2_u64))
}
@@ -127,9 +122,9 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
fn unassign_curator() -> Weight {
// Proof Size summary in bytes:
// Measured: `878`
// Estimated: `10845`
// Minimum execution time: 33_860_000 picoseconds.
Weight::from_parts(34_897_000, 10845)
// Estimated: `3642`
// Minimum execution time: 38_244_000 picoseconds.
Weight::from_parts(38_611_000, 3642)
.saturating_add(T::DbWeight::get().reads(3_u64))
.saturating_add(T::DbWeight::get().writes(2_u64))
}
@@ -140,9 +135,9 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
fn award_child_bounty() -> Weight {
// Proof Size summary in bytes:
// Measured: `775`
// Estimated: `7252`
// Minimum execution time: 23_178_000 picoseconds.
Weight::from_parts(23_412_000, 7252)
// Estimated: `3642`
// Minimum execution time: 22_762_000 picoseconds.
Weight::from_parts(23_249_000, 3642)
.saturating_add(T::DbWeight::get().reads(2_u64))
.saturating_add(T::DbWeight::get().writes(1_u64))
}
@@ -157,9 +152,9 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
fn claim_child_bounty() -> Weight {
// Proof Size summary in bytes:
// Measured: `648`
// Estimated: `15890`
// Minimum execution time: 76_189_000 picoseconds.
Weight::from_parts(76_770_000, 15890)
// Estimated: `8799`
// Minimum execution time: 112_019_000 picoseconds.
Weight::from_parts(113_190_000, 8799)
.saturating_add(T::DbWeight::get().reads(5_u64))
.saturating_add(T::DbWeight::get().writes(6_u64))
}
@@ -178,9 +173,9 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
fn close_child_bounty_added() -> Weight {
// Proof Size summary in bytes:
// Measured: `978`
// Estimated: `20422`
// Minimum execution time: 55_161_000 picoseconds.
Weight::from_parts(55_578_000, 20422)
// Estimated: `6196`
// Minimum execution time: 72_477_000 picoseconds.
Weight::from_parts(73_573_000, 6196)
.saturating_add(T::DbWeight::get().reads(6_u64))
.saturating_add(T::DbWeight::get().writes(6_u64))
}
@@ -199,9 +194,9 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
fn close_child_bounty_active() -> Weight {
// Proof Size summary in bytes:
// Measured: `1165`
// Estimated: `23025`
// Minimum execution time: 67_815_000 picoseconds.
Weight::from_parts(68_620_000, 23025)
// Estimated: `8799`
// Minimum execution time: 91_049_000 picoseconds.
Weight::from_parts(91_874_000, 8799)
.saturating_add(T::DbWeight::get().reads(7_u64))
.saturating_add(T::DbWeight::get().writes(7_u64))
}
@@ -222,14 +217,12 @@ impl WeightInfo for () {
/// Storage: ChildBounties ChildBounties (r:0 w:1)
/// Proof: ChildBounties ChildBounties (max_values: None, max_size: Some(145), added: 2620, mode: MaxEncodedLen)
/// The range of component `d` is `[0, 300]`.
fn add_child_bounty(d: u32, ) -> Weight {
fn add_child_bounty(_d: u32, ) -> Weight {
// Proof Size summary in bytes:
// Measured: `678`
// Estimated: `14808`
// Minimum execution time: 54_017_000 picoseconds.
Weight::from_parts(55_142_443, 14808)
// Standard Error: 310
.saturating_add(Weight::from_parts(1_199, 0).saturating_mul(d.into()))
// Estimated: `6196`
// Minimum execution time: 69_784_000 picoseconds.
Weight::from_parts(71_225_354, 6196)
.saturating_add(RocksDbWeight::get().reads(5_u64))
.saturating_add(RocksDbWeight::get().writes(6_u64))
}
@@ -242,9 +235,9 @@ impl WeightInfo for () {
fn propose_curator() -> Weight {
// Proof Size summary in bytes:
// Measured: `732`
// Estimated: `10745`
// Minimum execution time: 19_222_000 picoseconds.
Weight::from_parts(19_446_000, 10745)
// Estimated: `3642`
// Minimum execution time: 19_008_000 picoseconds.
Weight::from_parts(19_219_000, 3642)
.saturating_add(RocksDbWeight::get().reads(3_u64))
.saturating_add(RocksDbWeight::get().writes(2_u64))
}
@@ -257,9 +250,9 @@ impl WeightInfo for () {
fn accept_curator() -> Weight {
// Proof Size summary in bytes:
// Measured: `878`
// Estimated: `10845`
// Minimum execution time: 31_049_000 picoseconds.
Weight::from_parts(31_546_000, 10845)
// Estimated: `3642`
// Minimum execution time: 35_457_000 picoseconds.
Weight::from_parts(36_088_000, 3642)
.saturating_add(RocksDbWeight::get().reads(3_u64))
.saturating_add(RocksDbWeight::get().writes(2_u64))
}
@@ -272,9 +265,9 @@ impl WeightInfo for () {
fn unassign_curator() -> Weight {
// Proof Size summary in bytes:
// Measured: `878`
// Estimated: `10845`
// Minimum execution time: 33_860_000 picoseconds.
Weight::from_parts(34_897_000, 10845)
// Estimated: `3642`
// Minimum execution time: 38_244_000 picoseconds.
Weight::from_parts(38_611_000, 3642)
.saturating_add(RocksDbWeight::get().reads(3_u64))
.saturating_add(RocksDbWeight::get().writes(2_u64))
}
@@ -285,9 +278,9 @@ impl WeightInfo for () {
fn award_child_bounty() -> Weight {
// Proof Size summary in bytes:
// Measured: `775`
// Estimated: `7252`
// Minimum execution time: 23_178_000 picoseconds.
Weight::from_parts(23_412_000, 7252)
// Estimated: `3642`
// Minimum execution time: 22_762_000 picoseconds.
Weight::from_parts(23_249_000, 3642)
.saturating_add(RocksDbWeight::get().reads(2_u64))
.saturating_add(RocksDbWeight::get().writes(1_u64))
}
@@ -302,9 +295,9 @@ impl WeightInfo for () {
fn claim_child_bounty() -> Weight {
// Proof Size summary in bytes:
// Measured: `648`
// Estimated: `15890`
// Minimum execution time: 76_189_000 picoseconds.
Weight::from_parts(76_770_000, 15890)
// Estimated: `8799`
// Minimum execution time: 112_019_000 picoseconds.
Weight::from_parts(113_190_000, 8799)
.saturating_add(RocksDbWeight::get().reads(5_u64))
.saturating_add(RocksDbWeight::get().writes(6_u64))
}
@@ -323,9 +316,9 @@ impl WeightInfo for () {
fn close_child_bounty_added() -> Weight {
// Proof Size summary in bytes:
// Measured: `978`
// Estimated: `20422`
// Minimum execution time: 55_161_000 picoseconds.
Weight::from_parts(55_578_000, 20422)
// Estimated: `6196`
// Minimum execution time: 72_477_000 picoseconds.
Weight::from_parts(73_573_000, 6196)
.saturating_add(RocksDbWeight::get().reads(6_u64))
.saturating_add(RocksDbWeight::get().writes(6_u64))
}
@@ -344,9 +337,9 @@ impl WeightInfo for () {
fn close_child_bounty_active() -> Weight {
// Proof Size summary in bytes:
// Measured: `1165`
// Estimated: `23025`
// Minimum execution time: 67_815_000 picoseconds.
Weight::from_parts(68_620_000, 23025)
// Estimated: `8799`
// Minimum execution time: 91_049_000 picoseconds.
Weight::from_parts(91_874_000, 8799)
.saturating_add(RocksDbWeight::get().reads(7_u64))
.saturating_add(RocksDbWeight::get().writes(7_u64))
}