Skip to content

Commit 341a21b

Browse files
authored
Update weights (#886)
* Fix benchmark script * Update weights
1 parent 380f577 commit 341a21b

29 files changed

+866
-831
lines changed

runtime/common/src/weights/cumulus_pallet_xcmp_queue.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
//! Autogenerated weights for cumulus_pallet_xcmp_queue
1919
//!
2020
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
21-
//! DATE: 2022-10-18, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]`
21+
//! DATE: 2022-11-25, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]`
2222
//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 1024
2323
2424
// Executed Command:
@@ -50,13 +50,13 @@ pub struct WeightInfo<T>(PhantomData<T>);
5050
impl<T: frame_system::Config> cumulus_pallet_xcmp_queue::weights::WeightInfo for WeightInfo<T> {
5151
// Storage: XcmpQueue QueueConfig (r:1 w:1)
5252
fn set_config_with_u32() -> Weight {
53-
(9_580_000 as Weight)
53+
(12_060_000 as Weight)
5454
.saturating_add(T::DbWeight::get().reads(1 as Weight))
5555
.saturating_add(T::DbWeight::get().writes(1 as Weight))
5656
}
5757
// Storage: XcmpQueue QueueConfig (r:1 w:1)
5858
fn set_config_with_weight() -> Weight {
59-
(7_000_000 as Weight)
59+
(11_590_000 as Weight)
6060
.saturating_add(T::DbWeight::get().reads(1 as Weight))
6161
.saturating_add(T::DbWeight::get().writes(1 as Weight))
6262
}

runtime/common/src/weights/frame_system.rs

Lines changed: 13 additions & 11 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 4.0.0-dev
21-
//! DATE: 2022-10-17, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]`
21+
//! DATE: 2022-11-25, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]`
2222
//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 1024
2323
2424
// Executed Command:
@@ -48,40 +48,42 @@ use frame_support::{
4848
/// Weight functions for frame_system (automatically generated)
4949
pub struct WeightInfo<T>(PhantomData<T>);
5050
impl<T: frame_system::Config> frame_system::weights::WeightInfo for WeightInfo<T> {
51-
fn remark(_b: u32) -> Weight {
52-
(50_310_000 as Weight)
51+
fn remark(b: u32) -> Weight {
52+
(0 as Weight)
53+
// Standard Error: 0
54+
.saturating_add((1_000 as Weight).saturating_mul(b as Weight))
5355
}
5456
fn remark_with_event(b: u32) -> Weight {
5557
(0 as Weight)
5658
// Standard Error: 0
57-
.saturating_add((2_000 as Weight).saturating_mul(b as Weight))
59+
.saturating_add((3_000 as Weight).saturating_mul(b as Weight))
5860
}
5961
// Storage: System Digest (r:1 w:1)
6062
// Storage: unknown [0x3a686561707061676573] (r:0 w:1)
6163
fn set_heap_pages() -> Weight {
62-
(4_430_000 as Weight)
64+
(11_750_000 as Weight)
6365
.saturating_add(T::DbWeight::get().reads(1 as Weight))
6466
.saturating_add(T::DbWeight::get().writes(2 as Weight))
6567
}
6668
// Storage: Skipped Metadata (r:0 w:0)
6769
fn set_storage(i: u32) -> Weight {
6870
(0 as Weight)
69-
// Standard Error: 6_000
70-
.saturating_add((802_000 as Weight).saturating_mul(i as Weight))
71+
// Standard Error: 9_000
72+
.saturating_add((1_266_000 as Weight).saturating_mul(i as Weight))
7173
.saturating_add(T::DbWeight::get().writes((1 as Weight).saturating_mul(i as Weight)))
7274
}
7375
// Storage: Skipped Metadata (r:0 w:0)
7476
fn kill_storage(i: u32) -> Weight {
7577
(0 as Weight)
76-
// Standard Error: 5_000
77-
.saturating_add((644_000 as Weight).saturating_mul(i as Weight))
78+
// Standard Error: 3_000
79+
.saturating_add((1_021_000 as Weight).saturating_mul(i as Weight))
7880
.saturating_add(T::DbWeight::get().writes((1 as Weight).saturating_mul(i as Weight)))
7981
}
8082
// Storage: Skipped Metadata (r:0 w:0)
8183
fn kill_prefix(p: u32) -> Weight {
8284
(0 as Weight)
83-
// Standard Error: 9_000
84-
.saturating_add((1_527_000 as Weight).saturating_mul(p as Weight))
85+
// Standard Error: 11_000
86+
.saturating_add((2_239_000 as Weight).saturating_mul(p as Weight))
8587
.saturating_add(T::DbWeight::get().writes((1 as Weight).saturating_mul(p as Weight)))
8688
}
8789
}

runtime/common/src/weights/orml_currencies.rs

Lines changed: 21 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
//! Autogenerated weights for orml_currencies
1919
//!
2020
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
21-
//! DATE: 2022-10-17, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]`
21+
//! DATE: 2022-11-25, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]`
2222
//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 1024
2323
2424
// Executed Command:
@@ -45,37 +45,42 @@ use frame_support::{traits::Get, weights::Weight};
4545
/// Weight functions for orml_currencies (automatically generated)
4646
pub struct WeightInfo<T>(PhantomData<T>);
4747
impl<T: frame_system::Config> orml_currencies::WeightInfo for WeightInfo<T> {
48+
// Storage: unknown [0x3a7472616e73616374696f6e5f6c6576656c3a] (r:1 w:1)
4849
// Storage: Tokens Accounts (r:2 w:2)
4950
// Storage: System Account (r:1 w:1)
5051
fn transfer_non_native_currency() -> Weight {
51-
(54_850_000 as Weight)
52-
.saturating_add(T::DbWeight::get().reads(3 as Weight))
53-
.saturating_add(T::DbWeight::get().writes(3 as Weight))
52+
(67_910_000 as Weight)
53+
.saturating_add(T::DbWeight::get().reads(4 as Weight))
54+
.saturating_add(T::DbWeight::get().writes(4 as Weight))
5455
}
56+
// Storage: unknown [0x3a7472616e73616374696f6e5f6c6576656c3a] (r:1 w:1)
5557
// Storage: System Account (r:1 w:1)
5658
fn transfer_native_currency() -> Weight {
57-
(53_590_000 as Weight)
58-
.saturating_add(T::DbWeight::get().reads(1 as Weight))
59-
.saturating_add(T::DbWeight::get().writes(1 as Weight))
59+
(65_590_000 as Weight)
60+
.saturating_add(T::DbWeight::get().reads(2 as Weight))
61+
.saturating_add(T::DbWeight::get().writes(2 as Weight))
6062
}
63+
// Storage: unknown [0x3a7472616e73616374696f6e5f6c6576656c3a] (r:1 w:1)
6164
// Storage: Tokens Accounts (r:1 w:1)
6265
// Storage: Tokens TotalIssuance (r:1 w:1)
6366
// Storage: System Account (r:1 w:1)
6467
fn update_balance_non_native_currency() -> Weight {
65-
(50_330_000 as Weight)
66-
.saturating_add(T::DbWeight::get().reads(3 as Weight))
67-
.saturating_add(T::DbWeight::get().writes(3 as Weight))
68+
(54_870_000 as Weight)
69+
.saturating_add(T::DbWeight::get().reads(4 as Weight))
70+
.saturating_add(T::DbWeight::get().writes(4 as Weight))
6871
}
72+
// Storage: unknown [0x3a7472616e73616374696f6e5f6c6576656c3a] (r:1 w:1)
6973
// Storage: System Account (r:1 w:1)
7074
fn update_balance_native_currency_creating() -> Weight {
71-
(35_080_000 as Weight)
72-
.saturating_add(T::DbWeight::get().reads(1 as Weight))
73-
.saturating_add(T::DbWeight::get().writes(1 as Weight))
75+
(52_580_000 as Weight)
76+
.saturating_add(T::DbWeight::get().reads(2 as Weight))
77+
.saturating_add(T::DbWeight::get().writes(2 as Weight))
7478
}
79+
// Storage: unknown [0x3a7472616e73616374696f6e5f6c6576656c3a] (r:1 w:1)
7580
// Storage: System Account (r:1 w:1)
7681
fn update_balance_native_currency_killing() -> Weight {
77-
(31_430_000 as Weight)
78-
.saturating_add(T::DbWeight::get().reads(1 as Weight))
79-
.saturating_add(T::DbWeight::get().writes(1 as Weight))
82+
(51_960_000 as Weight)
83+
.saturating_add(T::DbWeight::get().reads(2 as Weight))
84+
.saturating_add(T::DbWeight::get().writes(2 as Weight))
8085
}
8186
}

runtime/common/src/weights/orml_tokens.rs

Lines changed: 21 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
//! Autogenerated weights for orml_tokens
1919
//!
2020
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
21-
//! DATE: 2022-10-17, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]`
21+
//! DATE: 2022-11-25, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]`
2222
//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 1024
2323
2424
// Executed Command:
@@ -45,40 +45,45 @@ use frame_support::{traits::Get, weights::Weight};
4545
/// Weight functions for orml_tokens (automatically generated)
4646
pub struct WeightInfo<T>(PhantomData<T>);
4747
impl<T: frame_system::Config> orml_tokens::WeightInfo for WeightInfo<T> {
48+
// Storage: unknown [0x3a7472616e73616374696f6e5f6c6576656c3a] (r:1 w:1)
4849
// Storage: Tokens Accounts (r:2 w:2)
4950
// Storage: System Account (r:1 w:1)
5051
fn transfer() -> Weight {
51-
(47_920_000 as Weight)
52-
.saturating_add(T::DbWeight::get().reads(3 as Weight))
53-
.saturating_add(T::DbWeight::get().writes(3 as Weight))
52+
(67_361_000 as Weight)
53+
.saturating_add(T::DbWeight::get().reads(4 as Weight))
54+
.saturating_add(T::DbWeight::get().writes(4 as Weight))
5455
}
56+
// Storage: unknown [0x3a7472616e73616374696f6e5f6c6576656c3a] (r:1 w:1)
5557
// Storage: Tokens Accounts (r:2 w:2)
5658
// Storage: System Account (r:1 w:1)
5759
fn transfer_all() -> Weight {
58-
(58_860_000 as Weight)
59-
.saturating_add(T::DbWeight::get().reads(3 as Weight))
60-
.saturating_add(T::DbWeight::get().writes(3 as Weight))
60+
(79_580_000 as Weight)
61+
.saturating_add(T::DbWeight::get().reads(4 as Weight))
62+
.saturating_add(T::DbWeight::get().writes(4 as Weight))
6163
}
64+
// Storage: unknown [0x3a7472616e73616374696f6e5f6c6576656c3a] (r:1 w:1)
6265
// Storage: Tokens Accounts (r:2 w:2)
6366
// Storage: System Account (r:1 w:1)
6467
fn transfer_keep_alive() -> Weight {
65-
(51_660_000 as Weight)
66-
.saturating_add(T::DbWeight::get().reads(3 as Weight))
67-
.saturating_add(T::DbWeight::get().writes(3 as Weight))
68+
(68_240_000 as Weight)
69+
.saturating_add(T::DbWeight::get().reads(4 as Weight))
70+
.saturating_add(T::DbWeight::get().writes(4 as Weight))
6871
}
72+
// Storage: unknown [0x3a7472616e73616374696f6e5f6c6576656c3a] (r:1 w:1)
6973
// Storage: Tokens Accounts (r:2 w:2)
7074
// Storage: System Account (r:2 w:1)
7175
fn force_transfer() -> Weight {
72-
(57_860_000 as Weight)
73-
.saturating_add(T::DbWeight::get().reads(4 as Weight))
74-
.saturating_add(T::DbWeight::get().writes(3 as Weight))
76+
(74_910_000 as Weight)
77+
.saturating_add(T::DbWeight::get().reads(5 as Weight))
78+
.saturating_add(T::DbWeight::get().writes(4 as Weight))
7579
}
80+
// Storage: unknown [0x3a7472616e73616374696f6e5f6c6576656c3a] (r:1 w:1)
7681
// Storage: Tokens Accounts (r:1 w:1)
7782
// Storage: Tokens TotalIssuance (r:1 w:1)
7883
// Storage: System Account (r:1 w:1)
7984
fn set_balance() -> Weight {
80-
(41_780_000 as Weight)
81-
.saturating_add(T::DbWeight::get().reads(3 as Weight))
82-
.saturating_add(T::DbWeight::get().writes(3 as Weight))
85+
(58_480_000 as Weight)
86+
.saturating_add(T::DbWeight::get().reads(4 as Weight))
87+
.saturating_add(T::DbWeight::get().writes(4 as Weight))
8388
}
8489
}

runtime/common/src/weights/pallet_author_mapping.rs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
//! Autogenerated weights for pallet_author_mapping
1919
//!
2020
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
21-
//! DATE: 2022-10-20, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]`
21+
//! DATE: 2022-11-25, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]`
2222
//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 1024
2323
2424
// Executed Command:
@@ -52,37 +52,37 @@ impl<T: frame_system::Config> pallet_author_mapping::weights::WeightInfo for Wei
5252
// Storage: System Account (r:1 w:1)
5353
// Storage: AuthorMapping NimbusLookup (r:0 w:1)
5454
fn add_association() -> Weight {
55-
(48_320_000 as Weight)
55+
(51_350_000 as Weight)
5656
.saturating_add(T::DbWeight::get().reads(2 as Weight))
5757
.saturating_add(T::DbWeight::get().writes(3 as Weight))
5858
}
5959
// Storage: AuthorMapping MappingWithDeposit (r:2 w:2)
6060
// Storage: AuthorMapping NimbusLookup (r:0 w:1)
6161
fn update_association() -> Weight {
62-
(39_490_000 as Weight)
62+
(43_640_000 as Weight)
6363
.saturating_add(T::DbWeight::get().reads(2 as Weight))
6464
.saturating_add(T::DbWeight::get().writes(3 as Weight))
6565
}
6666
// Storage: AuthorMapping MappingWithDeposit (r:1 w:1)
6767
// Storage: System Account (r:1 w:1)
6868
// Storage: AuthorMapping NimbusLookup (r:0 w:1)
6969
fn clear_association() -> Weight {
70-
(50_410_000 as Weight)
70+
(53_600_000 as Weight)
7171
.saturating_add(T::DbWeight::get().reads(2 as Weight))
7272
.saturating_add(T::DbWeight::get().writes(3 as Weight))
7373
}
7474
// Storage: AuthorMapping NimbusLookup (r:1 w:1)
7575
// Storage: AuthorMapping MappingWithDeposit (r:1 w:1)
7676
// Storage: System Account (r:1 w:1)
7777
fn remove_keys() -> Weight {
78-
(48_640_000 as Weight)
78+
(59_700_000 as Weight)
7979
.saturating_add(T::DbWeight::get().reads(3 as Weight))
8080
.saturating_add(T::DbWeight::get().writes(3 as Weight))
8181
}
8282
// Storage: AuthorMapping NimbusLookup (r:1 w:1)
8383
// Storage: AuthorMapping MappingWithDeposit (r:2 w:2)
8484
fn set_keys() -> Weight {
85-
(47_160_000 as Weight)
85+
(49_860_000 as Weight)
8686
.saturating_add(T::DbWeight::get().reads(3 as Weight))
8787
.saturating_add(T::DbWeight::get().writes(3 as Weight))
8888
}

runtime/common/src/weights/pallet_author_slot_filter.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
//! Autogenerated weights for pallet_author_slot_filter
1919
//!
2020
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
21-
//! DATE: 2022-10-20, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]`
21+
//! DATE: 2022-11-25, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]`
2222
//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 1024
2323
2424
// Executed Command:
@@ -50,6 +50,6 @@ pub struct WeightInfo<T>(PhantomData<T>);
5050
impl<T: frame_system::Config> pallet_author_slot_filter::weights::WeightInfo for WeightInfo<T> {
5151
// Storage: AuthorFilter EligibleCount (r:0 w:1)
5252
fn set_eligible() -> Weight {
53-
(18_280_000 as Weight).saturating_add(T::DbWeight::get().writes(1 as Weight))
53+
(25_110_000 as Weight).saturating_add(T::DbWeight::get().writes(1 as Weight))
5454
}
5555
}

runtime/common/src/weights/pallet_balances.rs

Lines changed: 8 additions & 8 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 4.0.0-dev
21-
//! DATE: 2022-10-17, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]`
21+
//! DATE: 2022-11-25, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]`
2222
//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 1024
2323
2424
// Executed Command:
@@ -50,43 +50,43 @@ pub struct WeightInfo<T>(PhantomData<T>);
5050
impl<T: frame_system::Config> pallet_balances::weights::WeightInfo for WeightInfo<T> {
5151
// Storage: System Account (r:1 w:1)
5252
fn transfer() -> Weight {
53-
(72_810_000 as Weight)
53+
(73_560_000 as Weight)
5454
.saturating_add(T::DbWeight::get().reads(1 as Weight))
5555
.saturating_add(T::DbWeight::get().writes(1 as Weight))
5656
}
5757
// Storage: System Account (r:1 w:1)
5858
fn transfer_keep_alive() -> Weight {
59-
(49_010_000 as Weight)
59+
(56_010_000 as Weight)
6060
.saturating_add(T::DbWeight::get().reads(1 as Weight))
6161
.saturating_add(T::DbWeight::get().writes(1 as Weight))
6262
}
6363
// Storage: System Account (r:1 w:1)
6464
fn set_balance_creating() -> Weight {
65-
(29_530_000 as Weight)
65+
(37_611_000 as Weight)
6666
.saturating_add(T::DbWeight::get().reads(1 as Weight))
6767
.saturating_add(T::DbWeight::get().writes(1 as Weight))
6868
}
6969
// Storage: System Account (r:1 w:1)
7070
fn set_balance_killing() -> Weight {
71-
(40_450_000 as Weight)
71+
(42_260_000 as Weight)
7272
.saturating_add(T::DbWeight::get().reads(1 as Weight))
7373
.saturating_add(T::DbWeight::get().writes(1 as Weight))
7474
}
7575
// Storage: System Account (r:2 w:2)
7676
fn force_transfer() -> Weight {
77-
(71_940_000 as Weight)
77+
(74_041_000 as Weight)
7878
.saturating_add(T::DbWeight::get().reads(2 as Weight))
7979
.saturating_add(T::DbWeight::get().writes(2 as Weight))
8080
}
8181
// Storage: System Account (r:1 w:1)
8282
fn transfer_all() -> Weight {
83-
(53_580_000 as Weight)
83+
(66_100_000 as Weight)
8484
.saturating_add(T::DbWeight::get().reads(1 as Weight))
8585
.saturating_add(T::DbWeight::get().writes(1 as Weight))
8686
}
8787
// Storage: System Account (r:1 w:1)
8888
fn force_unreserve() -> Weight {
89-
(26_040_000 as Weight)
89+
(34_060_000 as Weight)
9090
.saturating_add(T::DbWeight::get().reads(1 as Weight))
9191
.saturating_add(T::DbWeight::get().writes(1 as Weight))
9292
}

0 commit comments

Comments
 (0)