mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-26 14:37:57 +00:00
d38f6e6728
Current benchmarking macro returns a closure with the captured
benchmarked code.
This can cause issues when the benchmarked code has complex lifetime
requirements.
This PR updates the existing macro by injecting the recording parameter
and invoking the start / stop method around the benchmarked block
instead of returning a closure
One other added benefit is that you can write this kind of code now as
well:
```rust
let v;
#[block]
{ v = func.call(); }
dbg!(v); // or assert something on v
```
[Weights compare
link](https://weights.tasty.limo/compare?unit=weight&ignore_errors=true&threshold=10&method=asymptotic&repo=polkadot-sdk&old=pg/fix-weights&new=pg/bench_update&path_pattern=substrate/frame/**/src/weights.rs,polkadot/runtime/*/src/weights/**/*.rs,polkadot/bridges/modules/*/src/weights.rs,cumulus/**/weights/*.rs,cumulus/**/weights/xcm/*.rs,cumulus/**/src/weights.rs)
---------
Co-authored-by: command-bot <>
Co-authored-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>
Co-authored-by: Alexander Theißen <alex.theissen@me.com>
491 lines
25 KiB
Rust
Generated
491 lines
25 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 `pallet_preimage`
|
|
//!
|
|
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0
|
|
//! DATE: 2024-04-09, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
|
|
//! WORST CASE MAP SIZE: `1000000`
|
|
//! HOSTNAME: `runner-anb7yjbi-project-674-concurrent-0`, CPU: `Intel(R) Xeon(R) CPU @ 2.60GHz`
|
|
//! WASM-EXECUTION: `Compiled`, CHAIN: `Some("dev")`, DB CACHE: `1024`
|
|
|
|
// Executed Command:
|
|
// ./target/production/substrate-node
|
|
// benchmark
|
|
// pallet
|
|
// --chain=dev
|
|
// --steps=50
|
|
// --repeat=20
|
|
// --pallet=pallet_preimage
|
|
// --no-storage-info
|
|
// --no-median-slopes
|
|
// --no-min-squares
|
|
// --extrinsic=*
|
|
// --wasm-execution=compiled
|
|
// --heap-pages=4096
|
|
// --output=./substrate/frame/preimage/src/weights.rs
|
|
// --header=./substrate/HEADER-APACHE2
|
|
// --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 `pallet_preimage`.
|
|
pub trait WeightInfo {
|
|
fn note_preimage(s: u32, ) -> Weight;
|
|
fn note_requested_preimage(s: u32, ) -> Weight;
|
|
fn note_no_deposit_preimage(s: u32, ) -> Weight;
|
|
fn unnote_preimage() -> Weight;
|
|
fn unnote_no_deposit_preimage() -> Weight;
|
|
fn request_preimage() -> Weight;
|
|
fn request_no_deposit_preimage() -> Weight;
|
|
fn request_unnoted_preimage() -> Weight;
|
|
fn request_requested_preimage() -> Weight;
|
|
fn unrequest_preimage() -> Weight;
|
|
fn unrequest_unnoted_preimage() -> Weight;
|
|
fn unrequest_multi_referenced_preimage() -> Weight;
|
|
fn ensure_updated(n: u32, ) -> Weight;
|
|
}
|
|
|
|
/// Weights for `pallet_preimage` using the Substrate node and recommended hardware.
|
|
pub struct SubstrateWeight<T>(PhantomData<T>);
|
|
impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
|
/// Storage: `Preimage::StatusFor` (r:1 w:0)
|
|
/// Proof: `Preimage::StatusFor` (`max_values`: None, `max_size`: Some(91), added: 2566, mode: `MaxEncodedLen`)
|
|
/// Storage: `Preimage::RequestStatusFor` (r:1 w:1)
|
|
/// Proof: `Preimage::RequestStatusFor` (`max_values`: None, `max_size`: Some(91), added: 2566, mode: `MaxEncodedLen`)
|
|
/// Storage: `Parameters::Parameters` (r:2 w:0)
|
|
/// Proof: `Parameters::Parameters` (`max_values`: None, `max_size`: Some(36), added: 2511, mode: `MaxEncodedLen`)
|
|
/// Storage: `Balances::Holds` (r:1 w:1)
|
|
/// Proof: `Balances::Holds` (`max_values`: None, `max_size`: Some(193), added: 2668, mode: `MaxEncodedLen`)
|
|
/// Storage: `Preimage::PreimageFor` (r:0 w:1)
|
|
/// Proof: `Preimage::PreimageFor` (`max_values`: None, `max_size`: Some(4194344), added: 4196819, mode: `MaxEncodedLen`)
|
|
/// The range of component `s` is `[0, 4194304]`.
|
|
fn note_preimage(s: u32, ) -> Weight {
|
|
// Proof Size summary in bytes:
|
|
// Measured: `112`
|
|
// Estimated: `6012`
|
|
// Minimum execution time: 52_531_000 picoseconds.
|
|
Weight::from_parts(53_245_000, 6012)
|
|
// Standard Error: 1
|
|
.saturating_add(Weight::from_parts(1_744, 0).saturating_mul(s.into()))
|
|
.saturating_add(T::DbWeight::get().reads(5_u64))
|
|
.saturating_add(T::DbWeight::get().writes(3_u64))
|
|
}
|
|
/// Storage: `Preimage::StatusFor` (r:1 w:0)
|
|
/// Proof: `Preimage::StatusFor` (`max_values`: None, `max_size`: Some(91), added: 2566, mode: `MaxEncodedLen`)
|
|
/// Storage: `Preimage::RequestStatusFor` (r:1 w:1)
|
|
/// Proof: `Preimage::RequestStatusFor` (`max_values`: None, `max_size`: Some(91), added: 2566, mode: `MaxEncodedLen`)
|
|
/// Storage: `Preimage::PreimageFor` (r:0 w:1)
|
|
/// Proof: `Preimage::PreimageFor` (`max_values`: None, `max_size`: Some(4194344), added: 4196819, mode: `MaxEncodedLen`)
|
|
/// The range of component `s` is `[0, 4194304]`.
|
|
fn note_requested_preimage(s: u32, ) -> Weight {
|
|
// Proof Size summary in bytes:
|
|
// Measured: `173`
|
|
// Estimated: `3556`
|
|
// Minimum execution time: 15_601_000 picoseconds.
|
|
Weight::from_parts(15_871_000, 3556)
|
|
// Standard Error: 2
|
|
.saturating_add(Weight::from_parts(1_836, 0).saturating_mul(s.into()))
|
|
.saturating_add(T::DbWeight::get().reads(2_u64))
|
|
.saturating_add(T::DbWeight::get().writes(2_u64))
|
|
}
|
|
/// Storage: `Preimage::StatusFor` (r:1 w:0)
|
|
/// Proof: `Preimage::StatusFor` (`max_values`: None, `max_size`: Some(91), added: 2566, mode: `MaxEncodedLen`)
|
|
/// Storage: `Preimage::RequestStatusFor` (r:1 w:1)
|
|
/// Proof: `Preimage::RequestStatusFor` (`max_values`: None, `max_size`: Some(91), added: 2566, mode: `MaxEncodedLen`)
|
|
/// Storage: `Preimage::PreimageFor` (r:0 w:1)
|
|
/// Proof: `Preimage::PreimageFor` (`max_values`: None, `max_size`: Some(4194344), added: 4196819, mode: `MaxEncodedLen`)
|
|
/// The range of component `s` is `[0, 4194304]`.
|
|
fn note_no_deposit_preimage(s: u32, ) -> Weight {
|
|
// Proof Size summary in bytes:
|
|
// Measured: `173`
|
|
// Estimated: `3556`
|
|
// Minimum execution time: 15_614_000 picoseconds.
|
|
Weight::from_parts(15_934_000, 3556)
|
|
// Standard Error: 2
|
|
.saturating_add(Weight::from_parts(1_832, 0).saturating_mul(s.into()))
|
|
.saturating_add(T::DbWeight::get().reads(2_u64))
|
|
.saturating_add(T::DbWeight::get().writes(2_u64))
|
|
}
|
|
/// Storage: `Preimage::StatusFor` (r:1 w:0)
|
|
/// Proof: `Preimage::StatusFor` (`max_values`: None, `max_size`: Some(91), added: 2566, mode: `MaxEncodedLen`)
|
|
/// Storage: `Preimage::RequestStatusFor` (r:1 w:1)
|
|
/// Proof: `Preimage::RequestStatusFor` (`max_values`: None, `max_size`: Some(91), added: 2566, mode: `MaxEncodedLen`)
|
|
/// Storage: `Balances::Holds` (r:1 w:1)
|
|
/// Proof: `Balances::Holds` (`max_values`: None, `max_size`: Some(193), added: 2668, mode: `MaxEncodedLen`)
|
|
/// Storage: `Preimage::PreimageFor` (r:0 w:1)
|
|
/// Proof: `Preimage::PreimageFor` (`max_values`: None, `max_size`: Some(4194344), added: 4196819, mode: `MaxEncodedLen`)
|
|
fn unnote_preimage() -> Weight {
|
|
// Proof Size summary in bytes:
|
|
// Measured: `311`
|
|
// Estimated: `3658`
|
|
// Minimum execution time: 53_001_000 picoseconds.
|
|
Weight::from_parts(55_866_000, 3658)
|
|
.saturating_add(T::DbWeight::get().reads(3_u64))
|
|
.saturating_add(T::DbWeight::get().writes(3_u64))
|
|
}
|
|
/// Storage: `Preimage::StatusFor` (r:1 w:0)
|
|
/// Proof: `Preimage::StatusFor` (`max_values`: None, `max_size`: Some(91), added: 2566, mode: `MaxEncodedLen`)
|
|
/// Storage: `Preimage::RequestStatusFor` (r:1 w:1)
|
|
/// Proof: `Preimage::RequestStatusFor` (`max_values`: None, `max_size`: Some(91), added: 2566, mode: `MaxEncodedLen`)
|
|
/// Storage: `Preimage::PreimageFor` (r:0 w:1)
|
|
/// Proof: `Preimage::PreimageFor` (`max_values`: None, `max_size`: Some(4194344), added: 4196819, mode: `MaxEncodedLen`)
|
|
fn unnote_no_deposit_preimage() -> Weight {
|
|
// Proof Size summary in bytes:
|
|
// Measured: `211`
|
|
// Estimated: `3556`
|
|
// Minimum execution time: 26_901_000 picoseconds.
|
|
Weight::from_parts(28_079_000, 3556)
|
|
.saturating_add(T::DbWeight::get().reads(2_u64))
|
|
.saturating_add(T::DbWeight::get().writes(2_u64))
|
|
}
|
|
/// Storage: `Preimage::StatusFor` (r:1 w:0)
|
|
/// Proof: `Preimage::StatusFor` (`max_values`: None, `max_size`: Some(91), added: 2566, mode: `MaxEncodedLen`)
|
|
/// Storage: `Preimage::RequestStatusFor` (r:1 w:1)
|
|
/// Proof: `Preimage::RequestStatusFor` (`max_values`: None, `max_size`: Some(91), added: 2566, mode: `MaxEncodedLen`)
|
|
fn request_preimage() -> Weight {
|
|
// Proof Size summary in bytes:
|
|
// Measured: `255`
|
|
// Estimated: `3556`
|
|
// Minimum execution time: 21_716_000 picoseconds.
|
|
Weight::from_parts(25_318_000, 3556)
|
|
.saturating_add(T::DbWeight::get().reads(2_u64))
|
|
.saturating_add(T::DbWeight::get().writes(1_u64))
|
|
}
|
|
/// Storage: `Preimage::StatusFor` (r:1 w:0)
|
|
/// Proof: `Preimage::StatusFor` (`max_values`: None, `max_size`: Some(91), added: 2566, mode: `MaxEncodedLen`)
|
|
/// Storage: `Preimage::RequestStatusFor` (r:1 w:1)
|
|
/// Proof: `Preimage::RequestStatusFor` (`max_values`: None, `max_size`: Some(91), added: 2566, mode: `MaxEncodedLen`)
|
|
fn request_no_deposit_preimage() -> Weight {
|
|
// Proof Size summary in bytes:
|
|
// Measured: `211`
|
|
// Estimated: `3556`
|
|
// Minimum execution time: 13_890_000 picoseconds.
|
|
Weight::from_parts(14_744_000, 3556)
|
|
.saturating_add(T::DbWeight::get().reads(2_u64))
|
|
.saturating_add(T::DbWeight::get().writes(1_u64))
|
|
}
|
|
/// Storage: `Preimage::StatusFor` (r:1 w:0)
|
|
/// Proof: `Preimage::StatusFor` (`max_values`: None, `max_size`: Some(91), added: 2566, mode: `MaxEncodedLen`)
|
|
/// Storage: `Preimage::RequestStatusFor` (r:1 w:1)
|
|
/// Proof: `Preimage::RequestStatusFor` (`max_values`: None, `max_size`: Some(91), added: 2566, mode: `MaxEncodedLen`)
|
|
fn request_unnoted_preimage() -> Weight {
|
|
// Proof Size summary in bytes:
|
|
// Measured: `109`
|
|
// Estimated: `3556`
|
|
// Minimum execution time: 14_192_000 picoseconds.
|
|
Weight::from_parts(15_113_000, 3556)
|
|
.saturating_add(T::DbWeight::get().reads(2_u64))
|
|
.saturating_add(T::DbWeight::get().writes(1_u64))
|
|
}
|
|
/// Storage: `Preimage::StatusFor` (r:1 w:0)
|
|
/// Proof: `Preimage::StatusFor` (`max_values`: None, `max_size`: Some(91), added: 2566, mode: `MaxEncodedLen`)
|
|
/// Storage: `Preimage::RequestStatusFor` (r:1 w:1)
|
|
/// Proof: `Preimage::RequestStatusFor` (`max_values`: None, `max_size`: Some(91), added: 2566, mode: `MaxEncodedLen`)
|
|
fn request_requested_preimage() -> Weight {
|
|
// Proof Size summary in bytes:
|
|
// Measured: `173`
|
|
// Estimated: `3556`
|
|
// Minimum execution time: 9_909_000 picoseconds.
|
|
Weight::from_parts(10_134_000, 3556)
|
|
.saturating_add(T::DbWeight::get().reads(2_u64))
|
|
.saturating_add(T::DbWeight::get().writes(1_u64))
|
|
}
|
|
/// Storage: `Preimage::StatusFor` (r:1 w:0)
|
|
/// Proof: `Preimage::StatusFor` (`max_values`: None, `max_size`: Some(91), added: 2566, mode: `MaxEncodedLen`)
|
|
/// Storage: `Preimage::RequestStatusFor` (r:1 w:1)
|
|
/// Proof: `Preimage::RequestStatusFor` (`max_values`: None, `max_size`: Some(91), added: 2566, mode: `MaxEncodedLen`)
|
|
/// Storage: `Preimage::PreimageFor` (r:0 w:1)
|
|
/// Proof: `Preimage::PreimageFor` (`max_values`: None, `max_size`: Some(4194344), added: 4196819, mode: `MaxEncodedLen`)
|
|
fn unrequest_preimage() -> Weight {
|
|
// Proof Size summary in bytes:
|
|
// Measured: `211`
|
|
// Estimated: `3556`
|
|
// Minimum execution time: 21_725_000 picoseconds.
|
|
Weight::from_parts(24_058_000, 3556)
|
|
.saturating_add(T::DbWeight::get().reads(2_u64))
|
|
.saturating_add(T::DbWeight::get().writes(2_u64))
|
|
}
|
|
/// Storage: `Preimage::StatusFor` (r:1 w:0)
|
|
/// Proof: `Preimage::StatusFor` (`max_values`: None, `max_size`: Some(91), added: 2566, mode: `MaxEncodedLen`)
|
|
/// Storage: `Preimage::RequestStatusFor` (r:1 w:1)
|
|
/// Proof: `Preimage::RequestStatusFor` (`max_values`: None, `max_size`: Some(91), added: 2566, mode: `MaxEncodedLen`)
|
|
fn unrequest_unnoted_preimage() -> Weight {
|
|
// Proof Size summary in bytes:
|
|
// Measured: `173`
|
|
// Estimated: `3556`
|
|
// Minimum execution time: 9_854_000 picoseconds.
|
|
Weight::from_parts(10_175_000, 3556)
|
|
.saturating_add(T::DbWeight::get().reads(2_u64))
|
|
.saturating_add(T::DbWeight::get().writes(1_u64))
|
|
}
|
|
/// Storage: `Preimage::StatusFor` (r:1 w:0)
|
|
/// Proof: `Preimage::StatusFor` (`max_values`: None, `max_size`: Some(91), added: 2566, mode: `MaxEncodedLen`)
|
|
/// Storage: `Preimage::RequestStatusFor` (r:1 w:1)
|
|
/// Proof: `Preimage::RequestStatusFor` (`max_values`: None, `max_size`: Some(91), added: 2566, mode: `MaxEncodedLen`)
|
|
fn unrequest_multi_referenced_preimage() -> Weight {
|
|
// Proof Size summary in bytes:
|
|
// Measured: `173`
|
|
// Estimated: `3556`
|
|
// Minimum execution time: 10_143_000 picoseconds.
|
|
Weight::from_parts(10_539_000, 3556)
|
|
.saturating_add(T::DbWeight::get().reads(2_u64))
|
|
.saturating_add(T::DbWeight::get().writes(1_u64))
|
|
}
|
|
/// Storage: `Preimage::StatusFor` (r:1023 w:1023)
|
|
/// Proof: `Preimage::StatusFor` (`max_values`: None, `max_size`: Some(91), added: 2566, mode: `MaxEncodedLen`)
|
|
/// Storage: `System::Account` (r:1023 w:1023)
|
|
/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
|
|
/// Storage: `Parameters::Parameters` (r:2 w:0)
|
|
/// Proof: `Parameters::Parameters` (`max_values`: None, `max_size`: Some(36), added: 2511, mode: `MaxEncodedLen`)
|
|
/// Storage: `Balances::Holds` (r:1023 w:1023)
|
|
/// Proof: `Balances::Holds` (`max_values`: None, `max_size`: Some(193), added: 2668, mode: `MaxEncodedLen`)
|
|
/// Storage: `Preimage::RequestStatusFor` (r:0 w:1023)
|
|
/// Proof: `Preimage::RequestStatusFor` (`max_values`: None, `max_size`: Some(91), added: 2566, mode: `MaxEncodedLen`)
|
|
/// The range of component `n` is `[1, 1024]`.
|
|
fn ensure_updated(n: u32, ) -> Weight {
|
|
// Proof Size summary in bytes:
|
|
// Measured: `0 + n * (227 ±0)`
|
|
// Estimated: `6012 + n * (2668 ±0)`
|
|
// Minimum execution time: 59_384_000 picoseconds.
|
|
Weight::from_parts(60_000_000, 6012)
|
|
// Standard Error: 39_890
|
|
.saturating_add(Weight::from_parts(56_317_686, 0).saturating_mul(n.into()))
|
|
.saturating_add(T::DbWeight::get().reads(2_u64))
|
|
.saturating_add(T::DbWeight::get().reads((3_u64).saturating_mul(n.into())))
|
|
.saturating_add(T::DbWeight::get().writes((4_u64).saturating_mul(n.into())))
|
|
.saturating_add(Weight::from_parts(0, 2668).saturating_mul(n.into()))
|
|
}
|
|
}
|
|
|
|
// For backwards compatibility and tests.
|
|
impl WeightInfo for () {
|
|
/// Storage: `Preimage::StatusFor` (r:1 w:0)
|
|
/// Proof: `Preimage::StatusFor` (`max_values`: None, `max_size`: Some(91), added: 2566, mode: `MaxEncodedLen`)
|
|
/// Storage: `Preimage::RequestStatusFor` (r:1 w:1)
|
|
/// Proof: `Preimage::RequestStatusFor` (`max_values`: None, `max_size`: Some(91), added: 2566, mode: `MaxEncodedLen`)
|
|
/// Storage: `Parameters::Parameters` (r:2 w:0)
|
|
/// Proof: `Parameters::Parameters` (`max_values`: None, `max_size`: Some(36), added: 2511, mode: `MaxEncodedLen`)
|
|
/// Storage: `Balances::Holds` (r:1 w:1)
|
|
/// Proof: `Balances::Holds` (`max_values`: None, `max_size`: Some(193), added: 2668, mode: `MaxEncodedLen`)
|
|
/// Storage: `Preimage::PreimageFor` (r:0 w:1)
|
|
/// Proof: `Preimage::PreimageFor` (`max_values`: None, `max_size`: Some(4194344), added: 4196819, mode: `MaxEncodedLen`)
|
|
/// The range of component `s` is `[0, 4194304]`.
|
|
fn note_preimage(s: u32, ) -> Weight {
|
|
// Proof Size summary in bytes:
|
|
// Measured: `112`
|
|
// Estimated: `6012`
|
|
// Minimum execution time: 52_531_000 picoseconds.
|
|
Weight::from_parts(53_245_000, 6012)
|
|
// Standard Error: 1
|
|
.saturating_add(Weight::from_parts(1_744, 0).saturating_mul(s.into()))
|
|
.saturating_add(RocksDbWeight::get().reads(5_u64))
|
|
.saturating_add(RocksDbWeight::get().writes(3_u64))
|
|
}
|
|
/// Storage: `Preimage::StatusFor` (r:1 w:0)
|
|
/// Proof: `Preimage::StatusFor` (`max_values`: None, `max_size`: Some(91), added: 2566, mode: `MaxEncodedLen`)
|
|
/// Storage: `Preimage::RequestStatusFor` (r:1 w:1)
|
|
/// Proof: `Preimage::RequestStatusFor` (`max_values`: None, `max_size`: Some(91), added: 2566, mode: `MaxEncodedLen`)
|
|
/// Storage: `Preimage::PreimageFor` (r:0 w:1)
|
|
/// Proof: `Preimage::PreimageFor` (`max_values`: None, `max_size`: Some(4194344), added: 4196819, mode: `MaxEncodedLen`)
|
|
/// The range of component `s` is `[0, 4194304]`.
|
|
fn note_requested_preimage(s: u32, ) -> Weight {
|
|
// Proof Size summary in bytes:
|
|
// Measured: `173`
|
|
// Estimated: `3556`
|
|
// Minimum execution time: 15_601_000 picoseconds.
|
|
Weight::from_parts(15_871_000, 3556)
|
|
// Standard Error: 2
|
|
.saturating_add(Weight::from_parts(1_836, 0).saturating_mul(s.into()))
|
|
.saturating_add(RocksDbWeight::get().reads(2_u64))
|
|
.saturating_add(RocksDbWeight::get().writes(2_u64))
|
|
}
|
|
/// Storage: `Preimage::StatusFor` (r:1 w:0)
|
|
/// Proof: `Preimage::StatusFor` (`max_values`: None, `max_size`: Some(91), added: 2566, mode: `MaxEncodedLen`)
|
|
/// Storage: `Preimage::RequestStatusFor` (r:1 w:1)
|
|
/// Proof: `Preimage::RequestStatusFor` (`max_values`: None, `max_size`: Some(91), added: 2566, mode: `MaxEncodedLen`)
|
|
/// Storage: `Preimage::PreimageFor` (r:0 w:1)
|
|
/// Proof: `Preimage::PreimageFor` (`max_values`: None, `max_size`: Some(4194344), added: 4196819, mode: `MaxEncodedLen`)
|
|
/// The range of component `s` is `[0, 4194304]`.
|
|
fn note_no_deposit_preimage(s: u32, ) -> Weight {
|
|
// Proof Size summary in bytes:
|
|
// Measured: `173`
|
|
// Estimated: `3556`
|
|
// Minimum execution time: 15_614_000 picoseconds.
|
|
Weight::from_parts(15_934_000, 3556)
|
|
// Standard Error: 2
|
|
.saturating_add(Weight::from_parts(1_832, 0).saturating_mul(s.into()))
|
|
.saturating_add(RocksDbWeight::get().reads(2_u64))
|
|
.saturating_add(RocksDbWeight::get().writes(2_u64))
|
|
}
|
|
/// Storage: `Preimage::StatusFor` (r:1 w:0)
|
|
/// Proof: `Preimage::StatusFor` (`max_values`: None, `max_size`: Some(91), added: 2566, mode: `MaxEncodedLen`)
|
|
/// Storage: `Preimage::RequestStatusFor` (r:1 w:1)
|
|
/// Proof: `Preimage::RequestStatusFor` (`max_values`: None, `max_size`: Some(91), added: 2566, mode: `MaxEncodedLen`)
|
|
/// Storage: `Balances::Holds` (r:1 w:1)
|
|
/// Proof: `Balances::Holds` (`max_values`: None, `max_size`: Some(193), added: 2668, mode: `MaxEncodedLen`)
|
|
/// Storage: `Preimage::PreimageFor` (r:0 w:1)
|
|
/// Proof: `Preimage::PreimageFor` (`max_values`: None, `max_size`: Some(4194344), added: 4196819, mode: `MaxEncodedLen`)
|
|
fn unnote_preimage() -> Weight {
|
|
// Proof Size summary in bytes:
|
|
// Measured: `311`
|
|
// Estimated: `3658`
|
|
// Minimum execution time: 53_001_000 picoseconds.
|
|
Weight::from_parts(55_866_000, 3658)
|
|
.saturating_add(RocksDbWeight::get().reads(3_u64))
|
|
.saturating_add(RocksDbWeight::get().writes(3_u64))
|
|
}
|
|
/// Storage: `Preimage::StatusFor` (r:1 w:0)
|
|
/// Proof: `Preimage::StatusFor` (`max_values`: None, `max_size`: Some(91), added: 2566, mode: `MaxEncodedLen`)
|
|
/// Storage: `Preimage::RequestStatusFor` (r:1 w:1)
|
|
/// Proof: `Preimage::RequestStatusFor` (`max_values`: None, `max_size`: Some(91), added: 2566, mode: `MaxEncodedLen`)
|
|
/// Storage: `Preimage::PreimageFor` (r:0 w:1)
|
|
/// Proof: `Preimage::PreimageFor` (`max_values`: None, `max_size`: Some(4194344), added: 4196819, mode: `MaxEncodedLen`)
|
|
fn unnote_no_deposit_preimage() -> Weight {
|
|
// Proof Size summary in bytes:
|
|
// Measured: `211`
|
|
// Estimated: `3556`
|
|
// Minimum execution time: 26_901_000 picoseconds.
|
|
Weight::from_parts(28_079_000, 3556)
|
|
.saturating_add(RocksDbWeight::get().reads(2_u64))
|
|
.saturating_add(RocksDbWeight::get().writes(2_u64))
|
|
}
|
|
/// Storage: `Preimage::StatusFor` (r:1 w:0)
|
|
/// Proof: `Preimage::StatusFor` (`max_values`: None, `max_size`: Some(91), added: 2566, mode: `MaxEncodedLen`)
|
|
/// Storage: `Preimage::RequestStatusFor` (r:1 w:1)
|
|
/// Proof: `Preimage::RequestStatusFor` (`max_values`: None, `max_size`: Some(91), added: 2566, mode: `MaxEncodedLen`)
|
|
fn request_preimage() -> Weight {
|
|
// Proof Size summary in bytes:
|
|
// Measured: `255`
|
|
// Estimated: `3556`
|
|
// Minimum execution time: 21_716_000 picoseconds.
|
|
Weight::from_parts(25_318_000, 3556)
|
|
.saturating_add(RocksDbWeight::get().reads(2_u64))
|
|
.saturating_add(RocksDbWeight::get().writes(1_u64))
|
|
}
|
|
/// Storage: `Preimage::StatusFor` (r:1 w:0)
|
|
/// Proof: `Preimage::StatusFor` (`max_values`: None, `max_size`: Some(91), added: 2566, mode: `MaxEncodedLen`)
|
|
/// Storage: `Preimage::RequestStatusFor` (r:1 w:1)
|
|
/// Proof: `Preimage::RequestStatusFor` (`max_values`: None, `max_size`: Some(91), added: 2566, mode: `MaxEncodedLen`)
|
|
fn request_no_deposit_preimage() -> Weight {
|
|
// Proof Size summary in bytes:
|
|
// Measured: `211`
|
|
// Estimated: `3556`
|
|
// Minimum execution time: 13_890_000 picoseconds.
|
|
Weight::from_parts(14_744_000, 3556)
|
|
.saturating_add(RocksDbWeight::get().reads(2_u64))
|
|
.saturating_add(RocksDbWeight::get().writes(1_u64))
|
|
}
|
|
/// Storage: `Preimage::StatusFor` (r:1 w:0)
|
|
/// Proof: `Preimage::StatusFor` (`max_values`: None, `max_size`: Some(91), added: 2566, mode: `MaxEncodedLen`)
|
|
/// Storage: `Preimage::RequestStatusFor` (r:1 w:1)
|
|
/// Proof: `Preimage::RequestStatusFor` (`max_values`: None, `max_size`: Some(91), added: 2566, mode: `MaxEncodedLen`)
|
|
fn request_unnoted_preimage() -> Weight {
|
|
// Proof Size summary in bytes:
|
|
// Measured: `109`
|
|
// Estimated: `3556`
|
|
// Minimum execution time: 14_192_000 picoseconds.
|
|
Weight::from_parts(15_113_000, 3556)
|
|
.saturating_add(RocksDbWeight::get().reads(2_u64))
|
|
.saturating_add(RocksDbWeight::get().writes(1_u64))
|
|
}
|
|
/// Storage: `Preimage::StatusFor` (r:1 w:0)
|
|
/// Proof: `Preimage::StatusFor` (`max_values`: None, `max_size`: Some(91), added: 2566, mode: `MaxEncodedLen`)
|
|
/// Storage: `Preimage::RequestStatusFor` (r:1 w:1)
|
|
/// Proof: `Preimage::RequestStatusFor` (`max_values`: None, `max_size`: Some(91), added: 2566, mode: `MaxEncodedLen`)
|
|
fn request_requested_preimage() -> Weight {
|
|
// Proof Size summary in bytes:
|
|
// Measured: `173`
|
|
// Estimated: `3556`
|
|
// Minimum execution time: 9_909_000 picoseconds.
|
|
Weight::from_parts(10_134_000, 3556)
|
|
.saturating_add(RocksDbWeight::get().reads(2_u64))
|
|
.saturating_add(RocksDbWeight::get().writes(1_u64))
|
|
}
|
|
/// Storage: `Preimage::StatusFor` (r:1 w:0)
|
|
/// Proof: `Preimage::StatusFor` (`max_values`: None, `max_size`: Some(91), added: 2566, mode: `MaxEncodedLen`)
|
|
/// Storage: `Preimage::RequestStatusFor` (r:1 w:1)
|
|
/// Proof: `Preimage::RequestStatusFor` (`max_values`: None, `max_size`: Some(91), added: 2566, mode: `MaxEncodedLen`)
|
|
/// Storage: `Preimage::PreimageFor` (r:0 w:1)
|
|
/// Proof: `Preimage::PreimageFor` (`max_values`: None, `max_size`: Some(4194344), added: 4196819, mode: `MaxEncodedLen`)
|
|
fn unrequest_preimage() -> Weight {
|
|
// Proof Size summary in bytes:
|
|
// Measured: `211`
|
|
// Estimated: `3556`
|
|
// Minimum execution time: 21_725_000 picoseconds.
|
|
Weight::from_parts(24_058_000, 3556)
|
|
.saturating_add(RocksDbWeight::get().reads(2_u64))
|
|
.saturating_add(RocksDbWeight::get().writes(2_u64))
|
|
}
|
|
/// Storage: `Preimage::StatusFor` (r:1 w:0)
|
|
/// Proof: `Preimage::StatusFor` (`max_values`: None, `max_size`: Some(91), added: 2566, mode: `MaxEncodedLen`)
|
|
/// Storage: `Preimage::RequestStatusFor` (r:1 w:1)
|
|
/// Proof: `Preimage::RequestStatusFor` (`max_values`: None, `max_size`: Some(91), added: 2566, mode: `MaxEncodedLen`)
|
|
fn unrequest_unnoted_preimage() -> Weight {
|
|
// Proof Size summary in bytes:
|
|
// Measured: `173`
|
|
// Estimated: `3556`
|
|
// Minimum execution time: 9_854_000 picoseconds.
|
|
Weight::from_parts(10_175_000, 3556)
|
|
.saturating_add(RocksDbWeight::get().reads(2_u64))
|
|
.saturating_add(RocksDbWeight::get().writes(1_u64))
|
|
}
|
|
/// Storage: `Preimage::StatusFor` (r:1 w:0)
|
|
/// Proof: `Preimage::StatusFor` (`max_values`: None, `max_size`: Some(91), added: 2566, mode: `MaxEncodedLen`)
|
|
/// Storage: `Preimage::RequestStatusFor` (r:1 w:1)
|
|
/// Proof: `Preimage::RequestStatusFor` (`max_values`: None, `max_size`: Some(91), added: 2566, mode: `MaxEncodedLen`)
|
|
fn unrequest_multi_referenced_preimage() -> Weight {
|
|
// Proof Size summary in bytes:
|
|
// Measured: `173`
|
|
// Estimated: `3556`
|
|
// Minimum execution time: 10_143_000 picoseconds.
|
|
Weight::from_parts(10_539_000, 3556)
|
|
.saturating_add(RocksDbWeight::get().reads(2_u64))
|
|
.saturating_add(RocksDbWeight::get().writes(1_u64))
|
|
}
|
|
/// Storage: `Preimage::StatusFor` (r:1023 w:1023)
|
|
/// Proof: `Preimage::StatusFor` (`max_values`: None, `max_size`: Some(91), added: 2566, mode: `MaxEncodedLen`)
|
|
/// Storage: `System::Account` (r:1023 w:1023)
|
|
/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
|
|
/// Storage: `Parameters::Parameters` (r:2 w:0)
|
|
/// Proof: `Parameters::Parameters` (`max_values`: None, `max_size`: Some(36), added: 2511, mode: `MaxEncodedLen`)
|
|
/// Storage: `Balances::Holds` (r:1023 w:1023)
|
|
/// Proof: `Balances::Holds` (`max_values`: None, `max_size`: Some(193), added: 2668, mode: `MaxEncodedLen`)
|
|
/// Storage: `Preimage::RequestStatusFor` (r:0 w:1023)
|
|
/// Proof: `Preimage::RequestStatusFor` (`max_values`: None, `max_size`: Some(91), added: 2566, mode: `MaxEncodedLen`)
|
|
/// The range of component `n` is `[1, 1024]`.
|
|
fn ensure_updated(n: u32, ) -> Weight {
|
|
// Proof Size summary in bytes:
|
|
// Measured: `0 + n * (227 ±0)`
|
|
// Estimated: `6012 + n * (2668 ±0)`
|
|
// Minimum execution time: 59_384_000 picoseconds.
|
|
Weight::from_parts(60_000_000, 6012)
|
|
// Standard Error: 39_890
|
|
.saturating_add(Weight::from_parts(56_317_686, 0).saturating_mul(n.into()))
|
|
.saturating_add(RocksDbWeight::get().reads(2_u64))
|
|
.saturating_add(RocksDbWeight::get().reads((3_u64).saturating_mul(n.into())))
|
|
.saturating_add(RocksDbWeight::get().writes((4_u64).saturating_mul(n.into())))
|
|
.saturating_add(Weight::from_parts(0, 2668).saturating_mul(n.into()))
|
|
}
|
|
}
|