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 42.0.0
21
//! DATE: 2024-09-25, 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
4236
	fn transfer_allow_death() -> Weight {
60
4236
		// Proof Size summary in bytes:
61
4236
		//  Measured:  `0`
62
4236
		//  Estimated: `3593`
63
4236
		// Minimum execution time: 60_400_000 picoseconds.
64
4236
		Weight::from_parts(60_645_000, 3593)
65
4236
			.saturating_add(T::DbWeight::get().reads(1_u64))
66
4236
			.saturating_add(T::DbWeight::get().writes(1_u64))
67
4236
	}
68
	/// Storage: `System::Account` (r:1 w:1)
69
	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
70
498
	fn transfer_keep_alive() -> Weight {
71
498
		// Proof Size summary in bytes:
72
498
		//  Measured:  `0`
73
498
		//  Estimated: `3593`
74
498
		// Minimum execution time: 47_666_000 picoseconds.
75
498
		Weight::from_parts(48_422_000, 3593)
76
498
			.saturating_add(T::DbWeight::get().reads(1_u64))
77
498
			.saturating_add(T::DbWeight::get().writes(1_u64))
78
498
	}
79
	/// Storage: `System::Account` (r:1 w:1)
80
	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
81
291
	fn force_set_balance_creating() -> Weight {
82
291
		// Proof Size summary in bytes:
83
291
		//  Measured:  `174`
84
291
		//  Estimated: `3593`
85
291
		// Minimum execution time: 17_597_000 picoseconds.
86
291
		Weight::from_parts(17_964_000, 3593)
87
291
			.saturating_add(T::DbWeight::get().reads(1_u64))
88
291
			.saturating_add(T::DbWeight::get().writes(1_u64))
89
291
	}
90
	/// Storage: `System::Account` (r:1 w:1)
91
	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
92
291
	fn force_set_balance_killing() -> Weight {
93
291
		// Proof Size summary in bytes:
94
291
		//  Measured:  `174`
95
291
		//  Estimated: `3593`
96
291
		// Minimum execution time: 23_986_000 picoseconds.
97
291
		Weight::from_parts(24_464_000, 3593)
98
291
			.saturating_add(T::DbWeight::get().reads(1_u64))
99
291
			.saturating_add(T::DbWeight::get().writes(1_u64))
100
291
	}
101
	/// Storage: `System::Account` (r:2 w:2)
102
	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
103
618
	fn force_transfer() -> Weight {
104
618
		// Proof Size summary in bytes:
105
618
		//  Measured:  `103`
106
618
		//  Estimated: `6196`
107
618
		// Minimum execution time: 62_373_000 picoseconds.
108
618
		Weight::from_parts(63_411_000, 6196)
109
618
			.saturating_add(T::DbWeight::get().reads(2_u64))
110
618
			.saturating_add(T::DbWeight::get().writes(2_u64))
111
618
	}
112
	/// Storage: `System::Account` (r:1 w:1)
113
	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
114
1017
	fn transfer_all() -> Weight {
115
1017
		// Proof Size summary in bytes:
116
1017
		//  Measured:  `0`
117
1017
		//  Estimated: `3593`
118
1017
		// Minimum execution time: 60_016_000 picoseconds.
119
1017
		Weight::from_parts(60_604_000, 3593)
120
1017
			.saturating_add(T::DbWeight::get().reads(1_u64))
121
1017
			.saturating_add(T::DbWeight::get().writes(1_u64))
122
1017
	}
123
	/// Storage: `System::Account` (r:1 w:1)
124
	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
125
486
	fn force_unreserve() -> Weight {
126
486
		// Proof Size summary in bytes:
127
486
		//  Measured:  `174`
128
486
		//  Estimated: `3593`
129
486
		// Minimum execution time: 21_493_000 picoseconds.
130
486
		Weight::from_parts(21_969_000, 3593)
131
486
			.saturating_add(T::DbWeight::get().reads(1_u64))
132
486
			.saturating_add(T::DbWeight::get().writes(1_u64))
133
486
	}
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
714
	fn upgrade_accounts(u: u32, ) -> Weight {
138
714
		// Proof Size summary in bytes:
139
714
		//  Measured:  `0 + u * (135 ±0)`
140
714
		//  Estimated: `990 + u * (2603 ±0)`
141
714
		// Minimum execution time: 20_369_000 picoseconds.
142
714
		Weight::from_parts(20_674_000, 990)
143
714
			// Standard Error: 14_754
144
714
			.saturating_add(Weight::from_parts(17_060_586, 0).saturating_mul(u.into()))
145
714
			.saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(u.into())))
146
714
			.saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(u.into())))
147
714
			.saturating_add(Weight::from_parts(0, 2603).saturating_mul(u.into()))
148
714
	}
149
114
	fn force_adjust_total_issuance() -> Weight {
150
114
		// Proof Size summary in bytes:
151
114
		//  Measured:  `0`
152
114
		//  Estimated: `0`
153
114
		// Minimum execution time: 7_476_000 picoseconds.
154
114
		Weight::from_parts(7_688_000, 0)
155
114
	}
156
3
	fn burn_allow_death() -> Weight {
157
3
		// Proof Size summary in bytes:
158
3
		//  Measured:  `0`
159
3
		//  Estimated: `0`
160
3
		// Minimum execution time: 37_751_000 picoseconds.
161
3
		Weight::from_parts(38_374_000, 0)
162
3
	}
163
66
	fn burn_keep_alive() -> Weight {
164
66
		// Proof Size summary in bytes:
165
66
		//  Measured:  `0`
166
66
		//  Estimated: `0`
167
66
		// Minimum execution time: 26_113_000 picoseconds.
168
66
		Weight::from_parts(26_444_000, 0)
169
66
	}
170
}