mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-18 23:31:04 +00:00
Add Proof Size to Weight Output (#11637)
* initial impl * add template test * linear fit proof size * always record proof when tracking storage * calculate worst case pov * remove duplicate worst case * cargo run --quiet --profile=production --features=runtime-benchmarks --manifest-path=bin/node/cli/Cargo.toml -- benchmark pallet --chain=dev --steps=50 --repeat=20 --pallet=pallet_assets --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --output=./frame/assets/src/weights.rs --template=./.maintain/frame-weight-template.hbs * more comment output * add cli for worst case map size * update name * clap does not support underscores * rename * expose worst case map values * improve some comments * cargo run --quiet --profile=production --features=runtime-benchmarks --manifest-path=bin/node/cli/Cargo.toml -- benchmark pallet --chain=dev --steps=50 --repeat=20 --pallet=pallet_assets --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --output=./frame/assets/src/weights.rs --template=./.maintain/frame-weight-template.hbs * update template * cargo run --quiet --profile=production --features=runtime-benchmarks --manifest-path=bin/node/cli/Cargo.toml -- benchmark pallet --chain=dev --steps=50 --repeat=20 --pallet=pallet_assets --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --output=./frame/assets/src/weights.rs --template=./.maintain/frame-weight-template.hbs * fix fmt * more fmt * more fmt * Dont panic when there is no proof Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> * Fix test features Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> * Whitelist :extrinsic_index Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> * Use whitelist when recording proof Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> * Add logs Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> * Add PoV testing pallet Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> * Deploy PoV testing pallet Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> * Storage benches reside in the PoV pallet Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> * Linear regress PoV per component Splits the PoV calculation into "measured" and "estimated". The measured part is reported by the Proof recorder and linear regressed over all components at once. The estimated part is calculated as worst-case by using the max PoV size per storage access and calculating one linear regress per component. This gives each component a (possibly) independent PoV. For now the measured size will always be lower than the PoV on Polkadot since it is measured on an empty snapshot. The measured part is therefor only used as diagnostic for debugging. Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> * Put PoV into the weight templates Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> * fmt Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> * Extra alanysis choise for PoV Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> * Add+Fix tests Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> * Make benches faster Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> * Cleanup Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> * Use same template comments Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> * ".git/.scripts/bench-bot.sh" pallet dev pallet_balances * ".git/.scripts/bench-bot.sh" pallet dev pallet_democracy * Update referenda mock BlockWeights Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> * Take measured value size into account Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> * clippy Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> * ".git/.scripts/bench-bot.sh" pallet dev pallet_scheduler * WIP Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> * proof_size: None Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> * WIP Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> * WIP Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> * WIP Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> * ugly, but works Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> * WIP Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> * WIP Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> * WIP Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> * wup Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> * WIP Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> * WIP Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> * WIP Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> * WIP Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> * Add pov_mode attribute to the benchmarks! macro Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> * Use pov_mode attribute in PoV benchmarking Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> * Update tests Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> * Scheduler, Whitelist: Add pov_mode attr Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> * Update PoV weights * Add CLI arg: default-pov-mode Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> * Fix tests Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> * fmt Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> * fix Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> * Revert "Update PoV weights" This reverts commit 2f3ac2387396470b118122a6ff8fa4ee12216f4b. * Revert "WIP" This reverts commit c34b538cd2bc45da4544e887180184e30957904a. * Revert first approach This reverts commit range 8ddaa2fffe5930f225a30bee314d0b7c94c344dd^..4c84f8748e5395852a9e0e25b0404953fee1a59e Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> * Clippy Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> * Add extra benchmarks Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> * ".git/.scripts/commands/bench/bench.sh" pallet dev pallet_alliance * ".git/.scripts/commands/bench/bench.sh" pallet dev pallet_whitelist * ".git/.scripts/commands/bench/bench.sh" pallet dev pallet_scheduler * fmt Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> * Clippy Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> * Clippy 🤦 Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> * Add reference benchmarks Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> * Fix doc comments Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> * Undo logging Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> * Add 'Ignored' pov_mode Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> * Allow multiple attributes per benchmark Turns out that the current benchmarking syntax does not support multiple attributes per bench 🤦. Changing it to support that since otherwise the `pov_mode` would conflict with the others. Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> * Validate pov_mode syntax Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> * Ignore PoV for all contract benchmarks Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> * Test Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> * test Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> * Bump macro recursion limit Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> * fmt Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> * Update contract weights They dont have a PoV component anymore. Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> * fix test ffs Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> * pov_mode is unsupported in V2 syntax Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> * Fix pallet ui tests Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> * update pallet ui Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> * Fix pallet ui tests Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> * Update weights 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: Parity Bot <admin@parity.io> Co-authored-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> Co-authored-by: command-bot <> Co-authored-by: Your Name <you@example.com>
This commit is contained in:
@@ -0,0 +1,807 @@
|
||||
|
||||
//! 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: `[]`
|
||||
//! WORST CASE MAP SIZE: `1000000`
|
||||
//! HOSTNAME: `oty-parity`, CPU: `11th Gen Intel(R) Core(TM) i7-1165G7 @ 2.80GHz`
|
||||
//! EXECUTION: None, WASM-EXECUTION: Compiled, CHAIN: None, DB CACHE: 1024
|
||||
|
||||
// Executed Command:
|
||||
// ./target/release/substrate
|
||||
// benchmark
|
||||
// pallet
|
||||
// --dev
|
||||
// --pallet
|
||||
// frame-benchmarking-pallet-pov
|
||||
// --extrinsic
|
||||
//
|
||||
// --steps
|
||||
// 50
|
||||
// --repeat
|
||||
// 1
|
||||
// --template=.maintain/frame-weight-template.hbs
|
||||
// --output=frame/benchmarking/pov/src/weights.rs
|
||||
|
||||
#![cfg_attr(rustfmt, rustfmt_skip)]
|
||||
#![allow(unused_parens)]
|
||||
#![allow(unused_imports)]
|
||||
|
||||
use frame_support::{traits::Get, weights::{Weight, constants::RocksDbWeight}};
|
||||
use sp_std::marker::PhantomData;
|
||||
|
||||
/// Weight functions needed for frame_benchmarking_pallet_pov.
|
||||
pub trait WeightInfo {
|
||||
fn storage_single_value_read() -> Weight;
|
||||
fn storage_single_value_ignored_read() -> Weight;
|
||||
fn storage_single_value_ignored_some_read() -> Weight;
|
||||
fn storage_single_value_read_twice() -> Weight;
|
||||
fn storage_single_value_write() -> Weight;
|
||||
fn storage_single_value_kill() -> Weight;
|
||||
fn storage_1m_map_read_one_value_two_additional_layers() -> Weight;
|
||||
fn storage_1m_map_read_one_value_three_additional_layers() -> Weight;
|
||||
fn storage_1m_map_read_one_value_four_additional_layers() -> Weight;
|
||||
fn storage_map_read_per_component(n: u32, m: u32, ) -> Weight;
|
||||
fn storage_map_read_per_component_one_ignored(n: u32, m: u32, ) -> Weight;
|
||||
fn storage_1m_map_one_entry_repeated_read(n: u32, ) -> Weight;
|
||||
fn storage_1m_map_multiple_entry_repeated_read(n: u32, ) -> Weight;
|
||||
fn storage_1m_double_map_read_per_component(n: u32, ) -> Weight;
|
||||
fn storage_value_bounded_read() -> Weight;
|
||||
fn storage_value_unbounded_read() -> Weight;
|
||||
fn storage_value_unbounded_ignored_read() -> Weight;
|
||||
fn storage_value_bounded_and_unbounded_read() -> Weight;
|
||||
fn measured_storage_value_read_linear_size(l: u32, ) -> Weight;
|
||||
fn mel_storage_value_read_linear_size(l: u32, ) -> Weight;
|
||||
fn measured_storage_double_value_read_linear_size(l: u32, ) -> Weight;
|
||||
fn mel_storage_double_value_read_linear_size(l: u32, ) -> Weight;
|
||||
fn mel_mixed_storage_double_value_read_linear_size(l: u32, ) -> Weight;
|
||||
fn measured_mixed_storage_double_value_read_linear_size(l: u32, ) -> Weight;
|
||||
fn storage_map_unbounded_both_measured_read(i: u32, ) -> Weight;
|
||||
fn storage_map_partial_unbounded_read(i: u32, ) -> Weight;
|
||||
fn storage_map_partial_unbounded_ignored_read(i: u32, ) -> Weight;
|
||||
fn emit_event() -> Weight;
|
||||
fn noop() -> Weight;
|
||||
}
|
||||
|
||||
/// Weights for frame_benchmarking_pallet_pov using the Substrate node and recommended hardware.
|
||||
pub struct SubstrateWeight<T>(PhantomData<T>);
|
||||
impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
||||
/// Storage: Pov Value (r:1 w:0)
|
||||
/// Proof: Pov Value (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)
|
||||
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)
|
||||
.saturating_add(T::DbWeight::get().reads(1_u64))
|
||||
}
|
||||
/// Storage: Pov Value (r:1 w:0)
|
||||
/// Proof: Pov Value (max_values: Some(1), max_size: Some(4), added: 499, mode: Ignored)
|
||||
fn storage_single_value_ignored_read() -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `136`
|
||||
// Estimated: `0`
|
||||
// Minimum execution time: 2_918 nanoseconds.
|
||||
Weight::from_ref_time(2_918_000)
|
||||
.saturating_add(T::DbWeight::get().reads(1_u64))
|
||||
}
|
||||
/// Storage: Pov Value (r:1 w:0)
|
||||
/// Proof: Pov Value (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)
|
||||
/// Storage: Pov Value2 (r:1 w:0)
|
||||
/// Proof: Pov Value2 (max_values: Some(1), max_size: Some(4), added: 499, mode: Ignored)
|
||||
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)
|
||||
.saturating_add(T::DbWeight::get().reads(2_u64))
|
||||
}
|
||||
/// Storage: Pov Value (r:1 w:0)
|
||||
/// Proof: Pov Value (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)
|
||||
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)
|
||||
.saturating_add(T::DbWeight::get().reads(1_u64))
|
||||
}
|
||||
/// Storage: Pov Value (r:0 w:1)
|
||||
/// Proof: Pov Value (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)
|
||||
fn storage_single_value_write() -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `0`
|
||||
// Estimated: `0`
|
||||
// Minimum execution time: 795 nanoseconds.
|
||||
Weight::from_ref_time(795_000)
|
||||
.saturating_add(T::DbWeight::get().writes(1_u64))
|
||||
}
|
||||
/// Storage: Pov Value (r:0 w:1)
|
||||
/// Proof: Pov Value (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)
|
||||
fn storage_single_value_kill() -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `0`
|
||||
// Estimated: `0`
|
||||
// Minimum execution time: 865 nanoseconds.
|
||||
Weight::from_ref_time(865_000)
|
||||
.saturating_add(T::DbWeight::get().writes(1_u64))
|
||||
}
|
||||
/// Storage: Pov Map1M (r:1 w:0)
|
||||
/// Proof: Pov Map1M (max_values: Some(1000000), max_size: Some(36), added: 2511, mode: Measured)
|
||||
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)
|
||||
.saturating_add(T::DbWeight::get().reads(1_u64))
|
||||
}
|
||||
/// Storage: Pov Map1M (r:1 w:0)
|
||||
/// Proof: Pov Map1M (max_values: Some(1000000), max_size: Some(36), added: 2511, mode: Measured)
|
||||
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)
|
||||
.saturating_add(T::DbWeight::get().reads(1_u64))
|
||||
}
|
||||
/// Storage: Pov Map1M (r:1 w:0)
|
||||
/// Proof: Pov Map1M (max_values: Some(1000000), max_size: Some(36), added: 2511, mode: Measured)
|
||||
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)
|
||||
.saturating_add(T::DbWeight::get().reads(1_u64))
|
||||
}
|
||||
/// Storage: Pov Map1M (r:100 w:0)
|
||||
/// Proof: Pov Map1M (max_values: Some(1000000), max_size: Some(36), added: 2511, mode: MaxEncodedLen)
|
||||
/// Storage: Pov Map16M (r:100 w:0)
|
||||
/// Proof: Pov Map16M (max_values: Some(16000000), max_size: Some(36), added: 3006, mode: MaxEncodedLen)
|
||||
/// The range of component `n` is `[0, 100]`.
|
||||
/// The range of component `m` is `[0, 100]`.
|
||||
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()))
|
||||
.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()))
|
||||
.saturating_add(Weight::from_proof_size(2511).saturating_mul(m.into()))
|
||||
}
|
||||
/// Storage: Pov Map1M (r:100 w:0)
|
||||
/// Proof: Pov Map1M (max_values: Some(1000000), max_size: Some(36), added: 2511, mode: Ignored)
|
||||
/// Storage: Pov Map16M (r:100 w:0)
|
||||
/// Proof: Pov Map16M (max_values: Some(16000000), max_size: Some(36), added: 3006, mode: MaxEncodedLen)
|
||||
/// The range of component `n` is `[0, 100]`.
|
||||
/// The range of component `m` is `[0, 100]`.
|
||||
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()))
|
||||
.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()))
|
||||
.saturating_add(Weight::from_proof_size(189).saturating_mul(m.into()))
|
||||
}
|
||||
/// Storage: Pov Map1M (r:1 w:0)
|
||||
/// Proof: Pov Map1M (max_values: Some(1000000), max_size: Some(36), added: 2511, mode: MaxEncodedLen)
|
||||
/// The range of component `n` is `[0, 100]`.
|
||||
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()))
|
||||
.saturating_add(T::DbWeight::get().reads(1_u64))
|
||||
}
|
||||
/// Storage: Pov Map1M (r:100 w:0)
|
||||
/// Proof: Pov Map1M (max_values: Some(1000000), max_size: Some(36), added: 2511, mode: MaxEncodedLen)
|
||||
/// The range of component `n` is `[0, 100]`.
|
||||
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()))
|
||||
.saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(n.into())))
|
||||
.saturating_add(Weight::from_proof_size(2511).saturating_mul(n.into()))
|
||||
}
|
||||
/// Storage: Pov DoubleMap1M (r:1024 w:0)
|
||||
/// Proof: Pov DoubleMap1M (max_values: Some(1000000), max_size: Some(68), added: 2543, mode: MaxEncodedLen)
|
||||
/// The range of component `n` is `[0, 1024]`.
|
||||
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()))
|
||||
.saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(n.into())))
|
||||
.saturating_add(Weight::from_proof_size(2543).saturating_mul(n.into()))
|
||||
}
|
||||
/// Storage: Pov BoundedValue (r:1 w:0)
|
||||
/// Proof: Pov BoundedValue (max_values: Some(1), max_size: Some(33), added: 528, mode: MaxEncodedLen)
|
||||
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)
|
||||
.saturating_add(T::DbWeight::get().reads(1_u64))
|
||||
}
|
||||
/// Storage: Pov UnboundedValue (r:1 w:0)
|
||||
/// Proof Skipped: Pov UnboundedValue (max_values: Some(1), max_size: None, mode: Measured)
|
||||
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)
|
||||
.saturating_add(T::DbWeight::get().reads(1_u64))
|
||||
}
|
||||
/// Storage: Pov UnboundedValue (r:1 w:0)
|
||||
/// Proof Skipped: Pov UnboundedValue (max_values: Some(1), max_size: None, mode: Ignored)
|
||||
fn storage_value_unbounded_ignored_read() -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `109`
|
||||
// Estimated: `0`
|
||||
// Minimum execution time: 2_100 nanoseconds.
|
||||
Weight::from_ref_time(2_100_000)
|
||||
.saturating_add(T::DbWeight::get().reads(1_u64))
|
||||
}
|
||||
/// Storage: Pov UnboundedValue (r:1 w:0)
|
||||
/// Proof Skipped: Pov UnboundedValue (max_values: Some(1), max_size: None, mode: Measured)
|
||||
/// Storage: Pov BoundedValue (r:1 w:0)
|
||||
/// Proof: Pov BoundedValue (max_values: Some(1), max_size: Some(33), added: 528, mode: MaxEncodedLen)
|
||||
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)
|
||||
.saturating_add(T::DbWeight::get().reads(2_u64))
|
||||
}
|
||||
/// Storage: Pov LargeValue (r:1 w:0)
|
||||
/// Proof: Pov LargeValue (max_values: Some(1), max_size: Some(4194308), added: 4194803, mode: Measured)
|
||||
/// The range of component `l` is `[0, 4194304]`.
|
||||
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()))
|
||||
.saturating_add(T::DbWeight::get().reads(1_u64))
|
||||
.saturating_add(Weight::from_proof_size(1).saturating_mul(l.into()))
|
||||
}
|
||||
/// Storage: Pov LargeValue (r:1 w:0)
|
||||
/// Proof: Pov LargeValue (max_values: Some(1), max_size: Some(4194308), added: 4194803, mode: MaxEncodedLen)
|
||||
/// The range of component `l` is `[0, 4194304]`.
|
||||
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)
|
||||
// Standard Error: 6
|
||||
.saturating_add(Weight::from_ref_time(345).saturating_mul(l.into()))
|
||||
.saturating_add(T::DbWeight::get().reads(1_u64))
|
||||
}
|
||||
/// Storage: Pov LargeValue (r:1 w:0)
|
||||
/// Proof: Pov LargeValue (max_values: Some(1), max_size: Some(4194308), added: 4194803, mode: Measured)
|
||||
/// Storage: Pov LargeValue2 (r:1 w:0)
|
||||
/// Proof: Pov LargeValue2 (max_values: Some(1), max_size: Some(4194308), added: 4194803, mode: Measured)
|
||||
/// The range of component `l` is `[0, 4194304]`.
|
||||
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()))
|
||||
.saturating_add(T::DbWeight::get().reads(2_u64))
|
||||
.saturating_add(Weight::from_proof_size(4).saturating_mul(l.into()))
|
||||
}
|
||||
/// Storage: Pov LargeValue (r:1 w:0)
|
||||
/// Proof: Pov LargeValue (max_values: Some(1), max_size: Some(4194308), added: 4194803, mode: MaxEncodedLen)
|
||||
/// Storage: Pov LargeValue2 (r:1 w:0)
|
||||
/// Proof: Pov LargeValue2 (max_values: Some(1), max_size: Some(4194308), added: 4194803, mode: MaxEncodedLen)
|
||||
/// The range of component `l` is `[0, 4194304]`.
|
||||
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()))
|
||||
.saturating_add(T::DbWeight::get().reads(2_u64))
|
||||
}
|
||||
/// Storage: Pov LargeValue (r:1 w:0)
|
||||
/// Proof: Pov LargeValue (max_values: Some(1), max_size: Some(4194308), added: 4194803, mode: MaxEncodedLen)
|
||||
/// Storage: Pov LargeValue2 (r:1 w:0)
|
||||
/// Proof: Pov LargeValue2 (max_values: Some(1), max_size: Some(4194308), added: 4194803, mode: Measured)
|
||||
/// The range of component `l` is `[0, 4194304]`.
|
||||
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()))
|
||||
.saturating_add(T::DbWeight::get().reads(2_u64))
|
||||
.saturating_add(Weight::from_proof_size(2).saturating_mul(l.into()))
|
||||
}
|
||||
/// Storage: Pov LargeValue (r:1 w:0)
|
||||
/// Proof: Pov LargeValue (max_values: Some(1), max_size: Some(4194308), added: 4194803, mode: Measured)
|
||||
/// Storage: Pov LargeValue2 (r:1 w:0)
|
||||
/// Proof: Pov LargeValue2 (max_values: Some(1), max_size: Some(4194308), added: 4194803, mode: MaxEncodedLen)
|
||||
/// The range of component `l` is `[0, 4194304]`.
|
||||
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()))
|
||||
.saturating_add(T::DbWeight::get().reads(2_u64))
|
||||
.saturating_add(Weight::from_proof_size(2).saturating_mul(l.into()))
|
||||
}
|
||||
/// Storage: Pov UnboundedMap (r:1 w:0)
|
||||
/// Proof Skipped: Pov UnboundedMap (max_values: None, max_size: None, mode: Measured)
|
||||
/// Storage: Pov UnboundedMap2 (r:1 w:0)
|
||||
/// Proof Skipped: Pov UnboundedMap2 (max_values: None, max_size: None, mode: Measured)
|
||||
/// The range of component `i` is `[0, 1000]`.
|
||||
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()))
|
||||
.saturating_add(T::DbWeight::get().reads(2_u64))
|
||||
.saturating_add(Weight::from_proof_size(16).saturating_mul(i.into()))
|
||||
}
|
||||
/// Storage: Pov Map1M (r:1 w:0)
|
||||
/// Proof: Pov Map1M (max_values: Some(1000000), max_size: Some(36), added: 2511, mode: MaxEncodedLen)
|
||||
/// Storage: Pov UnboundedMap (r:1 w:0)
|
||||
/// Proof Skipped: Pov UnboundedMap (max_values: None, max_size: None, mode: Measured)
|
||||
/// The range of component `i` is `[0, 1000]`.
|
||||
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)
|
||||
.saturating_add(T::DbWeight::get().reads(2_u64))
|
||||
.saturating_add(Weight::from_proof_size(4).saturating_mul(i.into()))
|
||||
}
|
||||
/// Storage: Pov Map1M (r:1 w:0)
|
||||
/// Proof: Pov Map1M (max_values: Some(1000000), max_size: Some(36), added: 2511, mode: MaxEncodedLen)
|
||||
/// Storage: Pov UnboundedMap (r:1 w:0)
|
||||
/// Proof Skipped: Pov UnboundedMap (max_values: None, max_size: None, mode: Ignored)
|
||||
/// The range of component `i` is `[0, 1000]`.
|
||||
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()))
|
||||
.saturating_add(T::DbWeight::get().reads(2_u64))
|
||||
.saturating_add(Weight::from_proof_size(4).saturating_mul(i.into()))
|
||||
}
|
||||
fn emit_event() -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `0`
|
||||
// Estimated: `0`
|
||||
// Minimum execution time: 7_087 nanoseconds.
|
||||
Weight::from_ref_time(7_087_000)
|
||||
}
|
||||
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)
|
||||
}
|
||||
}
|
||||
|
||||
// For backwards compatibility and tests
|
||||
impl WeightInfo for () {
|
||||
/// Storage: Pov Value (r:1 w:0)
|
||||
/// Proof: Pov Value (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)
|
||||
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)
|
||||
.saturating_add(RocksDbWeight::get().reads(1_u64))
|
||||
}
|
||||
/// Storage: Pov Value (r:1 w:0)
|
||||
/// Proof: Pov Value (max_values: Some(1), max_size: Some(4), added: 499, mode: Ignored)
|
||||
fn storage_single_value_ignored_read() -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `136`
|
||||
// Estimated: `0`
|
||||
// Minimum execution time: 2_918 nanoseconds.
|
||||
Weight::from_ref_time(2_918_000)
|
||||
.saturating_add(RocksDbWeight::get().reads(1_u64))
|
||||
}
|
||||
/// Storage: Pov Value (r:1 w:0)
|
||||
/// Proof: Pov Value (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)
|
||||
/// Storage: Pov Value2 (r:1 w:0)
|
||||
/// Proof: Pov Value2 (max_values: Some(1), max_size: Some(4), added: 499, mode: Ignored)
|
||||
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)
|
||||
.saturating_add(RocksDbWeight::get().reads(2_u64))
|
||||
}
|
||||
/// Storage: Pov Value (r:1 w:0)
|
||||
/// Proof: Pov Value (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)
|
||||
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)
|
||||
.saturating_add(RocksDbWeight::get().reads(1_u64))
|
||||
}
|
||||
/// Storage: Pov Value (r:0 w:1)
|
||||
/// Proof: Pov Value (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)
|
||||
fn storage_single_value_write() -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `0`
|
||||
// Estimated: `0`
|
||||
// Minimum execution time: 795 nanoseconds.
|
||||
Weight::from_ref_time(795_000)
|
||||
.saturating_add(RocksDbWeight::get().writes(1_u64))
|
||||
}
|
||||
/// Storage: Pov Value (r:0 w:1)
|
||||
/// Proof: Pov Value (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)
|
||||
fn storage_single_value_kill() -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `0`
|
||||
// Estimated: `0`
|
||||
// Minimum execution time: 865 nanoseconds.
|
||||
Weight::from_ref_time(865_000)
|
||||
.saturating_add(RocksDbWeight::get().writes(1_u64))
|
||||
}
|
||||
/// Storage: Pov Map1M (r:1 w:0)
|
||||
/// Proof: Pov Map1M (max_values: Some(1000000), max_size: Some(36), added: 2511, mode: Measured)
|
||||
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)
|
||||
.saturating_add(RocksDbWeight::get().reads(1_u64))
|
||||
}
|
||||
/// Storage: Pov Map1M (r:1 w:0)
|
||||
/// Proof: Pov Map1M (max_values: Some(1000000), max_size: Some(36), added: 2511, mode: Measured)
|
||||
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)
|
||||
.saturating_add(RocksDbWeight::get().reads(1_u64))
|
||||
}
|
||||
/// Storage: Pov Map1M (r:1 w:0)
|
||||
/// Proof: Pov Map1M (max_values: Some(1000000), max_size: Some(36), added: 2511, mode: Measured)
|
||||
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)
|
||||
.saturating_add(RocksDbWeight::get().reads(1_u64))
|
||||
}
|
||||
/// Storage: Pov Map1M (r:100 w:0)
|
||||
/// Proof: Pov Map1M (max_values: Some(1000000), max_size: Some(36), added: 2511, mode: MaxEncodedLen)
|
||||
/// Storage: Pov Map16M (r:100 w:0)
|
||||
/// Proof: Pov Map16M (max_values: Some(16000000), max_size: Some(36), added: 3006, mode: MaxEncodedLen)
|
||||
/// The range of component `n` is `[0, 100]`.
|
||||
/// The range of component `m` is `[0, 100]`.
|
||||
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()))
|
||||
.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()))
|
||||
.saturating_add(Weight::from_proof_size(2511).saturating_mul(m.into()))
|
||||
}
|
||||
/// Storage: Pov Map1M (r:100 w:0)
|
||||
/// Proof: Pov Map1M (max_values: Some(1000000), max_size: Some(36), added: 2511, mode: Ignored)
|
||||
/// Storage: Pov Map16M (r:100 w:0)
|
||||
/// Proof: Pov Map16M (max_values: Some(16000000), max_size: Some(36), added: 3006, mode: MaxEncodedLen)
|
||||
/// The range of component `n` is `[0, 100]`.
|
||||
/// The range of component `m` is `[0, 100]`.
|
||||
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()))
|
||||
.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()))
|
||||
.saturating_add(Weight::from_proof_size(189).saturating_mul(m.into()))
|
||||
}
|
||||
/// Storage: Pov Map1M (r:1 w:0)
|
||||
/// Proof: Pov Map1M (max_values: Some(1000000), max_size: Some(36), added: 2511, mode: MaxEncodedLen)
|
||||
/// The range of component `n` is `[0, 100]`.
|
||||
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()))
|
||||
.saturating_add(RocksDbWeight::get().reads(1_u64))
|
||||
}
|
||||
/// Storage: Pov Map1M (r:100 w:0)
|
||||
/// Proof: Pov Map1M (max_values: Some(1000000), max_size: Some(36), added: 2511, mode: MaxEncodedLen)
|
||||
/// The range of component `n` is `[0, 100]`.
|
||||
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()))
|
||||
.saturating_add(RocksDbWeight::get().reads((1_u64).saturating_mul(n.into())))
|
||||
.saturating_add(Weight::from_proof_size(2511).saturating_mul(n.into()))
|
||||
}
|
||||
/// Storage: Pov DoubleMap1M (r:1024 w:0)
|
||||
/// Proof: Pov DoubleMap1M (max_values: Some(1000000), max_size: Some(68), added: 2543, mode: MaxEncodedLen)
|
||||
/// The range of component `n` is `[0, 1024]`.
|
||||
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()))
|
||||
.saturating_add(RocksDbWeight::get().reads((1_u64).saturating_mul(n.into())))
|
||||
.saturating_add(Weight::from_proof_size(2543).saturating_mul(n.into()))
|
||||
}
|
||||
/// Storage: Pov BoundedValue (r:1 w:0)
|
||||
/// Proof: Pov BoundedValue (max_values: Some(1), max_size: Some(33), added: 528, mode: MaxEncodedLen)
|
||||
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)
|
||||
.saturating_add(RocksDbWeight::get().reads(1_u64))
|
||||
}
|
||||
/// Storage: Pov UnboundedValue (r:1 w:0)
|
||||
/// Proof Skipped: Pov UnboundedValue (max_values: Some(1), max_size: None, mode: Measured)
|
||||
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)
|
||||
.saturating_add(RocksDbWeight::get().reads(1_u64))
|
||||
}
|
||||
/// Storage: Pov UnboundedValue (r:1 w:0)
|
||||
/// Proof Skipped: Pov UnboundedValue (max_values: Some(1), max_size: None, mode: Ignored)
|
||||
fn storage_value_unbounded_ignored_read() -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `109`
|
||||
// Estimated: `0`
|
||||
// Minimum execution time: 2_100 nanoseconds.
|
||||
Weight::from_ref_time(2_100_000)
|
||||
.saturating_add(RocksDbWeight::get().reads(1_u64))
|
||||
}
|
||||
/// Storage: Pov UnboundedValue (r:1 w:0)
|
||||
/// Proof Skipped: Pov UnboundedValue (max_values: Some(1), max_size: None, mode: Measured)
|
||||
/// Storage: Pov BoundedValue (r:1 w:0)
|
||||
/// Proof: Pov BoundedValue (max_values: Some(1), max_size: Some(33), added: 528, mode: MaxEncodedLen)
|
||||
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)
|
||||
.saturating_add(RocksDbWeight::get().reads(2_u64))
|
||||
}
|
||||
/// Storage: Pov LargeValue (r:1 w:0)
|
||||
/// Proof: Pov LargeValue (max_values: Some(1), max_size: Some(4194308), added: 4194803, mode: Measured)
|
||||
/// The range of component `l` is `[0, 4194304]`.
|
||||
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()))
|
||||
.saturating_add(RocksDbWeight::get().reads(1_u64))
|
||||
.saturating_add(Weight::from_proof_size(1).saturating_mul(l.into()))
|
||||
}
|
||||
/// Storage: Pov LargeValue (r:1 w:0)
|
||||
/// Proof: Pov LargeValue (max_values: Some(1), max_size: Some(4194308), added: 4194803, mode: MaxEncodedLen)
|
||||
/// The range of component `l` is `[0, 4194304]`.
|
||||
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)
|
||||
// Standard Error: 6
|
||||
.saturating_add(Weight::from_ref_time(345).saturating_mul(l.into()))
|
||||
.saturating_add(RocksDbWeight::get().reads(1_u64))
|
||||
}
|
||||
/// Storage: Pov LargeValue (r:1 w:0)
|
||||
/// Proof: Pov LargeValue (max_values: Some(1), max_size: Some(4194308), added: 4194803, mode: Measured)
|
||||
/// Storage: Pov LargeValue2 (r:1 w:0)
|
||||
/// Proof: Pov LargeValue2 (max_values: Some(1), max_size: Some(4194308), added: 4194803, mode: Measured)
|
||||
/// The range of component `l` is `[0, 4194304]`.
|
||||
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()))
|
||||
.saturating_add(RocksDbWeight::get().reads(2_u64))
|
||||
.saturating_add(Weight::from_proof_size(4).saturating_mul(l.into()))
|
||||
}
|
||||
/// Storage: Pov LargeValue (r:1 w:0)
|
||||
/// Proof: Pov LargeValue (max_values: Some(1), max_size: Some(4194308), added: 4194803, mode: MaxEncodedLen)
|
||||
/// Storage: Pov LargeValue2 (r:1 w:0)
|
||||
/// Proof: Pov LargeValue2 (max_values: Some(1), max_size: Some(4194308), added: 4194803, mode: MaxEncodedLen)
|
||||
/// The range of component `l` is `[0, 4194304]`.
|
||||
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()))
|
||||
.saturating_add(RocksDbWeight::get().reads(2_u64))
|
||||
}
|
||||
/// Storage: Pov LargeValue (r:1 w:0)
|
||||
/// Proof: Pov LargeValue (max_values: Some(1), max_size: Some(4194308), added: 4194803, mode: MaxEncodedLen)
|
||||
/// Storage: Pov LargeValue2 (r:1 w:0)
|
||||
/// Proof: Pov LargeValue2 (max_values: Some(1), max_size: Some(4194308), added: 4194803, mode: Measured)
|
||||
/// The range of component `l` is `[0, 4194304]`.
|
||||
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()))
|
||||
.saturating_add(RocksDbWeight::get().reads(2_u64))
|
||||
.saturating_add(Weight::from_proof_size(2).saturating_mul(l.into()))
|
||||
}
|
||||
/// Storage: Pov LargeValue (r:1 w:0)
|
||||
/// Proof: Pov LargeValue (max_values: Some(1), max_size: Some(4194308), added: 4194803, mode: Measured)
|
||||
/// Storage: Pov LargeValue2 (r:1 w:0)
|
||||
/// Proof: Pov LargeValue2 (max_values: Some(1), max_size: Some(4194308), added: 4194803, mode: MaxEncodedLen)
|
||||
/// The range of component `l` is `[0, 4194304]`.
|
||||
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()))
|
||||
.saturating_add(RocksDbWeight::get().reads(2_u64))
|
||||
.saturating_add(Weight::from_proof_size(2).saturating_mul(l.into()))
|
||||
}
|
||||
/// Storage: Pov UnboundedMap (r:1 w:0)
|
||||
/// Proof Skipped: Pov UnboundedMap (max_values: None, max_size: None, mode: Measured)
|
||||
/// Storage: Pov UnboundedMap2 (r:1 w:0)
|
||||
/// Proof Skipped: Pov UnboundedMap2 (max_values: None, max_size: None, mode: Measured)
|
||||
/// The range of component `i` is `[0, 1000]`.
|
||||
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()))
|
||||
.saturating_add(RocksDbWeight::get().reads(2_u64))
|
||||
.saturating_add(Weight::from_proof_size(16).saturating_mul(i.into()))
|
||||
}
|
||||
/// Storage: Pov Map1M (r:1 w:0)
|
||||
/// Proof: Pov Map1M (max_values: Some(1000000), max_size: Some(36), added: 2511, mode: MaxEncodedLen)
|
||||
/// Storage: Pov UnboundedMap (r:1 w:0)
|
||||
/// Proof Skipped: Pov UnboundedMap (max_values: None, max_size: None, mode: Measured)
|
||||
/// The range of component `i` is `[0, 1000]`.
|
||||
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)
|
||||
.saturating_add(RocksDbWeight::get().reads(2_u64))
|
||||
.saturating_add(Weight::from_proof_size(4).saturating_mul(i.into()))
|
||||
}
|
||||
/// Storage: Pov Map1M (r:1 w:0)
|
||||
/// Proof: Pov Map1M (max_values: Some(1000000), max_size: Some(36), added: 2511, mode: MaxEncodedLen)
|
||||
/// Storage: Pov UnboundedMap (r:1 w:0)
|
||||
/// Proof Skipped: Pov UnboundedMap (max_values: None, max_size: None, mode: Ignored)
|
||||
/// The range of component `i` is `[0, 1000]`.
|
||||
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()))
|
||||
.saturating_add(RocksDbWeight::get().reads(2_u64))
|
||||
.saturating_add(Weight::from_proof_size(4).saturating_mul(i.into()))
|
||||
}
|
||||
fn emit_event() -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `0`
|
||||
// Estimated: `0`
|
||||
// Minimum execution time: 7_087 nanoseconds.
|
||||
Weight::from_ref_time(7_087_000)
|
||||
}
|
||||
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)
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user