referrerpolicy=no-referrer-when-downgrade

westend_runtime/weights/
pallet_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: `3a2e9ae8a8f5`, 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/westend-runtime/westend_runtime.wasm
32// --pallet=pallet_balances
33// --header=/__w/polkadot-sdk/polkadot-sdk/polkadot/file_header.txt
34// --output=./polkadot/runtime/westend/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: 52_576_000 picoseconds.
61		Weight::from_parts(53_526_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: 41_548_000 picoseconds.
73		Weight::from_parts(42_237_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: 19_240_000 picoseconds.
85		Weight::from_parts(20_294_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: 27_274_000 picoseconds.
97		Weight::from_parts(28_742_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: 54_887_000 picoseconds.
109		Weight::from_parts(56_002_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: 51_421_000 picoseconds.
121		Weight::from_parts(52_519_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: 22_311_000 picoseconds.
133		Weight::from_parts(23_026_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	fn upgrade_accounts(u: u32, ) -> Weight {
142		// Proof Size summary in bytes:
143		//  Measured:  `0 + u * (136 ±0)`
144		//  Estimated: `990 + u * (2603 ±0)`
145		// Minimum execution time: 18_042_000 picoseconds.
146		Weight::from_parts(18_172_000, 0)
147			.saturating_add(Weight::from_parts(0, 990))
148			// Standard Error: 11_937
149			.saturating_add(Weight::from_parts(15_351_977, 0).saturating_mul(u.into()))
150			.saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(u.into())))
151			.saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(u.into())))
152			.saturating_add(Weight::from_parts(0, 2603).saturating_mul(u.into()))
153	}
154	fn force_adjust_total_issuance() -> Weight {
155		// Proof Size summary in bytes:
156		//  Measured:  `0`
157		//  Estimated: `0`
158		// Minimum execution time: 6_666_000 picoseconds.
159		Weight::from_parts(7_042_000, 0)
160			.saturating_add(Weight::from_parts(0, 0))
161	}
162	fn burn_allow_death() -> Weight {
163		// Proof Size summary in bytes:
164		//  Measured:  `0`
165		//  Estimated: `0`
166		// Minimum execution time: 32_955_000 picoseconds.
167		Weight::from_parts(33_340_000, 0)
168			.saturating_add(Weight::from_parts(0, 0))
169	}
170	fn burn_keep_alive() -> Weight {
171		// Proof Size summary in bytes:
172		//  Measured:  `0`
173		//  Estimated: `0`
174		// Minimum execution time: 22_425_000 picoseconds.
175		Weight::from_parts(23_208_000, 0)
176			.saturating_add(Weight::from_parts(0, 0))
177	}
178}