Skip to content
This repository was archived by the owner on Nov 15, 2023. It is now read-only.

Commit 49b6e8c

Browse files
paritytech-ciparitytech-ci
authored andcommitted
[benchmarks] pr with weights (#1664)
Co-authored-by: paritytech-ci <paritytech-ci@parity.io>
1 parent 2fa9557 commit 49b6e8c

39 files changed

+892
-718
lines changed

parachains/runtimes/assets/statemine/src/weights/frame_system.rs

+11-11
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
//! Autogenerated weights for `frame_system`
1818
//!
1919
//! 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: `[]`
2121
//! HOSTNAME: `bm6`, CPU: `Intel(R) Core(TM) i7-7700K CPU @ 4.20GHz`
2222
//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("statemine-dev"), DB CACHE: 1024
2323
@@ -34,13 +34,13 @@
3434
// --repeat=20
3535
// --json
3636
// --header=./file_header.txt
37-
// --output=./parachains/runtimes/assets/statemine/src/weights
37+
// --output=./parachains/runtimes/assets/statemine/src/weights/frame_system.rs
3838

3939
#![cfg_attr(rustfmt, rustfmt_skip)]
4040
#![allow(unused_parens)]
4141
#![allow(unused_imports)]
4242

43-
use frame_support::{traits::Get, weights::Weight};
43+
use frame_support::{traits::Get, weights::{Weight}};
4444
use sp_std::marker::PhantomData;
4545

4646
/// Weight functions for `frame_system`.
@@ -54,12 +54,12 @@ impl<T: frame_system::Config> frame_system::WeightInfo for WeightInfo<T> {
5454
fn remark_with_event(b: u32, ) -> Weight {
5555
Weight::from_ref_time(0 as u64)
5656
// Standard Error: 0
57-
.saturating_add(Weight::from_ref_time(2_000 as u64).saturating_mul(b as u64))
57+
.saturating_add(Weight::from_ref_time(1_000 as u64).saturating_mul(b as u64))
5858
}
5959
// Storage: System Digest (r:1 w:1)
6060
// Storage: unknown [0x3a686561707061676573] (r:0 w:1)
6161
fn set_heap_pages() -> Weight {
62-
Weight::from_ref_time(5_461_000 as u64)
62+
Weight::from_ref_time(8_677_000 as u64)
6363
.saturating_add(T::DbWeight::get().reads(1 as u64))
6464
.saturating_add(T::DbWeight::get().writes(2 as u64))
6565
}
@@ -68,23 +68,23 @@ impl<T: frame_system::Config> frame_system::WeightInfo for WeightInfo<T> {
6868
fn set_storage(i: u32, ) -> Weight {
6969
Weight::from_ref_time(0 as u64)
7070
// Standard Error: 1_000
71-
.saturating_add(Weight::from_ref_time(622_000 as u64).saturating_mul(i as u64))
71+
.saturating_add(Weight::from_ref_time(625_000 as u64).saturating_mul(i as u64))
7272
.saturating_add(T::DbWeight::get().writes((1 as u64).saturating_mul(i as u64)))
7373
}
7474
// Storage: Skipped Metadata (r:0 w:0)
7575
/// The range of component `i` is `[1, 1000]`.
7676
fn kill_storage(i: u32, ) -> Weight {
77-
Weight::from_ref_time(351_000 as u64)
78-
// Standard Error: 1_000
79-
.saturating_add(Weight::from_ref_time(513_000 as u64).saturating_mul(i as u64))
77+
Weight::from_ref_time(0 as u64)
78+
// Standard Error: 2_000
79+
.saturating_add(Weight::from_ref_time(554_000 as u64).saturating_mul(i as u64))
8080
.saturating_add(T::DbWeight::get().writes((1 as u64).saturating_mul(i as u64)))
8181
}
8282
// Storage: Skipped Metadata (r:0 w:0)
8383
/// The range of component `p` is `[1, 1000]`.
8484
fn kill_prefix(p: u32, ) -> Weight {
8585
Weight::from_ref_time(0 as u64)
86-
// Standard Error: 1_000
87-
.saturating_add(Weight::from_ref_time(1_054_000 as u64).saturating_mul(p as u64))
86+
// Standard Error: 2_000
87+
.saturating_add(Weight::from_ref_time(1_128_000 as u64).saturating_mul(p as u64))
8888
.saturating_add(T::DbWeight::get().writes((1 as u64).saturating_mul(p as u64)))
8989
}
9090
}

parachains/runtimes/assets/statemine/src/weights/pallet_assets.rs

+39-33
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
//! Autogenerated weights for `pallet_assets`
1818
//!
1919
//! 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: `[]`
2121
//! HOSTNAME: `bm6`, CPU: `Intel(R) Core(TM) i7-7700K CPU @ 4.20GHz`
2222
//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("statemine-dev"), DB CACHE: 1024
2323
@@ -34,27 +34,27 @@
3434
// --repeat=20
3535
// --json
3636
// --header=./file_header.txt
37-
// --output=./parachains/runtimes/assets/statemine/src/weights
37+
// --output=./parachains/runtimes/assets/statemine/src/weights/pallet_assets.rs
3838

3939
#![cfg_attr(rustfmt, rustfmt_skip)]
4040
#![allow(unused_parens)]
4141
#![allow(unused_imports)]
4242

43-
use frame_support::{traits::Get, weights::Weight};
43+
use frame_support::{traits::Get, weights::{Weight}};
4444
use sp_std::marker::PhantomData;
4545

4646
/// Weight functions for `pallet_assets`.
4747
pub struct WeightInfo<T>(PhantomData<T>);
4848
impl<T: frame_system::Config> pallet_assets::WeightInfo for WeightInfo<T> {
4949
// Storage: Assets Asset (r:1 w:1)
5050
fn create() -> Weight {
51-
Weight::from_ref_time(26_670_000 as u64)
51+
Weight::from_ref_time(30_336_000 as u64)
5252
.saturating_add(T::DbWeight::get().reads(1 as u64))
5353
.saturating_add(T::DbWeight::get().writes(1 as u64))
5454
}
5555
// Storage: Assets Asset (r:1 w:1)
5656
fn force_create() -> Weight {
57-
Weight::from_ref_time(15_063_000 as u64)
57+
Weight::from_ref_time(17_834_000 as u64)
5858
.saturating_add(T::DbWeight::get().reads(1 as u64))
5959
.saturating_add(T::DbWeight::get().writes(1 as u64))
6060
}
@@ -68,12 +68,12 @@ impl<T: frame_system::Config> pallet_assets::WeightInfo for WeightInfo<T> {
6868
/// The range of component `a` is `[0, 500]`.
6969
fn destroy(c: u32, s: u32, a: u32, ) -> Weight {
7070
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))
7777
.saturating_add(T::DbWeight::get().reads(5 as u64))
7878
.saturating_add(T::DbWeight::get().reads((2 as u64).saturating_mul(c as u64)))
7979
.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> {
8686
// Storage: Assets Asset (r:1 w:1)
8787
// Storage: Assets Account (r:1 w:1)
8888
fn mint() -> Weight {
89-
Weight::from_ref_time(29_655_000 as u64)
89+
Weight::from_ref_time(35_875_000 as u64)
9090
.saturating_add(T::DbWeight::get().reads(2 as u64))
9191
.saturating_add(T::DbWeight::get().writes(2 as u64))
9292
}
9393
// Storage: Assets Asset (r:1 w:1)
9494
// Storage: Assets Account (r:1 w:1)
9595
fn burn() -> Weight {
96-
Weight::from_ref_time(33_648_000 as u64)
96+
Weight::from_ref_time(38_571_000 as u64)
9797
.saturating_add(T::DbWeight::get().reads(2 as u64))
9898
.saturating_add(T::DbWeight::get().writes(2 as u64))
9999
}
100100
// Storage: Assets Asset (r:1 w:1)
101101
// Storage: Assets Account (r:2 w:2)
102102
// Storage: System Account (r:1 w:1)
103103
fn transfer() -> Weight {
104-
Weight::from_ref_time(47_414_000 as u64)
104+
Weight::from_ref_time(50_931_000 as u64)
105105
.saturating_add(T::DbWeight::get().reads(4 as u64))
106106
.saturating_add(T::DbWeight::get().writes(4 as u64))
107107
}
108108
// Storage: Assets Asset (r:1 w:1)
109109
// Storage: Assets Account (r:2 w:2)
110110
// Storage: System Account (r:1 w:1)
111111
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)
113113
.saturating_add(T::DbWeight::get().reads(4 as u64))
114114
.saturating_add(T::DbWeight::get().writes(4 as u64))
115115
}
116116
// Storage: Assets Asset (r:1 w:1)
117117
// Storage: Assets Account (r:2 w:2)
118118
// Storage: System Account (r:1 w:1)
119119
fn force_transfer() -> Weight {
120-
Weight::from_ref_time(47_454_000 as u64)
120+
Weight::from_ref_time(51_045_000 as u64)
121121
.saturating_add(T::DbWeight::get().reads(4 as u64))
122122
.saturating_add(T::DbWeight::get().writes(4 as u64))
123123
}
124124
// Storage: Assets Asset (r:1 w:0)
125125
// Storage: Assets Account (r:1 w:1)
126126
fn freeze() -> Weight {
127-
Weight::from_ref_time(20_827_000 as u64)
127+
Weight::from_ref_time(24_405_000 as u64)
128128
.saturating_add(T::DbWeight::get().reads(2 as u64))
129129
.saturating_add(T::DbWeight::get().writes(1 as u64))
130130
}
131131
// Storage: Assets Asset (r:1 w:0)
132132
// Storage: Assets Account (r:1 w:1)
133133
fn thaw() -> Weight {
134-
Weight::from_ref_time(21_249_000 as u64)
134+
Weight::from_ref_time(24_445_000 as u64)
135135
.saturating_add(T::DbWeight::get().reads(2 as u64))
136136
.saturating_add(T::DbWeight::get().writes(1 as u64))
137137
}
138138
// Storage: Assets Asset (r:1 w:1)
139139
fn freeze_asset() -> Weight {
140-
Weight::from_ref_time(17_775_000 as u64)
140+
Weight::from_ref_time(21_181_000 as u64)
141141
.saturating_add(T::DbWeight::get().reads(1 as u64))
142142
.saturating_add(T::DbWeight::get().writes(1 as u64))
143143
}
144144
// Storage: Assets Asset (r:1 w:1)
145145
fn thaw_asset() -> Weight {
146-
Weight::from_ref_time(17_917_000 as u64)
146+
Weight::from_ref_time(21_227_000 as u64)
147147
.saturating_add(T::DbWeight::get().reads(1 as u64))
148148
.saturating_add(T::DbWeight::get().writes(1 as u64))
149149
}
150150
// Storage: Assets Asset (r:1 w:1)
151151
// Storage: Assets Metadata (r:1 w:0)
152152
fn transfer_ownership() -> Weight {
153-
Weight::from_ref_time(18_724_000 as u64)
153+
Weight::from_ref_time(23_802_000 as u64)
154154
.saturating_add(T::DbWeight::get().reads(2 as u64))
155155
.saturating_add(T::DbWeight::get().writes(1 as u64))
156156
}
157157
// Storage: Assets Asset (r:1 w:1)
158158
fn set_team() -> Weight {
159-
Weight::from_ref_time(17_448_000 as u64)
159+
Weight::from_ref_time(22_959_000 as u64)
160160
.saturating_add(T::DbWeight::get().reads(1 as u64))
161161
.saturating_add(T::DbWeight::get().writes(1 as u64))
162162
}
163163
// Storage: Assets Asset (r:1 w:0)
164164
// Storage: Assets Metadata (r:1 w:1)
165165
/// The range of component `n` is `[0, 50]`.
166166
/// 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))
169171
.saturating_add(T::DbWeight::get().reads(2 as u64))
170172
.saturating_add(T::DbWeight::get().writes(1 as u64))
171173
}
172174
// Storage: Assets Asset (r:1 w:0)
173175
// Storage: Assets Metadata (r:1 w:1)
174176
fn clear_metadata() -> Weight {
175-
Weight::from_ref_time(31_293_000 as u64)
177+
Weight::from_ref_time(38_293_000 as u64)
176178
.saturating_add(T::DbWeight::get().reads(2 as u64))
177179
.saturating_add(T::DbWeight::get().writes(1 as u64))
178180
}
179181
// Storage: Assets Asset (r:1 w:0)
180182
// Storage: Assets Metadata (r:1 w:1)
181183
/// The range of component `n` is `[0, 50]`.
182184
/// 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))
185191
.saturating_add(T::DbWeight::get().reads(2 as u64))
186192
.saturating_add(T::DbWeight::get().writes(1 as u64))
187193
}
188194
// Storage: Assets Asset (r:1 w:0)
189195
// Storage: Assets Metadata (r:1 w:1)
190196
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)
192198
.saturating_add(T::DbWeight::get().reads(2 as u64))
193199
.saturating_add(T::DbWeight::get().writes(1 as u64))
194200
}
195201
// Storage: Assets Asset (r:1 w:1)
196202
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)
198204
.saturating_add(T::DbWeight::get().reads(1 as u64))
199205
.saturating_add(T::DbWeight::get().writes(1 as u64))
200206
}
201207
// Storage: Assets Asset (r:1 w:1)
202208
// Storage: Assets Approvals (r:1 w:1)
203209
fn approve_transfer() -> Weight {
204-
Weight::from_ref_time(34_730_000 as u64)
210+
Weight::from_ref_time(38_906_000 as u64)
205211
.saturating_add(T::DbWeight::get().reads(2 as u64))
206212
.saturating_add(T::DbWeight::get().writes(2 as u64))
207213
}
@@ -210,21 +216,21 @@ impl<T: frame_system::Config> pallet_assets::WeightInfo for WeightInfo<T> {
210216
// Storage: Assets Account (r:2 w:2)
211217
// Storage: System Account (r:1 w:1)
212218
fn transfer_approved() -> Weight {
213-
Weight::from_ref_time(59_797_000 as u64)
219+
Weight::from_ref_time(66_949_000 as u64)
214220
.saturating_add(T::DbWeight::get().reads(5 as u64))
215221
.saturating_add(T::DbWeight::get().writes(5 as u64))
216222
}
217223
// Storage: Assets Asset (r:1 w:1)
218224
// Storage: Assets Approvals (r:1 w:1)
219225
fn cancel_approval() -> Weight {
220-
Weight::from_ref_time(35_178_000 as u64)
226+
Weight::from_ref_time(39_491_000 as u64)
221227
.saturating_add(T::DbWeight::get().reads(2 as u64))
222228
.saturating_add(T::DbWeight::get().writes(2 as u64))
223229
}
224230
// Storage: Assets Asset (r:1 w:1)
225231
// Storage: Assets Approvals (r:1 w:1)
226232
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)
228234
.saturating_add(T::DbWeight::get().reads(2 as u64))
229235
.saturating_add(T::DbWeight::get().writes(2 as u64))
230236
}

parachains/runtimes/assets/statemine/src/weights/pallet_balances.rs

+10-10
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
//! Autogenerated weights for `pallet_balances`
1818
//!
1919
//! 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: `[]`
2121
//! HOSTNAME: `bm6`, CPU: `Intel(R) Core(TM) i7-7700K CPU @ 4.20GHz`
2222
//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("statemine-dev"), DB CACHE: 1024
2323
@@ -34,57 +34,57 @@
3434
// --repeat=20
3535
// --json
3636
// --header=./file_header.txt
37-
// --output=./parachains/runtimes/assets/statemine/src/weights
37+
// --output=./parachains/runtimes/assets/statemine/src/weights/pallet_balances.rs
3838

3939
#![cfg_attr(rustfmt, rustfmt_skip)]
4040
#![allow(unused_parens)]
4141
#![allow(unused_imports)]
4242

43-
use frame_support::{traits::Get, weights::Weight};
43+
use frame_support::{traits::Get, weights::{Weight}};
4444
use sp_std::marker::PhantomData;
4545

4646
/// Weight functions for `pallet_balances`.
4747
pub struct WeightInfo<T>(PhantomData<T>);
4848
impl<T: frame_system::Config> pallet_balances::WeightInfo for WeightInfo<T> {
4949
// Storage: System Account (r:1 w:1)
5050
fn transfer() -> Weight {
51-
Weight::from_ref_time(41_804_000 as u64)
51+
Weight::from_ref_time(46_411_000 as u64)
5252
.saturating_add(T::DbWeight::get().reads(1 as u64))
5353
.saturating_add(T::DbWeight::get().writes(1 as u64))
5454
}
5555
// Storage: System Account (r:1 w:1)
5656
fn transfer_keep_alive() -> Weight {
57-
Weight::from_ref_time(31_899_000 as u64)
57+
Weight::from_ref_time(34_589_000 as u64)
5858
.saturating_add(T::DbWeight::get().reads(1 as u64))
5959
.saturating_add(T::DbWeight::get().writes(1 as u64))
6060
}
6161
// Storage: System Account (r:1 w:1)
6262
fn set_balance_creating() -> Weight {
63-
Weight::from_ref_time(20_638_000 as u64)
63+
Weight::from_ref_time(25_591_000 as u64)
6464
.saturating_add(T::DbWeight::get().reads(1 as u64))
6565
.saturating_add(T::DbWeight::get().writes(1 as u64))
6666
}
6767
// Storage: System Account (r:1 w:1)
6868
fn set_balance_killing() -> Weight {
69-
Weight::from_ref_time(24_081_000 as u64)
69+
Weight::from_ref_time(29_471_000 as u64)
7070
.saturating_add(T::DbWeight::get().reads(1 as u64))
7171
.saturating_add(T::DbWeight::get().writes(1 as u64))
7272
}
7373
// Storage: System Account (r:2 w:2)
7474
fn force_transfer() -> Weight {
75-
Weight::from_ref_time(41_357_000 as u64)
75+
Weight::from_ref_time(46_550_000 as u64)
7676
.saturating_add(T::DbWeight::get().reads(2 as u64))
7777
.saturating_add(T::DbWeight::get().writes(2 as u64))
7878
}
7979
// Storage: System Account (r:1 w:1)
8080
fn transfer_all() -> Weight {
81-
Weight::from_ref_time(37_382_000 as u64)
81+
Weight::from_ref_time(40_804_000 as u64)
8282
.saturating_add(T::DbWeight::get().reads(1 as u64))
8383
.saturating_add(T::DbWeight::get().writes(1 as u64))
8484
}
8585
// Storage: System Account (r:1 w:1)
8686
fn force_unreserve() -> Weight {
87-
Weight::from_ref_time(18_476_000 as u64)
87+
Weight::from_ref_time(22_516_000 as u64)
8888
.saturating_add(T::DbWeight::get().reads(1 as u64))
8989
.saturating_add(T::DbWeight::get().writes(1 as u64))
9090
}

0 commit comments

Comments
 (0)