referrerpolicy=no-referrer-when-downgrade

rococo_runtime/weights/
pallet_balances_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: `System::Account` (r:1 w:1)
55	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
56	fn transfer_allow_death() -> Weight {
57		// Proof Size summary in bytes:
58		//  Measured:  `0`
59		//  Estimated: `3593`
60		// Minimum execution time: 50_406_000 picoseconds.
61		Weight::from_parts(51_633_000, 0)
62			.saturating_add(Weight::from_parts(0, 3593))
63			.saturating_add(T::DbWeight::get().reads(1))
64			.saturating_add(T::DbWeight::get().writes(1))
65	}
66	/// Storage: `System::Account` (r:1 w:1)
67	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
68	fn transfer_keep_alive() -> Weight {
69		// Proof Size summary in bytes:
70		//  Measured:  `0`
71		//  Estimated: `3593`
72		// Minimum execution time: 39_512_000 picoseconds.
73		Weight::from_parts(40_179_000, 0)
74			.saturating_add(Weight::from_parts(0, 3593))
75			.saturating_add(T::DbWeight::get().reads(1))
76			.saturating_add(T::DbWeight::get().writes(1))
77	}
78	/// Storage: `System::Account` (r:1 w:1)
79	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
80	fn force_set_balance_creating() -> Weight {
81		// Proof Size summary in bytes:
82		//  Measured:  `174`
83		//  Estimated: `3593`
84		// Minimum execution time: 15_723_000 picoseconds.
85		Weight::from_parts(16_200_000, 0)
86			.saturating_add(Weight::from_parts(0, 3593))
87			.saturating_add(T::DbWeight::get().reads(1))
88			.saturating_add(T::DbWeight::get().writes(1))
89	}
90	/// Storage: `System::Account` (r:1 w:1)
91	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
92	fn force_set_balance_killing() -> Weight {
93		// Proof Size summary in bytes:
94		//  Measured:  `174`
95		//  Estimated: `3593`
96		// Minimum execution time: 23_197_000 picoseconds.
97		Weight::from_parts(24_047_000, 0)
98			.saturating_add(Weight::from_parts(0, 3593))
99			.saturating_add(T::DbWeight::get().reads(1))
100			.saturating_add(T::DbWeight::get().writes(1))
101	}
102	/// Storage: `System::Account` (r:2 w:2)
103	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
104	fn force_transfer() -> Weight {
105		// Proof Size summary in bytes:
106		//  Measured:  `103`
107		//  Estimated: `6196`
108		// Minimum execution time: 52_821_000 picoseconds.
109		Weight::from_parts(54_074_000, 0)
110			.saturating_add(Weight::from_parts(0, 6196))
111			.saturating_add(T::DbWeight::get().reads(2))
112			.saturating_add(T::DbWeight::get().writes(2))
113	}
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 transfer_all() -> Weight {
117		// Proof Size summary in bytes:
118		//  Measured:  `0`
119		//  Estimated: `3593`
120		// Minimum execution time: 49_164_000 picoseconds.
121		Weight::from_parts(50_996_000, 0)
122			.saturating_add(Weight::from_parts(0, 3593))
123			.saturating_add(T::DbWeight::get().reads(1))
124			.saturating_add(T::DbWeight::get().writes(1))
125	}
126	/// Storage: `System::Account` (r:1 w:1)
127	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
128	fn force_unreserve() -> Weight {
129		// Proof Size summary in bytes:
130		//  Measured:  `174`
131		//  Estimated: `3593`
132		// Minimum execution time: 18_865_000 picoseconds.
133		Weight::from_parts(19_389_000, 0)
134			.saturating_add(Weight::from_parts(0, 3593))
135			.saturating_add(T::DbWeight::get().reads(1))
136			.saturating_add(T::DbWeight::get().writes(1))
137	}
138	/// Storage: `System::Account` (r:999 w:999)
139	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
140	/// The range of component `u` is `[1, 1000]`.
141	/// The range of component `u` is `[1, 1000]`.
142	fn upgrade_accounts(u: u32, ) -> Weight {
143		// Proof Size summary in bytes:
144		//  Measured:  `0 + u * (135 ±0)`
145		//  Estimated: `990 + u * (2603 ±0)`
146		// Minimum execution time: 17_271_000 picoseconds.
147		Weight::from_parts(17_803_000, 0)
148			.saturating_add(Weight::from_parts(0, 990))
149			// Standard Error: 12_308
150			.saturating_add(Weight::from_parts(15_103_184, 0).saturating_mul(u.into()))
151			.saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(u.into())))
152			.saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(u.into())))
153			.saturating_add(Weight::from_parts(0, 2603).saturating_mul(u.into()))
154	}
155	fn force_adjust_total_issuance() -> Weight {
156		// Proof Size summary in bytes:
157		//  Measured:  `0`
158		//  Estimated: `0`
159		// Minimum execution time: 6_621_000 picoseconds.
160		Weight::from_parts(6_958_000, 0)
161			.saturating_add(Weight::from_parts(0, 0))
162	}
163	fn burn_allow_death() -> Weight {
164		// Proof Size summary in bytes:
165		//  Measured:  `0`
166		//  Estimated: `0`
167		// Minimum execution time: 31_019_000 picoseconds.
168		Weight::from_parts(32_086_000, 0)
169			.saturating_add(Weight::from_parts(0, 0))
170	}
171	fn burn_keep_alive() -> Weight {
172		// Proof Size summary in bytes:
173		//  Measured:  `0`
174		//  Estimated: `0`
175		// Minimum execution time: 21_242_000 picoseconds.
176		Weight::from_parts(22_146_000, 0)
177			.saturating_add(Weight::from_parts(0, 0))
178	}
179}