19
19
//! Autogenerated weights for module_earning
20
20
//!
21
21
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
22
- //! DATE: 2022-03-21, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]`
23
- //! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 1024
22
+ //! DATE: 2023-10-04, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]`
23
+ //! HOSTNAME: `ip-172-31-34-148`, CPU: `Intel(R) Xeon(R) Platinum 8375C CPU @ 2.90GHz`
24
+ //! WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 1024
24
25
25
26
// Executed Command:
26
27
// target/release/acala
27
28
// benchmark
29
+ // pallet
28
30
// --chain=dev
29
31
// --steps=50
30
32
// --repeat=20
31
33
// --pallet=module_earning
32
34
// --extrinsic=*
33
- // --execution=wasm
34
35
// --wasm-execution=compiled
35
36
// --heap-pages=4096
36
37
// --output=./modules/earning/src/weights.rs
39
40
#![ cfg_attr( rustfmt, rustfmt_skip) ]
40
41
#![ allow( unused_parens) ]
41
42
#![ allow( unused_imports) ]
42
- #![ allow( clippy:: unnecessary_cast) ]
43
43
44
44
use frame_support:: { traits:: Get , weights:: { Weight , constants:: RocksDbWeight } } ;
45
45
use sp_std:: marker:: PhantomData ;
@@ -56,68 +56,194 @@ pub trait WeightInfo {
56
56
/// Weights for module_earning using the Acala node and recommended hardware.
57
57
pub struct AcalaWeight < T > ( PhantomData < T > ) ;
58
58
impl < T : frame_system:: Config > WeightInfo for AcalaWeight < T > {
59
- // Storage: Earning Ledger (r:1 w:1)
60
- // Storage: Balances Locks (r:1 w:1)
59
+ // Storage: `Earning::Ledger` (r:1 w:1)
60
+ // Proof: `Earning::Ledger` (`max_values`: None, `max_size`: None, mode: `Measured`)
61
+ // Storage: `Balances::Locks` (r:1 w:1)
62
+ // Proof: `Balances::Locks` (`max_values`: None, `max_size`: Some(1299), added: 3774, mode: `MaxEncodedLen`)
63
+ // Storage: `Balances::Freezes` (r:1 w:0)
64
+ // Proof: `Balances::Freezes` (`max_values`: None, `max_size`: Some(49), added: 2524, mode: `MaxEncodedLen`)
65
+ // Storage: `Rewards::PoolInfos` (r:1 w:1)
66
+ // Proof: `Rewards::PoolInfos` (`max_values`: None, `max_size`: None, mode: `Measured`)
67
+ // Storage: `Rewards::SharesAndWithdrawnRewards` (r:1 w:1)
68
+ // Proof: `Rewards::SharesAndWithdrawnRewards` (`max_values`: None, `max_size`: None, mode: `Measured`)
61
69
fn bond ( ) -> Weight {
62
- Weight :: from_parts ( 28_562_000 , 0 )
63
- . saturating_add ( T :: DbWeight :: get ( ) . reads ( 2 as u64 ) )
64
- . saturating_add ( T :: DbWeight :: get ( ) . writes ( 2 as u64 ) )
70
+ // Proof Size summary in bytes:
71
+ // Measured: `2293`
72
+ // Estimated: `5758`
73
+ // Minimum execution time: 73_725 nanoseconds.
74
+ Weight :: from_parts ( 75_235_000 , 5758 )
75
+ . saturating_add ( T :: DbWeight :: get ( ) . reads ( 5 ) )
76
+ . saturating_add ( T :: DbWeight :: get ( ) . writes ( 4 ) )
65
77
}
66
- // Storage: Earning Ledger (r:1 w:1)
67
- // Storage: Balances Locks (r:1 w:1)
78
+ // Storage: `Parameters::Parameters` (r:1 w:0)
79
+ // Proof: `Parameters::Parameters` (`max_values`: None, `max_size`: Some(24), added: 2499, mode: `MaxEncodedLen`)
80
+ // Storage: `Earning::Ledger` (r:1 w:1)
81
+ // Proof: `Earning::Ledger` (`max_values`: None, `max_size`: None, mode: `Measured`)
82
+ // Storage: `Balances::Locks` (r:1 w:1)
83
+ // Proof: `Balances::Locks` (`max_values`: None, `max_size`: Some(1299), added: 3774, mode: `MaxEncodedLen`)
84
+ // Storage: `Balances::Freezes` (r:1 w:0)
85
+ // Proof: `Balances::Freezes` (`max_values`: None, `max_size`: Some(49), added: 2524, mode: `MaxEncodedLen`)
86
+ // Storage: `Rewards::SharesAndWithdrawnRewards` (r:1 w:1)
87
+ // Proof: `Rewards::SharesAndWithdrawnRewards` (`max_values`: None, `max_size`: None, mode: `Measured`)
88
+ // Storage: `Rewards::PoolInfos` (r:1 w:1)
89
+ // Proof: `Rewards::PoolInfos` (`max_values`: None, `max_size`: None, mode: `Measured`)
68
90
fn unbond_instant ( ) -> Weight {
69
- Weight :: from_parts ( 37_276_000 , 0 )
70
- . saturating_add ( T :: DbWeight :: get ( ) . reads ( 2 as u64 ) )
71
- . saturating_add ( T :: DbWeight :: get ( ) . writes ( 2 as u64 ) )
91
+ // Proof Size summary in bytes:
92
+ // Measured: `2989`
93
+ // Estimated: `6454`
94
+ // Minimum execution time: 122_163 nanoseconds.
95
+ Weight :: from_parts ( 124_799_000 , 6454 )
96
+ . saturating_add ( T :: DbWeight :: get ( ) . reads ( 6 ) )
97
+ . saturating_add ( T :: DbWeight :: get ( ) . writes ( 4 ) )
72
98
}
73
- // Storage: Earning Ledger (r:1 w:1)
74
- // Storage: Balances Locks (r:1 w:1)
99
+ // Storage: `Earning::Ledger` (r:1 w:1)
100
+ // Proof: `Earning::Ledger` (`max_values`: None, `max_size`: None, mode: `Measured`)
101
+ // Storage: `Balances::Locks` (r:1 w:1)
102
+ // Proof: `Balances::Locks` (`max_values`: None, `max_size`: Some(1299), added: 3774, mode: `MaxEncodedLen`)
103
+ // Storage: `Balances::Freezes` (r:1 w:0)
104
+ // Proof: `Balances::Freezes` (`max_values`: None, `max_size`: Some(49), added: 2524, mode: `MaxEncodedLen`)
105
+ // Storage: `Rewards::SharesAndWithdrawnRewards` (r:1 w:1)
106
+ // Proof: `Rewards::SharesAndWithdrawnRewards` (`max_values`: None, `max_size`: None, mode: `Measured`)
107
+ // Storage: `Rewards::PoolInfos` (r:1 w:1)
108
+ // Proof: `Rewards::PoolInfos` (`max_values`: None, `max_size`: None, mode: `Measured`)
75
109
fn unbond ( ) -> Weight {
76
- Weight :: from_parts ( 26_976_000 , 0 )
77
- . saturating_add ( T :: DbWeight :: get ( ) . reads ( 2 as u64 ) )
78
- . saturating_add ( T :: DbWeight :: get ( ) . writes ( 2 as u64 ) )
110
+ // Proof Size summary in bytes:
111
+ // Measured: `2630`
112
+ // Estimated: `6095`
113
+ // Minimum execution time: 75_334 nanoseconds.
114
+ Weight :: from_parts ( 77_218_000 , 6095 )
115
+ . saturating_add ( T :: DbWeight :: get ( ) . reads ( 5 ) )
116
+ . saturating_add ( T :: DbWeight :: get ( ) . writes ( 4 ) )
79
117
}
80
- // Storage: Earning Ledger (r:1 w:1)
81
- // Storage: Balances Locks (r:1 w:1)
118
+ // Storage: `Earning::Ledger` (r:1 w:1)
119
+ // Proof: `Earning::Ledger` (`max_values`: None, `max_size`: None, mode: `Measured`)
120
+ // Storage: `Balances::Locks` (r:1 w:1)
121
+ // Proof: `Balances::Locks` (`max_values`: None, `max_size`: Some(1299), added: 3774, mode: `MaxEncodedLen`)
122
+ // Storage: `Balances::Freezes` (r:1 w:0)
123
+ // Proof: `Balances::Freezes` (`max_values`: None, `max_size`: Some(49), added: 2524, mode: `MaxEncodedLen`)
124
+ // Storage: `Rewards::PoolInfos` (r:1 w:1)
125
+ // Proof: `Rewards::PoolInfos` (`max_values`: None, `max_size`: None, mode: `Measured`)
126
+ // Storage: `Rewards::SharesAndWithdrawnRewards` (r:1 w:1)
127
+ // Proof: `Rewards::SharesAndWithdrawnRewards` (`max_values`: None, `max_size`: None, mode: `Measured`)
82
128
fn rebond ( ) -> Weight {
83
- Weight :: from_parts ( 28_003_000 , 0 )
84
- . saturating_add ( T :: DbWeight :: get ( ) . reads ( 2 as u64 ) )
85
- . saturating_add ( T :: DbWeight :: get ( ) . writes ( 2 as u64 ) )
129
+ // Proof Size summary in bytes:
130
+ // Measured: `2882`
131
+ // Estimated: `6347`
132
+ // Minimum execution time: 72_979 nanoseconds.
133
+ Weight :: from_parts ( 74_162_000 , 6347 )
134
+ . saturating_add ( T :: DbWeight :: get ( ) . reads ( 5 ) )
135
+ . saturating_add ( T :: DbWeight :: get ( ) . writes ( 4 ) )
86
136
}
87
- // Storage: Earning Ledger (r:1 w:1)
88
- // Storage: Balances Locks (r:1 w:1)
137
+ // Storage: `Earning::Ledger` (r:1 w:1)
138
+ // Proof: `Earning::Ledger` (`max_values`: None, `max_size`: None, mode: `Measured`)
139
+ // Storage: `Balances::Locks` (r:1 w:1)
140
+ // Proof: `Balances::Locks` (`max_values`: None, `max_size`: Some(1299), added: 3774, mode: `MaxEncodedLen`)
141
+ // Storage: `Balances::Freezes` (r:1 w:0)
142
+ // Proof: `Balances::Freezes` (`max_values`: None, `max_size`: Some(49), added: 2524, mode: `MaxEncodedLen`)
89
143
fn withdraw_unbonded ( ) -> Weight {
90
- Weight :: from_parts ( 28_656_000 , 0 )
91
- . saturating_add ( T :: DbWeight :: get ( ) . reads ( 2 as u64 ) )
92
- . saturating_add ( T :: DbWeight :: get ( ) . writes ( 2 as u64 ) )
144
+ // Proof Size summary in bytes:
145
+ // Measured: `2532`
146
+ // Estimated: `5997`
147
+ // Minimum execution time: 66_969 nanoseconds.
148
+ Weight :: from_parts ( 68_841_000 , 5997 )
149
+ . saturating_add ( T :: DbWeight :: get ( ) . reads ( 3 ) )
150
+ . saturating_add ( T :: DbWeight :: get ( ) . writes ( 2 ) )
93
151
}
94
152
}
95
153
96
154
// For backwards compatibility and tests
97
155
impl WeightInfo for ( ) {
156
+ // Storage: `Earning::Ledger` (r:1 w:1)
157
+ // Proof: `Earning::Ledger` (`max_values`: None, `max_size`: None, mode: `Measured`)
158
+ // Storage: `Balances::Locks` (r:1 w:1)
159
+ // Proof: `Balances::Locks` (`max_values`: None, `max_size`: Some(1299), added: 3774, mode: `MaxEncodedLen`)
160
+ // Storage: `Balances::Freezes` (r:1 w:0)
161
+ // Proof: `Balances::Freezes` (`max_values`: None, `max_size`: Some(49), added: 2524, mode: `MaxEncodedLen`)
162
+ // Storage: `Rewards::PoolInfos` (r:1 w:1)
163
+ // Proof: `Rewards::PoolInfos` (`max_values`: None, `max_size`: None, mode: `Measured`)
164
+ // Storage: `Rewards::SharesAndWithdrawnRewards` (r:1 w:1)
165
+ // Proof: `Rewards::SharesAndWithdrawnRewards` (`max_values`: None, `max_size`: None, mode: `Measured`)
98
166
fn bond ( ) -> Weight {
99
- Weight :: from_parts ( 28_562_000 , 0 )
100
- . saturating_add ( RocksDbWeight :: get ( ) . reads ( 2 as u64 ) )
101
- . saturating_add ( RocksDbWeight :: get ( ) . writes ( 2 as u64 ) )
167
+ // Proof Size summary in bytes:
168
+ // Measured: `2293`
169
+ // Estimated: `5758`
170
+ // Minimum execution time: 73_725 nanoseconds.
171
+ Weight :: from_parts ( 75_235_000 , 5758 )
172
+ . saturating_add ( RocksDbWeight :: get ( ) . reads ( 5 ) )
173
+ . saturating_add ( RocksDbWeight :: get ( ) . writes ( 4 ) )
102
174
}
175
+ // Storage: `Parameters::Parameters` (r:1 w:0)
176
+ // Proof: `Parameters::Parameters` (`max_values`: None, `max_size`: Some(24), added: 2499, mode: `MaxEncodedLen`)
177
+ // Storage: `Earning::Ledger` (r:1 w:1)
178
+ // Proof: `Earning::Ledger` (`max_values`: None, `max_size`: None, mode: `Measured`)
179
+ // Storage: `Balances::Locks` (r:1 w:1)
180
+ // Proof: `Balances::Locks` (`max_values`: None, `max_size`: Some(1299), added: 3774, mode: `MaxEncodedLen`)
181
+ // Storage: `Balances::Freezes` (r:1 w:0)
182
+ // Proof: `Balances::Freezes` (`max_values`: None, `max_size`: Some(49), added: 2524, mode: `MaxEncodedLen`)
183
+ // Storage: `Rewards::SharesAndWithdrawnRewards` (r:1 w:1)
184
+ // Proof: `Rewards::SharesAndWithdrawnRewards` (`max_values`: None, `max_size`: None, mode: `Measured`)
185
+ // Storage: `Rewards::PoolInfos` (r:1 w:1)
186
+ // Proof: `Rewards::PoolInfos` (`max_values`: None, `max_size`: None, mode: `Measured`)
103
187
fn unbond_instant ( ) -> Weight {
104
- Weight :: from_parts ( 37_276_000 , 0 )
105
- . saturating_add ( RocksDbWeight :: get ( ) . reads ( 2 as u64 ) )
106
- . saturating_add ( RocksDbWeight :: get ( ) . writes ( 2 as u64 ) )
188
+ // Proof Size summary in bytes:
189
+ // Measured: `2989`
190
+ // Estimated: `6454`
191
+ // Minimum execution time: 122_163 nanoseconds.
192
+ Weight :: from_parts ( 124_799_000 , 6454 )
193
+ . saturating_add ( RocksDbWeight :: get ( ) . reads ( 6 ) )
194
+ . saturating_add ( RocksDbWeight :: get ( ) . writes ( 4 ) )
107
195
}
196
+ // Storage: `Earning::Ledger` (r:1 w:1)
197
+ // Proof: `Earning::Ledger` (`max_values`: None, `max_size`: None, mode: `Measured`)
198
+ // Storage: `Balances::Locks` (r:1 w:1)
199
+ // Proof: `Balances::Locks` (`max_values`: None, `max_size`: Some(1299), added: 3774, mode: `MaxEncodedLen`)
200
+ // Storage: `Balances::Freezes` (r:1 w:0)
201
+ // Proof: `Balances::Freezes` (`max_values`: None, `max_size`: Some(49), added: 2524, mode: `MaxEncodedLen`)
202
+ // Storage: `Rewards::SharesAndWithdrawnRewards` (r:1 w:1)
203
+ // Proof: `Rewards::SharesAndWithdrawnRewards` (`max_values`: None, `max_size`: None, mode: `Measured`)
204
+ // Storage: `Rewards::PoolInfos` (r:1 w:1)
205
+ // Proof: `Rewards::PoolInfos` (`max_values`: None, `max_size`: None, mode: `Measured`)
108
206
fn unbond ( ) -> Weight {
109
- Weight :: from_parts ( 26_976_000 , 0 )
110
- . saturating_add ( RocksDbWeight :: get ( ) . reads ( 2 as u64 ) )
111
- . saturating_add ( RocksDbWeight :: get ( ) . writes ( 2 as u64 ) )
207
+ // Proof Size summary in bytes:
208
+ // Measured: `2630`
209
+ // Estimated: `6095`
210
+ // Minimum execution time: 75_334 nanoseconds.
211
+ Weight :: from_parts ( 77_218_000 , 6095 )
212
+ . saturating_add ( RocksDbWeight :: get ( ) . reads ( 5 ) )
213
+ . saturating_add ( RocksDbWeight :: get ( ) . writes ( 4 ) )
112
214
}
215
+ // Storage: `Earning::Ledger` (r:1 w:1)
216
+ // Proof: `Earning::Ledger` (`max_values`: None, `max_size`: None, mode: `Measured`)
217
+ // Storage: `Balances::Locks` (r:1 w:1)
218
+ // Proof: `Balances::Locks` (`max_values`: None, `max_size`: Some(1299), added: 3774, mode: `MaxEncodedLen`)
219
+ // Storage: `Balances::Freezes` (r:1 w:0)
220
+ // Proof: `Balances::Freezes` (`max_values`: None, `max_size`: Some(49), added: 2524, mode: `MaxEncodedLen`)
221
+ // Storage: `Rewards::PoolInfos` (r:1 w:1)
222
+ // Proof: `Rewards::PoolInfos` (`max_values`: None, `max_size`: None, mode: `Measured`)
223
+ // Storage: `Rewards::SharesAndWithdrawnRewards` (r:1 w:1)
224
+ // Proof: `Rewards::SharesAndWithdrawnRewards` (`max_values`: None, `max_size`: None, mode: `Measured`)
113
225
fn rebond ( ) -> Weight {
114
- Weight :: from_parts ( 28_003_000 , 0 )
115
- . saturating_add ( RocksDbWeight :: get ( ) . reads ( 2 as u64 ) )
116
- . saturating_add ( RocksDbWeight :: get ( ) . writes ( 2 as u64 ) )
226
+ // Proof Size summary in bytes:
227
+ // Measured: `2882`
228
+ // Estimated: `6347`
229
+ // Minimum execution time: 72_979 nanoseconds.
230
+ Weight :: from_parts ( 74_162_000 , 6347 )
231
+ . saturating_add ( RocksDbWeight :: get ( ) . reads ( 5 ) )
232
+ . saturating_add ( RocksDbWeight :: get ( ) . writes ( 4 ) )
117
233
}
234
+ // Storage: `Earning::Ledger` (r:1 w:1)
235
+ // Proof: `Earning::Ledger` (`max_values`: None, `max_size`: None, mode: `Measured`)
236
+ // Storage: `Balances::Locks` (r:1 w:1)
237
+ // Proof: `Balances::Locks` (`max_values`: None, `max_size`: Some(1299), added: 3774, mode: `MaxEncodedLen`)
238
+ // Storage: `Balances::Freezes` (r:1 w:0)
239
+ // Proof: `Balances::Freezes` (`max_values`: None, `max_size`: Some(49), added: 2524, mode: `MaxEncodedLen`)
118
240
fn withdraw_unbonded ( ) -> Weight {
119
- Weight :: from_parts ( 28_656_000 , 0 )
120
- . saturating_add ( RocksDbWeight :: get ( ) . reads ( 2 as u64 ) )
121
- . saturating_add ( RocksDbWeight :: get ( ) . writes ( 2 as u64 ) )
241
+ // Proof Size summary in bytes:
242
+ // Measured: `2532`
243
+ // Estimated: `5997`
244
+ // Minimum execution time: 66_969 nanoseconds.
245
+ Weight :: from_parts ( 68_841_000 , 5997 )
246
+ . saturating_add ( RocksDbWeight :: get ( ) . reads ( 3 ) )
247
+ . saturating_add ( RocksDbWeight :: get ( ) . writes ( 2 ) )
122
248
}
123
249
}
0 commit comments