mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-12 17:01:09 +00:00
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:
committed by
GitHub
parent
46e2d3e5f8
commit
ebfe00d590
Generated
+70
-69
@@ -18,9 +18,9 @@
|
||||
//! Autogenerated weights for pallet_recovery
|
||||
//!
|
||||
//! 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_recovery
|
||||
// --no-storage-info
|
||||
// --no-median-slopes
|
||||
// --no-min-squares
|
||||
// --extrinsic=*
|
||||
// --execution=wasm
|
||||
// --wasm-execution=compiled
|
||||
@@ -71,8 +68,8 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `281`
|
||||
// Estimated: `3545`
|
||||
// Minimum execution time: 9_937_000 picoseconds.
|
||||
Weight::from_parts(10_213_000, 3545)
|
||||
// Minimum execution time: 10_405_000 picoseconds.
|
||||
Weight::from_parts(10_807_000, 3545)
|
||||
.saturating_add(T::DbWeight::get().reads(1_u64))
|
||||
}
|
||||
/// Storage: Recovery Proxy (r:0 w:1)
|
||||
@@ -81,8 +78,8 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `0`
|
||||
// Estimated: `0`
|
||||
// Minimum execution time: 9_704_000 picoseconds.
|
||||
Weight::from_parts(9_997_000, 0)
|
||||
// Minimum execution time: 11_198_000 picoseconds.
|
||||
Weight::from_parts(11_459_000, 0)
|
||||
.saturating_add(T::DbWeight::get().writes(1_u64))
|
||||
}
|
||||
/// Storage: Recovery Recoverable (r:1 w:1)
|
||||
@@ -92,10 +89,10 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `175`
|
||||
// Estimated: `3816`
|
||||
// Minimum execution time: 23_260_000 picoseconds.
|
||||
Weight::from_parts(24_408_081, 3816)
|
||||
// Standard Error: 3_086
|
||||
.saturating_add(Weight::from_parts(41_628, 0).saturating_mul(n.into()))
|
||||
// Minimum execution time: 28_009_000 picoseconds.
|
||||
Weight::from_parts(28_755_652, 3816)
|
||||
// Standard Error: 3_536
|
||||
.saturating_add(Weight::from_parts(78_348, 0).saturating_mul(n.into()))
|
||||
.saturating_add(T::DbWeight::get().reads(1_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(1_u64))
|
||||
}
|
||||
@@ -106,9 +103,9 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
||||
fn initiate_recovery() -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `272`
|
||||
// Estimated: `7670`
|
||||
// Minimum execution time: 28_148_000 picoseconds.
|
||||
Weight::from_parts(28_577_000, 7670)
|
||||
// Estimated: `3854`
|
||||
// Minimum execution time: 31_233_000 picoseconds.
|
||||
Weight::from_parts(31_508_000, 3854)
|
||||
.saturating_add(T::DbWeight::get().reads(2_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(1_u64))
|
||||
}
|
||||
@@ -120,11 +117,11 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
||||
fn vouch_recovery(n: u32, ) -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `360 + n * (64 ±0)`
|
||||
// Estimated: `7670`
|
||||
// Minimum execution time: 20_395_000 picoseconds.
|
||||
Weight::from_parts(21_287_972, 7670)
|
||||
// Standard Error: 4_464
|
||||
.saturating_add(Weight::from_parts(170_214, 0).saturating_mul(n.into()))
|
||||
// Estimated: `3854`
|
||||
// Minimum execution time: 20_542_000 picoseconds.
|
||||
Weight::from_parts(21_224_065, 3854)
|
||||
// Standard Error: 3_018
|
||||
.saturating_add(Weight::from_parts(171_994, 0).saturating_mul(n.into()))
|
||||
.saturating_add(T::DbWeight::get().reads(2_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(1_u64))
|
||||
}
|
||||
@@ -138,11 +135,11 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
||||
fn claim_recovery(n: u32, ) -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `392 + n * (64 ±0)`
|
||||
// Estimated: `11215`
|
||||
// Minimum execution time: 24_902_000 picoseconds.
|
||||
Weight::from_parts(25_662_621, 11215)
|
||||
// Standard Error: 3_101
|
||||
.saturating_add(Weight::from_parts(60_748, 0).saturating_mul(n.into()))
|
||||
// Estimated: `3854`
|
||||
// Minimum execution time: 25_141_000 picoseconds.
|
||||
Weight::from_parts(25_880_238, 3854)
|
||||
// Standard Error: 3_156
|
||||
.saturating_add(Weight::from_parts(54_405, 0).saturating_mul(n.into()))
|
||||
.saturating_add(T::DbWeight::get().reads(3_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(1_u64))
|
||||
}
|
||||
@@ -154,11 +151,11 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
||||
fn close_recovery(n: u32, ) -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `513 + n * (32 ±0)`
|
||||
// Estimated: `7447`
|
||||
// Minimum execution time: 30_071_000 picoseconds.
|
||||
Weight::from_parts(30_727_760, 7447)
|
||||
// Standard Error: 4_442
|
||||
.saturating_add(Weight::from_parts(98_153, 0).saturating_mul(n.into()))
|
||||
// Estimated: `3854`
|
||||
// Minimum execution time: 35_314_000 picoseconds.
|
||||
Weight::from_parts(36_380_338, 3854)
|
||||
// Standard Error: 7_396
|
||||
.saturating_add(Weight::from_parts(3_861, 0).saturating_mul(n.into()))
|
||||
.saturating_add(T::DbWeight::get().reads(2_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(2_u64))
|
||||
}
|
||||
@@ -167,12 +164,14 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
||||
/// Storage: Recovery Recoverable (r:1 w:1)
|
||||
/// Proof: Recovery Recoverable (max_values: None, max_size: Some(351), added: 2826, mode: MaxEncodedLen)
|
||||
/// The range of component `n` is `[1, 9]`.
|
||||
fn remove_recovery(_n: u32, ) -> Weight {
|
||||
fn remove_recovery(n: u32, ) -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `270 + n * (32 ±0)`
|
||||
// Estimated: `7670`
|
||||
// Minimum execution time: 29_088_000 picoseconds.
|
||||
Weight::from_parts(30_535_744, 7670)
|
||||
// Estimated: `3854`
|
||||
// Minimum execution time: 33_453_000 picoseconds.
|
||||
Weight::from_parts(34_078_626, 3854)
|
||||
// Standard Error: 2_563
|
||||
.saturating_add(Weight::from_parts(78_179, 0).saturating_mul(n.into()))
|
||||
.saturating_add(T::DbWeight::get().reads(2_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(1_u64))
|
||||
}
|
||||
@@ -182,8 +181,8 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `281`
|
||||
// Estimated: `3545`
|
||||
// Minimum execution time: 12_712_000 picoseconds.
|
||||
Weight::from_parts(12_980_000, 3545)
|
||||
// Minimum execution time: 12_196_000 picoseconds.
|
||||
Weight::from_parts(12_580_000, 3545)
|
||||
.saturating_add(T::DbWeight::get().reads(1_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(1_u64))
|
||||
}
|
||||
@@ -197,8 +196,8 @@ impl WeightInfo for () {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `281`
|
||||
// Estimated: `3545`
|
||||
// Minimum execution time: 9_937_000 picoseconds.
|
||||
Weight::from_parts(10_213_000, 3545)
|
||||
// Minimum execution time: 10_405_000 picoseconds.
|
||||
Weight::from_parts(10_807_000, 3545)
|
||||
.saturating_add(RocksDbWeight::get().reads(1_u64))
|
||||
}
|
||||
/// Storage: Recovery Proxy (r:0 w:1)
|
||||
@@ -207,8 +206,8 @@ impl WeightInfo for () {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `0`
|
||||
// Estimated: `0`
|
||||
// Minimum execution time: 9_704_000 picoseconds.
|
||||
Weight::from_parts(9_997_000, 0)
|
||||
// Minimum execution time: 11_198_000 picoseconds.
|
||||
Weight::from_parts(11_459_000, 0)
|
||||
.saturating_add(RocksDbWeight::get().writes(1_u64))
|
||||
}
|
||||
/// Storage: Recovery Recoverable (r:1 w:1)
|
||||
@@ -218,10 +217,10 @@ impl WeightInfo for () {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `175`
|
||||
// Estimated: `3816`
|
||||
// Minimum execution time: 23_260_000 picoseconds.
|
||||
Weight::from_parts(24_408_081, 3816)
|
||||
// Standard Error: 3_086
|
||||
.saturating_add(Weight::from_parts(41_628, 0).saturating_mul(n.into()))
|
||||
// Minimum execution time: 28_009_000 picoseconds.
|
||||
Weight::from_parts(28_755_652, 3816)
|
||||
// Standard Error: 3_536
|
||||
.saturating_add(Weight::from_parts(78_348, 0).saturating_mul(n.into()))
|
||||
.saturating_add(RocksDbWeight::get().reads(1_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(1_u64))
|
||||
}
|
||||
@@ -232,9 +231,9 @@ impl WeightInfo for () {
|
||||
fn initiate_recovery() -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `272`
|
||||
// Estimated: `7670`
|
||||
// Minimum execution time: 28_148_000 picoseconds.
|
||||
Weight::from_parts(28_577_000, 7670)
|
||||
// Estimated: `3854`
|
||||
// Minimum execution time: 31_233_000 picoseconds.
|
||||
Weight::from_parts(31_508_000, 3854)
|
||||
.saturating_add(RocksDbWeight::get().reads(2_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(1_u64))
|
||||
}
|
||||
@@ -246,11 +245,11 @@ impl WeightInfo for () {
|
||||
fn vouch_recovery(n: u32, ) -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `360 + n * (64 ±0)`
|
||||
// Estimated: `7670`
|
||||
// Minimum execution time: 20_395_000 picoseconds.
|
||||
Weight::from_parts(21_287_972, 7670)
|
||||
// Standard Error: 4_464
|
||||
.saturating_add(Weight::from_parts(170_214, 0).saturating_mul(n.into()))
|
||||
// Estimated: `3854`
|
||||
// Minimum execution time: 20_542_000 picoseconds.
|
||||
Weight::from_parts(21_224_065, 3854)
|
||||
// Standard Error: 3_018
|
||||
.saturating_add(Weight::from_parts(171_994, 0).saturating_mul(n.into()))
|
||||
.saturating_add(RocksDbWeight::get().reads(2_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(1_u64))
|
||||
}
|
||||
@@ -264,11 +263,11 @@ impl WeightInfo for () {
|
||||
fn claim_recovery(n: u32, ) -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `392 + n * (64 ±0)`
|
||||
// Estimated: `11215`
|
||||
// Minimum execution time: 24_902_000 picoseconds.
|
||||
Weight::from_parts(25_662_621, 11215)
|
||||
// Standard Error: 3_101
|
||||
.saturating_add(Weight::from_parts(60_748, 0).saturating_mul(n.into()))
|
||||
// Estimated: `3854`
|
||||
// Minimum execution time: 25_141_000 picoseconds.
|
||||
Weight::from_parts(25_880_238, 3854)
|
||||
// Standard Error: 3_156
|
||||
.saturating_add(Weight::from_parts(54_405, 0).saturating_mul(n.into()))
|
||||
.saturating_add(RocksDbWeight::get().reads(3_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(1_u64))
|
||||
}
|
||||
@@ -280,11 +279,11 @@ impl WeightInfo for () {
|
||||
fn close_recovery(n: u32, ) -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `513 + n * (32 ±0)`
|
||||
// Estimated: `7447`
|
||||
// Minimum execution time: 30_071_000 picoseconds.
|
||||
Weight::from_parts(30_727_760, 7447)
|
||||
// Standard Error: 4_442
|
||||
.saturating_add(Weight::from_parts(98_153, 0).saturating_mul(n.into()))
|
||||
// Estimated: `3854`
|
||||
// Minimum execution time: 35_314_000 picoseconds.
|
||||
Weight::from_parts(36_380_338, 3854)
|
||||
// Standard Error: 7_396
|
||||
.saturating_add(Weight::from_parts(3_861, 0).saturating_mul(n.into()))
|
||||
.saturating_add(RocksDbWeight::get().reads(2_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(2_u64))
|
||||
}
|
||||
@@ -293,12 +292,14 @@ impl WeightInfo for () {
|
||||
/// Storage: Recovery Recoverable (r:1 w:1)
|
||||
/// Proof: Recovery Recoverable (max_values: None, max_size: Some(351), added: 2826, mode: MaxEncodedLen)
|
||||
/// The range of component `n` is `[1, 9]`.
|
||||
fn remove_recovery(_n: u32, ) -> Weight {
|
||||
fn remove_recovery(n: u32, ) -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `270 + n * (32 ±0)`
|
||||
// Estimated: `7670`
|
||||
// Minimum execution time: 29_088_000 picoseconds.
|
||||
Weight::from_parts(30_535_744, 7670)
|
||||
// Estimated: `3854`
|
||||
// Minimum execution time: 33_453_000 picoseconds.
|
||||
Weight::from_parts(34_078_626, 3854)
|
||||
// Standard Error: 2_563
|
||||
.saturating_add(Weight::from_parts(78_179, 0).saturating_mul(n.into()))
|
||||
.saturating_add(RocksDbWeight::get().reads(2_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(1_u64))
|
||||
}
|
||||
@@ -308,8 +309,8 @@ impl WeightInfo for () {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `281`
|
||||
// Estimated: `3545`
|
||||
// Minimum execution time: 12_712_000 picoseconds.
|
||||
Weight::from_parts(12_980_000, 3545)
|
||||
// Minimum execution time: 12_196_000 picoseconds.
|
||||
Weight::from_parts(12_580_000, 3545)
|
||||
.saturating_add(RocksDbWeight::get().reads(1_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(1_u64))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user