collectives_westend_runtime/weights/pallet_salary_fellowship_salary.rs
1// Copyright (C) Parity Technologies (UK) Ltd.
2// SPDX-License-Identifier: Apache-2.0
3
4// Licensed under the Apache License, Version 2.0 (the "License");
5// you may not use this file except in compliance with the License.
6// You may obtain a copy of the License at
7//
8// http://www.apache.org/licenses/LICENSE-2.0
9//
10// Unless required by applicable law or agreed to in writing, software
11// distributed under the License is distributed on an "AS IS" BASIS,
12// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13// See the License for the specific language governing permissions and
14// limitations under the License.
15
16//! Autogenerated weights for `pallet_salary`
17//!
18//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0
19//! DATE: 2025-02-21, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
20//! WORST CASE MAP SIZE: `1000000`
21//! HOSTNAME: `e0f303704c84`, CPU: `Intel(R) Xeon(R) CPU @ 2.60GHz`
22//! WASM-EXECUTION: `Compiled`, CHAIN: `None`, DB CACHE: 1024
23
24// Executed Command:
25// frame-omni-bencher
26// v1
27// benchmark
28// pallet
29// --extrinsic=*
30// --runtime=target/production/wbuild/collectives-westend-runtime/collectives_westend_runtime.wasm
31// --pallet=pallet_salary
32// --header=/__w/polkadot-sdk/polkadot-sdk/cumulus/file_header.txt
33// --output=./cumulus/parachains/runtimes/collectives/collectives-westend/src/weights
34// --wasm-execution=compiled
35// --steps=50
36// --repeat=20
37// --heap-pages=4096
38// --no-storage-info
39// --no-min-squares
40// --no-median-slopes
41
42#![cfg_attr(rustfmt, rustfmt_skip)]
43#![allow(unused_parens)]
44#![allow(unused_imports)]
45#![allow(missing_docs)]
46
47use frame_support::{traits::Get, weights::Weight};
48use core::marker::PhantomData;
49
50/// Weight functions for `pallet_salary`.
51pub struct WeightInfo<T>(PhantomData<T>);
52impl<T: frame_system::Config> pallet_salary::WeightInfo for WeightInfo<T> {
53 /// Storage: `FellowshipSalary::Status` (r:1 w:1)
54 /// Proof: `FellowshipSalary::Status` (`max_values`: Some(1), `max_size`: Some(56), added: 551, mode: `MaxEncodedLen`)
55 fn init() -> Weight {
56 // Proof Size summary in bytes:
57 // Measured: `142`
58 // Estimated: `1541`
59 // Minimum execution time: 9_151_000 picoseconds.
60 Weight::from_parts(9_614_000, 0)
61 .saturating_add(Weight::from_parts(0, 1541))
62 .saturating_add(T::DbWeight::get().reads(1))
63 .saturating_add(T::DbWeight::get().writes(1))
64 }
65 /// Storage: `FellowshipSalary::Status` (r:1 w:1)
66 /// Proof: `FellowshipSalary::Status` (`max_values`: Some(1), `max_size`: Some(56), added: 551, mode: `MaxEncodedLen`)
67 fn bump() -> Weight {
68 // Proof Size summary in bytes:
69 // Measured: `224`
70 // Estimated: `1541`
71 // Minimum execution time: 11_013_000 picoseconds.
72 Weight::from_parts(11_413_000, 0)
73 .saturating_add(Weight::from_parts(0, 1541))
74 .saturating_add(T::DbWeight::get().reads(1))
75 .saturating_add(T::DbWeight::get().writes(1))
76 }
77 /// Storage: `FellowshipSalary::Status` (r:1 w:0)
78 /// Proof: `FellowshipSalary::Status` (`max_values`: Some(1), `max_size`: Some(56), added: 551, mode: `MaxEncodedLen`)
79 /// Storage: `FellowshipCollective::Members` (r:1 w:0)
80 /// Proof: `FellowshipCollective::Members` (`max_values`: None, `max_size`: Some(42), added: 2517, mode: `MaxEncodedLen`)
81 /// Storage: `FellowshipSalary::Claimant` (r:1 w:1)
82 /// Proof: `FellowshipSalary::Claimant` (`max_values`: None, `max_size`: Some(86), added: 2561, mode: `MaxEncodedLen`)
83 fn induct() -> Weight {
84 // Proof Size summary in bytes:
85 // Measured: `395`
86 // Estimated: `3551`
87 // Minimum execution time: 19_112_000 picoseconds.
88 Weight::from_parts(20_006_000, 0)
89 .saturating_add(Weight::from_parts(0, 3551))
90 .saturating_add(T::DbWeight::get().reads(3))
91 .saturating_add(T::DbWeight::get().writes(1))
92 }
93 /// Storage: `FellowshipCollective::Members` (r:1 w:0)
94 /// Proof: `FellowshipCollective::Members` (`max_values`: None, `max_size`: Some(42), added: 2517, mode: `MaxEncodedLen`)
95 /// Storage: `FellowshipSalary::Status` (r:1 w:1)
96 /// Proof: `FellowshipSalary::Status` (`max_values`: Some(1), `max_size`: Some(56), added: 551, mode: `MaxEncodedLen`)
97 /// Storage: `FellowshipSalary::Claimant` (r:1 w:1)
98 /// Proof: `FellowshipSalary::Claimant` (`max_values`: None, `max_size`: Some(86), added: 2561, mode: `MaxEncodedLen`)
99 fn register() -> Weight {
100 // Proof Size summary in bytes:
101 // Measured: `462`
102 // Estimated: `3551`
103 // Minimum execution time: 22_794_000 picoseconds.
104 Weight::from_parts(23_572_000, 0)
105 .saturating_add(Weight::from_parts(0, 3551))
106 .saturating_add(T::DbWeight::get().reads(3))
107 .saturating_add(T::DbWeight::get().writes(2))
108 }
109 /// Storage: `FellowshipSalary::Status` (r:1 w:1)
110 /// Proof: `FellowshipSalary::Status` (`max_values`: Some(1), `max_size`: Some(56), added: 551, mode: `MaxEncodedLen`)
111 /// Storage: `FellowshipSalary::Claimant` (r:1 w:1)
112 /// Proof: `FellowshipSalary::Claimant` (`max_values`: None, `max_size`: Some(86), added: 2561, mode: `MaxEncodedLen`)
113 /// Storage: `FellowshipCollective::Members` (r:1 w:0)
114 /// Proof: `FellowshipCollective::Members` (`max_values`: None, `max_size`: Some(42), added: 2517, mode: `MaxEncodedLen`)
115 /// Storage: `ParachainInfo::ParachainId` (r:1 w:0)
116 /// Proof: `ParachainInfo::ParachainId` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
117 /// Storage: `PolkadotXcm::QueryCounter` (r:1 w:1)
118 /// Proof: `PolkadotXcm::QueryCounter` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
119 /// Storage: `XcmpQueue::DeliveryFeeFactor` (r:1 w:0)
120 /// Proof: `XcmpQueue::DeliveryFeeFactor` (`max_values`: None, `max_size`: Some(28), added: 2503, mode: `MaxEncodedLen`)
121 /// Storage: `PolkadotXcm::SupportedVersion` (r:1 w:0)
122 /// Proof: `PolkadotXcm::SupportedVersion` (`max_values`: None, `max_size`: None, mode: `Measured`)
123 /// Storage: `ParachainSystem::RelevantMessagingState` (r:1 w:0)
124 /// Proof: `ParachainSystem::RelevantMessagingState` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
125 /// Storage: `XcmpQueue::OutboundXcmpStatus` (r:1 w:1)
126 /// Proof: `XcmpQueue::OutboundXcmpStatus` (`max_values`: Some(1), `max_size`: Some(1282), added: 1777, mode: `MaxEncodedLen`)
127 /// Storage: `XcmpQueue::OutboundXcmpMessages` (r:0 w:1)
128 /// Proof: `XcmpQueue::OutboundXcmpMessages` (`max_values`: None, `max_size`: Some(105506), added: 107981, mode: `MaxEncodedLen`)
129 /// Storage: `PolkadotXcm::Queries` (r:0 w:1)
130 /// Proof: `PolkadotXcm::Queries` (`max_values`: None, `max_size`: None, mode: `Measured`)
131 fn payout() -> Weight {
132 // Proof Size summary in bytes:
133 // Measured: `671`
134 // Estimated: `4136`
135 // Minimum execution time: 65_374_000 picoseconds.
136 Weight::from_parts(67_506_000, 0)
137 .saturating_add(Weight::from_parts(0, 4136))
138 .saturating_add(T::DbWeight::get().reads(9))
139 .saturating_add(T::DbWeight::get().writes(6))
140 }
141 /// Storage: `FellowshipSalary::Status` (r:1 w:1)
142 /// Proof: `FellowshipSalary::Status` (`max_values`: Some(1), `max_size`: Some(56), added: 551, mode: `MaxEncodedLen`)
143 /// Storage: `FellowshipSalary::Claimant` (r:1 w:1)
144 /// Proof: `FellowshipSalary::Claimant` (`max_values`: None, `max_size`: Some(86), added: 2561, mode: `MaxEncodedLen`)
145 /// Storage: `FellowshipCollective::Members` (r:1 w:0)
146 /// Proof: `FellowshipCollective::Members` (`max_values`: None, `max_size`: Some(42), added: 2517, mode: `MaxEncodedLen`)
147 /// Storage: `ParachainInfo::ParachainId` (r:1 w:0)
148 /// Proof: `ParachainInfo::ParachainId` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
149 /// Storage: `PolkadotXcm::QueryCounter` (r:1 w:1)
150 /// Proof: `PolkadotXcm::QueryCounter` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
151 /// Storage: `XcmpQueue::DeliveryFeeFactor` (r:1 w:0)
152 /// Proof: `XcmpQueue::DeliveryFeeFactor` (`max_values`: None, `max_size`: Some(28), added: 2503, mode: `MaxEncodedLen`)
153 /// Storage: `PolkadotXcm::SupportedVersion` (r:1 w:0)
154 /// Proof: `PolkadotXcm::SupportedVersion` (`max_values`: None, `max_size`: None, mode: `Measured`)
155 /// Storage: `ParachainSystem::RelevantMessagingState` (r:1 w:0)
156 /// Proof: `ParachainSystem::RelevantMessagingState` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
157 /// Storage: `XcmpQueue::OutboundXcmpStatus` (r:1 w:1)
158 /// Proof: `XcmpQueue::OutboundXcmpStatus` (`max_values`: Some(1), `max_size`: Some(1282), added: 1777, mode: `MaxEncodedLen`)
159 /// Storage: `XcmpQueue::OutboundXcmpMessages` (r:0 w:1)
160 /// Proof: `XcmpQueue::OutboundXcmpMessages` (`max_values`: None, `max_size`: Some(105506), added: 107981, mode: `MaxEncodedLen`)
161 /// Storage: `PolkadotXcm::Queries` (r:0 w:1)
162 /// Proof: `PolkadotXcm::Queries` (`max_values`: None, `max_size`: None, mode: `Measured`)
163 fn payout_other() -> Weight {
164 // Proof Size summary in bytes:
165 // Measured: `671`
166 // Estimated: `4136`
167 // Minimum execution time: 65_359_000 picoseconds.
168 Weight::from_parts(67_759_000, 0)
169 .saturating_add(Weight::from_parts(0, 4136))
170 .saturating_add(T::DbWeight::get().reads(9))
171 .saturating_add(T::DbWeight::get().writes(6))
172 }
173 /// Storage: `FellowshipSalary::Status` (r:1 w:1)
174 /// Proof: `FellowshipSalary::Status` (`max_values`: Some(1), `max_size`: Some(56), added: 551, mode: `MaxEncodedLen`)
175 /// Storage: `FellowshipSalary::Claimant` (r:1 w:1)
176 /// Proof: `FellowshipSalary::Claimant` (`max_values`: None, `max_size`: Some(86), added: 2561, mode: `MaxEncodedLen`)
177 /// Storage: `PolkadotXcm::Queries` (r:1 w:1)
178 /// Proof: `PolkadotXcm::Queries` (`max_values`: None, `max_size`: None, mode: `Measured`)
179 fn check_payment() -> Weight {
180 // Proof Size summary in bytes:
181 // Measured: `336`
182 // Estimated: `3801`
183 // Minimum execution time: 26_856_000 picoseconds.
184 Weight::from_parts(27_572_000, 0)
185 .saturating_add(Weight::from_parts(0, 3801))
186 .saturating_add(T::DbWeight::get().reads(3))
187 .saturating_add(T::DbWeight::get().writes(3))
188 }
189}