asset_hub_westend_runtime/weights/pallet_treasury.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_treasury`
18//!
19//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
20//! DATE: 2023-07-07, STEPS: `50`, REPEAT: `2`, LOW RANGE: `[]`, HIGH RANGE: `[]`
21//! WORST CASE MAP SIZE: `1000000`
22//! HOSTNAME: `cob`, CPU: `<UNKNOWN>`
23//! EXECUTION: None, WASM-EXECUTION: Compiled, CHAIN: Some("rococo-dev"), DB CACHE: 1024
24
25// Executed Command:
26// ./target/debug/polkadot
27// benchmark
28// pallet
29// --chain=rococo-dev
30// --steps=50
31// --repeat=2
32// --pallet=pallet_treasury
33// --extrinsic=*
34// --wasm-execution=compiled
35// --heap-pages=4096
36// --output=./runtime/rococo/src/weights/
37// --header=./file_header.txt
38
39#![cfg_attr(rustfmt, rustfmt_skip)]
40#![allow(unused_parens)]
41#![allow(unused_imports)]
42#![allow(missing_docs)]
43
44use frame_support::{traits::Get, weights::Weight};
45use core::marker::PhantomData;
46
47/// Weight functions for `pallet_treasury`.
48pub struct WeightInfo<T>(PhantomData<T>);
49impl<T: frame_system::Config> pallet_treasury::WeightInfo for WeightInfo<T> {
50 /// Storage: Treasury ProposalCount (r:1 w:1)
51 /// Proof: Treasury ProposalCount (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)
52 /// Storage: Treasury Approvals (r:1 w:1)
53 /// Proof: Treasury Approvals (max_values: Some(1), max_size: Some(402), added: 897, mode: MaxEncodedLen)
54 /// Storage: Treasury Proposals (r:0 w:1)
55 /// Proof: Treasury Proposals (max_values: None, max_size: Some(108), added: 2583, mode: MaxEncodedLen)
56 fn spend_local() -> Weight {
57 // Proof Size summary in bytes:
58 // Measured: `42`
59 // Estimated: `1887`
60 // Minimum execution time: 177_000_000 picoseconds.
61 Weight::from_parts(191_000_000, 0)
62 .saturating_add(Weight::from_parts(0, 1887))
63 .saturating_add(T::DbWeight::get().reads(2))
64 .saturating_add(T::DbWeight::get().writes(3))
65 }
66 /// Storage: Treasury Approvals (r:1 w:1)
67 /// Proof: Treasury Approvals (max_values: Some(1), max_size: Some(402), added: 897, mode: MaxEncodedLen)
68 fn remove_approval() -> Weight {
69 // Proof Size summary in bytes:
70 // Measured: `127`
71 // Estimated: `1887`
72 // Minimum execution time: 80_000_000 picoseconds.
73 Weight::from_parts(82_000_000, 0)
74 .saturating_add(Weight::from_parts(0, 1887))
75 .saturating_add(T::DbWeight::get().reads(1))
76 .saturating_add(T::DbWeight::get().writes(1))
77 }
78 /// Storage: Treasury Deactivated (r:1 w:1)
79 /// Proof: Treasury Deactivated (max_values: Some(1), max_size: Some(16), added: 511, mode: MaxEncodedLen)
80 /// Storage: Balances InactiveIssuance (r:1 w:1)
81 /// Proof: Balances InactiveIssuance (max_values: Some(1), max_size: Some(16), added: 511, mode: MaxEncodedLen)
82 /// Storage: Treasury Approvals (r:1 w:1)
83 /// Proof: Treasury Approvals (max_values: Some(1), max_size: Some(402), added: 897, mode: MaxEncodedLen)
84 /// Storage: Treasury Proposals (r:99 w:99)
85 /// Proof: Treasury Proposals (max_values: None, max_size: Some(108), added: 2583, mode: MaxEncodedLen)
86 /// Storage: System Account (r:199 w:199)
87 /// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen)
88 /// Storage: Bounties BountyApprovals (r:1 w:1)
89 /// Proof: Bounties BountyApprovals (max_values: Some(1), max_size: Some(402), added: 897, mode: MaxEncodedLen)
90 /// The range of component `p` is `[0, 99]`.
91 fn on_initialize_proposals(p: u32, ) -> Weight {
92 // Proof Size summary in bytes:
93 // Measured: `331 + p * (251 ±0)`
94 // Estimated: `3593 + p * (5206 ±0)`
95 // Minimum execution time: 887_000_000 picoseconds.
96 Weight::from_parts(828_616_021, 0)
97 .saturating_add(Weight::from_parts(0, 3593))
98 // Standard Error: 695_351
99 .saturating_add(Weight::from_parts(566_114_524, 0).saturating_mul(p.into()))
100 .saturating_add(T::DbWeight::get().reads(5))
101 .saturating_add(T::DbWeight::get().reads((3_u64).saturating_mul(p.into())))
102 .saturating_add(T::DbWeight::get().writes(5))
103 .saturating_add(T::DbWeight::get().writes((3_u64).saturating_mul(p.into())))
104 .saturating_add(Weight::from_parts(0, 5206).saturating_mul(p.into()))
105 }
106 /// Storage: AssetRate ConversionRateToNative (r:1 w:0)
107 /// Proof: AssetRate ConversionRateToNative (max_values: None, max_size: Some(1237), added: 3712, mode: MaxEncodedLen)
108 /// Storage: Treasury SpendCount (r:1 w:1)
109 /// Proof: Treasury SpendCount (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)
110 /// Storage: Treasury Spends (r:0 w:1)
111 /// Proof: Treasury Spends (max_values: None, max_size: Some(1848), added: 4323, mode: MaxEncodedLen)
112 fn spend() -> Weight {
113 // Proof Size summary in bytes:
114 // Measured: `114`
115 // Estimated: `4702`
116 // Minimum execution time: 208_000_000 picoseconds.
117 Weight::from_parts(222_000_000, 0)
118 .saturating_add(Weight::from_parts(0, 4702))
119 .saturating_add(T::DbWeight::get().reads(2))
120 .saturating_add(T::DbWeight::get().writes(2))
121 }
122 /// Storage: Treasury Spends (r:1 w:1)
123 /// Proof: Treasury Spends (max_values: None, max_size: Some(1848), added: 4323, mode: MaxEncodedLen)
124 /// Storage: XcmPallet QueryCounter (r:1 w:1)
125 /// Proof Skipped: XcmPallet QueryCounter (max_values: Some(1), max_size: None, mode: Measured)
126 /// Storage: Configuration ActiveConfig (r:1 w:0)
127 /// Proof Skipped: Configuration ActiveConfig (max_values: Some(1), max_size: None, mode: Measured)
128 /// Storage: Dmp DeliveryFeeFactor (r:1 w:0)
129 /// Proof Skipped: Dmp DeliveryFeeFactor (max_values: None, max_size: None, mode: Measured)
130 /// Storage: XcmPallet SupportedVersion (r:1 w:0)
131 /// Proof Skipped: XcmPallet SupportedVersion (max_values: None, max_size: None, mode: Measured)
132 /// Storage: XcmPallet VersionDiscoveryQueue (r:1 w:1)
133 /// Proof Skipped: XcmPallet VersionDiscoveryQueue (max_values: Some(1), max_size: None, mode: Measured)
134 /// Storage: XcmPallet SafeXcmVersion (r:1 w:0)
135 /// Proof Skipped: XcmPallet SafeXcmVersion (max_values: Some(1), max_size: None, mode: Measured)
136 /// Storage: Dmp DownwardMessageQueues (r:1 w:1)
137 /// Proof Skipped: Dmp DownwardMessageQueues (max_values: None, max_size: None, mode: Measured)
138 /// Storage: Dmp DownwardMessageQueueHeads (r:1 w:1)
139 /// Proof Skipped: Dmp DownwardMessageQueueHeads (max_values: None, max_size: None, mode: Measured)
140 /// Storage: XcmPallet Queries (r:0 w:1)
141 /// Proof Skipped: XcmPallet Queries (max_values: None, max_size: None, mode: Measured)
142 fn payout() -> Weight {
143 // Proof Size summary in bytes:
144 // Measured: `737`
145 // Estimated: `5313`
146 // Minimum execution time: 551_000_000 picoseconds.
147 Weight::from_parts(569_000_000, 0)
148 .saturating_add(Weight::from_parts(0, 5313))
149 .saturating_add(T::DbWeight::get().reads(9))
150 .saturating_add(T::DbWeight::get().writes(6))
151 }
152 /// Storage: Treasury Spends (r:1 w:1)
153 /// Proof: Treasury Spends (max_values: None, max_size: Some(1848), added: 4323, mode: MaxEncodedLen)
154 /// Storage: XcmPallet Queries (r:1 w:1)
155 /// Proof Skipped: XcmPallet Queries (max_values: None, max_size: None, mode: Measured)
156 fn check_status() -> Weight {
157 // Proof Size summary in bytes:
158 // Measured: `442`
159 // Estimated: `5313`
160 // Minimum execution time: 245_000_000 picoseconds.
161 Weight::from_parts(281_000_000, 0)
162 .saturating_add(Weight::from_parts(0, 5313))
163 .saturating_add(T::DbWeight::get().reads(2))
164 .saturating_add(T::DbWeight::get().writes(2))
165 }
166 /// Storage: Treasury Spends (r:1 w:1)
167 /// Proof: Treasury Spends (max_values: None, max_size: Some(1848), added: 4323, mode: MaxEncodedLen)
168 fn void_spend() -> Weight {
169 // Proof Size summary in bytes:
170 // Measured: `172`
171 // Estimated: `5313`
172 // Minimum execution time: 147_000_000 picoseconds.
173 Weight::from_parts(160_000_000, 0)
174 .saturating_add(Weight::from_parts(0, 5313))
175 .saturating_add(T::DbWeight::get().reads(1))
176 .saturating_add(T::DbWeight::get().writes(1))
177 }
178}