1
// Copyright (C) Moondance Labs Ltd.
2
// This file is part of Tanssi.
3

            
4
// Tanssi 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
// Tanssi 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 Tanssi.  If not, see <http://www.gnu.org/licenses/>
16

            
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: 2025-05-02, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
22
//! WORST CASE MAP SIZE: `1000000`
23
//! HOSTNAME: `benchmark-1`, CPU: `Intel(R) Xeon(R) Platinum 8375C CPU @ 2.90GHz`
24
//! EXECUTION: , WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 1024
25

            
26
// Executed Command:
27
// target/release/container-chain-frontier-node
28
// benchmark
29
// pallet
30
// --execution=wasm
31
// --wasm-execution=compiled
32
// --pallet
33
// pallet_balances
34
// --extrinsic
35
// *
36
// --chain=dev
37
// --steps
38
// 50
39
// --repeat
40
// 20
41
// --template=benchmarking/frame-weight-runtime-template.hbs
42
// --json-file
43
// raw.json
44
// --output
45
// tmp/frontier_template_weights/pallet_balances.rs
46

            
47
#![cfg_attr(rustfmt, rustfmt_skip)]
48
#![allow(unused_parens)]
49
#![allow(unused_imports)]
50

            
51
use frame_support::{traits::Get, weights::{Weight, constants::RocksDbWeight}};
52
use sp_std::marker::PhantomData;
53

            
54
/// Weights for pallet_balances using the Substrate node and recommended hardware.
55
pub struct SubstrateWeight<T>(PhantomData<T>);
56
impl<T: frame_system::Config> pallet_balances::WeightInfo for SubstrateWeight<T> {
57
	/// Storage: `System::Account` (r:1 w:1)
58
	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(116), added: 2591, mode: `MaxEncodedLen`)
59
	fn transfer_allow_death() -> Weight {
60
		// Proof Size summary in bytes:
61
		//  Measured:  `39`
62
		//  Estimated: `3581`
63
		// Minimum execution time: 56_383_000 picoseconds.
64
		Weight::from_parts(57_356_000, 3581)
65
			.saturating_add(T::DbWeight::get().reads(1_u64))
66
			.saturating_add(T::DbWeight::get().writes(1_u64))
67
	}
68
	/// Storage: `System::Account` (r:1 w:1)
69
	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(116), added: 2591, mode: `MaxEncodedLen`)
70
	fn transfer_keep_alive() -> Weight {
71
		// Proof Size summary in bytes:
72
		//  Measured:  `39`
73
		//  Estimated: `3581`
74
		// Minimum execution time: 54_840_000 picoseconds.
75
		Weight::from_parts(55_340_000, 3581)
76
			.saturating_add(T::DbWeight::get().reads(1_u64))
77
			.saturating_add(T::DbWeight::get().writes(1_u64))
78
	}
79
	/// Storage: `System::Account` (r:1 w:1)
80
	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(116), added: 2591, mode: `MaxEncodedLen`)
81
	fn force_set_balance_creating() -> Weight {
82
		// Proof Size summary in bytes:
83
		//  Measured:  `162`
84
		//  Estimated: `3581`
85
		// Minimum execution time: 20_804_000 picoseconds.
86
		Weight::from_parts(21_273_000, 3581)
87
			.saturating_add(T::DbWeight::get().reads(1_u64))
88
			.saturating_add(T::DbWeight::get().writes(1_u64))
89
	}
90
	/// Storage: `System::Account` (r:1 w:1)
91
	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(116), added: 2591, mode: `MaxEncodedLen`)
92
	fn force_set_balance_killing() -> Weight {
93
		// Proof Size summary in bytes:
94
		//  Measured:  `162`
95
		//  Estimated: `3581`
96
		// Minimum execution time: 24_689_000 picoseconds.
97
		Weight::from_parts(25_305_000, 3581)
98
			.saturating_add(T::DbWeight::get().reads(1_u64))
99
			.saturating_add(T::DbWeight::get().writes(1_u64))
100
	}
101
	/// Storage: `System::Account` (r:2 w:2)
102
	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(116), added: 2591, mode: `MaxEncodedLen`)
103
	fn force_transfer() -> Weight {
104
		// Proof Size summary in bytes:
105
		//  Measured:  `201`
106
		//  Estimated: `6172`
107
		// Minimum execution time: 59_803_000 picoseconds.
108
		Weight::from_parts(60_546_000, 6172)
109
			.saturating_add(T::DbWeight::get().reads(2_u64))
110
			.saturating_add(T::DbWeight::get().writes(2_u64))
111
	}
112
	/// Storage: `System::Account` (r:1 w:1)
113
	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(116), added: 2591, mode: `MaxEncodedLen`)
114
	fn transfer_all() -> Weight {
115
		// Proof Size summary in bytes:
116
		//  Measured:  `39`
117
		//  Estimated: `3581`
118
		// Minimum execution time: 60_596_000 picoseconds.
119
		Weight::from_parts(61_011_000, 3581)
120
			.saturating_add(T::DbWeight::get().reads(1_u64))
121
			.saturating_add(T::DbWeight::get().writes(1_u64))
122
	}
123
	/// Storage: `System::Account` (r:1 w:1)
124
	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(116), added: 2591, mode: `MaxEncodedLen`)
125
	fn force_unreserve() -> Weight {
126
		// Proof Size summary in bytes:
127
		//  Measured:  `162`
128
		//  Estimated: `3581`
129
		// Minimum execution time: 25_009_000 picoseconds.
130
		Weight::from_parts(25_452_000, 3581)
131
			.saturating_add(T::DbWeight::get().reads(1_u64))
132
			.saturating_add(T::DbWeight::get().writes(1_u64))
133
	}
134
	/// Storage: `System::Account` (r:999 w:999)
135
	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(116), added: 2591, mode: `MaxEncodedLen`)
136
	/// The range of component `u` is `[1, 1000]`.
137
	fn upgrade_accounts(u: u32, ) -> Weight {
138
		// Proof Size summary in bytes:
139
		//  Measured:  `0 + u * (124 ±0)`
140
		//  Estimated: `990 + u * (2591 ±0)`
141
		// Minimum execution time: 22_792_000 picoseconds.
142
		Weight::from_parts(22_947_000, 990)
143
			// Standard Error: 11_320
144
			.saturating_add(Weight::from_parts(17_813_535, 0).saturating_mul(u.into()))
145
			.saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(u.into())))
146
			.saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(u.into())))
147
			.saturating_add(Weight::from_parts(0, 2591).saturating_mul(u.into()))
148
	}
149
	/// Storage: `Balances::InactiveIssuance` (r:1 w:0)
150
	/// Proof: `Balances::InactiveIssuance` (`max_values`: Some(1), `max_size`: Some(16), added: 511, mode: `MaxEncodedLen`)
151
	fn force_adjust_total_issuance() -> Weight {
152
		// Proof Size summary in bytes:
153
		//  Measured:  `0`
154
		//  Estimated: `1501`
155
		// Minimum execution time: 8_588_000 picoseconds.
156
		Weight::from_parts(8_814_000, 1501)
157
			.saturating_add(T::DbWeight::get().reads(1_u64))
158
	}
159
	fn burn_allow_death() -> Weight {
160
		// Proof Size summary in bytes:
161
		//  Measured:  `0`
162
		//  Estimated: `0`
163
		// Minimum execution time: 32_442_000 picoseconds.
164
		Weight::from_parts(32_733_000, 0)
165
	}
166
	fn burn_keep_alive() -> Weight {
167
		// Proof Size summary in bytes:
168
		//  Measured:  `0`
169
		//  Estimated: `0`
170
		// Minimum execution time: 29_030_000 picoseconds.
171
		Weight::from_parts(29_417_000, 0)
172
	}
173
}