This repository has been archived by the owner on May 21, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
José Molina
committed
Dec 5, 2023
1 parent
404f665
commit 588f066
Showing
4 changed files
with
441 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,262 @@ | ||
// This file is part of Trappist. | ||
|
||
// 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 29.0.0 | ||
//! DATE: 2023-12-04, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` | ||
//! WORST CASE MAP SIZE: `1000000` | ||
//! HOSTNAME: `PAR03651`, CPU: `<UNKNOWN>` | ||
//! WASM-EXECUTION: `Compiled`, CHAIN: `Some("trappist-dev")`, DB CACHE: 1024 | ||
// Executed Command: | ||
// ./target/production/trappist-node | ||
// benchmark | ||
// pallet | ||
// --chain=trappist-dev | ||
// --steps=50 | ||
// --repeat=20 | ||
// --no-storage-info | ||
// --no-median-slopes | ||
// --no-min-squares | ||
// --pallet=pallet_preimage | ||
// --extrinsic=* | ||
// --wasm-execution=compiled | ||
// --header=./templates/file_header.txt | ||
// --output=./runtime/trappist/src/weights/ | ||
|
||
#![cfg_attr(rustfmt, rustfmt_skip)] | ||
#![allow(unused_parens)] | ||
#![allow(unused_imports)] | ||
#![allow(missing_docs)] | ||
|
||
use frame_support::{traits::Get, weights::Weight}; | ||
use core::marker::PhantomData; | ||
|
||
/// Weight functions for `pallet_preimage`. | ||
pub struct WeightInfo<T>(PhantomData<T>); | ||
impl<T: frame_system::Config> pallet_preimage::WeightInfo for WeightInfo<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(75), added: 2550, 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: `42` | ||
// Estimated: `3556` | ||
// Minimum execution time: 7_000_000 picoseconds. | ||
Weight::from_parts(8_000_000, 0) | ||
.saturating_add(Weight::from_parts(0, 3556)) | ||
// Standard Error: 1 | ||
.saturating_add(Weight::from_parts(1_317, 0).saturating_mul(s.into())) | ||
.saturating_add(T::DbWeight::get().reads(2)) | ||
.saturating_add(T::DbWeight::get().writes(2)) | ||
} | ||
/// 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(75), added: 2550, 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: `106` | ||
// Estimated: `3556` | ||
// Minimum execution time: 9_000_000 picoseconds. | ||
Weight::from_parts(9_000_000, 0) | ||
.saturating_add(Weight::from_parts(0, 3556)) | ||
// Standard Error: 1 | ||
.saturating_add(Weight::from_parts(1_312, 0).saturating_mul(s.into())) | ||
.saturating_add(T::DbWeight::get().reads(2)) | ||
.saturating_add(T::DbWeight::get().writes(2)) | ||
} | ||
/// 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(75), added: 2550, 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: `106` | ||
// Estimated: `3556` | ||
// Minimum execution time: 9_000_000 picoseconds. | ||
Weight::from_parts(10_000_000, 0) | ||
.saturating_add(Weight::from_parts(0, 3556)) | ||
// Standard Error: 1 | ||
.saturating_add(Weight::from_parts(1_311, 0).saturating_mul(s.into())) | ||
.saturating_add(T::DbWeight::get().reads(2)) | ||
.saturating_add(T::DbWeight::get().writes(2)) | ||
} | ||
/// 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(75), added: 2550, 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: `172` | ||
// Estimated: `3556` | ||
// Minimum execution time: 10_000_000 picoseconds. | ||
Weight::from_parts(11_000_000, 0) | ||
.saturating_add(Weight::from_parts(0, 3556)) | ||
.saturating_add(T::DbWeight::get().reads(2)) | ||
.saturating_add(T::DbWeight::get().writes(2)) | ||
} | ||
/// 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(75), added: 2550, 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: `144` | ||
// Estimated: `3556` | ||
// Minimum execution time: 11_000_000 picoseconds. | ||
Weight::from_parts(13_000_000, 0) | ||
.saturating_add(Weight::from_parts(0, 3556)) | ||
.saturating_add(T::DbWeight::get().reads(2)) | ||
.saturating_add(T::DbWeight::get().writes(2)) | ||
} | ||
/// 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(75), added: 2550, mode: `MaxEncodedLen`) | ||
fn request_preimage() -> Weight { | ||
// Proof Size summary in bytes: | ||
// Measured: `172` | ||
// Estimated: `3556` | ||
// Minimum execution time: 9_000_000 picoseconds. | ||
Weight::from_parts(9_000_000, 0) | ||
.saturating_add(Weight::from_parts(0, 3556)) | ||
.saturating_add(T::DbWeight::get().reads(2)) | ||
.saturating_add(T::DbWeight::get().writes(1)) | ||
} | ||
/// 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(75), added: 2550, mode: `MaxEncodedLen`) | ||
fn request_no_deposit_preimage() -> Weight { | ||
// Proof Size summary in bytes: | ||
// Measured: `144` | ||
// Estimated: `3556` | ||
// Minimum execution time: 6_000_000 picoseconds. | ||
Weight::from_parts(7_000_000, 0) | ||
.saturating_add(Weight::from_parts(0, 3556)) | ||
.saturating_add(T::DbWeight::get().reads(2)) | ||
.saturating_add(T::DbWeight::get().writes(1)) | ||
} | ||
/// 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(75), added: 2550, mode: `MaxEncodedLen`) | ||
fn request_unnoted_preimage() -> Weight { | ||
// Proof Size summary in bytes: | ||
// Measured: `42` | ||
// Estimated: `3556` | ||
// Minimum execution time: 7_000_000 picoseconds. | ||
Weight::from_parts(7_000_000, 0) | ||
.saturating_add(Weight::from_parts(0, 3556)) | ||
.saturating_add(T::DbWeight::get().reads(2)) | ||
.saturating_add(T::DbWeight::get().writes(1)) | ||
} | ||
/// 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(75), added: 2550, mode: `MaxEncodedLen`) | ||
fn request_requested_preimage() -> Weight { | ||
// Proof Size summary in bytes: | ||
// Measured: `106` | ||
// Estimated: `3556` | ||
// Minimum execution time: 6_000_000 picoseconds. | ||
Weight::from_parts(7_000_000, 0) | ||
.saturating_add(Weight::from_parts(0, 3556)) | ||
.saturating_add(T::DbWeight::get().reads(2)) | ||
.saturating_add(T::DbWeight::get().writes(1)) | ||
} | ||
/// 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(75), added: 2550, 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: `144` | ||
// Estimated: `3556` | ||
// Minimum execution time: 10_000_000 picoseconds. | ||
Weight::from_parts(11_000_000, 0) | ||
.saturating_add(Weight::from_parts(0, 3556)) | ||
.saturating_add(T::DbWeight::get().reads(2)) | ||
.saturating_add(T::DbWeight::get().writes(2)) | ||
} | ||
/// 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(75), added: 2550, mode: `MaxEncodedLen`) | ||
fn unrequest_unnoted_preimage() -> Weight { | ||
// Proof Size summary in bytes: | ||
// Measured: `106` | ||
// Estimated: `3556` | ||
// Minimum execution time: 6_000_000 picoseconds. | ||
Weight::from_parts(6_000_000, 0) | ||
.saturating_add(Weight::from_parts(0, 3556)) | ||
.saturating_add(T::DbWeight::get().reads(2)) | ||
.saturating_add(T::DbWeight::get().writes(1)) | ||
} | ||
/// 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(75), added: 2550, mode: `MaxEncodedLen`) | ||
fn unrequest_multi_referenced_preimage() -> Weight { | ||
// Proof Size summary in bytes: | ||
// Measured: `106` | ||
// Estimated: `3556` | ||
// Minimum execution time: 6_000_000 picoseconds. | ||
Weight::from_parts(7_000_000, 0) | ||
.saturating_add(Weight::from_parts(0, 3556)) | ||
.saturating_add(T::DbWeight::get().reads(2)) | ||
.saturating_add(T::DbWeight::get().writes(1)) | ||
} | ||
/// 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: `Preimage::RequestStatusFor` (r:0 w:1023) | ||
/// Proof: `Preimage::RequestStatusFor` (`max_values`: None, `max_size`: Some(75), added: 2550, 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: `990 + n * (2603 ±0)` | ||
// Minimum execution time: 12_000_000 picoseconds. | ||
Weight::from_parts(13_000_000, 0) | ||
.saturating_add(Weight::from_parts(0, 990)) | ||
// Standard Error: 16_909 | ||
.saturating_add(Weight::from_parts(12_823_569, 0).saturating_mul(n.into())) | ||
.saturating_add(T::DbWeight::get().reads((2_u64).saturating_mul(n.into()))) | ||
.saturating_add(T::DbWeight::get().writes((3_u64).saturating_mul(n.into()))) | ||
.saturating_add(Weight::from_parts(0, 2603).saturating_mul(n.into())) | ||
} | ||
} |
Oops, something went wrong.