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-05, 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("starlight-dev"), DB CACHE: 1024
25

            
26
// Executed Command:
27
// target/release/tanssi-relay
28
// benchmark
29
// pallet
30
// --execution=wasm
31
// --wasm-execution=compiled
32
// --pallet
33
// pallet_balances
34
// --extrinsic
35
// *
36
// --chain=starlight-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/starlight_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(128), added: 2603, mode: `MaxEncodedLen`)
59
	fn transfer_allow_death() -> Weight {
60
		// Proof Size summary in bytes:
61
		//  Measured:  `0`
62
		//  Estimated: `3593`
63
		// Minimum execution time: 66_334_000 picoseconds.
64
		Weight::from_parts(67_393_000, 3593)
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(128), added: 2603, mode: `MaxEncodedLen`)
70
	fn transfer_keep_alive() -> Weight {
71
		// Proof Size summary in bytes:
72
		//  Measured:  `0`
73
		//  Estimated: `3593`
74
		// Minimum execution time: 52_806_000 picoseconds.
75
		Weight::from_parts(53_494_000, 3593)
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(128), added: 2603, mode: `MaxEncodedLen`)
81
	fn force_set_balance_creating() -> Weight {
82
		// Proof Size summary in bytes:
83
		//  Measured:  `174`
84
		//  Estimated: `3593`
85
		// Minimum execution time: 24_182_000 picoseconds.
86
		Weight::from_parts(24_571_000, 3593)
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(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: 33_552_000 picoseconds.
97
		Weight::from_parts(34_219_000, 3593)
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(128), added: 2603, mode: `MaxEncodedLen`)
103
	fn force_transfer() -> Weight {
104
		// Proof Size summary in bytes:
105
		//  Measured:  `103`
106
		//  Estimated: `6196`
107
		// Minimum execution time: 72_636_000 picoseconds.
108
		Weight::from_parts(73_494_000, 6196)
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(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: 65_592_000 picoseconds.
119
		Weight::from_parts(66_714_000, 3593)
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(128), added: 2603, mode: `MaxEncodedLen`)
125
	fn force_unreserve() -> Weight {
126
		// Proof Size summary in bytes:
127
		//  Measured:  `174`
128
		//  Estimated: `3593`
129
		// Minimum execution time: 28_274_000 picoseconds.
130
		Weight::from_parts(28_973_000, 3593)
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(128), added: 2603, 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 * (135 ±0)`
140
		//  Estimated: `990 + u * (2603 ±0)`
141
		// Minimum execution time: 27_240_000 picoseconds.
142
		Weight::from_parts(28_090_000, 990)
143
			// Standard Error: 69_581
144
			.saturating_add(Weight::from_parts(18_796_751, 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, 2603).saturating_mul(u.into()))
148
	}
149
	fn force_adjust_total_issuance() -> Weight {
150
		// Proof Size summary in bytes:
151
		//  Measured:  `0`
152
		//  Estimated: `0`
153
		// Minimum execution time: 8_760_000 picoseconds.
154
		Weight::from_parts(8_995_000, 0)
155
	}
156
	fn burn_allow_death() -> Weight {
157
		// Proof Size summary in bytes:
158
		//  Measured:  `0`
159
		//  Estimated: `0`
160
		// Minimum execution time: 42_046_000 picoseconds.
161
		Weight::from_parts(42_637_000, 0)
162
	}
163
	fn burn_keep_alive() -> Weight {
164
		// Proof Size summary in bytes:
165
		//  Measured:  `0`
166
		//  Estimated: `0`
167
		// Minimum execution time: 29_199_000 picoseconds.
168
		Weight::from_parts(29_530_000, 0)
169
	}
170
}