shibuya_runtime/weights/
pallet_balances.rs

1
2// This file is part of Astar.
3
4// Copyright (C) Stake Technologies Pte.Ltd.
5// SPDX-License-Identifier: GPL-3.0-or-later
6
7// Astar is free software: you can redistribute it and/or modify
8// it under the terms of the GNU General Public License as published by
9// the Free Software Foundation, either version 3 of the License, or
10// (at your option) any later version.
11
12// Astar is distributed in the hope that it will be useful,
13// but WITHOUT ANY WARRANTY; without even the implied warranty of
14// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15// GNU General Public License for more details.
16
17// You should have received a copy of the GNU General Public License
18// along with Astar. If not, see <http://www.gnu.org/licenses/>.
19
20//! Autogenerated weights for `pallet_balances`
21//!
22//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 49.1.0
23//! DATE: 2026-05-25, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
24//! WORST CASE MAP SIZE: `1000000`
25//! HOSTNAME: `gh-runner-01-ovh`, CPU: `Intel(R) Xeon(R) E-2236 CPU @ 3.40GHz`
26//! WASM-EXECUTION: `Compiled`, CHAIN: `None`, DB CACHE: 1024
27
28// Executed Command:
29// frame-omni-bencher
30// v1
31// benchmark
32// pallet
33// --runtime=./target/release/wbuild/shibuya-runtime/shibuya_runtime.compact.compressed.wasm
34// --steps=50
35// --repeat=20
36// --pallet=pallet_balances
37// --extrinsic=*
38// --wasm-execution=compiled
39// --heap-pages=4096
40// --output=./benchmark-results/shibuya/runtime/balances_weights.rs
41// --template=./scripts/templates/runtime-weight-template.hbs
42
43#![cfg_attr(rustfmt, rustfmt_skip)]
44#![allow(unused_parens)]
45#![allow(unused_imports)]
46#![allow(missing_docs)]
47#![allow(dead_code)]
48
49use frame_support::{traits::Get, weights::Weight};
50use core::marker::PhantomData;
51
52/// Weight functions for `pallet_balances`.
53pub struct SubstrateWeight<T>(PhantomData<T>);
54impl<T: frame_system::Config> pallet_balances::WeightInfo for SubstrateWeight<T> {
55	/// Storage: `System::Account` (r:1 w:1)
56	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
57	fn transfer_allow_death() -> Weight {
58		// Proof Size summary in bytes:
59		//  Measured:  `52`
60		//  Estimated: `3593`
61		// Minimum execution time: 41_968_000 picoseconds.
62		Weight::from_parts(43_180_000, 0)
63			.saturating_add(Weight::from_parts(0, 3593))
64			.saturating_add(T::DbWeight::get().reads(1))
65			.saturating_add(T::DbWeight::get().writes(1))
66	}
67	/// Storage: `System::Account` (r:1 w:1)
68	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
69	fn transfer_keep_alive() -> Weight {
70		// Proof Size summary in bytes:
71		//  Measured:  `52`
72		//  Estimated: `3593`
73		// Minimum execution time: 33_593_000 picoseconds.
74		Weight::from_parts(34_279_000, 0)
75			.saturating_add(Weight::from_parts(0, 3593))
76			.saturating_add(T::DbWeight::get().reads(1))
77			.saturating_add(T::DbWeight::get().writes(1))
78	}
79	/// Storage: `System::Account` (r:1 w:1)
80	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
81	fn force_set_balance_creating() -> Weight {
82		// Proof Size summary in bytes:
83		//  Measured:  `72`
84		//  Estimated: `3593`
85		// Minimum execution time: 20_558_000 picoseconds.
86		Weight::from_parts(20_873_000, 0)
87			.saturating_add(Weight::from_parts(0, 3593))
88			.saturating_add(T::DbWeight::get().reads(1))
89			.saturating_add(T::DbWeight::get().writes(1))
90	}
91	/// Storage: `System::Account` (r:1 w:1)
92	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
93	fn force_set_balance_killing() -> Weight {
94		// Proof Size summary in bytes:
95		//  Measured:  `207`
96		//  Estimated: `3593`
97		// Minimum execution time: 20_728_000 picoseconds.
98		Weight::from_parts(21_161_000, 0)
99			.saturating_add(Weight::from_parts(0, 3593))
100			.saturating_add(T::DbWeight::get().reads(1))
101			.saturating_add(T::DbWeight::get().writes(1))
102	}
103	/// Storage: `System::Account` (r:2 w:2)
104	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
105	fn force_transfer() -> Weight {
106		// Proof Size summary in bytes:
107		//  Measured:  `155`
108		//  Estimated: `6196`
109		// Minimum execution time: 43_803_000 picoseconds.
110		Weight::from_parts(44_622_000, 0)
111			.saturating_add(Weight::from_parts(0, 6196))
112			.saturating_add(T::DbWeight::get().reads(2))
113			.saturating_add(T::DbWeight::get().writes(2))
114	}
115	/// Storage: `System::Account` (r:1 w:1)
116	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
117	fn transfer_all() -> Weight {
118		// Proof Size summary in bytes:
119		//  Measured:  `52`
120		//  Estimated: `3593`
121		// Minimum execution time: 40_886_000 picoseconds.
122		Weight::from_parts(41_800_000, 0)
123			.saturating_add(Weight::from_parts(0, 3593))
124			.saturating_add(T::DbWeight::get().reads(1))
125			.saturating_add(T::DbWeight::get().writes(1))
126	}
127	/// Storage: `System::Account` (r:1 w:1)
128	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
129	fn force_unreserve() -> Weight {
130		// Proof Size summary in bytes:
131		//  Measured:  `207`
132		//  Estimated: `3593`
133		// Minimum execution time: 16_706_000 picoseconds.
134		Weight::from_parts(17_007_000, 0)
135			.saturating_add(Weight::from_parts(0, 3593))
136			.saturating_add(T::DbWeight::get().reads(1))
137			.saturating_add(T::DbWeight::get().writes(1))
138	}
139	/// Storage: `System::Account` (r:999 w:999)
140	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
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 * (136 ±0)`
145		//  Estimated: `990 + u * (2603 ±0)`
146		// Minimum execution time: 16_559_000 picoseconds.
147		Weight::from_parts(16_678_000, 0)
148			.saturating_add(Weight::from_parts(0, 990))
149			// Standard Error: 5_389
150			.saturating_add(Weight::from_parts(10_901_817, 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_821_000 picoseconds.
160		Weight::from_parts(6_971_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: 26_758_000 picoseconds.
168		Weight::from_parts(27_119_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: 18_540_000 picoseconds.
176		Weight::from_parts(18_927_000, 0)
177			.saturating_add(Weight::from_parts(0, 0))
178	}
179}