rococo_runtime/weights/polkadot_runtime_common_claims.rs
1// Copyright (C) Parity Technologies (UK) Ltd.
2// This file is part of Polkadot.
3
4// Polkadot 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// Polkadot 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 Polkadot. If not, see <http://www.gnu.org/licenses/>.
16
17//! Autogenerated weights for `polkadot_runtime_common::claims`
18//!
19//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0
20//! DATE: 2025-02-21, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
21//! WORST CASE MAP SIZE: `1000000`
22//! HOSTNAME: `d3a9aad6f7a3`, 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/rococo-runtime/rococo_runtime.wasm
32// --pallet=polkadot_runtime_common::claims
33// --header=/__w/polkadot-sdk/polkadot-sdk/polkadot/file_header.txt
34// --output=./polkadot/runtime/rococo/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 `polkadot_runtime_common::claims`.
52pub struct WeightInfo<T>(PhantomData<T>);
53impl<T: frame_system::Config> polkadot_runtime_common::claims::WeightInfo for WeightInfo<T> {
54 /// Storage: `Claims::Claims` (r:1 w:1)
55 /// Proof: `Claims::Claims` (`max_values`: None, `max_size`: Some(36), added: 2511, mode: `MaxEncodedLen`)
56 /// Storage: `Claims::Signing` (r:1 w:1)
57 /// Proof: `Claims::Signing` (`max_values`: None, `max_size`: Some(21), added: 2496, mode: `MaxEncodedLen`)
58 /// Storage: `Claims::Total` (r:1 w:1)
59 /// Proof: `Claims::Total` (`max_values`: Some(1), `max_size`: Some(16), added: 511, mode: `MaxEncodedLen`)
60 /// Storage: `Claims::Vesting` (r:1 w:1)
61 /// Proof: `Claims::Vesting` (`max_values`: None, `max_size`: Some(56), added: 2531, mode: `MaxEncodedLen`)
62 /// Storage: `Vesting::Vesting` (r:1 w:1)
63 /// Proof: `Vesting::Vesting` (`max_values`: None, `max_size`: Some(1057), added: 3532, mode: `MaxEncodedLen`)
64 /// Storage: `System::Account` (r:1 w:0)
65 /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
66 /// Storage: `Balances::Locks` (r:1 w:1)
67 /// Proof: `Balances::Locks` (`max_values`: None, `max_size`: Some(1299), added: 3774, mode: `MaxEncodedLen`)
68 /// Storage: `Balances::Freezes` (r:1 w:0)
69 /// Proof: `Balances::Freezes` (`max_values`: None, `max_size`: Some(65), added: 2540, mode: `MaxEncodedLen`)
70 fn claim() -> Weight {
71 // Proof Size summary in bytes:
72 // Measured: `558`
73 // Estimated: `4764`
74 // Minimum execution time: 197_918_000 picoseconds.
75 Weight::from_parts(206_140_000, 0)
76 .saturating_add(Weight::from_parts(0, 4764))
77 .saturating_add(T::DbWeight::get().reads(8))
78 .saturating_add(T::DbWeight::get().writes(6))
79 }
80 /// Storage: `Claims::Total` (r:1 w:1)
81 /// Proof: `Claims::Total` (`max_values`: Some(1), `max_size`: Some(16), added: 511, mode: `MaxEncodedLen`)
82 /// Storage: `Claims::Vesting` (r:0 w:1)
83 /// Proof: `Claims::Vesting` (`max_values`: None, `max_size`: Some(56), added: 2531, mode: `MaxEncodedLen`)
84 /// Storage: `Claims::Claims` (r:0 w:1)
85 /// Proof: `Claims::Claims` (`max_values`: None, `max_size`: Some(36), added: 2511, mode: `MaxEncodedLen`)
86 /// Storage: `Claims::Signing` (r:0 w:1)
87 /// Proof: `Claims::Signing` (`max_values`: None, `max_size`: Some(21), added: 2496, mode: `MaxEncodedLen`)
88 fn mint_claim() -> Weight {
89 // Proof Size summary in bytes:
90 // Measured: `216`
91 // Estimated: `1501`
92 // Minimum execution time: 15_619_000 picoseconds.
93 Weight::from_parts(17_392_000, 0)
94 .saturating_add(Weight::from_parts(0, 1501))
95 .saturating_add(T::DbWeight::get().reads(1))
96 .saturating_add(T::DbWeight::get().writes(4))
97 }
98 /// Storage: `Claims::Claims` (r:1 w:1)
99 /// Proof: `Claims::Claims` (`max_values`: None, `max_size`: Some(36), added: 2511, mode: `MaxEncodedLen`)
100 /// Storage: `Claims::Signing` (r:1 w:1)
101 /// Proof: `Claims::Signing` (`max_values`: None, `max_size`: Some(21), added: 2496, mode: `MaxEncodedLen`)
102 /// Storage: `Claims::Total` (r:1 w:1)
103 /// Proof: `Claims::Total` (`max_values`: Some(1), `max_size`: Some(16), added: 511, mode: `MaxEncodedLen`)
104 /// Storage: `Claims::Vesting` (r:1 w:1)
105 /// Proof: `Claims::Vesting` (`max_values`: None, `max_size`: Some(56), added: 2531, mode: `MaxEncodedLen`)
106 /// Storage: `Vesting::Vesting` (r:1 w:1)
107 /// Proof: `Vesting::Vesting` (`max_values`: None, `max_size`: Some(1057), added: 3532, mode: `MaxEncodedLen`)
108 /// Storage: `System::Account` (r:1 w:0)
109 /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
110 /// Storage: `Balances::Locks` (r:1 w:1)
111 /// Proof: `Balances::Locks` (`max_values`: None, `max_size`: Some(1299), added: 3774, mode: `MaxEncodedLen`)
112 /// Storage: `Balances::Freezes` (r:1 w:0)
113 /// Proof: `Balances::Freezes` (`max_values`: None, `max_size`: Some(65), added: 2540, mode: `MaxEncodedLen`)
114 fn claim_attest() -> Weight {
115 // Proof Size summary in bytes:
116 // Measured: `558`
117 // Estimated: `4764`
118 // Minimum execution time: 205_045_000 picoseconds.
119 Weight::from_parts(217_083_000, 0)
120 .saturating_add(Weight::from_parts(0, 4764))
121 .saturating_add(T::DbWeight::get().reads(8))
122 .saturating_add(T::DbWeight::get().writes(6))
123 }
124 /// Storage: `Claims::Preclaims` (r:1 w:1)
125 /// Proof: `Claims::Preclaims` (`max_values`: None, `max_size`: Some(52), added: 2527, mode: `MaxEncodedLen`)
126 /// Storage: `Claims::Signing` (r:1 w:1)
127 /// Proof: `Claims::Signing` (`max_values`: None, `max_size`: Some(21), added: 2496, mode: `MaxEncodedLen`)
128 /// Storage: `Claims::Claims` (r:1 w:1)
129 /// Proof: `Claims::Claims` (`max_values`: None, `max_size`: Some(36), added: 2511, mode: `MaxEncodedLen`)
130 /// Storage: `Claims::Total` (r:1 w:1)
131 /// Proof: `Claims::Total` (`max_values`: Some(1), `max_size`: Some(16), added: 511, mode: `MaxEncodedLen`)
132 /// Storage: `Claims::Vesting` (r:1 w:1)
133 /// Proof: `Claims::Vesting` (`max_values`: None, `max_size`: Some(56), added: 2531, mode: `MaxEncodedLen`)
134 /// Storage: `Vesting::Vesting` (r:1 w:1)
135 /// Proof: `Vesting::Vesting` (`max_values`: None, `max_size`: Some(1057), added: 3532, mode: `MaxEncodedLen`)
136 /// Storage: `System::Account` (r:1 w:0)
137 /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
138 /// Storage: `Balances::Locks` (r:1 w:1)
139 /// Proof: `Balances::Locks` (`max_values`: None, `max_size`: Some(1299), added: 3774, mode: `MaxEncodedLen`)
140 /// Storage: `Balances::Freezes` (r:1 w:0)
141 /// Proof: `Balances::Freezes` (`max_values`: None, `max_size`: Some(65), added: 2540, mode: `MaxEncodedLen`)
142 fn attest() -> Weight {
143 // Proof Size summary in bytes:
144 // Measured: `632`
145 // Estimated: `4764`
146 // Minimum execution time: 92_260_000 picoseconds.
147 Weight::from_parts(94_975_000, 0)
148 .saturating_add(Weight::from_parts(0, 4764))
149 .saturating_add(T::DbWeight::get().reads(9))
150 .saturating_add(T::DbWeight::get().writes(7))
151 }
152 /// Storage: `Claims::Claims` (r:1 w:2)
153 /// Proof: `Claims::Claims` (`max_values`: None, `max_size`: Some(36), added: 2511, mode: `MaxEncodedLen`)
154 /// Storage: `Claims::Vesting` (r:1 w:2)
155 /// Proof: `Claims::Vesting` (`max_values`: None, `max_size`: Some(56), added: 2531, mode: `MaxEncodedLen`)
156 /// Storage: `Claims::Signing` (r:1 w:2)
157 /// Proof: `Claims::Signing` (`max_values`: None, `max_size`: Some(21), added: 2496, mode: `MaxEncodedLen`)
158 /// Storage: `Claims::Preclaims` (r:1 w:1)
159 /// Proof: `Claims::Preclaims` (`max_values`: None, `max_size`: Some(52), added: 2527, mode: `MaxEncodedLen`)
160 fn move_claim() -> Weight {
161 // Proof Size summary in bytes:
162 // Measured: `440`
163 // Estimated: `3521`
164 // Minimum execution time: 30_996_000 picoseconds.
165 Weight::from_parts(33_583_000, 0)
166 .saturating_add(Weight::from_parts(0, 3521))
167 .saturating_add(T::DbWeight::get().reads(4))
168 .saturating_add(T::DbWeight::get().writes(7))
169 }
170 /// Storage: `Claims::Preclaims` (r:1 w:0)
171 /// Proof: `Claims::Preclaims` (`max_values`: None, `max_size`: Some(52), added: 2527, mode: `MaxEncodedLen`)
172 /// Storage: `Claims::Signing` (r:1 w:0)
173 /// Proof: `Claims::Signing` (`max_values`: None, `max_size`: Some(21), added: 2496, mode: `MaxEncodedLen`)
174 fn prevalidate_attests() -> Weight {
175 // Proof Size summary in bytes:
176 // Measured: `296`
177 // Estimated: `3517`
178 // Minimum execution time: 12_086_000 picoseconds.
179 Weight::from_parts(13_070_000, 0)
180 .saturating_add(Weight::from_parts(0, 3517))
181 .saturating_add(T::DbWeight::get().reads(2))
182 }
183}