asset_hub_westend_runtime/weights/pallet_sudo.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_sudo`
18//!
19//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0
20//! DATE: 2025-02-22, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
21//! WORST CASE MAP SIZE: `1000000`
22//! HOSTNAME: `3a2e9ae8a8f5`, CPU: `Intel(R) Xeon(R) CPU @ 2.60GHz`
23//! WASM-EXECUTION: `Compiled`, CHAIN: `None`, DB CACHE: 1024
24
25// Executed Command:
26// frame-omni-bencher
27// v1
28// benchmark
29// pallet
30// --extrinsic=*
31// --runtime=target/production/wbuild/westend-runtime/westend_runtime.wasm
32// --pallet=pallet_sudo
33// --header=/__w/polkadot-sdk/polkadot-sdk/polkadot/file_header.txt
34// --output=./polkadot/runtime/westend/src/weights
35// --wasm-execution=compiled
36// --steps=50
37// --repeat=20
38// --heap-pages=4096
39// --no-storage-info
40// --no-min-squares
41// --no-median-slopes
42
43#![cfg_attr(rustfmt, rustfmt_skip)]
44#![allow(unused_parens)]
45#![allow(unused_imports)]
46#![allow(missing_docs)]
47
48use frame_support::{traits::Get, weights::Weight};
49use core::marker::PhantomData;
50
51/// Weight functions for `pallet_sudo`.
52pub struct WeightInfo<T>(PhantomData<T>);
53impl<T: frame_system::Config> pallet_sudo::WeightInfo for WeightInfo<T> {
54 /// Storage: `Sudo::Key` (r:1 w:1)
55 /// Proof: `Sudo::Key` (`max_values`: Some(1), `max_size`: Some(32), added: 527, mode: `MaxEncodedLen`)
56 fn set_key() -> Weight {
57 // Proof Size summary in bytes:
58 // Measured: `165`
59 // Estimated: `1517`
60 // Minimum execution time: 14_510_000 picoseconds.
61 Weight::from_parts(15_008_000, 0)
62 .saturating_add(Weight::from_parts(0, 1517))
63 .saturating_add(T::DbWeight::get().reads(1))
64 .saturating_add(T::DbWeight::get().writes(1))
65 }
66 /// Storage: `Sudo::Key` (r:1 w:0)
67 /// Proof: `Sudo::Key` (`max_values`: Some(1), `max_size`: Some(32), added: 527, mode: `MaxEncodedLen`)
68 fn sudo() -> Weight {
69 // Proof Size summary in bytes:
70 // Measured: `165`
71 // Estimated: `1517`
72 // Minimum execution time: 15_250_000 picoseconds.
73 Weight::from_parts(15_782_000, 0)
74 .saturating_add(Weight::from_parts(0, 1517))
75 .saturating_add(T::DbWeight::get().reads(1))
76 }
77 /// Storage: `Sudo::Key` (r:1 w:0)
78 /// Proof: `Sudo::Key` (`max_values`: Some(1), `max_size`: Some(32), added: 527, mode: `MaxEncodedLen`)
79 fn sudo_as() -> Weight {
80 // Proof Size summary in bytes:
81 // Measured: `165`
82 // Estimated: `1517`
83 // Minimum execution time: 15_455_000 picoseconds.
84 Weight::from_parts(16_025_000, 0)
85 .saturating_add(Weight::from_parts(0, 1517))
86 .saturating_add(T::DbWeight::get().reads(1))
87 }
88 /// Storage: `Sudo::Key` (r:1 w:1)
89 /// Proof: `Sudo::Key` (`max_values`: Some(1), `max_size`: Some(32), added: 527, mode: `MaxEncodedLen`)
90 fn remove_key() -> Weight {
91 // Proof Size summary in bytes:
92 // Measured: `165`
93 // Estimated: `1517`
94 // Minimum execution time: 13_514_000 picoseconds.
95 Weight::from_parts(14_155_000, 0)
96 .saturating_add(Weight::from_parts(0, 1517))
97 .saturating_add(T::DbWeight::get().reads(1))
98 .saturating_add(T::DbWeight::get().writes(1))
99 }
100 /// Storage: `Sudo::Key` (r:1 w:0)
101 /// Proof: `Sudo::Key` (`max_values`: Some(1), `max_size`: Some(32), added: 527, mode: `MaxEncodedLen`)
102 fn check_only_sudo_account() -> Weight {
103 // Proof Size summary in bytes:
104 // Measured: `165`
105 // Estimated: `1517`
106 // Minimum execution time: 7_772_000 picoseconds.
107 Weight::from_parts(8_189_000, 0)
108 .saturating_add(Weight::from_parts(0, 1517))
109 .saturating_add(T::DbWeight::get().reads(1))
110 }
111}