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-02-02 , STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]`
20
+ //! DATE: 2022-03-28 , STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]`
21
21
//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("statemine-dev"), DB CACHE: 1024
22
22
23
23
// Executed Command:
24
- // ./target/release /polkadot-collator
24
+ // ./target/production /polkadot-collator
25
25
// benchmark
26
26
// --chain=statemine-dev
27
27
// --execution=wasm
30
30
// --extrinsic=*
31
31
// --steps=50
32
32
// --repeat=20
33
- // --raw
33
+ // --json-file=./bench-statemine.json
34
34
// --header=./file_header.txt
35
35
// --output=./polkadot-parachains/statemine/src/weights
36
36
@@ -46,13 +46,13 @@ pub struct WeightInfo<T>(PhantomData<T>);
46
46
impl < T : frame_system:: Config > pallet_assets:: WeightInfo for WeightInfo < T > {
47
47
// Storage: Assets Asset (r:1 w:1)
48
48
fn create ( ) -> Weight {
49
- ( 28_412_000 as Weight )
49
+ ( 21_739_000 as Weight )
50
50
. saturating_add ( T :: DbWeight :: get ( ) . reads ( 1 as Weight ) )
51
51
. saturating_add ( T :: DbWeight :: get ( ) . writes ( 1 as Weight ) )
52
52
}
53
53
// Storage: Assets Asset (r:1 w:1)
54
54
fn force_create ( ) -> Weight {
55
- ( 15_615_000 as Weight )
55
+ ( 12_261_000 as Weight )
56
56
. saturating_add ( T :: DbWeight :: get ( ) . reads ( 1 as Weight ) )
57
57
. saturating_add ( T :: DbWeight :: get ( ) . writes ( 1 as Weight ) )
58
58
}
@@ -63,12 +63,12 @@ impl<T: frame_system::Config> pallet_assets::WeightInfo for WeightInfo<T> {
63
63
// Storage: Assets Approvals (r:501 w:500)
64
64
fn destroy ( c : u32 , s : u32 , a : u32 , ) -> Weight {
65
65
( 0 as Weight )
66
- // Standard Error: 43_000
67
- . saturating_add ( ( 17_671_000 as Weight ) . saturating_mul ( c as Weight ) )
68
- // Standard Error: 43_000
69
- . saturating_add ( ( 21_144_000 as Weight ) . saturating_mul ( s as Weight ) )
70
- // Standard Error: 430_000
71
- . saturating_add ( ( 19_246_000 as Weight ) . saturating_mul ( a as Weight ) )
66
+ // Standard Error: 38_000
67
+ . saturating_add ( ( 12_675_000 as Weight ) . saturating_mul ( c as Weight ) )
68
+ // Standard Error: 38_000
69
+ . saturating_add ( ( 15_906_000 as Weight ) . saturating_mul ( s as Weight ) )
70
+ // Standard Error: 380_000
71
+ . saturating_add ( ( 13_383_000 as Weight ) . saturating_mul ( a as Weight ) )
72
72
. saturating_add ( T :: DbWeight :: get ( ) . reads ( 5 as Weight ) )
73
73
. saturating_add ( T :: DbWeight :: get ( ) . reads ( ( 2 as Weight ) . saturating_mul ( c as Weight ) ) )
74
74
. saturating_add ( T :: DbWeight :: get ( ) . reads ( ( 2 as Weight ) . saturating_mul ( s as Weight ) ) )
@@ -81,120 +81,124 @@ impl<T: frame_system::Config> pallet_assets::WeightInfo for WeightInfo<T> {
81
81
// Storage: Assets Asset (r:1 w:1)
82
82
// Storage: Assets Account (r:1 w:1)
83
83
fn mint ( ) -> Weight {
84
- ( 31_311_000 as Weight )
84
+ ( 24_951_000 as Weight )
85
85
. saturating_add ( T :: DbWeight :: get ( ) . reads ( 2 as Weight ) )
86
86
. saturating_add ( T :: DbWeight :: get ( ) . writes ( 2 as Weight ) )
87
87
}
88
88
// Storage: Assets Asset (r:1 w:1)
89
89
// Storage: Assets Account (r:1 w:1)
90
90
fn burn ( ) -> Weight {
91
- ( 35_699_000 as Weight )
91
+ ( 28_334_000 as Weight )
92
92
. saturating_add ( T :: DbWeight :: get ( ) . reads ( 2 as Weight ) )
93
93
. saturating_add ( T :: DbWeight :: get ( ) . writes ( 2 as Weight ) )
94
94
}
95
95
// Storage: Assets Asset (r:1 w:1)
96
96
// Storage: Assets Account (r:2 w:2)
97
97
// Storage: System Account (r:1 w:1)
98
98
fn transfer ( ) -> Weight {
99
- ( 53_109_000 as Weight )
99
+ ( 41_250_000 as Weight )
100
100
. saturating_add ( T :: DbWeight :: get ( ) . reads ( 4 as Weight ) )
101
101
. saturating_add ( T :: DbWeight :: get ( ) . writes ( 4 as Weight ) )
102
102
}
103
103
// Storage: Assets Asset (r:1 w:1)
104
104
// Storage: Assets Account (r:2 w:2)
105
105
// Storage: System Account (r:1 w:1)
106
106
fn transfer_keep_alive ( ) -> Weight {
107
- ( 44_544_000 as Weight )
107
+ ( 34_843_000 as Weight )
108
108
. saturating_add ( T :: DbWeight :: get ( ) . reads ( 4 as Weight ) )
109
109
. saturating_add ( T :: DbWeight :: get ( ) . writes ( 4 as Weight ) )
110
110
}
111
111
// Storage: Assets Asset (r:1 w:1)
112
112
// Storage: Assets Account (r:2 w:2)
113
113
// Storage: System Account (r:1 w:1)
114
114
fn force_transfer ( ) -> Weight {
115
- ( 53_102_000 as Weight )
115
+ ( 41_377_000 as Weight )
116
116
. saturating_add ( T :: DbWeight :: get ( ) . reads ( 4 as Weight ) )
117
117
. saturating_add ( T :: DbWeight :: get ( ) . writes ( 4 as Weight ) )
118
118
}
119
119
// Storage: Assets Asset (r:1 w:0)
120
120
// Storage: Assets Account (r:1 w:1)
121
121
fn freeze ( ) -> Weight {
122
- ( 20_716_000 as Weight )
122
+ ( 16_794_000 as Weight )
123
123
. saturating_add ( T :: DbWeight :: get ( ) . reads ( 2 as Weight ) )
124
124
. saturating_add ( T :: DbWeight :: get ( ) . writes ( 1 as Weight ) )
125
125
}
126
126
// Storage: Assets Asset (r:1 w:0)
127
127
// Storage: Assets Account (r:1 w:1)
128
128
fn thaw ( ) -> Weight {
129
- ( 20_528_000 as Weight )
129
+ ( 16_600_000 as Weight )
130
130
. saturating_add ( T :: DbWeight :: get ( ) . reads ( 2 as Weight ) )
131
131
. saturating_add ( T :: DbWeight :: get ( ) . writes ( 1 as Weight ) )
132
132
}
133
133
// Storage: Assets Asset (r:1 w:1)
134
134
fn freeze_asset ( ) -> Weight {
135
- ( 16_481_000 as Weight )
135
+ ( 13_729_000 as Weight )
136
136
. saturating_add ( T :: DbWeight :: get ( ) . reads ( 1 as Weight ) )
137
137
. saturating_add ( T :: DbWeight :: get ( ) . writes ( 1 as Weight ) )
138
138
}
139
139
// Storage: Assets Asset (r:1 w:1)
140
140
fn thaw_asset ( ) -> Weight {
141
- ( 16_576_000 as Weight )
141
+ ( 13_749_000 as Weight )
142
142
. saturating_add ( T :: DbWeight :: get ( ) . reads ( 1 as Weight ) )
143
143
. saturating_add ( T :: DbWeight :: get ( ) . writes ( 1 as Weight ) )
144
144
}
145
145
// Storage: Assets Asset (r:1 w:1)
146
146
// Storage: Assets Metadata (r:1 w:0)
147
147
fn transfer_ownership ( ) -> Weight {
148
- ( 18_510_000 as Weight )
148
+ ( 14_651_000 as Weight )
149
149
. saturating_add ( T :: DbWeight :: get ( ) . reads ( 2 as Weight ) )
150
150
. saturating_add ( T :: DbWeight :: get ( ) . writes ( 1 as Weight ) )
151
151
}
152
152
// Storage: Assets Asset (r:1 w:1)
153
153
fn set_team ( ) -> Weight {
154
- ( 16_486_000 as Weight )
154
+ ( 13_393_000 as Weight )
155
155
. saturating_add ( T :: DbWeight :: get ( ) . reads ( 1 as Weight ) )
156
156
. saturating_add ( T :: DbWeight :: get ( ) . writes ( 1 as Weight ) )
157
157
}
158
158
// Storage: Assets Asset (r:1 w:0)
159
159
// Storage: Assets Metadata (r:1 w:1)
160
- fn set_metadata ( _n : u32 , s : u32 , ) -> Weight {
161
- ( 32_925_000 as Weight )
160
+ fn set_metadata ( n : u32 , s : u32 , ) -> Weight {
161
+ ( 26_365_000 as Weight )
162
162
// Standard Error: 0
163
- . saturating_add ( ( 4_000 as Weight ) . saturating_mul ( s as Weight ) )
163
+ . saturating_add ( ( 2_000 as Weight ) . saturating_mul ( n as Weight ) )
164
+ // Standard Error: 0
165
+ . saturating_add ( ( 3_000 as Weight ) . saturating_mul ( s as Weight ) )
164
166
. saturating_add ( T :: DbWeight :: get ( ) . reads ( 2 as Weight ) )
165
167
. saturating_add ( T :: DbWeight :: get ( ) . writes ( 1 as Weight ) )
166
168
}
167
169
// Storage: Assets Asset (r:1 w:0)
168
170
// Storage: Assets Metadata (r:1 w:1)
169
171
fn clear_metadata ( ) -> Weight {
170
- ( 32_058_000 as Weight )
172
+ ( 26_123_000 as Weight )
171
173
. saturating_add ( T :: DbWeight :: get ( ) . reads ( 2 as Weight ) )
172
174
. saturating_add ( T :: DbWeight :: get ( ) . writes ( 1 as Weight ) )
173
175
}
174
176
// Storage: Assets Asset (r:1 w:0)
175
177
// Storage: Assets Metadata (r:1 w:1)
176
- fn force_set_metadata ( _n : u32 , _s : u32 , ) -> Weight {
177
- ( 18_056_000 as Weight )
178
+ fn force_set_metadata ( _n : u32 , s : u32 , ) -> Weight {
179
+ ( 15_431_000 as Weight )
180
+ // Standard Error: 0
181
+ . saturating_add ( ( 1_000 as Weight ) . saturating_mul ( s as Weight ) )
178
182
. saturating_add ( T :: DbWeight :: get ( ) . reads ( 2 as Weight ) )
179
183
. saturating_add ( T :: DbWeight :: get ( ) . writes ( 1 as Weight ) )
180
184
}
181
185
// Storage: Assets Asset (r:1 w:0)
182
186
// Storage: Assets Metadata (r:1 w:1)
183
187
fn force_clear_metadata ( ) -> Weight {
184
- ( 32_079_000 as Weight )
188
+ ( 26_658_000 as Weight )
185
189
. saturating_add ( T :: DbWeight :: get ( ) . reads ( 2 as Weight ) )
186
190
. saturating_add ( T :: DbWeight :: get ( ) . writes ( 1 as Weight ) )
187
191
}
188
192
// Storage: Assets Asset (r:1 w:1)
189
193
fn force_asset_status ( ) -> Weight {
190
- ( 15_987_000 as Weight )
194
+ ( 13_875_000 as Weight )
191
195
. saturating_add ( T :: DbWeight :: get ( ) . reads ( 1 as Weight ) )
192
196
. saturating_add ( T :: DbWeight :: get ( ) . writes ( 1 as Weight ) )
193
197
}
194
198
// Storage: Assets Asset (r:1 w:1)
195
199
// Storage: Assets Approvals (r:1 w:1)
196
200
fn approve_transfer ( ) -> Weight {
197
- ( 36_595_000 as Weight )
201
+ ( 29_797_000 as Weight )
198
202
. saturating_add ( T :: DbWeight :: get ( ) . reads ( 2 as Weight ) )
199
203
. saturating_add ( T :: DbWeight :: get ( ) . writes ( 2 as Weight ) )
200
204
}
@@ -203,21 +207,21 @@ impl<T: frame_system::Config> pallet_assets::WeightInfo for WeightInfo<T> {
203
207
// Storage: Assets Account (r:2 w:2)
204
208
// Storage: System Account (r:1 w:1)
205
209
fn transfer_approved ( ) -> Weight {
206
- ( 67_831_000 as Weight )
210
+ ( 53_337_000 as Weight )
207
211
. saturating_add ( T :: DbWeight :: get ( ) . reads ( 5 as Weight ) )
208
212
. saturating_add ( T :: DbWeight :: get ( ) . writes ( 5 as Weight ) )
209
213
}
210
214
// Storage: Assets Asset (r:1 w:1)
211
215
// Storage: Assets Approvals (r:1 w:1)
212
216
fn cancel_approval ( ) -> Weight {
213
- ( 37_717_000 as Weight )
217
+ ( 29_970_000 as Weight )
214
218
. saturating_add ( T :: DbWeight :: get ( ) . reads ( 2 as Weight ) )
215
219
. saturating_add ( T :: DbWeight :: get ( ) . writes ( 2 as Weight ) )
216
220
}
217
221
// Storage: Assets Asset (r:1 w:1)
218
222
// Storage: Assets Approvals (r:1 w:1)
219
223
fn force_cancel_approval ( ) -> Weight {
220
- ( 39_091_000 as Weight )
224
+ ( 31_972_000 as Weight )
221
225
. saturating_add ( T :: DbWeight :: get ( ) . reads ( 2 as Weight ) )
222
226
. saturating_add ( T :: DbWeight :: get ( ) . writes ( 2 as Weight ) )
223
227
}
0 commit comments