collectives_westend_runtime/weights/pallet_treasury.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_treasury`
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_treasury
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_treasury`.
51pub struct WeightInfo<T>(PhantomData<T>);
52impl<T: frame_system::Config> pallet_treasury::WeightInfo for WeightInfo<T> {
53 /// Storage: `FellowshipTreasury::ProposalCount` (r:1 w:1)
54 /// Proof: `FellowshipTreasury::ProposalCount` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
55 /// Storage: `FellowshipTreasury::Approvals` (r:1 w:1)
56 /// Proof: `FellowshipTreasury::Approvals` (`max_values`: Some(1), `max_size`: Some(402), added: 897, mode: `MaxEncodedLen`)
57 /// Storage: `FellowshipTreasury::Proposals` (r:0 w:1)
58 /// Proof: `FellowshipTreasury::Proposals` (`max_values`: None, `max_size`: Some(108), added: 2583, mode: `MaxEncodedLen`)
59 fn spend_local() -> Weight {
60 // Proof Size summary in bytes:
61 // Measured: `76`
62 // Estimated: `1887`
63 // Minimum execution time: 12_879_000 picoseconds.
64 Weight::from_parts(13_346_000, 0)
65 .saturating_add(Weight::from_parts(0, 1887))
66 .saturating_add(T::DbWeight::get().reads(2))
67 .saturating_add(T::DbWeight::get().writes(3))
68 }
69 /// Storage: `FellowshipTreasury::Approvals` (r:1 w:1)
70 /// Proof: `FellowshipTreasury::Approvals` (`max_values`: Some(1), `max_size`: Some(402), added: 897, mode: `MaxEncodedLen`)
71 fn remove_approval() -> Weight {
72 // Proof Size summary in bytes:
73 // Measured: `161`
74 // Estimated: `1887`
75 // Minimum execution time: 6_978_000 picoseconds.
76 Weight::from_parts(7_278_000, 0)
77 .saturating_add(Weight::from_parts(0, 1887))
78 .saturating_add(T::DbWeight::get().reads(1))
79 .saturating_add(T::DbWeight::get().writes(1))
80 }
81 /// Storage: `System::Account` (r:1 w:0)
82 /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
83 /// Storage: `FellowshipTreasury::Deactivated` (r:1 w:1)
84 /// Proof: `FellowshipTreasury::Deactivated` (`max_values`: Some(1), `max_size`: Some(16), added: 511, mode: `MaxEncodedLen`)
85 /// Storage: `FellowshipTreasury::LastSpendPeriod` (r:1 w:1)
86 /// Proof: `FellowshipTreasury::LastSpendPeriod` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
87 /// The range of component `p` is `[0, 99]`.
88 fn on_initialize_proposals(p: u32, ) -> Weight {
89 // Proof Size summary in bytes:
90 // Measured: `280 + p * (1 ±0)`
91 // Estimated: `3593`
92 // Minimum execution time: 13_758_000 picoseconds.
93 Weight::from_parts(17_033_109, 0)
94 .saturating_add(Weight::from_parts(0, 3593))
95 // Standard Error: 1_091
96 .saturating_add(Weight::from_parts(70_962, 0).saturating_mul(p.into()))
97 .saturating_add(T::DbWeight::get().reads(3))
98 .saturating_add(T::DbWeight::get().writes(2))
99 }
100 /// Storage: `ParachainInfo::ParachainId` (r:1 w:0)
101 /// Proof: `ParachainInfo::ParachainId` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
102 /// Storage: `AssetRate::ConversionRateToNative` (r:1 w:0)
103 /// Proof: `AssetRate::ConversionRateToNative` (`max_values`: None, `max_size`: Some(1238), added: 3713, mode: `MaxEncodedLen`)
104 /// Storage: `FellowshipTreasury::SpendCount` (r:1 w:1)
105 /// Proof: `FellowshipTreasury::SpendCount` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
106 /// Storage: `FellowshipTreasury::Spends` (r:0 w:1)
107 /// Proof: `FellowshipTreasury::Spends` (`max_values`: None, `max_size`: Some(1853), added: 4328, mode: `MaxEncodedLen`)
108 fn spend() -> Weight {
109 // Proof Size summary in bytes:
110 // Measured: `219`
111 // Estimated: `4703`
112 // Minimum execution time: 24_150_000 picoseconds.
113 Weight::from_parts(24_739_000, 0)
114 .saturating_add(Weight::from_parts(0, 4703))
115 .saturating_add(T::DbWeight::get().reads(3))
116 .saturating_add(T::DbWeight::get().writes(2))
117 }
118 /// Storage: `FellowshipTreasury::Spends` (r:1 w:1)
119 /// Proof: `FellowshipTreasury::Spends` (`max_values`: None, `max_size`: Some(1853), added: 4328, mode: `MaxEncodedLen`)
120 /// Storage: `ParachainInfo::ParachainId` (r:1 w:0)
121 /// Proof: `ParachainInfo::ParachainId` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
122 /// Storage: `PolkadotXcm::QueryCounter` (r:1 w:1)
123 /// Proof: `PolkadotXcm::QueryCounter` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
124 /// Storage: `XcmpQueue::DeliveryFeeFactor` (r:1 w:0)
125 /// Proof: `XcmpQueue::DeliveryFeeFactor` (`max_values`: None, `max_size`: Some(28), added: 2503, mode: `MaxEncodedLen`)
126 /// Storage: `PolkadotXcm::SupportedVersion` (r:1 w:0)
127 /// Proof: `PolkadotXcm::SupportedVersion` (`max_values`: None, `max_size`: None, mode: `Measured`)
128 /// Storage: `ParachainSystem::RelevantMessagingState` (r:1 w:0)
129 /// Proof: `ParachainSystem::RelevantMessagingState` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
130 /// Storage: `XcmpQueue::OutboundXcmpStatus` (r:1 w:1)
131 /// Proof: `XcmpQueue::OutboundXcmpStatus` (`max_values`: Some(1), `max_size`: Some(1282), added: 1777, mode: `MaxEncodedLen`)
132 /// Storage: `XcmpQueue::OutboundXcmpMessages` (r:0 w:1)
133 /// Proof: `XcmpQueue::OutboundXcmpMessages` (`max_values`: None, `max_size`: Some(105506), added: 107981, mode: `MaxEncodedLen`)
134 /// Storage: `PolkadotXcm::Queries` (r:0 w:1)
135 /// Proof: `PolkadotXcm::Queries` (`max_values`: None, `max_size`: None, mode: `Measured`)
136 fn payout() -> Weight {
137 // Proof Size summary in bytes:
138 // Measured: `559`
139 // Estimated: `5318`
140 // Minimum execution time: 59_146_000 picoseconds.
141 Weight::from_parts(62_110_000, 0)
142 .saturating_add(Weight::from_parts(0, 5318))
143 .saturating_add(T::DbWeight::get().reads(7))
144 .saturating_add(T::DbWeight::get().writes(5))
145 }
146 /// Storage: `FellowshipTreasury::Spends` (r:1 w:1)
147 /// Proof: `FellowshipTreasury::Spends` (`max_values`: None, `max_size`: Some(1853), added: 4328, mode: `MaxEncodedLen`)
148 /// Storage: `PolkadotXcm::Queries` (r:1 w:1)
149 /// Proof: `PolkadotXcm::Queries` (`max_values`: None, `max_size`: None, mode: `Measured`)
150 fn check_status() -> Weight {
151 // Proof Size summary in bytes:
152 // Measured: `240`
153 // Estimated: `5318`
154 // Minimum execution time: 25_460_000 picoseconds.
155 Weight::from_parts(26_237_000, 0)
156 .saturating_add(Weight::from_parts(0, 5318))
157 .saturating_add(T::DbWeight::get().reads(2))
158 .saturating_add(T::DbWeight::get().writes(2))
159 }
160 /// Storage: `FellowshipTreasury::Spends` (r:1 w:1)
161 /// Proof: `FellowshipTreasury::Spends` (`max_values`: None, `max_size`: Some(1853), added: 4328, mode: `MaxEncodedLen`)
162 fn void_spend() -> Weight {
163 // Proof Size summary in bytes:
164 // Measured: `212`
165 // Estimated: `5318`
166 // Minimum execution time: 15_357_000 picoseconds.
167 Weight::from_parts(15_787_000, 0)
168 .saturating_add(Weight::from_parts(0, 5318))
169 .saturating_add(T::DbWeight::get().reads(1))
170 .saturating_add(T::DbWeight::get().writes(1))
171 }
172}