Skip to content

Commit ffe0d75

Browse files
committed
Update benchmarks (#1197)
* Update benchmarks * Linting * Update benchmarks * Update cargo.lock
1 parent 699b1bc commit ffe0d75

29 files changed

+572
-599
lines changed

Cargo.lock

Lines changed: 121 additions & 121 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pallets/asset/src/lib.rs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,9 +50,6 @@
5050
//! - `remove_documents` - Remove documents for a given token.
5151
//! - `set_funding_round` - Sets the name of the current funding round.
5252
//! - `update_identifiers` - Updates the asset identifiers.
53-
//! - `add_extension` - It is used to permission the Smart-Extension address for a given ticker.
54-
//! - `archive_extension` - Extension gets archived meaning it is no longer used to verify compliance or any smart logic it possesses.
55-
//! - `unarchive_extension` - Extension gets unarchived meaning it is used again to verify compliance or any smart logic it possesses.
5653
//!
5754
//! ### Public Functions
5855
//!

pallets/common/src/traits/asset.rs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -90,10 +90,6 @@ pub trait WeightInfo {
9090
fn update_identifiers(i: u32) -> Weight;
9191
fn claim_classic_ticker() -> Weight;
9292
fn reserve_classic_ticker() -> Weight;
93-
fn add_extension() -> Weight;
94-
fn remove_smart_extension() -> Weight;
95-
fn archive_extension() -> Weight;
96-
fn unarchive_extension() -> Weight;
9793
fn controller_transfer() -> Weight;
9894
fn register_custom_asset_type(n: u32) -> Weight;
9995
}

pallets/weights/src/frame_system.rs

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
//! Autogenerated weights for frame_system
1919
//!
2020
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 3.0.0
21-
//! DATE: 2021-09-22, STEPS: [100, ], REPEAT: 5, LOW RANGE: [], HIGH RANGE: []
21+
//! DATE: 2022-01-13, STEPS: [100, ], REPEAT: 5, LOW RANGE: [], HIGH RANGE: []
2222
//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: None, DB CACHE: 512
2323
2424
// Executed Command:
@@ -53,32 +53,32 @@ use polymesh_runtime_common::{RocksDbWeight as DbWeight, Weight};
5353
pub struct WeightInfo;
5454
impl frame_system::WeightInfo for WeightInfo {
5555
fn remark(_b: u32) -> Weight {
56-
(1_787_000 as Weight)
56+
(1_594_000 as Weight)
5757
}
5858
fn set_heap_pages() -> Weight {
59-
(2_168_000 as Weight).saturating_add(DbWeight::get().writes(1 as Weight))
59+
(2_017_000 as Weight).saturating_add(DbWeight::get().writes(1 as Weight))
6060
}
6161
fn set_changes_trie_config() -> Weight {
62-
(15_365_000 as Weight)
62+
(12_502_000 as Weight)
6363
.saturating_add(DbWeight::get().reads(1 as Weight))
6464
.saturating_add(DbWeight::get().writes(2 as Weight))
6565
}
6666
fn set_storage(i: u32) -> Weight {
67-
(0 as Weight)
68-
// Standard Error: 7_000
69-
.saturating_add((842_000 as Weight).saturating_mul(i as Weight))
67+
(4_121_000 as Weight)
68+
// Standard Error: 2_000
69+
.saturating_add((697_000 as Weight).saturating_mul(i as Weight))
7070
.saturating_add(DbWeight::get().writes((1 as Weight).saturating_mul(i as Weight)))
7171
}
7272
fn kill_storage(i: u32) -> Weight {
73-
(1_707_000 as Weight)
74-
// Standard Error: 4_000
75-
.saturating_add((612_000 as Weight).saturating_mul(i as Weight))
73+
(9_061_000 as Weight)
74+
// Standard Error: 3_000
75+
.saturating_add((514_000 as Weight).saturating_mul(i as Weight))
7676
.saturating_add(DbWeight::get().writes((1 as Weight).saturating_mul(i as Weight)))
7777
}
7878
fn kill_prefix(p: u32) -> Weight {
79-
(1_051_000 as Weight)
80-
// Standard Error: 8_000
81-
.saturating_add((1_023_000 as Weight).saturating_mul(p as Weight))
79+
(0 as Weight)
80+
// Standard Error: 16_000
81+
.saturating_add((968_000 as Weight).saturating_mul(p as Weight))
8282
.saturating_add(DbWeight::get().writes((1 as Weight).saturating_mul(p as Weight)))
8383
}
8484
fn suicide() -> Weight {

pallets/weights/src/pallet_asset.rs

Lines changed: 42 additions & 62 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
//! Autogenerated weights for pallet_asset
1919
//!
2020
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 3.0.0
21-
//! DATE: 2021-09-22, STEPS: [100, ], REPEAT: 5, LOW RANGE: [], HIGH RANGE: []
21+
//! DATE: 2022-01-13, STEPS: [100, ], REPEAT: 5, LOW RANGE: [], HIGH RANGE: []
2222
//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: None, DB CACHE: 512
2323
2424
// Executed Command:
@@ -53,130 +53,110 @@ use polymesh_runtime_common::{RocksDbWeight as DbWeight, Weight};
5353
pub struct WeightInfo;
5454
impl pallet_asset::WeightInfo for WeightInfo {
5555
fn register_ticker() -> Weight {
56-
(99_696_000 as Weight)
57-
.saturating_add(DbWeight::get().reads(11 as Weight))
56+
(80_765_000 as Weight)
57+
.saturating_add(DbWeight::get().reads(9 as Weight))
5858
.saturating_add(DbWeight::get().writes(3 as Weight))
5959
}
6060
fn accept_ticker_transfer() -> Weight {
61-
(106_697_000 as Weight)
62-
.saturating_add(DbWeight::get().reads(7 as Weight))
61+
(90_227_000 as Weight)
62+
.saturating_add(DbWeight::get().reads(5 as Weight))
6363
.saturating_add(DbWeight::get().writes(6 as Weight))
6464
}
6565
fn accept_asset_ownership_transfer() -> Weight {
66-
(127_635_000 as Weight)
66+
(110_788_000 as Weight)
6767
.saturating_add(DbWeight::get().reads(8 as Weight))
6868
.saturating_add(DbWeight::get().writes(6 as Weight))
6969
}
7070
fn create_asset(n: u32, i: u32, f: u32) -> Weight {
71-
(171_969_000 as Weight)
72-
// Standard Error: 2_000
73-
.saturating_add((3_000 as Weight).saturating_mul(n as Weight))
74-
// Standard Error: 4_000
75-
.saturating_add((90_000 as Weight).saturating_mul(i as Weight))
71+
(157_890_000 as Weight)
72+
// Standard Error: 9_000
73+
.saturating_add((73_000 as Weight).saturating_mul(n as Weight))
7674
// Standard Error: 2_000
77-
.saturating_add((8_000 as Weight).saturating_mul(f as Weight))
78-
.saturating_add(DbWeight::get().reads(14 as Weight))
75+
.saturating_add((79_000 as Weight).saturating_mul(i as Weight))
76+
// Standard Error: 9_000
77+
.saturating_add((86_000 as Weight).saturating_mul(f as Weight))
78+
.saturating_add(DbWeight::get().reads(12 as Weight))
7979
.saturating_add(DbWeight::get().writes(12 as Weight))
8080
}
8181
fn freeze() -> Weight {
82-
(87_281_000 as Weight)
82+
(70_409_000 as Weight)
8383
.saturating_add(DbWeight::get().reads(7 as Weight))
8484
.saturating_add(DbWeight::get().writes(1 as Weight))
8585
}
8686
fn unfreeze() -> Weight {
87-
(86_023_000 as Weight)
87+
(71_421_000 as Weight)
8888
.saturating_add(DbWeight::get().reads(7 as Weight))
8989
.saturating_add(DbWeight::get().writes(1 as Weight))
9090
}
91-
fn rename_asset(_n: u32) -> Weight {
92-
(74_046_000 as Weight)
91+
fn rename_asset(n: u32) -> Weight {
92+
(62_463_000 as Weight)
93+
// Standard Error: 4_000
94+
.saturating_add((47_000 as Weight).saturating_mul(n as Weight))
9395
.saturating_add(DbWeight::get().reads(6 as Weight))
9496
.saturating_add(DbWeight::get().writes(1 as Weight))
9597
}
9698
fn issue() -> Weight {
97-
(161_993_000 as Weight)
98-
.saturating_add(DbWeight::get().reads(17 as Weight))
99-
.saturating_add(DbWeight::get().writes(5 as Weight))
99+
(162_071_000 as Weight)
100+
.saturating_add(DbWeight::get().reads(18 as Weight))
101+
.saturating_add(DbWeight::get().writes(4 as Weight))
100102
}
101103
fn redeem() -> Weight {
102-
(183_830_000 as Weight)
104+
(167_266_000 as Weight)
103105
.saturating_add(DbWeight::get().reads(16 as Weight))
104106
.saturating_add(DbWeight::get().writes(6 as Weight))
105107
}
106108
fn make_divisible() -> Weight {
107-
(64_897_000 as Weight)
109+
(62_479_000 as Weight)
108110
.saturating_add(DbWeight::get().reads(6 as Weight))
109111
.saturating_add(DbWeight::get().writes(1 as Weight))
110112
}
111113
fn add_documents(d: u32) -> Weight {
112-
(72_005_000 as Weight)
113-
// Standard Error: 262_000
114-
.saturating_add((31_037_000 as Weight).saturating_mul(d as Weight))
114+
(97_594_000 as Weight)
115+
// Standard Error: 187_000
116+
.saturating_add((28_420_000 as Weight).saturating_mul(d as Weight))
115117
.saturating_add(DbWeight::get().reads(8 as Weight))
116118
.saturating_add(DbWeight::get().writes(1 as Weight))
117119
.saturating_add(DbWeight::get().writes((1 as Weight).saturating_mul(d as Weight)))
118120
}
119121
fn remove_documents(d: u32) -> Weight {
120-
(32_789_000 as Weight)
121-
// Standard Error: 122_000
122-
.saturating_add((12_749_000 as Weight).saturating_mul(d as Weight))
122+
(39_507_000 as Weight)
123+
// Standard Error: 61_000
124+
.saturating_add((11_582_000 as Weight).saturating_mul(d as Weight))
123125
.saturating_add(DbWeight::get().reads(5 as Weight))
124126
.saturating_add(DbWeight::get().writes((1 as Weight).saturating_mul(d as Weight)))
125127
}
126-
fn set_funding_round(f: u32) -> Weight {
127-
(66_635_000 as Weight)
128-
// Standard Error: 0
129-
.saturating_add((1_000 as Weight).saturating_mul(f as Weight))
128+
fn set_funding_round(_f: u32) -> Weight {
129+
(59_158_000 as Weight)
130130
.saturating_add(DbWeight::get().reads(5 as Weight))
131131
.saturating_add(DbWeight::get().writes(1 as Weight))
132132
}
133133
fn update_identifiers(i: u32) -> Weight {
134-
(66_661_000 as Weight)
135-
// Standard Error: 3_000
136-
.saturating_add((82_000 as Weight).saturating_mul(i as Weight))
134+
(63_879_000 as Weight)
135+
// Standard Error: 1_000
136+
.saturating_add((63_000 as Weight).saturating_mul(i as Weight))
137137
.saturating_add(DbWeight::get().reads(5 as Weight))
138138
.saturating_add(DbWeight::get().writes(1 as Weight))
139139
}
140-
fn add_extension() -> Weight {
141-
(179_296_000 as Weight)
142-
.saturating_add(DbWeight::get().reads(11 as Weight))
143-
.saturating_add(DbWeight::get().writes(2 as Weight))
144-
}
145-
fn archive_extension() -> Weight {
146-
(155_844_000 as Weight)
147-
.saturating_add(DbWeight::get().reads(8 as Weight))
148-
.saturating_add(DbWeight::get().writes(1 as Weight))
149-
}
150-
fn unarchive_extension() -> Weight {
151-
(165_872_000 as Weight)
152-
.saturating_add(DbWeight::get().reads(8 as Weight))
153-
.saturating_add(DbWeight::get().writes(1 as Weight))
154-
}
155-
fn remove_smart_extension() -> Weight {
156-
(163_610_000 as Weight)
157-
.saturating_add(DbWeight::get().reads(9 as Weight))
158-
.saturating_add(DbWeight::get().writes(2 as Weight))
159-
}
160140
fn claim_classic_ticker() -> Weight {
161-
(271_133_000 as Weight)
162-
.saturating_add(DbWeight::get().reads(7 as Weight))
141+
(265_862_000 as Weight)
142+
.saturating_add(DbWeight::get().reads(5 as Weight))
163143
.saturating_add(DbWeight::get().writes(3 as Weight))
164144
}
165145
fn reserve_classic_ticker() -> Weight {
166-
(54_049_000 as Weight)
146+
(55_283_000 as Weight)
167147
.saturating_add(DbWeight::get().reads(3 as Weight))
168148
.saturating_add(DbWeight::get().writes(3 as Weight))
169149
}
170150
fn controller_transfer() -> Weight {
171-
(201_389_000 as Weight)
151+
(190_330_000 as Weight)
172152
.saturating_add(DbWeight::get().reads(20 as Weight))
173153
.saturating_add(DbWeight::get().writes(9 as Weight))
174154
}
175155
fn register_custom_asset_type(n: u32) -> Weight {
176-
(61_861_000 as Weight)
156+
(54_071_000 as Weight)
177157
// Standard Error: 0
178-
.saturating_add((12_000 as Weight).saturating_mul(n as Weight))
179-
.saturating_add(DbWeight::get().reads(6 as Weight))
158+
.saturating_add((13_000 as Weight).saturating_mul(n as Weight))
159+
.saturating_add(DbWeight::get().reads(4 as Weight))
180160
.saturating_add(DbWeight::get().writes(3 as Weight))
181161
}
182162
}

pallets/weights/src/pallet_balances.rs

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
//! Autogenerated weights for pallet_balances
1919
//!
2020
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 3.0.0
21-
//! DATE: 2021-09-22, STEPS: [100, ], REPEAT: 5, LOW RANGE: [], HIGH RANGE: []
21+
//! DATE: 2022-01-13, STEPS: [100, ], REPEAT: 5, LOW RANGE: [], HIGH RANGE: []
2222
//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: None, DB CACHE: 512
2323
2424
// Executed Command:
@@ -53,33 +53,33 @@ use polymesh_runtime_common::{RocksDbWeight as DbWeight, Weight};
5353
pub struct WeightInfo;
5454
impl pallet_balances::WeightInfo for WeightInfo {
5555
fn transfer() -> Weight {
56-
(145_419_000 as Weight)
56+
(131_495_000 as Weight)
5757
.saturating_add(DbWeight::get().reads(11 as Weight))
5858
.saturating_add(DbWeight::get().writes(2 as Weight))
5959
}
6060
fn transfer_with_memo() -> Weight {
61-
(138_907_000 as Weight)
61+
(131_418_000 as Weight)
6262
.saturating_add(DbWeight::get().reads(11 as Weight))
6363
.saturating_add(DbWeight::get().writes(2 as Weight))
6464
}
6565
fn deposit_block_reward_reserve_balance() -> Weight {
66-
(109_679_000 as Weight)
67-
.saturating_add(DbWeight::get().reads(9 as Weight))
66+
(102_738_000 as Weight)
67+
.saturating_add(DbWeight::get().reads(7 as Weight))
6868
.saturating_add(DbWeight::get().writes(2 as Weight))
6969
}
7070
fn set_balance() -> Weight {
71-
(130_307_000 as Weight)
71+
(119_697_000 as Weight)
7272
.saturating_add(DbWeight::get().reads(7 as Weight))
7373
.saturating_add(DbWeight::get().writes(2 as Weight))
7474
}
7575
fn force_transfer() -> Weight {
76-
(77_561_000 as Weight)
76+
(73_838_000 as Weight)
7777
.saturating_add(DbWeight::get().reads(6 as Weight))
7878
.saturating_add(DbWeight::get().writes(2 as Weight))
7979
}
8080
fn burn_account_balance() -> Weight {
81-
(77_802_000 as Weight)
82-
.saturating_add(DbWeight::get().reads(7 as Weight))
81+
(68_429_000 as Weight)
82+
.saturating_add(DbWeight::get().reads(5 as Weight))
8383
.saturating_add(DbWeight::get().writes(1 as Weight))
8484
}
8585
}

pallets/weights/src/pallet_capital_distribution.rs

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
//! Autogenerated weights for pallet_capital_distribution
1919
//!
2020
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 3.0.0
21-
//! DATE: 2021-09-22, STEPS: [100, ], REPEAT: 5, LOW RANGE: [], HIGH RANGE: []
21+
//! DATE: 2022-01-13, STEPS: [100, ], REPEAT: 5, LOW RANGE: [], HIGH RANGE: []
2222
//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: None, DB CACHE: 512
2323
2424
// Executed Command:
@@ -53,35 +53,35 @@ use polymesh_runtime_common::{RocksDbWeight as DbWeight, Weight};
5353
pub struct WeightInfo;
5454
impl pallet_corporate_actions::distribution::WeightInfo for WeightInfo {
5555
fn distribute() -> Weight {
56-
(142_494_000 as Weight)
56+
(119_677_000 as Weight)
5757
.saturating_add(DbWeight::get().reads(13 as Weight))
5858
.saturating_add(DbWeight::get().writes(2 as Weight))
5959
}
6060
fn claim(t: u32, w: u32) -> Weight {
61-
(492_552_000 as Weight)
62-
// Standard Error: 6_000
63-
.saturating_add((316_000 as Weight).saturating_mul(t as Weight))
64-
// Standard Error: 6_000
65-
.saturating_add((176_000 as Weight).saturating_mul(w as Weight))
66-
.saturating_add(DbWeight::get().reads(29 as Weight))
61+
(406_411_000 as Weight)
62+
// Standard Error: 4_000
63+
.saturating_add((287_000 as Weight).saturating_mul(t as Weight))
64+
// Standard Error: 4_000
65+
.saturating_add((184_000 as Weight).saturating_mul(w as Weight))
66+
.saturating_add(DbWeight::get().reads(27 as Weight))
6767
.saturating_add(DbWeight::get().writes(11 as Weight))
6868
}
6969
fn push_benefit(t: u32, w: u32) -> Weight {
70-
(538_560_000 as Weight)
71-
// Standard Error: 7_000
72-
.saturating_add((300_000 as Weight).saturating_mul(t as Weight))
73-
// Standard Error: 7_000
70+
(449_013_000 as Weight)
71+
// Standard Error: 4_000
72+
.saturating_add((274_000 as Weight).saturating_mul(t as Weight))
73+
// Standard Error: 4_000
7474
.saturating_add((157_000 as Weight).saturating_mul(w as Weight))
7575
.saturating_add(DbWeight::get().reads(30 as Weight))
7676
.saturating_add(DbWeight::get().writes(11 as Weight))
7777
}
7878
fn reclaim() -> Weight {
79-
(115_549_000 as Weight)
79+
(96_930_000 as Weight)
8080
.saturating_add(DbWeight::get().reads(9 as Weight))
8181
.saturating_add(DbWeight::get().writes(2 as Weight))
8282
}
8383
fn remove_distribution() -> Weight {
84-
(93_784_000 as Weight)
84+
(89_146_000 as Weight)
8585
.saturating_add(DbWeight::get().reads(8 as Weight))
8686
.saturating_add(DbWeight::get().writes(2 as Weight))
8787
}

0 commit comments

Comments
 (0)