Files
pezkuwi-subxt/substrate/frame/benchmarking/pov/src/weights.rs
T
Oliver Tale-Yazdi abd3f0c49a Benchmarking: Add pov_mode to V2 syntax (#3616)
Changes:
- Port the `pov_mode` attribute from the V1 syntax to V2
- Update `pallet-whitelist` and `frame-benchmarking-pallet-pov`

Follow up: also allow this attribute on top-level benchmark modules.

---------

Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>
Co-authored-by: command-bot <>
2024-03-19 11:35:22 +00:00

847 lines
39 KiB
Rust
Generated

// This file is part of Substrate.
// Copyright (C) Parity Technologies (UK) Ltd.
// SPDX-License-Identifier: Apache-2.0
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
//! Autogenerated weights for `frame_benchmarking_pallet_pov`
//!
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0
//! DATE: 2024-03-08, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
//! WORST CASE MAP SIZE: `1000000`
//! HOSTNAME: `Olivers-MBP`, CPU: `<UNKNOWN>`
//! WASM-EXECUTION: `Compiled`, CHAIN: `None`, DB CACHE: `1024`
// Executed Command:
// target/release/substrate-node
// benchmark
// pallet
// --pallet
// frame-benchmarking-pallet-pov
// --extrinsic
//
// --output
// substrate/frame/benchmarking/pov/src/weights.rs
// --template
// substrate/.maintain/frame-weight-template.hbs
#![cfg_attr(rustfmt, rustfmt_skip)]
#![allow(unused_parens)]
#![allow(unused_imports)]
#![allow(missing_docs)]
use frame_support::{traits::Get, weights::{Weight, constants::RocksDbWeight}};
use core::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;
fn storage_iteration() -> 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: `1489`
// Minimum execution time: 3_000_000 picoseconds.
Weight::from_parts(3_000_000, 1489)
.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: 3_000_000 picoseconds.
Weight::from_parts(3_000_000, 0)
.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: `1489`
// Minimum execution time: 4_000_000 picoseconds.
Weight::from_parts(4_000_000, 1489)
.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: `1489`
// Minimum execution time: 3_000_000 picoseconds.
Weight::from_parts(4_000_000, 1489)
.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: 0_000 picoseconds.
Weight::from_parts(1_000_000, 0)
.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: 0_000 picoseconds.
Weight::from_parts(1_000_000, 0)
.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: `4740`
// Minimum execution time: 7_000_000 picoseconds.
Weight::from_parts(7_000_000, 4740)
.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: `5009`
// Minimum execution time: 8_000_000 picoseconds.
Weight::from_parts(8_000_000, 5009)
.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: `5509`
// Minimum execution time: 9_000_000 picoseconds.
Weight::from_parts(10_000_000, 5509)
.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 + m * (188 ±0) + n * (188 ±0)`
// Estimated: `990 + m * (2511 ±0) + n * (3006 ±0)`
// Minimum execution time: 342_000_000 picoseconds.
Weight::from_parts(179_688_624, 990)
// Standard Error: 26_526
.saturating_add(Weight::from_parts(2_061_828, 0).saturating_mul(n.into()))
// Standard Error: 26_526
.saturating_add(Weight::from_parts(1_825_923, 0).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_parts(0, 2511).saturating_mul(m.into()))
.saturating_add(Weight::from_parts(0, 3006).saturating_mul(n.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 + m * (188 ±0) + n * (188 ±0)`
// Estimated: `1685 + m * (189 ±0) + n * (3006 ±0)`
// Minimum execution time: 342_000_000 picoseconds.
Weight::from_parts(204_945_396, 1685)
// Standard Error: 25_217
.saturating_add(Weight::from_parts(1_827_513, 0).saturating_mul(n.into()))
// Standard Error: 25_217
.saturating_add(Weight::from_parts(1_661_271, 0).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_parts(0, 189).saturating_mul(m.into()))
.saturating_add(Weight::from_parts(0, 3006).saturating_mul(n.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: `3501`
// Minimum execution time: 0_000 picoseconds.
Weight::from_parts(3_387_064, 3501)
// Standard Error: 1_445
.saturating_add(Weight::from_parts(1_143_678, 0).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: `990 + n * (2511 ±0)`
// Minimum execution time: 0_000 picoseconds.
Weight::from_parts(1_323_684, 990)
// Standard Error: 10_546
.saturating_add(Weight::from_parts(13_101_864, 0).saturating_mul(n.into()))
.saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(n.into())))
.saturating_add(Weight::from_parts(0, 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: `990 + n * (2543 ±0)`
// Minimum execution time: 0_000 picoseconds.
Weight::from_parts(39_703_963, 990)
// Standard Error: 10_589
.saturating_add(Weight::from_parts(3_718_040, 0).saturating_mul(n.into()))
.saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(n.into())))
.saturating_add(Weight::from_parts(0, 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: `1518`
// Minimum execution time: 2_000_000 picoseconds.
Weight::from_parts(2_000_000, 1518)
.saturating_add(T::DbWeight::get().reads(1_u64))
}
/// Storage: `Pov::UnboundedValue` (r:1 w:0)
/// Proof: `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: `1594`
// Minimum execution time: 2_000_000 picoseconds.
Weight::from_parts(2_000_000, 1594)
.saturating_add(T::DbWeight::get().reads(1_u64))
}
/// Storage: `Pov::UnboundedValue` (r:1 w:0)
/// Proof: `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_000_000 picoseconds.
Weight::from_parts(2_000_000, 0)
.saturating_add(T::DbWeight::get().reads(1_u64))
}
/// Storage: `Pov::UnboundedValue` (r:1 w:0)
/// Proof: `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: `147`
// Estimated: `1632`
// Minimum execution time: 3_000_000 picoseconds.
Weight::from_parts(5_000_000, 1632)
.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: `142 + l * (1 ±0)`
// Estimated: `1626 + l * (1 ±0)`
// Minimum execution time: 3_000_000 picoseconds.
Weight::from_parts(3_000_000, 1626)
// Standard Error: 1
.saturating_add(Weight::from_parts(393, 0).saturating_mul(l.into()))
.saturating_add(T::DbWeight::get().reads(1_u64))
.saturating_add(Weight::from_parts(0, 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: `142 + l * (1 ±0)`
// Estimated: `4195793`
// Minimum execution time: 3_000_000 picoseconds.
Weight::from_parts(3_000_000, 4195793)
// Standard Error: 1
.saturating_add(Weight::from_parts(394, 0).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: `171 + l * (2 ±0)`
// Estimated: `1655 + l * (2 ±0)`
// Minimum execution time: 4_000_000 picoseconds.
Weight::from_parts(4_000_000, 1655)
// Standard Error: 2
.saturating_add(Weight::from_parts(655, 0).saturating_mul(l.into()))
.saturating_add(T::DbWeight::get().reads(2_u64))
.saturating_add(Weight::from_parts(0, 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: `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: `171 + l * (2 ±0)`
// Estimated: `4195793`
// Minimum execution time: 4_000_000 picoseconds.
Weight::from_parts(4_000_000, 4195793)
// Standard Error: 2
.saturating_add(Weight::from_parts(660, 0).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: `171 + l * (2 ±0)`
// Estimated: `4195793 + l * (2 ±0)`
// Minimum execution time: 4_000_000 picoseconds.
Weight::from_parts(4_000_000, 4195793)
// Standard Error: 4
.saturating_add(Weight::from_parts(691, 0).saturating_mul(l.into()))
.saturating_add(T::DbWeight::get().reads(2_u64))
.saturating_add(Weight::from_parts(0, 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: `171 + l * (2 ±0)`
// Estimated: `4195793 + l * (2 ±0)`
// Minimum execution time: 4_000_000 picoseconds.
Weight::from_parts(4_000_000, 4195793)
// Standard Error: 4
.saturating_add(Weight::from_parts(691, 0).saturating_mul(l.into()))
.saturating_add(T::DbWeight::get().reads(2_u64))
.saturating_add(Weight::from_parts(0, 2).saturating_mul(l.into()))
}
/// Storage: `Pov::UnboundedMap` (r:1 w:0)
/// Proof: `Pov::UnboundedMap` (`max_values`: None, `max_size`: None, mode: `Measured`)
/// Storage: `Pov::UnboundedMap2` (r:1 w:0)
/// Proof: `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: `229 + i * (8 ±0)`
// Estimated: `3693 + i * (8 ±0)`
// Minimum execution time: 6_000_000 picoseconds.
Weight::from_parts(7_274_226, 3693)
// Standard Error: 280
.saturating_add(Weight::from_parts(3_282, 0).saturating_mul(i.into()))
.saturating_add(T::DbWeight::get().reads(2_u64))
.saturating_add(Weight::from_parts(0, 8).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: `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: `228 + i * (4 ±0)`
// Estimated: `3692 + i * (4 ±0)`
// Minimum execution time: 7_000_000 picoseconds.
Weight::from_parts(7_507_333, 3692)
// Standard Error: 64
.saturating_add(Weight::from_parts(982, 0).saturating_mul(i.into()))
.saturating_add(T::DbWeight::get().reads(2_u64))
.saturating_add(Weight::from_parts(0, 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: `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: `228 + i * (4 ±0)`
// Estimated: `3501 + i * (4 ±0)`
// Minimum execution time: 6_000_000 picoseconds.
Weight::from_parts(7_285_011, 3501)
// Standard Error: 80
.saturating_add(Weight::from_parts(1_395, 0).saturating_mul(i.into()))
.saturating_add(T::DbWeight::get().reads(2_u64))
.saturating_add(Weight::from_parts(0, 4).saturating_mul(i.into()))
}
fn emit_event() -> Weight {
// Proof Size summary in bytes:
// Measured: `0`
// Estimated: `0`
// Minimum execution time: 4_000_000 picoseconds.
Weight::from_parts(5_000_000, 0)
}
fn noop() -> Weight {
// Proof Size summary in bytes:
// Measured: `0`
// Estimated: `0`
// Minimum execution time: 2_000_000 picoseconds.
Weight::from_parts(2_000_000, 0)
}
/// Storage: `Pov::UnboundedMapTwox` (r:65001 w:0)
/// Proof: `Pov::UnboundedMapTwox` (`max_values`: None, `max_size`: None, mode: `Measured`)
fn storage_iteration() -> Weight {
// Proof Size summary in bytes:
// Measured: `17985289`
// Estimated: `178863754`
// Minimum execution time: 218_275_000_000 picoseconds.
Weight::from_parts(222_603_000_000, 178863754)
.saturating_add(T::DbWeight::get().reads(65001_u64))
}
}
// 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: `1489`
// Minimum execution time: 3_000_000 picoseconds.
Weight::from_parts(3_000_000, 1489)
.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: 3_000_000 picoseconds.
Weight::from_parts(3_000_000, 0)
.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: `1489`
// Minimum execution time: 4_000_000 picoseconds.
Weight::from_parts(4_000_000, 1489)
.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: `1489`
// Minimum execution time: 3_000_000 picoseconds.
Weight::from_parts(4_000_000, 1489)
.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: 0_000 picoseconds.
Weight::from_parts(1_000_000, 0)
.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: 0_000 picoseconds.
Weight::from_parts(1_000_000, 0)
.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: `4740`
// Minimum execution time: 7_000_000 picoseconds.
Weight::from_parts(7_000_000, 4740)
.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: `5009`
// Minimum execution time: 8_000_000 picoseconds.
Weight::from_parts(8_000_000, 5009)
.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: `5509`
// Minimum execution time: 9_000_000 picoseconds.
Weight::from_parts(10_000_000, 5509)
.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 + m * (188 ±0) + n * (188 ±0)`
// Estimated: `990 + m * (2511 ±0) + n * (3006 ±0)`
// Minimum execution time: 342_000_000 picoseconds.
Weight::from_parts(179_688_624, 990)
// Standard Error: 26_526
.saturating_add(Weight::from_parts(2_061_828, 0).saturating_mul(n.into()))
// Standard Error: 26_526
.saturating_add(Weight::from_parts(1_825_923, 0).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_parts(0, 2511).saturating_mul(m.into()))
.saturating_add(Weight::from_parts(0, 3006).saturating_mul(n.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 + m * (188 ±0) + n * (188 ±0)`
// Estimated: `1685 + m * (189 ±0) + n * (3006 ±0)`
// Minimum execution time: 342_000_000 picoseconds.
Weight::from_parts(204_945_396, 1685)
// Standard Error: 25_217
.saturating_add(Weight::from_parts(1_827_513, 0).saturating_mul(n.into()))
// Standard Error: 25_217
.saturating_add(Weight::from_parts(1_661_271, 0).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_parts(0, 189).saturating_mul(m.into()))
.saturating_add(Weight::from_parts(0, 3006).saturating_mul(n.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: `3501`
// Minimum execution time: 0_000 picoseconds.
Weight::from_parts(3_387_064, 3501)
// Standard Error: 1_445
.saturating_add(Weight::from_parts(1_143_678, 0).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: `990 + n * (2511 ±0)`
// Minimum execution time: 0_000 picoseconds.
Weight::from_parts(1_323_684, 990)
// Standard Error: 10_546
.saturating_add(Weight::from_parts(13_101_864, 0).saturating_mul(n.into()))
.saturating_add(RocksDbWeight::get().reads((1_u64).saturating_mul(n.into())))
.saturating_add(Weight::from_parts(0, 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: `990 + n * (2543 ±0)`
// Minimum execution time: 0_000 picoseconds.
Weight::from_parts(39_703_963, 990)
// Standard Error: 10_589
.saturating_add(Weight::from_parts(3_718_040, 0).saturating_mul(n.into()))
.saturating_add(RocksDbWeight::get().reads((1_u64).saturating_mul(n.into())))
.saturating_add(Weight::from_parts(0, 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: `1518`
// Minimum execution time: 2_000_000 picoseconds.
Weight::from_parts(2_000_000, 1518)
.saturating_add(RocksDbWeight::get().reads(1_u64))
}
/// Storage: `Pov::UnboundedValue` (r:1 w:0)
/// Proof: `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: `1594`
// Minimum execution time: 2_000_000 picoseconds.
Weight::from_parts(2_000_000, 1594)
.saturating_add(RocksDbWeight::get().reads(1_u64))
}
/// Storage: `Pov::UnboundedValue` (r:1 w:0)
/// Proof: `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_000_000 picoseconds.
Weight::from_parts(2_000_000, 0)
.saturating_add(RocksDbWeight::get().reads(1_u64))
}
/// Storage: `Pov::UnboundedValue` (r:1 w:0)
/// Proof: `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: `147`
// Estimated: `1632`
// Minimum execution time: 3_000_000 picoseconds.
Weight::from_parts(5_000_000, 1632)
.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: `142 + l * (1 ±0)`
// Estimated: `1626 + l * (1 ±0)`
// Minimum execution time: 3_000_000 picoseconds.
Weight::from_parts(3_000_000, 1626)
// Standard Error: 1
.saturating_add(Weight::from_parts(393, 0).saturating_mul(l.into()))
.saturating_add(RocksDbWeight::get().reads(1_u64))
.saturating_add(Weight::from_parts(0, 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: `142 + l * (1 ±0)`
// Estimated: `4195793`
// Minimum execution time: 3_000_000 picoseconds.
Weight::from_parts(3_000_000, 4195793)
// Standard Error: 1
.saturating_add(Weight::from_parts(394, 0).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: `171 + l * (2 ±0)`
// Estimated: `1655 + l * (2 ±0)`
// Minimum execution time: 4_000_000 picoseconds.
Weight::from_parts(4_000_000, 1655)
// Standard Error: 2
.saturating_add(Weight::from_parts(655, 0).saturating_mul(l.into()))
.saturating_add(RocksDbWeight::get().reads(2_u64))
.saturating_add(Weight::from_parts(0, 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: `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: `171 + l * (2 ±0)`
// Estimated: `4195793`
// Minimum execution time: 4_000_000 picoseconds.
Weight::from_parts(4_000_000, 4195793)
// Standard Error: 2
.saturating_add(Weight::from_parts(660, 0).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: `171 + l * (2 ±0)`
// Estimated: `4195793 + l * (2 ±0)`
// Minimum execution time: 4_000_000 picoseconds.
Weight::from_parts(4_000_000, 4195793)
// Standard Error: 4
.saturating_add(Weight::from_parts(691, 0).saturating_mul(l.into()))
.saturating_add(RocksDbWeight::get().reads(2_u64))
.saturating_add(Weight::from_parts(0, 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: `171 + l * (2 ±0)`
// Estimated: `4195793 + l * (2 ±0)`
// Minimum execution time: 4_000_000 picoseconds.
Weight::from_parts(4_000_000, 4195793)
// Standard Error: 4
.saturating_add(Weight::from_parts(691, 0).saturating_mul(l.into()))
.saturating_add(RocksDbWeight::get().reads(2_u64))
.saturating_add(Weight::from_parts(0, 2).saturating_mul(l.into()))
}
/// Storage: `Pov::UnboundedMap` (r:1 w:0)
/// Proof: `Pov::UnboundedMap` (`max_values`: None, `max_size`: None, mode: `Measured`)
/// Storage: `Pov::UnboundedMap2` (r:1 w:0)
/// Proof: `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: `229 + i * (8 ±0)`
// Estimated: `3693 + i * (8 ±0)`
// Minimum execution time: 6_000_000 picoseconds.
Weight::from_parts(7_274_226, 3693)
// Standard Error: 280
.saturating_add(Weight::from_parts(3_282, 0).saturating_mul(i.into()))
.saturating_add(RocksDbWeight::get().reads(2_u64))
.saturating_add(Weight::from_parts(0, 8).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: `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: `228 + i * (4 ±0)`
// Estimated: `3692 + i * (4 ±0)`
// Minimum execution time: 7_000_000 picoseconds.
Weight::from_parts(7_507_333, 3692)
// Standard Error: 64
.saturating_add(Weight::from_parts(982, 0).saturating_mul(i.into()))
.saturating_add(RocksDbWeight::get().reads(2_u64))
.saturating_add(Weight::from_parts(0, 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: `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: `228 + i * (4 ±0)`
// Estimated: `3501 + i * (4 ±0)`
// Minimum execution time: 6_000_000 picoseconds.
Weight::from_parts(7_285_011, 3501)
// Standard Error: 80
.saturating_add(Weight::from_parts(1_395, 0).saturating_mul(i.into()))
.saturating_add(RocksDbWeight::get().reads(2_u64))
.saturating_add(Weight::from_parts(0, 4).saturating_mul(i.into()))
}
fn emit_event() -> Weight {
// Proof Size summary in bytes:
// Measured: `0`
// Estimated: `0`
// Minimum execution time: 4_000_000 picoseconds.
Weight::from_parts(5_000_000, 0)
}
fn noop() -> Weight {
// Proof Size summary in bytes:
// Measured: `0`
// Estimated: `0`
// Minimum execution time: 2_000_000 picoseconds.
Weight::from_parts(2_000_000, 0)
}
/// Storage: `Pov::UnboundedMapTwox` (r:65001 w:0)
/// Proof: `Pov::UnboundedMapTwox` (`max_values`: None, `max_size`: None, mode: `Measured`)
fn storage_iteration() -> Weight {
// Proof Size summary in bytes:
// Measured: `17985289`
// Estimated: `178863754`
// Minimum execution time: 218_275_000_000 picoseconds.
Weight::from_parts(222_603_000_000, 178863754)
.saturating_add(RocksDbWeight::get().reads(65001_u64))
}
}