referrerpolicy=no-referrer-when-downgrade

pallet_staking_async_parachain_runtime/weights/
pallet_balances.rs

1// This file is part of Substrate.
2
3// Copyright (C) Parity Technologies (UK) Ltd.
4// SPDX-License-Identifier: Apache-2.0
5
6// Licensed under the Apache License, Version 2.0 (the "License");
7// you may not use this file except in compliance with the License.
8// You may obtain a copy of the License at
9//
10// 	http://www.apache.org/licenses/LICENSE-2.0
11//
12// Unless required by applicable law or agreed to in writing, software
13// distributed under the License is distributed on an "AS IS" BASIS,
14// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15// See the License for the specific language governing permissions and
16// limitations under the License.
17
18//! Autogenerated weights for `pallet_balances`
19//!
20//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0
21//! DATE: 2024-05-06, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
22//! WORST CASE MAP SIZE: `1000000`
23//! HOSTNAME: `runner-unxyhko3-project-674-concurrent-0`, CPU: `Intel(R) Xeon(R) CPU @ 2.60GHz`
24//! WASM-EXECUTION: `Compiled`, CHAIN: `Some("asset-hub-next-westend-dev")`, DB CACHE: 1024
25
26// Executed Command:
27// target/production/polkadot-parachain
28// benchmark
29// pallet
30// --steps=50
31// --repeat=20
32// --extrinsic=*
33// --wasm-execution=compiled
34// --heap-pages=4096
35// --json-file=/builds/parity/mirrors/polkadot-sdk/.git/.artifacts/bench.json
36// --pallet=pallet_balances
37// --chain=asset-hub-next-westend-dev
38// --header=./cumulus/file_header.txt
39// --output=./cumulus/parachains/runtimes/assets/asset-hub-next-westend/src/weights/
40
41#![cfg_attr(rustfmt, rustfmt_skip)]
42#![allow(unused_parens)]
43#![allow(unused_imports)]
44#![allow(missing_docs)]
45
46use frame_support::{traits::Get, weights::Weight};
47use core::marker::PhantomData;
48
49/// Weight functions for `pallet_balances`.
50pub struct WeightInfo<T>(PhantomData<T>);
51impl<T: frame_system::Config> pallet_balances::WeightInfo for WeightInfo<T> {
52	/// Storage: `System::Account` (r:1 w:1)
53	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
54	fn transfer_allow_death() -> Weight {
55		// Proof Size summary in bytes:
56		//  Measured:  `0`
57		//  Estimated: `3593`
58		// Minimum execution time: 45_289_000 picoseconds.
59		Weight::from_parts(46_764_000, 0)
60			.saturating_add(Weight::from_parts(0, 3593))
61			.saturating_add(T::DbWeight::get().reads(1))
62			.saturating_add(T::DbWeight::get().writes(1))
63	}
64	/// Storage: `System::Account` (r:1 w:1)
65	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
66	fn transfer_keep_alive() -> Weight {
67		// Proof Size summary in bytes:
68		//  Measured:  `0`
69		//  Estimated: `3593`
70		// Minimum execution time: 35_052_000 picoseconds.
71		Weight::from_parts(36_494_000, 0)
72			.saturating_add(Weight::from_parts(0, 3593))
73			.saturating_add(T::DbWeight::get().reads(1))
74			.saturating_add(T::DbWeight::get().writes(1))
75	}
76	/// Storage: `System::Account` (r:1 w:1)
77	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
78	fn force_set_balance_creating() -> Weight {
79		// Proof Size summary in bytes:
80		//  Measured:  `103`
81		//  Estimated: `3593`
82		// Minimum execution time: 12_361_000 picoseconds.
83		Weight::from_parts(12_668_000, 0)
84			.saturating_add(Weight::from_parts(0, 3593))
85			.saturating_add(T::DbWeight::get().reads(1))
86			.saturating_add(T::DbWeight::get().writes(1))
87	}
88	/// Storage: `System::Account` (r:1 w:1)
89	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
90	fn force_set_balance_killing() -> Weight {
91		// Proof Size summary in bytes:
92		//  Measured:  `103`
93		//  Estimated: `3593`
94		// Minimum execution time: 17_253_000 picoseconds.
95		Weight::from_parts(17_733_000, 0)
96			.saturating_add(Weight::from_parts(0, 3593))
97			.saturating_add(T::DbWeight::get().reads(1))
98			.saturating_add(T::DbWeight::get().writes(1))
99	}
100	/// Storage: `System::Account` (r:2 w:2)
101	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
102	fn force_transfer() -> Weight {
103		// Proof Size summary in bytes:
104		//  Measured:  `103`
105		//  Estimated: `6196`
106		// Minimum execution time: 45_674_000 picoseconds.
107		Weight::from_parts(47_981_000, 0)
108			.saturating_add(Weight::from_parts(0, 6196))
109			.saturating_add(T::DbWeight::get().reads(2))
110			.saturating_add(T::DbWeight::get().writes(2))
111	}
112	/// Storage: `System::Account` (r:1 w:1)
113	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
114	fn transfer_all() -> Weight {
115		// Proof Size summary in bytes:
116		//  Measured:  `0`
117		//  Estimated: `3593`
118		// Minimum execution time: 45_021_000 picoseconds.
119		Weight::from_parts(46_292_000, 0)
120			.saturating_add(Weight::from_parts(0, 3593))
121			.saturating_add(T::DbWeight::get().reads(1))
122			.saturating_add(T::DbWeight::get().writes(1))
123	}
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 force_unreserve() -> Weight {
127		// Proof Size summary in bytes:
128		//  Measured:  `103`
129		//  Estimated: `3593`
130		// Minimum execution time: 15_071_000 picoseconds.
131		Weight::from_parts(15_406_000, 0)
132			.saturating_add(Weight::from_parts(0, 3593))
133			.saturating_add(T::DbWeight::get().reads(1))
134			.saturating_add(T::DbWeight::get().writes(1))
135	}
136	/// Storage: `System::Account` (r:999 w:999)
137	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
138	/// The range of component `u` is `[1, 1000]`.
139	fn upgrade_accounts(u: u32, ) -> Weight {
140		// Proof Size summary in bytes:
141		//  Measured:  `0 + u * (136 ±0)`
142		//  Estimated: `990 + u * (2603 ±0)`
143		// Minimum execution time: 14_779_000 picoseconds.
144		Weight::from_parts(15_129_000, 0)
145			.saturating_add(Weight::from_parts(0, 990))
146			// Standard Error: 10_629
147			.saturating_add(Weight::from_parts(13_558_995, 0).saturating_mul(u.into()))
148			.saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(u.into())))
149			.saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(u.into())))
150			.saturating_add(Weight::from_parts(0, 2603).saturating_mul(u.into()))
151	}
152	/// Storage: `Balances::InactiveIssuance` (r:1 w:0)
153	/// Proof: `Balances::InactiveIssuance` (`max_values`: Some(1), `max_size`: Some(16), added: 511, mode: `MaxEncodedLen`)
154	fn force_adjust_total_issuance() -> Weight {
155		// Proof Size summary in bytes:
156		//  Measured:  `0`
157		//  Estimated: `1501`
158		// Minimum execution time: 5_274_000 picoseconds.
159		Weight::from_parts(5_727_000, 0)
160			.saturating_add(Weight::from_parts(0, 1501))
161			.saturating_add(T::DbWeight::get().reads(1))
162	}
163	fn burn_allow_death() -> Weight {
164		// Proof Size summary in bytes:
165		//  Measured:  `0`
166		//  Estimated: `0`
167		// Minimum execution time: 28_088_000 picoseconds.
168		Weight::from_parts(28_980_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: 19_002_000 picoseconds.
176		Weight::from_parts(19_480_000, 0)
177			.saturating_add(Weight::from_parts(0, 0))
178	}
179}