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 32.0.0
23//! DATE: 2025-12-19, 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 /// Storage: `UnifiedAccounts::NativeToEvm` (r:1 w:0)
58 /// Proof: `UnifiedAccounts::NativeToEvm` (`max_values`: None, `max_size`: Some(68), added: 2543, mode: `MaxEncodedLen`)
59 fn transfer_allow_death() -> Weight {
60 // Proof Size summary in bytes:
61 // Measured: `94`
62 // Estimated: `3593`
63 // Minimum execution time: 60_847_000 picoseconds.
64 Weight::from_parts(61_390_000, 0)
65 .saturating_add(Weight::from_parts(0, 3593))
66 .saturating_add(T::DbWeight::get().reads(2))
67 .saturating_add(T::DbWeight::get().writes(1))
68 }
69 /// Storage: `System::Account` (r:1 w:1)
70 /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
71 fn transfer_keep_alive() -> Weight {
72 // Proof Size summary in bytes:
73 // Measured: `52`
74 // Estimated: `3593`
75 // Minimum execution time: 45_157_000 picoseconds.
76 Weight::from_parts(45_514_000, 0)
77 .saturating_add(Weight::from_parts(0, 3593))
78 .saturating_add(T::DbWeight::get().reads(1))
79 .saturating_add(T::DbWeight::get().writes(1))
80 }
81 /// Storage: `System::Account` (r:1 w:1)
82 /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
83 fn force_set_balance_creating() -> Weight {
84 // Proof Size summary in bytes:
85 // Measured: `72`
86 // Estimated: `3593`
87 // Minimum execution time: 27_372_000 picoseconds.
88 Weight::from_parts(27_762_000, 0)
89 .saturating_add(Weight::from_parts(0, 3593))
90 .saturating_add(T::DbWeight::get().reads(1))
91 .saturating_add(T::DbWeight::get().writes(1))
92 }
93 /// Storage: `System::Account` (r:1 w:1)
94 /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
95 /// Storage: `UnifiedAccounts::NativeToEvm` (r:1 w:0)
96 /// Proof: `UnifiedAccounts::NativeToEvm` (`max_values`: None, `max_size`: Some(68), added: 2543, mode: `MaxEncodedLen`)
97 fn force_set_balance_killing() -> Weight {
98 // Proof Size summary in bytes:
99 // Measured: `249`
100 // Estimated: `3593`
101 // Minimum execution time: 31_444_000 picoseconds.
102 Weight::from_parts(32_043_000, 0)
103 .saturating_add(Weight::from_parts(0, 3593))
104 .saturating_add(T::DbWeight::get().reads(2))
105 .saturating_add(T::DbWeight::get().writes(1))
106 }
107 /// Storage: `System::Account` (r:2 w:2)
108 /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
109 /// Storage: `UnifiedAccounts::NativeToEvm` (r:1 w:0)
110 /// Proof: `UnifiedAccounts::NativeToEvm` (`max_values`: None, `max_size`: Some(68), added: 2543, mode: `MaxEncodedLen`)
111 fn force_transfer() -> Weight {
112 // Proof Size summary in bytes:
113 // Measured: `197`
114 // Estimated: `6196`
115 // Minimum execution time: 63_143_000 picoseconds.
116 Weight::from_parts(64_761_000, 0)
117 .saturating_add(Weight::from_parts(0, 6196))
118 .saturating_add(T::DbWeight::get().reads(3))
119 .saturating_add(T::DbWeight::get().writes(2))
120 }
121 /// Storage: `System::Account` (r:1 w:1)
122 /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
123 /// Storage: `UnifiedAccounts::NativeToEvm` (r:1 w:0)
124 /// Proof: `UnifiedAccounts::NativeToEvm` (`max_values`: None, `max_size`: Some(68), added: 2543, mode: `MaxEncodedLen`)
125 fn transfer_all() -> Weight {
126 // Proof Size summary in bytes:
127 // Measured: `94`
128 // Estimated: `3593`
129 // Minimum execution time: 59_189_000 picoseconds.
130 Weight::from_parts(59_837_000, 0)
131 .saturating_add(Weight::from_parts(0, 3593))
132 .saturating_add(T::DbWeight::get().reads(2))
133 .saturating_add(T::DbWeight::get().writes(1))
134 }
135 /// Storage: `System::Account` (r:1 w:1)
136 /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
137 fn force_unreserve() -> Weight {
138 // Proof Size summary in bytes:
139 // Measured: `207`
140 // Estimated: `3593`
141 // Minimum execution time: 22_278_000 picoseconds.
142 Weight::from_parts(22_814_000, 0)
143 .saturating_add(Weight::from_parts(0, 3593))
144 .saturating_add(T::DbWeight::get().reads(1))
145 .saturating_add(T::DbWeight::get().writes(1))
146 }
147 /// Storage: `System::Account` (r:999 w:999)
148 /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
149 /// The range of component `u` is `[1, 1000]`.
150 fn upgrade_accounts(u: u32, ) -> Weight {
151 // Proof Size summary in bytes:
152 // Measured: `0 + u * (136 ±0)`
153 // Estimated: `990 + u * (2603 ±0)`
154 // Minimum execution time: 21_973_000 picoseconds.
155 Weight::from_parts(22_245_000, 0)
156 .saturating_add(Weight::from_parts(0, 990))
157 // Standard Error: 6_050
158 .saturating_add(Weight::from_parts(13_585_960, 0).saturating_mul(u.into()))
159 .saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(u.into())))
160 .saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(u.into())))
161 .saturating_add(Weight::from_parts(0, 2603).saturating_mul(u.into()))
162 }
163 fn force_adjust_total_issuance() -> Weight {
164 // Proof Size summary in bytes:
165 // Measured: `0`
166 // Estimated: `0`
167 // Minimum execution time: 9_897_000 picoseconds.
168 Weight::from_parts(10_134_000, 0)
169 .saturating_add(Weight::from_parts(0, 0))
170 }
171 /// Storage: `UnifiedAccounts::NativeToEvm` (r:1 w:0)
172 /// Proof: `UnifiedAccounts::NativeToEvm` (`max_values`: None, `max_size`: Some(68), added: 2543, mode: `MaxEncodedLen`)
173 fn burn_allow_death() -> Weight {
174 // Proof Size summary in bytes:
175 // Measured: `42`
176 // Estimated: `3533`
177 // Minimum execution time: 40_128_000 picoseconds.
178 Weight::from_parts(40_555_000, 0)
179 .saturating_add(Weight::from_parts(0, 3533))
180 .saturating_add(T::DbWeight::get().reads(1))
181 }
182 fn burn_keep_alive() -> Weight {
183 // Proof Size summary in bytes:
184 // Measured: `0`
185 // Estimated: `0`
186 // Minimum execution time: 24_731_000 picoseconds.
187 Weight::from_parts(25_240_000, 0)
188 .saturating_add(Weight::from_parts(0, 0))
189 }
190}