pallet_staking_async_rc_runtime/weights/pallet_indices.rs
1// Copyright (C) Parity Technologies (UK) Ltd.
2// This file is part of Substrate.
3
4// Substrate is free software: you can redistribute it and/or modify
5// it under the terms of the GNU General Public License as published by
6// the Free Software Foundation, either version 3 of the License, or
7// (at your option) any later version.
8
9// Substrate is distributed in the hope that it will be useful,
10// but WITHOUT ANY WARRANTY; without even the implied warranty of
11// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12// GNU General Public License for more details.
13
14// You should have received a copy of the GNU General Public License
15// along with Substrate. If not, see <http://www.gnu.org/licenses/>.
16
17//! Autogenerated weights for `pallet_indices`
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_indices
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_indices`.
52pub struct WeightInfo<T>(PhantomData<T>);
53impl<T: frame_system::Config> pallet_indices::WeightInfo for WeightInfo<T> {
54 /// Storage: `Proxy::Proxies` (r:1 w:1)
55 /// Proof: `Proxy::Proxies` (`max_values`: None, `max_size`: Some(1241), added: 3716, mode: `MaxEncodedLen`)
56 /// Storage: `System::Account` (r:1 w:1)
57 /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
58 /// Storage: `Proxy::Announcements` (r:1 w:1)
59 /// Proof: `Proxy::Announcements` (`max_values`: None, `max_size`: Some(2233), added: 4708, mode: `MaxEncodedLen`)
60 fn poke_deposit() -> Weight {
61 // Proof Size summary in bytes:
62 // Measured: `487`
63 // Estimated: `5698`
64 // Minimum execution time: 47_219_000 picoseconds.
65 Weight::from_parts(48_694_000, 0)
66 .saturating_add(Weight::from_parts(0, 5698))
67 .saturating_add(T::DbWeight::get().reads(3))
68 .saturating_add(T::DbWeight::get().writes(3))
69 }
70 /// Storage: `Indices::Accounts` (r:1 w:1)
71 /// Proof: `Indices::Accounts` (`max_values`: None, `max_size`: Some(69), added: 2544, mode: `MaxEncodedLen`)
72 fn claim() -> Weight {
73 // Proof Size summary in bytes:
74 // Measured: `4`
75 // Estimated: `3534`
76 // Minimum execution time: 26_421_000 picoseconds.
77 Weight::from_parts(27_302_000, 0)
78 .saturating_add(Weight::from_parts(0, 3534))
79 .saturating_add(T::DbWeight::get().reads(1))
80 .saturating_add(T::DbWeight::get().writes(1))
81 }
82 /// Storage: `Indices::Accounts` (r:1 w:1)
83 /// Proof: `Indices::Accounts` (`max_values`: None, `max_size`: Some(69), added: 2544, mode: `MaxEncodedLen`)
84 /// Storage: `System::Account` (r:1 w:1)
85 /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
86 fn transfer() -> Weight {
87 // Proof Size summary in bytes:
88 // Measured: `203`
89 // Estimated: `3593`
90 // Minimum execution time: 39_565_000 picoseconds.
91 Weight::from_parts(40_741_000, 0)
92 .saturating_add(Weight::from_parts(0, 3593))
93 .saturating_add(T::DbWeight::get().reads(2))
94 .saturating_add(T::DbWeight::get().writes(2))
95 }
96 /// Storage: `Indices::Accounts` (r:1 w:1)
97 /// Proof: `Indices::Accounts` (`max_values`: None, `max_size`: Some(69), added: 2544, mode: `MaxEncodedLen`)
98 fn free() -> Weight {
99 // Proof Size summary in bytes:
100 // Measured: `100`
101 // Estimated: `3534`
102 // Minimum execution time: 28_046_000 picoseconds.
103 Weight::from_parts(28_775_000, 0)
104 .saturating_add(Weight::from_parts(0, 3534))
105 .saturating_add(T::DbWeight::get().reads(1))
106 .saturating_add(T::DbWeight::get().writes(1))
107 }
108 /// Storage: `Indices::Accounts` (r:1 w:1)
109 /// Proof: `Indices::Accounts` (`max_values`: None, `max_size`: Some(69), added: 2544, mode: `MaxEncodedLen`)
110 /// Storage: `System::Account` (r:1 w:1)
111 /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
112 fn force_transfer() -> Weight {
113 // Proof Size summary in bytes:
114 // Measured: `203`
115 // Estimated: `3593`
116 // Minimum execution time: 29_411_000 picoseconds.
117 Weight::from_parts(30_698_000, 0)
118 .saturating_add(Weight::from_parts(0, 3593))
119 .saturating_add(T::DbWeight::get().reads(2))
120 .saturating_add(T::DbWeight::get().writes(2))
121 }
122 /// Storage: `Indices::Accounts` (r:1 w:1)
123 /// Proof: `Indices::Accounts` (`max_values`: None, `max_size`: Some(69), added: 2544, mode: `MaxEncodedLen`)
124 fn freeze() -> Weight {
125 // Proof Size summary in bytes:
126 // Measured: `100`
127 // Estimated: `3534`
128 // Minimum execution time: 30_839_000 picoseconds.
129 Weight::from_parts(31_621_000, 0)
130 .saturating_add(Weight::from_parts(0, 3534))
131 .saturating_add(T::DbWeight::get().reads(1))
132 .saturating_add(T::DbWeight::get().writes(1))
133 }
134}