referrerpolicy=no-referrer-when-downgrade

asset_hub_westend_runtime/weights/
pallet_whitelist.rs

1// Copyright (C) Parity Technologies (UK) Ltd.
2// This file is part of Cumulus.
3// SPDX-License-Identifier: Apache-2.0
4
5// Licensed under the Apache License, Version 2.0 (the "License");
6// you may not use this file except in compliance with the License.
7// You may obtain a copy of the License at
8//
9// 	http://www.apache.org/licenses/LICENSE-2.0
10//
11// Unless required by applicable law or agreed to in writing, software
12// distributed under the License is distributed on an "AS IS" BASIS,
13// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14// See the License for the specific language governing permissions and
15// limitations under the License.
16
17//! Autogenerated weights for `pallet_whitelist`
18//!
19//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
20//! DATE: 2023-07-12, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
21//! WORST CASE MAP SIZE: `1000000`
22//! HOSTNAME: `runner-o7yfgx5n-project-163-concurrent-0`, CPU: `Intel(R) Xeon(R) CPU @ 2.60GHz`
23//! EXECUTION: ``, WASM-EXECUTION: `Compiled`, CHAIN: `Some("westend-dev")`, DB CACHE: 1024
24
25// Executed Command:
26// target/production/polkadot
27// benchmark
28// pallet
29// --steps=50
30// --repeat=20
31// --extrinsic=*
32// --wasm-execution=compiled
33// --heap-pages=4096
34// --json-file=/builds/parity/mirrors/polkadot/.git/.artifacts/bench.json
35// --pallet=pallet_whitelist
36// --chain=westend-dev
37// --header=./file_header.txt
38// --output=./runtime/westend/src/weights/
39
40#![cfg_attr(rustfmt, rustfmt_skip)]
41#![allow(unused_parens)]
42#![allow(unused_imports)]
43#![allow(missing_docs)]
44
45use frame_support::{traits::Get, weights::Weight};
46use core::marker::PhantomData;
47
48/// Weight functions for `pallet_whitelist`.
49pub struct WeightInfo<T>(PhantomData<T>);
50impl<T: frame_system::Config> pallet_whitelist::WeightInfo for WeightInfo<T> {
51	/// Storage: `Whitelist::WhitelistedCall` (r:1 w:1)
52	/// Proof: `Whitelist::WhitelistedCall` (`max_values`: None, `max_size`: Some(40), added: 2515, mode: `MaxEncodedLen`)
53	/// Storage: `Preimage::StatusFor` (r:1 w:1)
54	/// Proof: `Preimage::StatusFor` (`max_values`: None, `max_size`: Some(91), added: 2566, mode: `MaxEncodedLen`)
55	fn whitelist_call() -> Weight {
56		// Proof Size summary in bytes:
57		//  Measured:  `122`
58		//  Estimated: `3556`
59		// Minimum execution time: 21_188_000 picoseconds.
60		Weight::from_parts(21_804_000, 0)
61			.saturating_add(Weight::from_parts(0, 3556))
62			.saturating_add(T::DbWeight::get().reads(2))
63			.saturating_add(T::DbWeight::get().writes(2))
64	}
65	/// Storage: `Whitelist::WhitelistedCall` (r:1 w:1)
66	/// Proof: `Whitelist::WhitelistedCall` (`max_values`: None, `max_size`: Some(40), added: 2515, mode: `MaxEncodedLen`)
67	/// Storage: `Preimage::StatusFor` (r:1 w:1)
68	/// Proof: `Preimage::StatusFor` (`max_values`: None, `max_size`: Some(91), added: 2566, mode: `MaxEncodedLen`)
69	fn remove_whitelisted_call() -> Weight {
70		// Proof Size summary in bytes:
71		//  Measured:  `251`
72		//  Estimated: `3556`
73		// Minimum execution time: 17_655_000 picoseconds.
74		Weight::from_parts(19_443_000, 0)
75			.saturating_add(Weight::from_parts(0, 3556))
76			.saturating_add(T::DbWeight::get().reads(2))
77			.saturating_add(T::DbWeight::get().writes(2))
78	}
79	/// Storage: `Whitelist::WhitelistedCall` (r:1 w:1)
80	/// Proof: `Whitelist::WhitelistedCall` (`max_values`: None, `max_size`: Some(40), added: 2515, mode: `MaxEncodedLen`)
81	/// Storage: `Preimage::PreimageFor` (r:1 w:1)
82	/// Proof: `Preimage::PreimageFor` (`max_values`: None, `max_size`: Some(4194344), added: 4196819, mode: `Measured`)
83	/// Storage: `Preimage::StatusFor` (r:1 w:1)
84	/// Proof: `Preimage::StatusFor` (`max_values`: None, `max_size`: Some(91), added: 2566, mode: `MaxEncodedLen`)
85	/// The range of component `n` is `[1, 4194294]`.
86	fn dispatch_whitelisted_call(n: u32, ) -> Weight {
87		// Proof Size summary in bytes:
88		//  Measured:  `327 + n * (1 ±0)`
89		//  Estimated: `3791 + n * (1 ±0)`
90		// Minimum execution time: 30_540_000 picoseconds.
91		Weight::from_parts(30_886_000, 0)
92			.saturating_add(Weight::from_parts(0, 3791))
93			// Standard Error: 9
94			.saturating_add(Weight::from_parts(1_779, 0).saturating_mul(n.into()))
95			.saturating_add(T::DbWeight::get().reads(3))
96			.saturating_add(T::DbWeight::get().writes(3))
97			.saturating_add(Weight::from_parts(0, 1).saturating_mul(n.into()))
98	}
99	/// Storage: `Whitelist::WhitelistedCall` (r:1 w:1)
100	/// Proof: `Whitelist::WhitelistedCall` (`max_values`: None, `max_size`: Some(40), added: 2515, mode: `MaxEncodedLen`)
101	/// Storage: `Preimage::StatusFor` (r:1 w:1)
102	/// Proof: `Preimage::StatusFor` (`max_values`: None, `max_size`: Some(91), added: 2566, mode: `MaxEncodedLen`)
103	/// The range of component `n` is `[1, 10000]`.
104	fn dispatch_whitelisted_call_with_preimage(n: u32, ) -> Weight {
105		// Proof Size summary in bytes:
106		//  Measured:  `251`
107		//  Estimated: `3556`
108		// Minimum execution time: 21_082_000 picoseconds.
109		Weight::from_parts(21_922_294, 0)
110			.saturating_add(Weight::from_parts(0, 3556))
111			// Standard Error: 4
112			.saturating_add(Weight::from_parts(1_412, 0).saturating_mul(n.into()))
113			.saturating_add(T::DbWeight::get().reads(2))
114			.saturating_add(T::DbWeight::get().writes(2))
115	}
116}