referrerpolicy=no-referrer-when-downgrade

rococo_runtime/weights/
pallet_balances_nis_counterpart_balances.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_balances`
18//!
19//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0
20//! DATE: 2025-02-22, 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=pallet_balances
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_balances`.
52pub struct WeightInfo<T>(PhantomData<T>);
53impl<T: frame_system::Config> pallet_balances::WeightInfo for WeightInfo<T> {
54	/// Storage: `NisCounterpartBalances::Account` (r:2 w:2)
55	/// Proof: `NisCounterpartBalances::Account` (`max_values`: None, `max_size`: Some(112), added: 2587, mode: `MaxEncodedLen`)
56	/// Storage: `System::Account` (r:1 w:1)
57	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
58	fn transfer_allow_death() -> Weight {
59		// Proof Size summary in bytes:
60		//  Measured:  `103`
61		//  Estimated: `6164`
62		// Minimum execution time: 49_197_000 picoseconds.
63		Weight::from_parts(50_803_000, 0)
64			.saturating_add(Weight::from_parts(0, 6164))
65			.saturating_add(T::DbWeight::get().reads(3))
66			.saturating_add(T::DbWeight::get().writes(3))
67	}
68	/// Storage: `NisCounterpartBalances::Account` (r:2 w:2)
69	/// Proof: `NisCounterpartBalances::Account` (`max_values`: None, `max_size`: Some(112), added: 2587, mode: `MaxEncodedLen`)
70	/// Storage: `System::Account` (r:1 w:1)
71	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
72	fn transfer_keep_alive() -> Weight {
73		// Proof Size summary in bytes:
74		//  Measured:  `103`
75		//  Estimated: `6164`
76		// Minimum execution time: 38_473_000 picoseconds.
77		Weight::from_parts(39_957_000, 0)
78			.saturating_add(Weight::from_parts(0, 6164))
79			.saturating_add(T::DbWeight::get().reads(3))
80			.saturating_add(T::DbWeight::get().writes(3))
81	}
82	/// Storage: `NisCounterpartBalances::Account` (r:1 w:1)
83	/// Proof: `NisCounterpartBalances::Account` (`max_values`: None, `max_size`: Some(112), added: 2587, mode: `MaxEncodedLen`)
84	fn force_set_balance_creating() -> Weight {
85		// Proof Size summary in bytes:
86		//  Measured:  `103`
87		//  Estimated: `3577`
88		// Minimum execution time: 12_536_000 picoseconds.
89		Weight::from_parts(13_115_000, 0)
90			.saturating_add(Weight::from_parts(0, 3577))
91			.saturating_add(T::DbWeight::get().reads(1))
92			.saturating_add(T::DbWeight::get().writes(1))
93	}
94	/// Storage: `NisCounterpartBalances::Account` (r:1 w:1)
95	/// Proof: `NisCounterpartBalances::Account` (`max_values`: None, `max_size`: Some(112), added: 2587, mode: `MaxEncodedLen`)
96	/// Storage: `System::Account` (r:1 w:1)
97	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
98	fn force_set_balance_killing() -> Weight {
99		// Proof Size summary in bytes:
100		//  Measured:  `277`
101		//  Estimated: `3593`
102		// Minimum execution time: 23_399_000 picoseconds.
103		Weight::from_parts(24_009_000, 0)
104			.saturating_add(Weight::from_parts(0, 3593))
105			.saturating_add(T::DbWeight::get().reads(2))
106			.saturating_add(T::DbWeight::get().writes(2))
107	}
108	/// Storage: `NisCounterpartBalances::Account` (r:2 w:2)
109	/// Proof: `NisCounterpartBalances::Account` (`max_values`: None, `max_size`: Some(112), added: 2587, mode: `MaxEncodedLen`)
110	/// Storage: `System::Account` (r:2 w:2)
111	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
112	fn force_transfer() -> Weight {
113		// Proof Size summary in bytes:
114		//  Measured:  `206`
115		//  Estimated: `6196`
116		// Minimum execution time: 51_335_000 picoseconds.
117		Weight::from_parts(52_767_000, 0)
118			.saturating_add(Weight::from_parts(0, 6196))
119			.saturating_add(T::DbWeight::get().reads(4))
120			.saturating_add(T::DbWeight::get().writes(4))
121	}
122	/// Storage: `NisCounterpartBalances::Account` (r:2 w:2)
123	/// Proof: `NisCounterpartBalances::Account` (`max_values`: None, `max_size`: Some(112), added: 2587, mode: `MaxEncodedLen`)
124	/// Storage: `System::Account` (r:1 w:1)
125	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
126	fn transfer_all() -> Weight {
127		// Proof Size summary in bytes:
128		//  Measured:  `103`
129		//  Estimated: `6164`
130		// Minimum execution time: 47_667_000 picoseconds.
131		Weight::from_parts(49_854_000, 0)
132			.saturating_add(Weight::from_parts(0, 6164))
133			.saturating_add(T::DbWeight::get().reads(3))
134			.saturating_add(T::DbWeight::get().writes(3))
135	}
136	/// Storage: `NisCounterpartBalances::Account` (r:1 w:1)
137	/// Proof: `NisCounterpartBalances::Account` (`max_values`: None, `max_size`: Some(112), added: 2587, mode: `MaxEncodedLen`)
138	/// Storage: `System::Account` (r:1 w:1)
139	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
140	fn force_unreserve() -> Weight {
141		// Proof Size summary in bytes:
142		//  Measured:  `277`
143		//  Estimated: `3593`
144		// Minimum execution time: 19_709_000 picoseconds.
145		Weight::from_parts(20_418_000, 0)
146			.saturating_add(Weight::from_parts(0, 3593))
147			.saturating_add(T::DbWeight::get().reads(2))
148			.saturating_add(T::DbWeight::get().writes(2))
149	}
150	/// Storage: `NisCounterpartBalances::Account` (r:999 w:999)
151	/// Proof: `NisCounterpartBalances::Account` (`max_values`: None, `max_size`: Some(112), added: 2587, mode: `MaxEncodedLen`)
152	/// Storage: `System::Account` (r:999 w:999)
153	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
154	/// The range of component `u` is `[1, 1000]`.
155	/// The range of component `u` is `[1, 1000]`.
156	fn upgrade_accounts(u: u32, ) -> Weight {
157		// Proof Size summary in bytes:
158		//  Measured:  `0 + u * (256 ±0)`
159		//  Estimated: `990 + u * (2603 ±0)`
160		// Minimum execution time: 18_690_000 picoseconds.
161		Weight::from_parts(18_908_000, 0)
162			.saturating_add(Weight::from_parts(0, 990))
163			// Standard Error: 27_375
164			.saturating_add(Weight::from_parts(17_733_508, 0).saturating_mul(u.into()))
165			.saturating_add(T::DbWeight::get().reads((2_u64).saturating_mul(u.into())))
166			.saturating_add(T::DbWeight::get().writes((2_u64).saturating_mul(u.into())))
167			.saturating_add(Weight::from_parts(0, 2603).saturating_mul(u.into()))
168	}
169	fn force_adjust_total_issuance() -> Weight {
170		// Proof Size summary in bytes:
171		//  Measured:  `0`
172		//  Estimated: `0`
173		// Minimum execution time: 6_853_000 picoseconds.
174		Weight::from_parts(7_047_000, 0)
175			.saturating_add(Weight::from_parts(0, 0))
176	}
177	/// Storage: `NisCounterpartBalances::Account` (r:1 w:1)
178	/// Proof: `NisCounterpartBalances::Account` (`max_values`: None, `max_size`: Some(112), added: 2587, mode: `MaxEncodedLen`)
179	fn burn_allow_death() -> Weight {
180		// Proof Size summary in bytes:
181		//  Measured:  `103`
182		//  Estimated: `3577`
183		// Minimum execution time: 31_868_000 picoseconds.
184		Weight::from_parts(33_149_000, 0)
185			.saturating_add(Weight::from_parts(0, 3577))
186			.saturating_add(T::DbWeight::get().reads(1))
187			.saturating_add(T::DbWeight::get().writes(1))
188	}
189	/// Storage: `NisCounterpartBalances::Account` (r:1 w:1)
190	/// Proof: `NisCounterpartBalances::Account` (`max_values`: None, `max_size`: Some(112), added: 2587, mode: `MaxEncodedLen`)
191	fn burn_keep_alive() -> Weight {
192		// Proof Size summary in bytes:
193		//  Measured:  `103`
194		//  Estimated: `3577`
195		// Minimum execution time: 21_831_000 picoseconds.
196		Weight::from_parts(22_525_000, 0)
197			.saturating_add(Weight::from_parts(0, 3577))
198			.saturating_add(T::DbWeight::get().reads(1))
199			.saturating_add(T::DbWeight::get().writes(1))
200	}
201}