Fix V2 PoV benchmarking (#13485)

* Bump default 'additional_trie_layers' to two

The default here only works for extremely small runtimes, which have
no more than 16 storage prefices. This is changed to a "sane" default
of 2, which is save for runtimes with up to 4096 storage prefices (eg StorageValue).

Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>

* Update tests and test weights

Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>

* Fix PoV weights

Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>

* ".git/.scripts/commands/bench/bench.sh" pallet dev pallet_balances

* ".git/.scripts/commands/bench/bench.sh" pallet dev pallet_message_queue

* ".git/.scripts/commands/bench/bench.sh" pallet dev pallet_glutton

* ".git/.scripts/commands/bench/bench.sh" pallet dev pallet_glutton

* Fix sanity check

>0 would also do as a check, but let's try this.

Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>

---------

Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>
Co-authored-by: command-bot <>
This commit is contained in:
Oliver Tale-Yazdi
2023-02-28 14:47:36 +01:00
committed by GitHub
parent 033a0d01a4
commit 1eb0cd31b9
8 changed files with 576 additions and 477 deletions
@@ -39,6 +39,17 @@ frame_benchmarking::benchmarks! {
assert_eq!(Value::<T>::get(), Some(123));
}
#[pov_mode = MaxEncodedLen {
Pov::Value2: Ignored
}]
storage_single_value_ignored_some_read {
Value::<T>::put(123);
Value2::<T>::put(123);
}: {
assert_eq!(Value::<T>::get(), Some(123));
assert_eq!(Value2::<T>::get(), Some(123));
}
storage_single_value_read_twice {
Value::<T>::put(123);
}: {
+285 -223
View File
@@ -2,9 +2,9 @@
//! Autogenerated weights for frame_benchmarking_pallet_pov
//!
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
//! DATE: 2023-01-23, STEPS: `50`, REPEAT: `1`, LOW RANGE: `[]`, HIGH RANGE: `[]`
//! DATE: 2023-02-27, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
//! WORST CASE MAP SIZE: `1000000`
//! HOSTNAME: `oty-parity`, CPU: `11th Gen Intel(R) Core(TM) i7-1165G7 @ 2.80GHz`
//! HOSTNAME: `i9`, CPU: `13th Gen Intel(R) Core(TM) i9-13900K`
//! EXECUTION: None, WASM-EXECUTION: Compiled, CHAIN: None, DB CACHE: 1024
// Executed Command:
@@ -19,7 +19,7 @@
// --steps
// 50
// --repeat
// 1
// 20
// --template=.maintain/frame-weight-template.hbs
// --output=frame/benchmarking/pov/src/weights.rs
@@ -71,9 +71,10 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
fn storage_single_value_read() -> Weight {
// Proof Size summary in bytes:
// Measured: `136`
// Estimated: `499`
// Minimum execution time: 3_291 nanoseconds.
Weight::from_parts(3_291_000, 499)
// Estimated: `1489`
// Minimum execution time: 1_968 nanoseconds.
Weight::from_ref_time(2_060_000)
.saturating_add(Weight::from_proof_size(1489))
.saturating_add(T::DbWeight::get().reads(1_u64))
}
/// Storage: Pov Value (r:1 w:0)
@@ -82,8 +83,9 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
// Proof Size summary in bytes:
// Measured: `136`
// Estimated: `0`
// Minimum execution time: 2_918 nanoseconds.
Weight::from_ref_time(2_918_000)
// Minimum execution time: 1_934 nanoseconds.
Weight::from_ref_time(2_092_000)
.saturating_add(Weight::from_proof_size(0))
.saturating_add(T::DbWeight::get().reads(1_u64))
}
/// Storage: Pov Value (r:1 w:0)
@@ -93,9 +95,10 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
fn storage_single_value_ignored_some_read() -> Weight {
// Proof Size summary in bytes:
// Measured: `160`
// Estimated: `659`
// Minimum execution time: 4_056 nanoseconds.
Weight::from_parts(4_056_000, 659)
// Estimated: `1649`
// Minimum execution time: 2_605 nanoseconds.
Weight::from_ref_time(2_786_000)
.saturating_add(Weight::from_proof_size(1649))
.saturating_add(T::DbWeight::get().reads(2_u64))
}
/// Storage: Pov Value (r:1 w:0)
@@ -103,9 +106,10 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
fn storage_single_value_read_twice() -> Weight {
// Proof Size summary in bytes:
// Measured: `136`
// Estimated: `499`
// Minimum execution time: 3_552 nanoseconds.
Weight::from_parts(3_552_000, 499)
// Estimated: `1489`
// Minimum execution time: 2_019 nanoseconds.
Weight::from_ref_time(2_214_000)
.saturating_add(Weight::from_proof_size(1489))
.saturating_add(T::DbWeight::get().reads(1_u64))
}
/// Storage: Pov Value (r:0 w:1)
@@ -114,8 +118,9 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
// Proof Size summary in bytes:
// Measured: `0`
// Estimated: `0`
// Minimum execution time: 795 nanoseconds.
Weight::from_ref_time(795_000)
// Minimum execution time: 279 nanoseconds.
Weight::from_ref_time(357_000)
.saturating_add(Weight::from_proof_size(0))
.saturating_add(T::DbWeight::get().writes(1_u64))
}
/// Storage: Pov Value (r:0 w:1)
@@ -124,8 +129,9 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
// Proof Size summary in bytes:
// Measured: `0`
// Estimated: `0`
// Minimum execution time: 865 nanoseconds.
Weight::from_ref_time(865_000)
// Minimum execution time: 291 nanoseconds.
Weight::from_ref_time(378_000)
.saturating_add(Weight::from_proof_size(0))
.saturating_add(T::DbWeight::get().writes(1_u64))
}
/// Storage: Pov Map1M (r:1 w:0)
@@ -133,9 +139,10 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
fn storage_1m_map_read_one_value_two_additional_layers() -> Weight {
// Proof Size summary in bytes:
// Measured: `1275`
// Estimated: `3750`
// Minimum execution time: 9_571 nanoseconds.
Weight::from_parts(9_571_000, 3750)
// Estimated: `4740`
// Minimum execution time: 5_077 nanoseconds.
Weight::from_ref_time(5_400_000)
.saturating_add(Weight::from_proof_size(4740))
.saturating_add(T::DbWeight::get().reads(1_u64))
}
/// Storage: Pov Map1M (r:1 w:0)
@@ -143,9 +150,10 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
fn storage_1m_map_read_one_value_three_additional_layers() -> Weight {
// Proof Size summary in bytes:
// Measured: `1544`
// Estimated: `4019`
// Minimum execution time: 14_597 nanoseconds.
Weight::from_parts(14_597_000, 4019)
// Estimated: `5009`
// Minimum execution time: 5_878 nanoseconds.
Weight::from_ref_time(6_239_000)
.saturating_add(Weight::from_proof_size(5009))
.saturating_add(T::DbWeight::get().reads(1_u64))
}
/// Storage: Pov Map1M (r:1 w:0)
@@ -153,9 +161,10 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
fn storage_1m_map_read_one_value_four_additional_layers() -> Weight {
// Proof Size summary in bytes:
// Measured: `2044`
// Estimated: `4519`
// Minimum execution time: 19_793 nanoseconds.
Weight::from_parts(19_793_000, 4519)
// Estimated: `5509`
// Minimum execution time: 7_282 nanoseconds.
Weight::from_ref_time(8_022_000)
.saturating_add(Weight::from_proof_size(5509))
.saturating_add(T::DbWeight::get().reads(1_u64))
}
/// Storage: Pov Map1M (r:100 w:0)
@@ -167,13 +176,14 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
fn storage_map_read_per_component(n: u32, m: u32, ) -> Weight {
// Proof Size summary in bytes:
// Measured: `515 + n * (188 ±0) + m * (188 ±0)`
// Estimated: `0 + n * (3006 ±0) + m * (2511 ±0)`
// Minimum execution time: 266_160 nanoseconds.
Weight::from_ref_time(190_477_747)
// Standard Error: 96_405
.saturating_add(Weight::from_ref_time(1_049_993).saturating_mul(n.into()))
// Standard Error: 96_405
.saturating_add(Weight::from_ref_time(1_202_546).saturating_mul(m.into()))
// Estimated: `1980 + n * (3006 ±0) + m * (2511 ±0)`
// Minimum execution time: 195_406 nanoseconds.
Weight::from_ref_time(129_093_464)
.saturating_add(Weight::from_proof_size(1980))
// Standard Error: 12_134
.saturating_add(Weight::from_ref_time(855_330).saturating_mul(n.into()))
// Standard Error: 12_134
.saturating_add(Weight::from_ref_time(870_523).saturating_mul(m.into()))
.saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(n.into())))
.saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(m.into())))
.saturating_add(Weight::from_proof_size(3006).saturating_mul(n.into()))
@@ -188,13 +198,14 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
fn storage_map_read_per_component_one_ignored(n: u32, m: u32, ) -> Weight {
// Proof Size summary in bytes:
// Measured: `515 + n * (188 ±0) + m * (188 ±0)`
// Estimated: `695 + n * (3195 ±2) + m * (189 ±2)`
// Minimum execution time: 265_113 nanoseconds.
Weight::from_parts(215_943_973, 695)
// Standard Error: 199_907
.saturating_add(Weight::from_ref_time(988_371).saturating_mul(n.into()))
// Standard Error: 199_907
.saturating_add(Weight::from_ref_time(1_145_693).saturating_mul(m.into()))
// Estimated: `1685 + n * (3195 ±0) + m * (189 ±0)`
// Minimum execution time: 195_053 nanoseconds.
Weight::from_ref_time(131_322_479)
.saturating_add(Weight::from_proof_size(1685))
// Standard Error: 12_161
.saturating_add(Weight::from_ref_time(843_047).saturating_mul(n.into()))
// Standard Error: 12_161
.saturating_add(Weight::from_ref_time(858_668).saturating_mul(m.into()))
.saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(n.into())))
.saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(m.into())))
.saturating_add(Weight::from_proof_size(3195).saturating_mul(n.into()))
@@ -206,11 +217,12 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
fn storage_1m_map_one_entry_repeated_read(n: u32, ) -> Weight {
// Proof Size summary in bytes:
// Measured: `170`
// Estimated: `2511`
// Minimum execution time: 119 nanoseconds.
Weight::from_parts(3_649_405, 2511)
// Standard Error: 4_472
.saturating_add(Weight::from_ref_time(432_147).saturating_mul(n.into()))
// Estimated: `3501`
// Minimum execution time: 22 nanoseconds.
Weight::from_ref_time(2_334_945)
.saturating_add(Weight::from_proof_size(3501))
// Standard Error: 624
.saturating_add(Weight::from_ref_time(282_046).saturating_mul(n.into()))
.saturating_add(T::DbWeight::get().reads(1_u64))
}
/// Storage: Pov Map1M (r:100 w:0)
@@ -219,11 +231,12 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
fn storage_1m_map_multiple_entry_repeated_read(n: u32, ) -> Weight {
// Proof Size summary in bytes:
// Measured: `147 + n * (40 ±0)`
// Estimated: `0 + n * (2511 ±0)`
// Minimum execution time: 106 nanoseconds.
Weight::from_ref_time(59_892_609)
// Standard Error: 418_004
.saturating_add(Weight::from_ref_time(5_919_793).saturating_mul(n.into()))
// Estimated: `990 + n * (2511 ±0)`
// Minimum execution time: 20 nanoseconds.
Weight::from_ref_time(525_027)
.saturating_add(Weight::from_proof_size(990))
// Standard Error: 2_767
.saturating_add(Weight::from_ref_time(3_887_350).saturating_mul(n.into()))
.saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(n.into())))
.saturating_add(Weight::from_proof_size(2511).saturating_mul(n.into()))
}
@@ -233,11 +246,12 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
fn storage_1m_double_map_read_per_component(n: u32, ) -> Weight {
// Proof Size summary in bytes:
// Measured: `21938 + n * (57 ±0)`
// Estimated: `0 + n * (2543 ±0)`
// Minimum execution time: 550 nanoseconds.
Weight::from_ref_time(65_431_603)
// Standard Error: 66_935
.saturating_add(Weight::from_ref_time(2_825_371).saturating_mul(n.into()))
// Estimated: `990 + n * (2543 ±0)`
// Minimum execution time: 34 nanoseconds.
Weight::from_ref_time(18_341_393)
.saturating_add(Weight::from_proof_size(990))
// Standard Error: 1_312
.saturating_add(Weight::from_ref_time(2_053_135).saturating_mul(n.into()))
.saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(n.into())))
.saturating_add(Weight::from_proof_size(2543).saturating_mul(n.into()))
}
@@ -246,9 +260,10 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
fn storage_value_bounded_read() -> Weight {
// Proof Size summary in bytes:
// Measured: `109`
// Estimated: `528`
// Minimum execution time: 2_541 nanoseconds.
Weight::from_parts(2_541_000, 528)
// Estimated: `1518`
// Minimum execution time: 1_163 nanoseconds.
Weight::from_ref_time(1_274_000)
.saturating_add(Weight::from_proof_size(1518))
.saturating_add(T::DbWeight::get().reads(1_u64))
}
/// Storage: Pov UnboundedValue (r:1 w:0)
@@ -256,9 +271,10 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
fn storage_value_unbounded_read() -> Weight {
// Proof Size summary in bytes:
// Measured: `109`
// Estimated: `604`
// Minimum execution time: 2_226 nanoseconds.
Weight::from_parts(2_226_000, 604)
// Estimated: `1594`
// Minimum execution time: 1_167 nanoseconds.
Weight::from_ref_time(1_367_000)
.saturating_add(Weight::from_proof_size(1594))
.saturating_add(T::DbWeight::get().reads(1_u64))
}
/// Storage: Pov UnboundedValue (r:1 w:0)
@@ -267,8 +283,9 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
// Proof Size summary in bytes:
// Measured: `109`
// Estimated: `0`
// Minimum execution time: 2_100 nanoseconds.
Weight::from_ref_time(2_100_000)
// Minimum execution time: 1_155 nanoseconds.
Weight::from_ref_time(1_248_000)
.saturating_add(Weight::from_proof_size(0))
.saturating_add(T::DbWeight::get().reads(1_u64))
}
/// Storage: Pov UnboundedValue (r:1 w:0)
@@ -278,9 +295,10 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
fn storage_value_bounded_and_unbounded_read() -> Weight {
// Proof Size summary in bytes:
// Measured: `109`
// Estimated: `1132`
// Minimum execution time: 2_808 nanoseconds.
Weight::from_parts(2_808_000, 1132)
// Estimated: `3112`
// Minimum execution time: 1_424 nanoseconds.
Weight::from_ref_time(1_601_000)
.saturating_add(Weight::from_proof_size(3112))
.saturating_add(T::DbWeight::get().reads(2_u64))
}
/// Storage: Pov LargeValue (r:1 w:0)
@@ -289,11 +307,12 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
fn measured_storage_value_read_linear_size(l: u32, ) -> Weight {
// Proof Size summary in bytes:
// Measured: `174 + l * (1 ±0)`
// Estimated: `666 + l * (1 ±0)`
// Minimum execution time: 3_385 nanoseconds.
Weight::from_parts(3_385_000, 666)
// Standard Error: 10
.saturating_add(Weight::from_ref_time(356).saturating_mul(l.into()))
// Estimated: `1656 + l * (1 ±0)`
// Minimum execution time: 1_744 nanoseconds.
Weight::from_ref_time(1_800_000)
.saturating_add(Weight::from_proof_size(1656))
// Standard Error: 4
.saturating_add(Weight::from_ref_time(443).saturating_mul(l.into()))
.saturating_add(T::DbWeight::get().reads(1_u64))
.saturating_add(Weight::from_proof_size(1).saturating_mul(l.into()))
}
@@ -303,11 +322,12 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
fn mel_storage_value_read_linear_size(l: u32, ) -> Weight {
// Proof Size summary in bytes:
// Measured: `174 + l * (1 ±0)`
// Estimated: `4194803`
// Minimum execution time: 3_342 nanoseconds.
Weight::from_parts(3_342_000, 4194803)
// Estimated: `4195793`
// Minimum execution time: 1_770 nanoseconds.
Weight::from_ref_time(1_813_000)
.saturating_add(Weight::from_proof_size(4195793))
// Standard Error: 6
.saturating_add(Weight::from_ref_time(345).saturating_mul(l.into()))
.saturating_add(Weight::from_ref_time(495).saturating_mul(l.into()))
.saturating_add(T::DbWeight::get().reads(1_u64))
}
/// Storage: Pov LargeValue (r:1 w:0)
@@ -318,11 +338,12 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
fn measured_storage_double_value_read_linear_size(l: u32, ) -> Weight {
// Proof Size summary in bytes:
// Measured: `235 + l * (2 ±0)`
// Estimated: `1448 + l * (4 ±0)`
// Minimum execution time: 4_519 nanoseconds.
Weight::from_parts(4_519_000, 1448)
// Standard Error: 9
.saturating_add(Weight::from_ref_time(560).saturating_mul(l.into()))
// Estimated: `3428 + l * (4 ±0)`
// Minimum execution time: 2_349 nanoseconds.
Weight::from_ref_time(2_423_000)
.saturating_add(Weight::from_proof_size(3428))
// Standard Error: 11
.saturating_add(Weight::from_ref_time(950).saturating_mul(l.into()))
.saturating_add(T::DbWeight::get().reads(2_u64))
.saturating_add(Weight::from_proof_size(4).saturating_mul(l.into()))
}
@@ -334,11 +355,12 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
fn mel_storage_double_value_read_linear_size(l: u32, ) -> Weight {
// Proof Size summary in bytes:
// Measured: `235 + l * (2 ±0)`
// Estimated: `8389606`
// Minimum execution time: 4_462 nanoseconds.
Weight::from_parts(4_462_000, 8389606)
// Standard Error: 7
.saturating_add(Weight::from_ref_time(538).saturating_mul(l.into()))
// Estimated: `8391586`
// Minimum execution time: 2_315 nanoseconds.
Weight::from_ref_time(2_409_000)
.saturating_add(Weight::from_proof_size(8391586))
// Standard Error: 12
.saturating_add(Weight::from_ref_time(984).saturating_mul(l.into()))
.saturating_add(T::DbWeight::get().reads(2_u64))
}
/// Storage: Pov LargeValue (r:1 w:0)
@@ -349,11 +371,12 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
fn mel_mixed_storage_double_value_read_linear_size(l: u32, ) -> Weight {
// Proof Size summary in bytes:
// Measured: `235 + l * (2 ±0)`
// Estimated: `4195527 + l * (2 ±0)`
// Minimum execution time: 4_552 nanoseconds.
Weight::from_parts(4_552_000, 4195527)
// Standard Error: 6
.saturating_add(Weight::from_ref_time(507).saturating_mul(l.into()))
// Estimated: `4197507 + l * (2 ±0)`
// Minimum execution time: 2_370 nanoseconds.
Weight::from_ref_time(2_474_000)
.saturating_add(Weight::from_proof_size(4197507))
// Standard Error: 11
.saturating_add(Weight::from_ref_time(956).saturating_mul(l.into()))
.saturating_add(T::DbWeight::get().reads(2_u64))
.saturating_add(Weight::from_proof_size(2).saturating_mul(l.into()))
}
@@ -365,11 +388,12 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
fn measured_mixed_storage_double_value_read_linear_size(l: u32, ) -> Weight {
// Proof Size summary in bytes:
// Measured: `235 + l * (2 ±0)`
// Estimated: `4195527 + l * (2 ±0)`
// Minimum execution time: 4_236 nanoseconds.
Weight::from_parts(4_236_000, 4195527)
// Standard Error: 8
.saturating_add(Weight::from_ref_time(517).saturating_mul(l.into()))
// Estimated: `4197507 + l * (2 ±0)`
// Minimum execution time: 2_375 nanoseconds.
Weight::from_ref_time(2_420_000)
.saturating_add(Weight::from_proof_size(4197507))
// Standard Error: 9
.saturating_add(Weight::from_ref_time(914).saturating_mul(l.into()))
.saturating_add(T::DbWeight::get().reads(2_u64))
.saturating_add(Weight::from_proof_size(2).saturating_mul(l.into()))
}
@@ -381,11 +405,12 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
fn storage_map_unbounded_both_measured_read(i: u32, ) -> Weight {
// Proof Size summary in bytes:
// Measured: `293 + i * (8 ±0)`
// Estimated: `5524 + i * (16 ±0)`
// Minimum execution time: 5_649 nanoseconds.
Weight::from_parts(6_111_237, 5524)
// Standard Error: 1_060
.saturating_add(Weight::from_ref_time(2_693).saturating_mul(i.into()))
// Estimated: `7504 + i * (16 ±0)`
// Minimum execution time: 3_305 nanoseconds.
Weight::from_ref_time(3_689_335)
.saturating_add(Weight::from_proof_size(7504))
// Standard Error: 29
.saturating_add(Weight::from_ref_time(638).saturating_mul(i.into()))
.saturating_add(T::DbWeight::get().reads(2_u64))
.saturating_add(Weight::from_proof_size(16).saturating_mul(i.into()))
}
@@ -397,9 +422,12 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
fn storage_map_partial_unbounded_read(i: u32, ) -> Weight {
// Proof Size summary in bytes:
// Measured: `260 + i * (4 ±0)`
// Estimated: `5243 + i * (4 ±0)`
// Minimum execution time: 5_997 nanoseconds.
Weight::from_parts(7_996_508, 5243)
// Estimated: `7223 + i * (4 ±0)`
// Minimum execution time: 3_469 nanoseconds.
Weight::from_ref_time(3_878_896)
.saturating_add(Weight::from_proof_size(7223))
// Standard Error: 33
.saturating_add(Weight::from_ref_time(356).saturating_mul(i.into()))
.saturating_add(T::DbWeight::get().reads(2_u64))
.saturating_add(Weight::from_proof_size(4).saturating_mul(i.into()))
}
@@ -411,11 +439,12 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
fn storage_map_partial_unbounded_ignored_read(i: u32, ) -> Weight {
// Proof Size summary in bytes:
// Measured: `260 + i * (4 ±0)`
// Estimated: `2768 + i * (4 ±0)`
// Minimum execution time: 5_679 nanoseconds.
Weight::from_parts(6_496_804, 2768)
// Standard Error: 611
.saturating_add(Weight::from_ref_time(930).saturating_mul(i.into()))
// Estimated: `3758 + i * (4 ±0)`
// Minimum execution time: 3_442 nanoseconds.
Weight::from_ref_time(3_881_051)
.saturating_add(Weight::from_proof_size(3758))
// Standard Error: 35
.saturating_add(Weight::from_ref_time(384).saturating_mul(i.into()))
.saturating_add(T::DbWeight::get().reads(2_u64))
.saturating_add(Weight::from_proof_size(4).saturating_mul(i.into()))
}
@@ -423,15 +452,17 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
// Proof Size summary in bytes:
// Measured: `0`
// Estimated: `0`
// Minimum execution time: 7_087 nanoseconds.
Weight::from_ref_time(7_087_000)
// Minimum execution time: 1_619 nanoseconds.
Weight::from_ref_time(1_728_000)
.saturating_add(Weight::from_proof_size(0))
}
fn noop() -> Weight {
// Proof Size summary in bytes:
// Measured: `0`
// Estimated: `0`
// Minimum execution time: 2_719 nanoseconds.
Weight::from_ref_time(2_719_000)
// Minimum execution time: 546 nanoseconds.
Weight::from_ref_time(640_000)
.saturating_add(Weight::from_proof_size(0))
}
}
@@ -442,9 +473,10 @@ impl WeightInfo for () {
fn storage_single_value_read() -> Weight {
// Proof Size summary in bytes:
// Measured: `136`
// Estimated: `499`
// Minimum execution time: 3_291 nanoseconds.
Weight::from_parts(3_291_000, 499)
// Estimated: `1489`
// Minimum execution time: 1_968 nanoseconds.
Weight::from_ref_time(2_060_000)
.saturating_add(Weight::from_proof_size(1489))
.saturating_add(RocksDbWeight::get().reads(1_u64))
}
/// Storage: Pov Value (r:1 w:0)
@@ -453,8 +485,9 @@ impl WeightInfo for () {
// Proof Size summary in bytes:
// Measured: `136`
// Estimated: `0`
// Minimum execution time: 2_918 nanoseconds.
Weight::from_ref_time(2_918_000)
// Minimum execution time: 1_934 nanoseconds.
Weight::from_ref_time(2_092_000)
.saturating_add(Weight::from_proof_size(0))
.saturating_add(RocksDbWeight::get().reads(1_u64))
}
/// Storage: Pov Value (r:1 w:0)
@@ -464,9 +497,10 @@ impl WeightInfo for () {
fn storage_single_value_ignored_some_read() -> Weight {
// Proof Size summary in bytes:
// Measured: `160`
// Estimated: `659`
// Minimum execution time: 4_056 nanoseconds.
Weight::from_parts(4_056_000, 659)
// Estimated: `1649`
// Minimum execution time: 2_605 nanoseconds.
Weight::from_ref_time(2_786_000)
.saturating_add(Weight::from_proof_size(1649))
.saturating_add(RocksDbWeight::get().reads(2_u64))
}
/// Storage: Pov Value (r:1 w:0)
@@ -474,9 +508,10 @@ impl WeightInfo for () {
fn storage_single_value_read_twice() -> Weight {
// Proof Size summary in bytes:
// Measured: `136`
// Estimated: `499`
// Minimum execution time: 3_552 nanoseconds.
Weight::from_parts(3_552_000, 499)
// Estimated: `1489`
// Minimum execution time: 2_019 nanoseconds.
Weight::from_ref_time(2_214_000)
.saturating_add(Weight::from_proof_size(1489))
.saturating_add(RocksDbWeight::get().reads(1_u64))
}
/// Storage: Pov Value (r:0 w:1)
@@ -485,8 +520,9 @@ impl WeightInfo for () {
// Proof Size summary in bytes:
// Measured: `0`
// Estimated: `0`
// Minimum execution time: 795 nanoseconds.
Weight::from_ref_time(795_000)
// Minimum execution time: 279 nanoseconds.
Weight::from_ref_time(357_000)
.saturating_add(Weight::from_proof_size(0))
.saturating_add(RocksDbWeight::get().writes(1_u64))
}
/// Storage: Pov Value (r:0 w:1)
@@ -495,8 +531,9 @@ impl WeightInfo for () {
// Proof Size summary in bytes:
// Measured: `0`
// Estimated: `0`
// Minimum execution time: 865 nanoseconds.
Weight::from_ref_time(865_000)
// Minimum execution time: 291 nanoseconds.
Weight::from_ref_time(378_000)
.saturating_add(Weight::from_proof_size(0))
.saturating_add(RocksDbWeight::get().writes(1_u64))
}
/// Storage: Pov Map1M (r:1 w:0)
@@ -504,9 +541,10 @@ impl WeightInfo for () {
fn storage_1m_map_read_one_value_two_additional_layers() -> Weight {
// Proof Size summary in bytes:
// Measured: `1275`
// Estimated: `3750`
// Minimum execution time: 9_571 nanoseconds.
Weight::from_parts(9_571_000, 3750)
// Estimated: `4740`
// Minimum execution time: 5_077 nanoseconds.
Weight::from_ref_time(5_400_000)
.saturating_add(Weight::from_proof_size(4740))
.saturating_add(RocksDbWeight::get().reads(1_u64))
}
/// Storage: Pov Map1M (r:1 w:0)
@@ -514,9 +552,10 @@ impl WeightInfo for () {
fn storage_1m_map_read_one_value_three_additional_layers() -> Weight {
// Proof Size summary in bytes:
// Measured: `1544`
// Estimated: `4019`
// Minimum execution time: 14_597 nanoseconds.
Weight::from_parts(14_597_000, 4019)
// Estimated: `5009`
// Minimum execution time: 5_878 nanoseconds.
Weight::from_ref_time(6_239_000)
.saturating_add(Weight::from_proof_size(5009))
.saturating_add(RocksDbWeight::get().reads(1_u64))
}
/// Storage: Pov Map1M (r:1 w:0)
@@ -524,9 +563,10 @@ impl WeightInfo for () {
fn storage_1m_map_read_one_value_four_additional_layers() -> Weight {
// Proof Size summary in bytes:
// Measured: `2044`
// Estimated: `4519`
// Minimum execution time: 19_793 nanoseconds.
Weight::from_parts(19_793_000, 4519)
// Estimated: `5509`
// Minimum execution time: 7_282 nanoseconds.
Weight::from_ref_time(8_022_000)
.saturating_add(Weight::from_proof_size(5509))
.saturating_add(RocksDbWeight::get().reads(1_u64))
}
/// Storage: Pov Map1M (r:100 w:0)
@@ -538,13 +578,14 @@ impl WeightInfo for () {
fn storage_map_read_per_component(n: u32, m: u32, ) -> Weight {
// Proof Size summary in bytes:
// Measured: `515 + n * (188 ±0) + m * (188 ±0)`
// Estimated: `0 + n * (3006 ±0) + m * (2511 ±0)`
// Minimum execution time: 266_160 nanoseconds.
Weight::from_ref_time(190_477_747)
// Standard Error: 96_405
.saturating_add(Weight::from_ref_time(1_049_993).saturating_mul(n.into()))
// Standard Error: 96_405
.saturating_add(Weight::from_ref_time(1_202_546).saturating_mul(m.into()))
// Estimated: `1980 + n * (3006 ±0) + m * (2511 ±0)`
// Minimum execution time: 195_406 nanoseconds.
Weight::from_ref_time(129_093_464)
.saturating_add(Weight::from_proof_size(1980))
// Standard Error: 12_134
.saturating_add(Weight::from_ref_time(855_330).saturating_mul(n.into()))
// Standard Error: 12_134
.saturating_add(Weight::from_ref_time(870_523).saturating_mul(m.into()))
.saturating_add(RocksDbWeight::get().reads((1_u64).saturating_mul(n.into())))
.saturating_add(RocksDbWeight::get().reads((1_u64).saturating_mul(m.into())))
.saturating_add(Weight::from_proof_size(3006).saturating_mul(n.into()))
@@ -559,13 +600,14 @@ impl WeightInfo for () {
fn storage_map_read_per_component_one_ignored(n: u32, m: u32, ) -> Weight {
// Proof Size summary in bytes:
// Measured: `515 + n * (188 ±0) + m * (188 ±0)`
// Estimated: `695 + n * (3195 ±2) + m * (189 ±2)`
// Minimum execution time: 265_113 nanoseconds.
Weight::from_parts(215_943_973, 695)
// Standard Error: 199_907
.saturating_add(Weight::from_ref_time(988_371).saturating_mul(n.into()))
// Standard Error: 199_907
.saturating_add(Weight::from_ref_time(1_145_693).saturating_mul(m.into()))
// Estimated: `1685 + n * (3195 ±0) + m * (189 ±0)`
// Minimum execution time: 195_053 nanoseconds.
Weight::from_ref_time(131_322_479)
.saturating_add(Weight::from_proof_size(1685))
// Standard Error: 12_161
.saturating_add(Weight::from_ref_time(843_047).saturating_mul(n.into()))
// Standard Error: 12_161
.saturating_add(Weight::from_ref_time(858_668).saturating_mul(m.into()))
.saturating_add(RocksDbWeight::get().reads((1_u64).saturating_mul(n.into())))
.saturating_add(RocksDbWeight::get().reads((1_u64).saturating_mul(m.into())))
.saturating_add(Weight::from_proof_size(3195).saturating_mul(n.into()))
@@ -577,11 +619,12 @@ impl WeightInfo for () {
fn storage_1m_map_one_entry_repeated_read(n: u32, ) -> Weight {
// Proof Size summary in bytes:
// Measured: `170`
// Estimated: `2511`
// Minimum execution time: 119 nanoseconds.
Weight::from_parts(3_649_405, 2511)
// Standard Error: 4_472
.saturating_add(Weight::from_ref_time(432_147).saturating_mul(n.into()))
// Estimated: `3501`
// Minimum execution time: 22 nanoseconds.
Weight::from_ref_time(2_334_945)
.saturating_add(Weight::from_proof_size(3501))
// Standard Error: 624
.saturating_add(Weight::from_ref_time(282_046).saturating_mul(n.into()))
.saturating_add(RocksDbWeight::get().reads(1_u64))
}
/// Storage: Pov Map1M (r:100 w:0)
@@ -590,11 +633,12 @@ impl WeightInfo for () {
fn storage_1m_map_multiple_entry_repeated_read(n: u32, ) -> Weight {
// Proof Size summary in bytes:
// Measured: `147 + n * (40 ±0)`
// Estimated: `0 + n * (2511 ±0)`
// Minimum execution time: 106 nanoseconds.
Weight::from_ref_time(59_892_609)
// Standard Error: 418_004
.saturating_add(Weight::from_ref_time(5_919_793).saturating_mul(n.into()))
// Estimated: `990 + n * (2511 ±0)`
// Minimum execution time: 20 nanoseconds.
Weight::from_ref_time(525_027)
.saturating_add(Weight::from_proof_size(990))
// Standard Error: 2_767
.saturating_add(Weight::from_ref_time(3_887_350).saturating_mul(n.into()))
.saturating_add(RocksDbWeight::get().reads((1_u64).saturating_mul(n.into())))
.saturating_add(Weight::from_proof_size(2511).saturating_mul(n.into()))
}
@@ -604,11 +648,12 @@ impl WeightInfo for () {
fn storage_1m_double_map_read_per_component(n: u32, ) -> Weight {
// Proof Size summary in bytes:
// Measured: `21938 + n * (57 ±0)`
// Estimated: `0 + n * (2543 ±0)`
// Minimum execution time: 550 nanoseconds.
Weight::from_ref_time(65_431_603)
// Standard Error: 66_935
.saturating_add(Weight::from_ref_time(2_825_371).saturating_mul(n.into()))
// Estimated: `990 + n * (2543 ±0)`
// Minimum execution time: 34 nanoseconds.
Weight::from_ref_time(18_341_393)
.saturating_add(Weight::from_proof_size(990))
// Standard Error: 1_312
.saturating_add(Weight::from_ref_time(2_053_135).saturating_mul(n.into()))
.saturating_add(RocksDbWeight::get().reads((1_u64).saturating_mul(n.into())))
.saturating_add(Weight::from_proof_size(2543).saturating_mul(n.into()))
}
@@ -617,9 +662,10 @@ impl WeightInfo for () {
fn storage_value_bounded_read() -> Weight {
// Proof Size summary in bytes:
// Measured: `109`
// Estimated: `528`
// Minimum execution time: 2_541 nanoseconds.
Weight::from_parts(2_541_000, 528)
// Estimated: `1518`
// Minimum execution time: 1_163 nanoseconds.
Weight::from_ref_time(1_274_000)
.saturating_add(Weight::from_proof_size(1518))
.saturating_add(RocksDbWeight::get().reads(1_u64))
}
/// Storage: Pov UnboundedValue (r:1 w:0)
@@ -627,9 +673,10 @@ impl WeightInfo for () {
fn storage_value_unbounded_read() -> Weight {
// Proof Size summary in bytes:
// Measured: `109`
// Estimated: `604`
// Minimum execution time: 2_226 nanoseconds.
Weight::from_parts(2_226_000, 604)
// Estimated: `1594`
// Minimum execution time: 1_167 nanoseconds.
Weight::from_ref_time(1_367_000)
.saturating_add(Weight::from_proof_size(1594))
.saturating_add(RocksDbWeight::get().reads(1_u64))
}
/// Storage: Pov UnboundedValue (r:1 w:0)
@@ -638,8 +685,9 @@ impl WeightInfo for () {
// Proof Size summary in bytes:
// Measured: `109`
// Estimated: `0`
// Minimum execution time: 2_100 nanoseconds.
Weight::from_ref_time(2_100_000)
// Minimum execution time: 1_155 nanoseconds.
Weight::from_ref_time(1_248_000)
.saturating_add(Weight::from_proof_size(0))
.saturating_add(RocksDbWeight::get().reads(1_u64))
}
/// Storage: Pov UnboundedValue (r:1 w:0)
@@ -649,9 +697,10 @@ impl WeightInfo for () {
fn storage_value_bounded_and_unbounded_read() -> Weight {
// Proof Size summary in bytes:
// Measured: `109`
// Estimated: `1132`
// Minimum execution time: 2_808 nanoseconds.
Weight::from_parts(2_808_000, 1132)
// Estimated: `3112`
// Minimum execution time: 1_424 nanoseconds.
Weight::from_ref_time(1_601_000)
.saturating_add(Weight::from_proof_size(3112))
.saturating_add(RocksDbWeight::get().reads(2_u64))
}
/// Storage: Pov LargeValue (r:1 w:0)
@@ -660,11 +709,12 @@ impl WeightInfo for () {
fn measured_storage_value_read_linear_size(l: u32, ) -> Weight {
// Proof Size summary in bytes:
// Measured: `174 + l * (1 ±0)`
// Estimated: `666 + l * (1 ±0)`
// Minimum execution time: 3_385 nanoseconds.
Weight::from_parts(3_385_000, 666)
// Standard Error: 10
.saturating_add(Weight::from_ref_time(356).saturating_mul(l.into()))
// Estimated: `1656 + l * (1 ±0)`
// Minimum execution time: 1_744 nanoseconds.
Weight::from_ref_time(1_800_000)
.saturating_add(Weight::from_proof_size(1656))
// Standard Error: 4
.saturating_add(Weight::from_ref_time(443).saturating_mul(l.into()))
.saturating_add(RocksDbWeight::get().reads(1_u64))
.saturating_add(Weight::from_proof_size(1).saturating_mul(l.into()))
}
@@ -674,11 +724,12 @@ impl WeightInfo for () {
fn mel_storage_value_read_linear_size(l: u32, ) -> Weight {
// Proof Size summary in bytes:
// Measured: `174 + l * (1 ±0)`
// Estimated: `4194803`
// Minimum execution time: 3_342 nanoseconds.
Weight::from_parts(3_342_000, 4194803)
// Estimated: `4195793`
// Minimum execution time: 1_770 nanoseconds.
Weight::from_ref_time(1_813_000)
.saturating_add(Weight::from_proof_size(4195793))
// Standard Error: 6
.saturating_add(Weight::from_ref_time(345).saturating_mul(l.into()))
.saturating_add(Weight::from_ref_time(495).saturating_mul(l.into()))
.saturating_add(RocksDbWeight::get().reads(1_u64))
}
/// Storage: Pov LargeValue (r:1 w:0)
@@ -689,11 +740,12 @@ impl WeightInfo for () {
fn measured_storage_double_value_read_linear_size(l: u32, ) -> Weight {
// Proof Size summary in bytes:
// Measured: `235 + l * (2 ±0)`
// Estimated: `1448 + l * (4 ±0)`
// Minimum execution time: 4_519 nanoseconds.
Weight::from_parts(4_519_000, 1448)
// Standard Error: 9
.saturating_add(Weight::from_ref_time(560).saturating_mul(l.into()))
// Estimated: `3428 + l * (4 ±0)`
// Minimum execution time: 2_349 nanoseconds.
Weight::from_ref_time(2_423_000)
.saturating_add(Weight::from_proof_size(3428))
// Standard Error: 11
.saturating_add(Weight::from_ref_time(950).saturating_mul(l.into()))
.saturating_add(RocksDbWeight::get().reads(2_u64))
.saturating_add(Weight::from_proof_size(4).saturating_mul(l.into()))
}
@@ -705,11 +757,12 @@ impl WeightInfo for () {
fn mel_storage_double_value_read_linear_size(l: u32, ) -> Weight {
// Proof Size summary in bytes:
// Measured: `235 + l * (2 ±0)`
// Estimated: `8389606`
// Minimum execution time: 4_462 nanoseconds.
Weight::from_parts(4_462_000, 8389606)
// Standard Error: 7
.saturating_add(Weight::from_ref_time(538).saturating_mul(l.into()))
// Estimated: `8391586`
// Minimum execution time: 2_315 nanoseconds.
Weight::from_ref_time(2_409_000)
.saturating_add(Weight::from_proof_size(8391586))
// Standard Error: 12
.saturating_add(Weight::from_ref_time(984).saturating_mul(l.into()))
.saturating_add(RocksDbWeight::get().reads(2_u64))
}
/// Storage: Pov LargeValue (r:1 w:0)
@@ -720,11 +773,12 @@ impl WeightInfo for () {
fn mel_mixed_storage_double_value_read_linear_size(l: u32, ) -> Weight {
// Proof Size summary in bytes:
// Measured: `235 + l * (2 ±0)`
// Estimated: `4195527 + l * (2 ±0)`
// Minimum execution time: 4_552 nanoseconds.
Weight::from_parts(4_552_000, 4195527)
// Standard Error: 6
.saturating_add(Weight::from_ref_time(507).saturating_mul(l.into()))
// Estimated: `4197507 + l * (2 ±0)`
// Minimum execution time: 2_370 nanoseconds.
Weight::from_ref_time(2_474_000)
.saturating_add(Weight::from_proof_size(4197507))
// Standard Error: 11
.saturating_add(Weight::from_ref_time(956).saturating_mul(l.into()))
.saturating_add(RocksDbWeight::get().reads(2_u64))
.saturating_add(Weight::from_proof_size(2).saturating_mul(l.into()))
}
@@ -736,11 +790,12 @@ impl WeightInfo for () {
fn measured_mixed_storage_double_value_read_linear_size(l: u32, ) -> Weight {
// Proof Size summary in bytes:
// Measured: `235 + l * (2 ±0)`
// Estimated: `4195527 + l * (2 ±0)`
// Minimum execution time: 4_236 nanoseconds.
Weight::from_parts(4_236_000, 4195527)
// Standard Error: 8
.saturating_add(Weight::from_ref_time(517).saturating_mul(l.into()))
// Estimated: `4197507 + l * (2 ±0)`
// Minimum execution time: 2_375 nanoseconds.
Weight::from_ref_time(2_420_000)
.saturating_add(Weight::from_proof_size(4197507))
// Standard Error: 9
.saturating_add(Weight::from_ref_time(914).saturating_mul(l.into()))
.saturating_add(RocksDbWeight::get().reads(2_u64))
.saturating_add(Weight::from_proof_size(2).saturating_mul(l.into()))
}
@@ -752,11 +807,12 @@ impl WeightInfo for () {
fn storage_map_unbounded_both_measured_read(i: u32, ) -> Weight {
// Proof Size summary in bytes:
// Measured: `293 + i * (8 ±0)`
// Estimated: `5524 + i * (16 ±0)`
// Minimum execution time: 5_649 nanoseconds.
Weight::from_parts(6_111_237, 5524)
// Standard Error: 1_060
.saturating_add(Weight::from_ref_time(2_693).saturating_mul(i.into()))
// Estimated: `7504 + i * (16 ±0)`
// Minimum execution time: 3_305 nanoseconds.
Weight::from_ref_time(3_689_335)
.saturating_add(Weight::from_proof_size(7504))
// Standard Error: 29
.saturating_add(Weight::from_ref_time(638).saturating_mul(i.into()))
.saturating_add(RocksDbWeight::get().reads(2_u64))
.saturating_add(Weight::from_proof_size(16).saturating_mul(i.into()))
}
@@ -768,9 +824,12 @@ impl WeightInfo for () {
fn storage_map_partial_unbounded_read(i: u32, ) -> Weight {
// Proof Size summary in bytes:
// Measured: `260 + i * (4 ±0)`
// Estimated: `5243 + i * (4 ±0)`
// Minimum execution time: 5_997 nanoseconds.
Weight::from_parts(7_996_508, 5243)
// Estimated: `7223 + i * (4 ±0)`
// Minimum execution time: 3_469 nanoseconds.
Weight::from_ref_time(3_878_896)
.saturating_add(Weight::from_proof_size(7223))
// Standard Error: 33
.saturating_add(Weight::from_ref_time(356).saturating_mul(i.into()))
.saturating_add(RocksDbWeight::get().reads(2_u64))
.saturating_add(Weight::from_proof_size(4).saturating_mul(i.into()))
}
@@ -782,11 +841,12 @@ impl WeightInfo for () {
fn storage_map_partial_unbounded_ignored_read(i: u32, ) -> Weight {
// Proof Size summary in bytes:
// Measured: `260 + i * (4 ±0)`
// Estimated: `2768 + i * (4 ±0)`
// Minimum execution time: 5_679 nanoseconds.
Weight::from_parts(6_496_804, 2768)
// Standard Error: 611
.saturating_add(Weight::from_ref_time(930).saturating_mul(i.into()))
// Estimated: `3758 + i * (4 ±0)`
// Minimum execution time: 3_442 nanoseconds.
Weight::from_ref_time(3_881_051)
.saturating_add(Weight::from_proof_size(3758))
// Standard Error: 35
.saturating_add(Weight::from_ref_time(384).saturating_mul(i.into()))
.saturating_add(RocksDbWeight::get().reads(2_u64))
.saturating_add(Weight::from_proof_size(4).saturating_mul(i.into()))
}
@@ -794,14 +854,16 @@ impl WeightInfo for () {
// Proof Size summary in bytes:
// Measured: `0`
// Estimated: `0`
// Minimum execution time: 7_087 nanoseconds.
Weight::from_ref_time(7_087_000)
// Minimum execution time: 1_619 nanoseconds.
Weight::from_ref_time(1_728_000)
.saturating_add(Weight::from_proof_size(0))
}
fn noop() -> Weight {
// Proof Size summary in bytes:
// Measured: `0`
// Estimated: `0`
// Minimum execution time: 2_719 nanoseconds.
Weight::from_ref_time(2_719_000)
// Minimum execution time: 546 nanoseconds.
Weight::from_ref_time(640_000)
.saturating_add(Weight::from_proof_size(0))
}
}