17
17
//! Autogenerated weights for `pallet_assets`
18
18
//!
19
19
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
20
- //! DATE: 2022-08-09 , STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]`
20
+ //! DATE: 2022-09-21 , STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]`
21
21
//! HOSTNAME: `bm6`, CPU: `Intel(R) Core(TM) i7-7700K CPU @ 4.20GHz`
22
22
//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("statemine-dev"), DB CACHE: 1024
23
23
34
34
// --repeat=20
35
35
// --json
36
36
// --header=./file_header.txt
37
- // --output=./parachains/runtimes/assets/statemine/src/weights
37
+ // --output=./parachains/runtimes/assets/statemine/src/weights/pallet_assets.rs
38
38
39
39
#![ cfg_attr( rustfmt, rustfmt_skip) ]
40
40
#![ allow( unused_parens) ]
41
41
#![ allow( unused_imports) ]
42
42
43
- use frame_support:: { traits:: Get , weights:: Weight } ;
43
+ use frame_support:: { traits:: Get , weights:: { Weight } } ;
44
44
use sp_std:: marker:: PhantomData ;
45
45
46
46
/// Weight functions for `pallet_assets`.
47
47
pub struct WeightInfo < T > ( PhantomData < T > ) ;
48
48
impl < T : frame_system:: Config > pallet_assets:: WeightInfo for WeightInfo < T > {
49
49
// Storage: Assets Asset (r:1 w:1)
50
50
fn create ( ) -> Weight {
51
- Weight :: from_ref_time ( 26_670_000 as u64 )
51
+ Weight :: from_ref_time ( 30_336_000 as u64 )
52
52
. saturating_add ( T :: DbWeight :: get ( ) . reads ( 1 as u64 ) )
53
53
. saturating_add ( T :: DbWeight :: get ( ) . writes ( 1 as u64 ) )
54
54
}
55
55
// Storage: Assets Asset (r:1 w:1)
56
56
fn force_create ( ) -> Weight {
57
- Weight :: from_ref_time ( 15_063_000 as u64 )
57
+ Weight :: from_ref_time ( 17_834_000 as u64 )
58
58
. saturating_add ( T :: DbWeight :: get ( ) . reads ( 1 as u64 ) )
59
59
. saturating_add ( T :: DbWeight :: get ( ) . writes ( 1 as u64 ) )
60
60
}
@@ -68,12 +68,12 @@ impl<T: frame_system::Config> pallet_assets::WeightInfo for WeightInfo<T> {
68
68
/// The range of component `a` is `[0, 500]`.
69
69
fn destroy ( c : u32 , s : u32 , a : u32 , ) -> Weight {
70
70
Weight :: from_ref_time ( 0 as u64 )
71
- // Standard Error: 46_000
72
- . saturating_add ( Weight :: from_ref_time ( 16_382_000 as u64 ) . saturating_mul ( c as u64 ) )
73
- // Standard Error: 46_000
74
- . saturating_add ( Weight :: from_ref_time ( 19_187_000 as u64 ) . saturating_mul ( s as u64 ) )
75
- // Standard Error: 465_000
76
- . saturating_add ( Weight :: from_ref_time ( 16_818_000 as u64 ) . saturating_mul ( a as u64 ) )
71
+ // Standard Error: 103_000
72
+ . saturating_add ( Weight :: from_ref_time ( 17_019_000 as u64 ) . saturating_mul ( c as u64 ) )
73
+ // Standard Error: 103_000
74
+ . saturating_add ( Weight :: from_ref_time ( 18_891_000 as u64 ) . saturating_mul ( s as u64 ) )
75
+ // Standard Error: 1_038_000
76
+ . saturating_add ( Weight :: from_ref_time ( 32_265_000 as u64 ) . saturating_mul ( a as u64 ) )
77
77
. saturating_add ( T :: DbWeight :: get ( ) . reads ( 5 as u64 ) )
78
78
. saturating_add ( T :: DbWeight :: get ( ) . reads ( ( 2 as u64 ) . saturating_mul ( c as u64 ) ) )
79
79
. saturating_add ( T :: DbWeight :: get ( ) . reads ( ( 2 as u64 ) . saturating_mul ( s as u64 ) ) )
@@ -86,122 +86,128 @@ impl<T: frame_system::Config> pallet_assets::WeightInfo for WeightInfo<T> {
86
86
// Storage: Assets Asset (r:1 w:1)
87
87
// Storage: Assets Account (r:1 w:1)
88
88
fn mint ( ) -> Weight {
89
- Weight :: from_ref_time ( 29_655_000 as u64 )
89
+ Weight :: from_ref_time ( 35_875_000 as u64 )
90
90
. saturating_add ( T :: DbWeight :: get ( ) . reads ( 2 as u64 ) )
91
91
. saturating_add ( T :: DbWeight :: get ( ) . writes ( 2 as u64 ) )
92
92
}
93
93
// Storage: Assets Asset (r:1 w:1)
94
94
// Storage: Assets Account (r:1 w:1)
95
95
fn burn ( ) -> Weight {
96
- Weight :: from_ref_time ( 33_648_000 as u64 )
96
+ Weight :: from_ref_time ( 38_571_000 as u64 )
97
97
. saturating_add ( T :: DbWeight :: get ( ) . reads ( 2 as u64 ) )
98
98
. saturating_add ( T :: DbWeight :: get ( ) . writes ( 2 as u64 ) )
99
99
}
100
100
// Storage: Assets Asset (r:1 w:1)
101
101
// Storage: Assets Account (r:2 w:2)
102
102
// Storage: System Account (r:1 w:1)
103
103
fn transfer ( ) -> Weight {
104
- Weight :: from_ref_time ( 47_414_000 as u64 )
104
+ Weight :: from_ref_time ( 50_931_000 as u64 )
105
105
. saturating_add ( T :: DbWeight :: get ( ) . reads ( 4 as u64 ) )
106
106
. saturating_add ( T :: DbWeight :: get ( ) . writes ( 4 as u64 ) )
107
107
}
108
108
// Storage: Assets Asset (r:1 w:1)
109
109
// Storage: Assets Account (r:2 w:2)
110
110
// Storage: System Account (r:1 w:1)
111
111
fn transfer_keep_alive ( ) -> Weight {
112
- Weight :: from_ref_time ( 39_871_000 as u64 )
112
+ Weight :: from_ref_time ( 43_426_000 as u64 )
113
113
. saturating_add ( T :: DbWeight :: get ( ) . reads ( 4 as u64 ) )
114
114
. saturating_add ( T :: DbWeight :: get ( ) . writes ( 4 as u64 ) )
115
115
}
116
116
// Storage: Assets Asset (r:1 w:1)
117
117
// Storage: Assets Account (r:2 w:2)
118
118
// Storage: System Account (r:1 w:1)
119
119
fn force_transfer ( ) -> Weight {
120
- Weight :: from_ref_time ( 47_454_000 as u64 )
120
+ Weight :: from_ref_time ( 51_045_000 as u64 )
121
121
. saturating_add ( T :: DbWeight :: get ( ) . reads ( 4 as u64 ) )
122
122
. saturating_add ( T :: DbWeight :: get ( ) . writes ( 4 as u64 ) )
123
123
}
124
124
// Storage: Assets Asset (r:1 w:0)
125
125
// Storage: Assets Account (r:1 w:1)
126
126
fn freeze ( ) -> Weight {
127
- Weight :: from_ref_time ( 20_827_000 as u64 )
127
+ Weight :: from_ref_time ( 24_405_000 as u64 )
128
128
. saturating_add ( T :: DbWeight :: get ( ) . reads ( 2 as u64 ) )
129
129
. saturating_add ( T :: DbWeight :: get ( ) . writes ( 1 as u64 ) )
130
130
}
131
131
// Storage: Assets Asset (r:1 w:0)
132
132
// Storage: Assets Account (r:1 w:1)
133
133
fn thaw ( ) -> Weight {
134
- Weight :: from_ref_time ( 21_249_000 as u64 )
134
+ Weight :: from_ref_time ( 24_445_000 as u64 )
135
135
. saturating_add ( T :: DbWeight :: get ( ) . reads ( 2 as u64 ) )
136
136
. saturating_add ( T :: DbWeight :: get ( ) . writes ( 1 as u64 ) )
137
137
}
138
138
// Storage: Assets Asset (r:1 w:1)
139
139
fn freeze_asset ( ) -> Weight {
140
- Weight :: from_ref_time ( 17_775_000 as u64 )
140
+ Weight :: from_ref_time ( 21_181_000 as u64 )
141
141
. saturating_add ( T :: DbWeight :: get ( ) . reads ( 1 as u64 ) )
142
142
. saturating_add ( T :: DbWeight :: get ( ) . writes ( 1 as u64 ) )
143
143
}
144
144
// Storage: Assets Asset (r:1 w:1)
145
145
fn thaw_asset ( ) -> Weight {
146
- Weight :: from_ref_time ( 17_917_000 as u64 )
146
+ Weight :: from_ref_time ( 21_227_000 as u64 )
147
147
. saturating_add ( T :: DbWeight :: get ( ) . reads ( 1 as u64 ) )
148
148
. saturating_add ( T :: DbWeight :: get ( ) . writes ( 1 as u64 ) )
149
149
}
150
150
// Storage: Assets Asset (r:1 w:1)
151
151
// Storage: Assets Metadata (r:1 w:0)
152
152
fn transfer_ownership ( ) -> Weight {
153
- Weight :: from_ref_time ( 18_724_000 as u64 )
153
+ Weight :: from_ref_time ( 23_802_000 as u64 )
154
154
. saturating_add ( T :: DbWeight :: get ( ) . reads ( 2 as u64 ) )
155
155
. saturating_add ( T :: DbWeight :: get ( ) . writes ( 1 as u64 ) )
156
156
}
157
157
// Storage: Assets Asset (r:1 w:1)
158
158
fn set_team ( ) -> Weight {
159
- Weight :: from_ref_time ( 17_448_000 as u64 )
159
+ Weight :: from_ref_time ( 22_959_000 as u64 )
160
160
. saturating_add ( T :: DbWeight :: get ( ) . reads ( 1 as u64 ) )
161
161
. saturating_add ( T :: DbWeight :: get ( ) . writes ( 1 as u64 ) )
162
162
}
163
163
// Storage: Assets Asset (r:1 w:0)
164
164
// Storage: Assets Metadata (r:1 w:1)
165
165
/// The range of component `n` is `[0, 50]`.
166
166
/// The range of component `s` is `[0, 50]`.
167
- fn set_metadata ( _n : u32 , _s : u32 , ) -> Weight {
168
- Weight :: from_ref_time ( 31_859_000 as u64 )
167
+ fn set_metadata ( _n : u32 , s : u32 , ) -> Weight {
168
+ Weight :: from_ref_time ( 35_275_000 as u64 )
169
+ // Standard Error: 1_000
170
+ . saturating_add ( Weight :: from_ref_time ( 7_000 as u64 ) . saturating_mul ( s as u64 ) )
169
171
. saturating_add ( T :: DbWeight :: get ( ) . reads ( 2 as u64 ) )
170
172
. saturating_add ( T :: DbWeight :: get ( ) . writes ( 1 as u64 ) )
171
173
}
172
174
// Storage: Assets Asset (r:1 w:0)
173
175
// Storage: Assets Metadata (r:1 w:1)
174
176
fn clear_metadata ( ) -> Weight {
175
- Weight :: from_ref_time ( 31_293_000 as u64 )
177
+ Weight :: from_ref_time ( 38_293_000 as u64 )
176
178
. saturating_add ( T :: DbWeight :: get ( ) . reads ( 2 as u64 ) )
177
179
. saturating_add ( T :: DbWeight :: get ( ) . writes ( 1 as u64 ) )
178
180
}
179
181
// Storage: Assets Asset (r:1 w:0)
180
182
// Storage: Assets Metadata (r:1 w:1)
181
183
/// The range of component `n` is `[0, 50]`.
182
184
/// The range of component `s` is `[0, 50]`.
183
- fn force_set_metadata ( _n : u32 , _s : u32 , ) -> Weight {
184
- Weight :: from_ref_time ( 19_595_000 as u64 )
185
+ fn force_set_metadata ( n : u32 , s : u32 , ) -> Weight {
186
+ Weight :: from_ref_time ( 23_375_000 as u64 )
187
+ // Standard Error: 0
188
+ . saturating_add ( Weight :: from_ref_time ( 3_000 as u64 ) . saturating_mul ( n as u64 ) )
189
+ // Standard Error: 0
190
+ . saturating_add ( Weight :: from_ref_time ( 3_000 as u64 ) . saturating_mul ( s as u64 ) )
185
191
. saturating_add ( T :: DbWeight :: get ( ) . reads ( 2 as u64 ) )
186
192
. saturating_add ( T :: DbWeight :: get ( ) . writes ( 1 as u64 ) )
187
193
}
188
194
// Storage: Assets Asset (r:1 w:0)
189
195
// Storage: Assets Metadata (r:1 w:1)
190
196
fn force_clear_metadata ( ) -> Weight {
191
- Weight :: from_ref_time ( 31_366_000 as u64 )
197
+ Weight :: from_ref_time ( 38_807_000 as u64 )
192
198
. saturating_add ( T :: DbWeight :: get ( ) . reads ( 2 as u64 ) )
193
199
. saturating_add ( T :: DbWeight :: get ( ) . writes ( 1 as u64 ) )
194
200
}
195
201
// Storage: Assets Asset (r:1 w:1)
196
202
fn force_asset_status ( ) -> Weight {
197
- Weight :: from_ref_time ( 16_884_000 as u64 )
203
+ Weight :: from_ref_time ( 22_088_000 as u64 )
198
204
. saturating_add ( T :: DbWeight :: get ( ) . reads ( 1 as u64 ) )
199
205
. saturating_add ( T :: DbWeight :: get ( ) . writes ( 1 as u64 ) )
200
206
}
201
207
// Storage: Assets Asset (r:1 w:1)
202
208
// Storage: Assets Approvals (r:1 w:1)
203
209
fn approve_transfer ( ) -> Weight {
204
- Weight :: from_ref_time ( 34_730_000 as u64 )
210
+ Weight :: from_ref_time ( 38_906_000 as u64 )
205
211
. saturating_add ( T :: DbWeight :: get ( ) . reads ( 2 as u64 ) )
206
212
. saturating_add ( T :: DbWeight :: get ( ) . writes ( 2 as u64 ) )
207
213
}
@@ -210,21 +216,21 @@ impl<T: frame_system::Config> pallet_assets::WeightInfo for WeightInfo<T> {
210
216
// Storage: Assets Account (r:2 w:2)
211
217
// Storage: System Account (r:1 w:1)
212
218
fn transfer_approved ( ) -> Weight {
213
- Weight :: from_ref_time ( 59_797_000 as u64 )
219
+ Weight :: from_ref_time ( 66_949_000 as u64 )
214
220
. saturating_add ( T :: DbWeight :: get ( ) . reads ( 5 as u64 ) )
215
221
. saturating_add ( T :: DbWeight :: get ( ) . writes ( 5 as u64 ) )
216
222
}
217
223
// Storage: Assets Asset (r:1 w:1)
218
224
// Storage: Assets Approvals (r:1 w:1)
219
225
fn cancel_approval ( ) -> Weight {
220
- Weight :: from_ref_time ( 35_178_000 as u64 )
226
+ Weight :: from_ref_time ( 39_491_000 as u64 )
221
227
. saturating_add ( T :: DbWeight :: get ( ) . reads ( 2 as u64 ) )
222
228
. saturating_add ( T :: DbWeight :: get ( ) . writes ( 2 as u64 ) )
223
229
}
224
230
// Storage: Assets Asset (r:1 w:1)
225
231
// Storage: Assets Approvals (r:1 w:1)
226
232
fn force_cancel_approval ( ) -> Weight {
227
- Weight :: from_ref_time ( 36_840_000 as u64 )
233
+ Weight :: from_ref_time ( 41_596_000 as u64 )
228
234
. saturating_add ( T :: DbWeight :: get ( ) . reads ( 2 as u64 ) )
229
235
. saturating_add ( T :: DbWeight :: get ( ) . writes ( 2 as u64 ) )
230
236
}
0 commit comments