referrerpolicy=no-referrer-when-downgrade

rococo_runtime/weights/
pallet_nis.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 `pallet_nis`
18//!
19//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0
20//! DATE: 2025-03-03, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
21//! WORST CASE MAP SIZE: `1000000`
22//! HOSTNAME: `bd5e4dfa0790`, 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=pallet_nis
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 `pallet_nis`.
52pub struct WeightInfo<T>(PhantomData<T>);
53impl<T: frame_system::Config> pallet_nis::WeightInfo for WeightInfo<T> {
54	/// Storage: `Parameters::Parameters` (r:1 w:0)
55	/// Proof: `Parameters::Parameters` (`max_values`: None, `max_size`: Some(36), added: 2511, mode: `MaxEncodedLen`)
56	/// Storage: `Nis::Queues` (r:1 w:1)
57	/// Proof: `Nis::Queues` (`max_values`: None, `max_size`: Some(48022), added: 50497, mode: `MaxEncodedLen`)
58	/// Storage: `Balances::Holds` (r:1 w:1)
59	/// Proof: `Balances::Holds` (`max_values`: None, `max_size`: Some(103), added: 2578, mode: `MaxEncodedLen`)
60	/// Storage: `Nis::QueueTotals` (r:1 w:1)
61	/// Proof: `Nis::QueueTotals` (`max_values`: Some(1), `max_size`: Some(6002), added: 6497, mode: `MaxEncodedLen`)
62	/// The range of component `l` is `[0, 999]`.
63	fn place_bid(l: u32, ) -> Weight {
64		// Proof Size summary in bytes:
65		//  Measured:  `6213 + l * (48 ±0)`
66		//  Estimated: `51487`
67		// Minimum execution time: 49_715_000 picoseconds.
68		Weight::from_parts(47_437_903, 0)
69			.saturating_add(Weight::from_parts(0, 51487))
70			// Standard Error: 1_376
71			.saturating_add(Weight::from_parts(103_572, 0).saturating_mul(l.into()))
72			.saturating_add(T::DbWeight::get().reads(4))
73			.saturating_add(T::DbWeight::get().writes(3))
74	}
75	/// Storage: `Parameters::Parameters` (r:1 w:0)
76	/// Proof: `Parameters::Parameters` (`max_values`: None, `max_size`: Some(36), added: 2511, mode: `MaxEncodedLen`)
77	/// Storage: `Nis::Queues` (r:1 w:1)
78	/// Proof: `Nis::Queues` (`max_values`: None, `max_size`: Some(48022), added: 50497, mode: `MaxEncodedLen`)
79	/// Storage: `Balances::Holds` (r:1 w:1)
80	/// Proof: `Balances::Holds` (`max_values`: None, `max_size`: Some(103), added: 2578, mode: `MaxEncodedLen`)
81	/// Storage: `Nis::QueueTotals` (r:1 w:1)
82	/// Proof: `Nis::QueueTotals` (`max_values`: Some(1), `max_size`: Some(6002), added: 6497, mode: `MaxEncodedLen`)
83	fn place_bid_max() -> Weight {
84		// Proof Size summary in bytes:
85		//  Measured:  `54215`
86		//  Estimated: `51487`
87		// Minimum execution time: 158_994_000 picoseconds.
88		Weight::from_parts(163_192_000, 0)
89			.saturating_add(Weight::from_parts(0, 51487))
90			.saturating_add(T::DbWeight::get().reads(4))
91			.saturating_add(T::DbWeight::get().writes(3))
92	}
93	/// Storage: `Nis::Queues` (r:1 w:1)
94	/// Proof: `Nis::Queues` (`max_values`: None, `max_size`: Some(48022), added: 50497, mode: `MaxEncodedLen`)
95	/// Storage: `Balances::Holds` (r:1 w:1)
96	/// Proof: `Balances::Holds` (`max_values`: None, `max_size`: Some(103), added: 2578, mode: `MaxEncodedLen`)
97	/// Storage: `Nis::QueueTotals` (r:1 w:1)
98	/// Proof: `Nis::QueueTotals` (`max_values`: Some(1), `max_size`: Some(6002), added: 6497, mode: `MaxEncodedLen`)
99	/// The range of component `l` is `[1, 1000]`.
100	fn retract_bid(l: u32, ) -> Weight {
101		// Proof Size summary in bytes:
102		//  Measured:  `6209 + l * (48 ±0)`
103		//  Estimated: `51487`
104		// Minimum execution time: 47_456_000 picoseconds.
105		Weight::from_parts(39_000_499, 0)
106			.saturating_add(Weight::from_parts(0, 51487))
107			// Standard Error: 1_374
108			.saturating_add(Weight::from_parts(87_646, 0).saturating_mul(l.into()))
109			.saturating_add(T::DbWeight::get().reads(3))
110			.saturating_add(T::DbWeight::get().writes(3))
111	}
112	/// Storage: `Nis::Summary` (r:1 w:0)
113	/// Proof: `Nis::Summary` (`max_values`: Some(1), `max_size`: Some(40), added: 535, mode: `MaxEncodedLen`)
114	/// Storage: `System::Account` (r:1 w:1)
115	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
116	fn fund_deficit() -> Weight {
117		// Proof Size summary in bytes:
118		//  Measured:  `225`
119		//  Estimated: `3593`
120		// Minimum execution time: 33_224_000 picoseconds.
121		Weight::from_parts(34_527_000, 0)
122			.saturating_add(Weight::from_parts(0, 3593))
123			.saturating_add(T::DbWeight::get().reads(2))
124			.saturating_add(T::DbWeight::get().writes(1))
125	}
126	/// Storage: `Nis::Receipts` (r:1 w:1)
127	/// Proof: `Nis::Receipts` (`max_values`: None, `max_size`: Some(81), added: 2556, mode: `MaxEncodedLen`)
128	/// Storage: `Balances::Holds` (r:1 w:1)
129	/// Proof: `Balances::Holds` (`max_values`: None, `max_size`: Some(103), added: 2578, mode: `MaxEncodedLen`)
130	/// Storage: `System::Account` (r:1 w:1)
131	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
132	/// Storage: `Nis::Summary` (r:1 w:1)
133	/// Proof: `Nis::Summary` (`max_values`: Some(1), `max_size`: Some(40), added: 535, mode: `MaxEncodedLen`)
134	/// Storage: `NisCounterpartBalances::Account` (r:1 w:1)
135	/// Proof: `NisCounterpartBalances::Account` (`max_values`: None, `max_size`: Some(112), added: 2587, mode: `MaxEncodedLen`)
136	fn communify() -> Weight {
137		// Proof Size summary in bytes:
138		//  Measured:  `387`
139		//  Estimated: `3593`
140		// Minimum execution time: 68_688_000 picoseconds.
141		Weight::from_parts(70_098_000, 0)
142			.saturating_add(Weight::from_parts(0, 3593))
143			.saturating_add(T::DbWeight::get().reads(5))
144			.saturating_add(T::DbWeight::get().writes(5))
145	}
146	/// Storage: `Nis::Receipts` (r:1 w:1)
147	/// Proof: `Nis::Receipts` (`max_values`: None, `max_size`: Some(81), added: 2556, mode: `MaxEncodedLen`)
148	/// Storage: `Nis::Summary` (r:1 w:1)
149	/// Proof: `Nis::Summary` (`max_values`: Some(1), `max_size`: Some(40), added: 535, mode: `MaxEncodedLen`)
150	/// Storage: `System::Account` (r:1 w:1)
151	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
152	/// Storage: `NisCounterpartBalances::Account` (r:1 w:1)
153	/// Proof: `NisCounterpartBalances::Account` (`max_values`: None, `max_size`: Some(112), added: 2587, mode: `MaxEncodedLen`)
154	/// Storage: `Balances::Holds` (r:1 w:1)
155	/// Proof: `Balances::Holds` (`max_values`: None, `max_size`: Some(103), added: 2578, mode: `MaxEncodedLen`)
156	fn privatize() -> Weight {
157		// Proof Size summary in bytes:
158		//  Measured:  `543`
159		//  Estimated: `3593`
160		// Minimum execution time: 85_968_000 picoseconds.
161		Weight::from_parts(87_276_000, 0)
162			.saturating_add(Weight::from_parts(0, 3593))
163			.saturating_add(T::DbWeight::get().reads(5))
164			.saturating_add(T::DbWeight::get().writes(5))
165	}
166	/// Storage: `Nis::Receipts` (r:1 w:1)
167	/// Proof: `Nis::Receipts` (`max_values`: None, `max_size`: Some(81), added: 2556, mode: `MaxEncodedLen`)
168	/// Storage: `Nis::Summary` (r:1 w:1)
169	/// Proof: `Nis::Summary` (`max_values`: Some(1), `max_size`: Some(40), added: 535, mode: `MaxEncodedLen`)
170	/// Storage: `System::Account` (r:1 w:0)
171	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
172	/// Storage: `Balances::Holds` (r:1 w:1)
173	/// Proof: `Balances::Holds` (`max_values`: None, `max_size`: Some(103), added: 2578, mode: `MaxEncodedLen`)
174	fn thaw_private() -> Weight {
175		// Proof Size summary in bytes:
176		//  Measured:  `387`
177		//  Estimated: `3593`
178		// Minimum execution time: 53_366_000 picoseconds.
179		Weight::from_parts(54_742_000, 0)
180			.saturating_add(Weight::from_parts(0, 3593))
181			.saturating_add(T::DbWeight::get().reads(4))
182			.saturating_add(T::DbWeight::get().writes(3))
183	}
184	/// Storage: `Nis::Receipts` (r:1 w:1)
185	/// Proof: `Nis::Receipts` (`max_values`: None, `max_size`: Some(81), added: 2556, mode: `MaxEncodedLen`)
186	/// Storage: `Nis::Summary` (r:1 w:1)
187	/// Proof: `Nis::Summary` (`max_values`: Some(1), `max_size`: Some(40), added: 535, mode: `MaxEncodedLen`)
188	/// Storage: `NisCounterpartBalances::Account` (r:1 w:1)
189	/// Proof: `NisCounterpartBalances::Account` (`max_values`: None, `max_size`: Some(112), added: 2587, mode: `MaxEncodedLen`)
190	/// Storage: `System::Account` (r:1 w:1)
191	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
192	fn thaw_communal() -> Weight {
193		// Proof Size summary in bytes:
194		//  Measured:  `488`
195		//  Estimated: `3593`
196		// Minimum execution time: 88_287_000 picoseconds.
197		Weight::from_parts(90_235_000, 0)
198			.saturating_add(Weight::from_parts(0, 3593))
199			.saturating_add(T::DbWeight::get().reads(4))
200			.saturating_add(T::DbWeight::get().writes(4))
201	}
202	/// Storage: `Nis::Summary` (r:1 w:1)
203	/// Proof: `Nis::Summary` (`max_values`: Some(1), `max_size`: Some(40), added: 535, mode: `MaxEncodedLen`)
204	/// Storage: `System::Account` (r:1 w:0)
205	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
206	/// Storage: `Nis::QueueTotals` (r:1 w:1)
207	/// Proof: `Nis::QueueTotals` (`max_values`: Some(1), `max_size`: Some(6002), added: 6497, mode: `MaxEncodedLen`)
208	fn process_queues() -> Weight {
209		// Proof Size summary in bytes:
210		//  Measured:  `6658`
211		//  Estimated: `7487`
212		// Minimum execution time: 21_256_000 picoseconds.
213		Weight::from_parts(22_594_000, 0)
214			.saturating_add(Weight::from_parts(0, 7487))
215			.saturating_add(T::DbWeight::get().reads(3))
216			.saturating_add(T::DbWeight::get().writes(2))
217	}
218	/// Storage: `Nis::Queues` (r:1 w:1)
219	/// Proof: `Nis::Queues` (`max_values`: None, `max_size`: Some(48022), added: 50497, mode: `MaxEncodedLen`)
220	fn process_queue() -> Weight {
221		// Proof Size summary in bytes:
222		//  Measured:  `76`
223		//  Estimated: `51487`
224		// Minimum execution time: 5_026_000 picoseconds.
225		Weight::from_parts(5_304_000, 0)
226			.saturating_add(Weight::from_parts(0, 51487))
227			.saturating_add(T::DbWeight::get().reads(1))
228			.saturating_add(T::DbWeight::get().writes(1))
229	}
230	/// Storage: `Nis::Receipts` (r:0 w:1)
231	/// Proof: `Nis::Receipts` (`max_values`: None, `max_size`: Some(81), added: 2556, mode: `MaxEncodedLen`)
232	fn process_bid() -> Weight {
233		// Proof Size summary in bytes:
234		//  Measured:  `0`
235		//  Estimated: `0`
236		// Minimum execution time: 4_905_000 picoseconds.
237		Weight::from_parts(5_189_000, 0)
238			.saturating_add(Weight::from_parts(0, 0))
239			.saturating_add(T::DbWeight::get().writes(1))
240	}
241}