Skip to content

Commit

Permalink
Update weights (#841)
Browse files Browse the repository at this point in the history
* Use fixed pallet-parachain-staking benchmarks

* Update Cargo.lock

* Disable author-inherent benchmark in script

* Update all weights
  • Loading branch information
sea212 authored Oct 21, 2022
1 parent 5033991 commit 8c6395f
Show file tree
Hide file tree
Showing 30 changed files with 885 additions and 943 deletions.
10 changes: 5 additions & 5 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,9 @@ pallet-crowdloan-rewards = { git = "https://github.com/zeitgeistpm/crowdloan-rew
moonbeam-vrf = { git = "https://github.com/zeitgeistpm/moonbeam", branch = "v0.25.0-paritytech" }
# Fix author-mapping migration
pallet-author-mapping = { git = "https://github.com/zeitgeistpm/moonbeam", branch = "v0.25.0-paritytech" }
# Fix benchmark verification logic
# See https://github.com/zeitgeistpm/moonbeam/commit/42fdf1a90294c49ddbf8d0204ef002b2914a886f
pallet-parachain-staking = { git = "https://github.com/zeitgeistpm/moonbeam", branch = "v0.25.0-paritytech" }
# Use dependencies from Paritytech
session-keys-primitives = { git = "https://github.com/zeitgeistpm/moonbeam", branch = "v0.25.0-paritytech" }

Expand Down
8 changes: 4 additions & 4 deletions runtime/common/src/weights/cumulus_pallet_xcmp_queue.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,11 @@
//! Autogenerated weights for cumulus_pallet_xcmp_queue
//!
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
//! DATE: 2022-08-13, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]`
//! DATE: 2022-10-18, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]`
//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 1024
// Executed Command:
// ./target/release/zeitgeist
// ./target/production/zeitgeist
// benchmark
// pallet
// --chain=dev
Expand Down Expand Up @@ -50,13 +50,13 @@ pub struct WeightInfo<T>(PhantomData<T>);
impl<T: frame_system::Config> cumulus_pallet_xcmp_queue::weights::WeightInfo for WeightInfo<T> {
// Storage: XcmpQueue QueueConfig (r:1 w:1)
fn set_config_with_u32() -> Weight {
(8_550_000 as Weight)
(9_580_000 as Weight)
.saturating_add(T::DbWeight::get().reads(1 as Weight))
.saturating_add(T::DbWeight::get().writes(1 as Weight))
}
// Storage: XcmpQueue QueueConfig (r:1 w:1)
fn set_config_with_weight() -> Weight {
(8_140_000 as Weight)
(7_000_000 as Weight)
.saturating_add(T::DbWeight::get().reads(1 as Weight))
.saturating_add(T::DbWeight::get().writes(1 as Weight))
}
Expand Down
18 changes: 9 additions & 9 deletions runtime/common/src/weights/frame_system.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,11 @@
//! Autogenerated weights for frame_system
//!
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
//! DATE: 2022-08-13, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]`
//! DATE: 2022-10-17, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]`
//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 1024
// Executed Command:
// ./target/release/zeitgeist
// ./target/production/zeitgeist
// benchmark
// pallet
// --chain=dev
Expand Down Expand Up @@ -59,29 +59,29 @@ impl<T: frame_system::Config> frame_system::weights::WeightInfo for WeightInfo<T
// Storage: System Digest (r:1 w:1)
// Storage: unknown [0x3a686561707061676573] (r:0 w:1)
fn set_heap_pages() -> Weight {
(8_210_000 as Weight)
(4_430_000 as Weight)
.saturating_add(T::DbWeight::get().reads(1 as Weight))
.saturating_add(T::DbWeight::get().writes(2 as Weight))
}
// Storage: Skipped Metadata (r:0 w:0)
fn set_storage(i: u32) -> Weight {
(0 as Weight)
// Standard Error: 12_000
.saturating_add((1_307_000 as Weight).saturating_mul(i as Weight))
// Standard Error: 6_000
.saturating_add((802_000 as Weight).saturating_mul(i as Weight))
.saturating_add(T::DbWeight::get().writes((1 as Weight).saturating_mul(i as Weight)))
}
// Storage: Skipped Metadata (r:0 w:0)
fn kill_storage(i: u32) -> Weight {
(0 as Weight)
// Standard Error: 8_000
.saturating_add((885_000 as Weight).saturating_mul(i as Weight))
// Standard Error: 5_000
.saturating_add((644_000 as Weight).saturating_mul(i as Weight))
.saturating_add(T::DbWeight::get().writes((1 as Weight).saturating_mul(i as Weight)))
}
// Storage: Skipped Metadata (r:0 w:0)
fn kill_prefix(p: u32) -> Weight {
(0 as Weight)
// Standard Error: 13_000
.saturating_add((1_809_000 as Weight).saturating_mul(p as Weight))
// Standard Error: 9_000
.saturating_add((1_527_000 as Weight).saturating_mul(p as Weight))
.saturating_add(T::DbWeight::get().writes((1 as Weight).saturating_mul(p as Weight)))
}
}
14 changes: 7 additions & 7 deletions runtime/common/src/weights/orml_currencies.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,11 @@
//! Autogenerated weights for orml_currencies
//!
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
//! DATE: 2022-08-13, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]`
//! DATE: 2022-10-17, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]`
//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 1024
// Executed Command:
// ./target/release/zeitgeist
// ./target/production/zeitgeist
// benchmark
// pallet
// --chain=dev
Expand All @@ -48,33 +48,33 @@ impl<T: frame_system::Config> orml_currencies::WeightInfo for WeightInfo<T> {
// Storage: Tokens Accounts (r:2 w:2)
// Storage: System Account (r:1 w:1)
fn transfer_non_native_currency() -> Weight {
(105_530_000 as Weight)
(54_850_000 as Weight)
.saturating_add(T::DbWeight::get().reads(3 as Weight))
.saturating_add(T::DbWeight::get().writes(3 as Weight))
}
// Storage: System Account (r:1 w:1)
fn transfer_native_currency() -> Weight {
(89_480_000 as Weight)
(53_590_000 as Weight)
.saturating_add(T::DbWeight::get().reads(1 as Weight))
.saturating_add(T::DbWeight::get().writes(1 as Weight))
}
// Storage: Tokens Accounts (r:1 w:1)
// Storage: Tokens TotalIssuance (r:1 w:1)
// Storage: System Account (r:1 w:1)
fn update_balance_non_native_currency() -> Weight {
(80_420_000 as Weight)
(50_330_000 as Weight)
.saturating_add(T::DbWeight::get().reads(3 as Weight))
.saturating_add(T::DbWeight::get().writes(3 as Weight))
}
// Storage: System Account (r:1 w:1)
fn update_balance_native_currency_creating() -> Weight {
(67_780_000 as Weight)
(35_080_000 as Weight)
.saturating_add(T::DbWeight::get().reads(1 as Weight))
.saturating_add(T::DbWeight::get().writes(1 as Weight))
}
// Storage: System Account (r:1 w:1)
fn update_balance_native_currency_killing() -> Weight {
(60_090_000 as Weight)
(31_430_000 as Weight)
.saturating_add(T::DbWeight::get().reads(1 as Weight))
.saturating_add(T::DbWeight::get().writes(1 as Weight))
}
Expand Down
14 changes: 7 additions & 7 deletions runtime/common/src/weights/orml_tokens.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,11 @@
//! Autogenerated weights for orml_tokens
//!
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
//! DATE: 2022-08-13, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]`
//! DATE: 2022-10-17, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]`
//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 1024
// Executed Command:
// ./target/release/zeitgeist
// ./target/production/zeitgeist
// benchmark
// pallet
// --chain=dev
Expand All @@ -48,36 +48,36 @@ impl<T: frame_system::Config> orml_tokens::WeightInfo for WeightInfo<T> {
// Storage: Tokens Accounts (r:2 w:2)
// Storage: System Account (r:1 w:1)
fn transfer() -> Weight {
(103_220_000 as Weight)
(47_920_000 as Weight)
.saturating_add(T::DbWeight::get().reads(3 as Weight))
.saturating_add(T::DbWeight::get().writes(3 as Weight))
}
// Storage: Tokens Accounts (r:2 w:2)
// Storage: System Account (r:1 w:1)
fn transfer_all() -> Weight {
(111_550_000 as Weight)
(58_860_000 as Weight)
.saturating_add(T::DbWeight::get().reads(3 as Weight))
.saturating_add(T::DbWeight::get().writes(3 as Weight))
}
// Storage: Tokens Accounts (r:2 w:2)
// Storage: System Account (r:1 w:1)
fn transfer_keep_alive() -> Weight {
(94_580_000 as Weight)
(51_660_000 as Weight)
.saturating_add(T::DbWeight::get().reads(3 as Weight))
.saturating_add(T::DbWeight::get().writes(3 as Weight))
}
// Storage: Tokens Accounts (r:2 w:2)
// Storage: System Account (r:2 w:1)
fn force_transfer() -> Weight {
(104_320_000 as Weight)
(57_860_000 as Weight)
.saturating_add(T::DbWeight::get().reads(4 as Weight))
.saturating_add(T::DbWeight::get().writes(3 as Weight))
}
// Storage: Tokens Accounts (r:1 w:1)
// Storage: Tokens TotalIssuance (r:1 w:1)
// Storage: System Account (r:1 w:1)
fn set_balance() -> Weight {
(78_141_000 as Weight)
(41_780_000 as Weight)
.saturating_add(T::DbWeight::get().reads(3 as Weight))
.saturating_add(T::DbWeight::get().writes(3 as Weight))
}
Expand Down
25 changes: 13 additions & 12 deletions runtime/common/src/weights/pallet_author_mapping.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,11 @@
//! Autogenerated weights for pallet_author_mapping
//!
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
//! DATE: 2022-08-13, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]`
//! DATE: 2022-10-20, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]`
//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 1024
// Executed Command:
// ./target/release/zeitgeist
// ./target/production/zeitgeist
// benchmark
// pallet
// --chain=dev
Expand Down Expand Up @@ -50,38 +50,39 @@ pub struct WeightInfo<T>(PhantomData<T>);
impl<T: frame_system::Config> pallet_author_mapping::weights::WeightInfo for WeightInfo<T> {
// Storage: AuthorMapping MappingWithDeposit (r:1 w:1)
// Storage: System Account (r:1 w:1)
// Storage: AuthorMapping NimbusLookup (r:0 w:1)
fn add_association() -> Weight {
(59_290_000 as Weight)
(48_320_000 as Weight)
.saturating_add(T::DbWeight::get().reads(2 as Weight))
.saturating_add(T::DbWeight::get().writes(2 as Weight))
.saturating_add(T::DbWeight::get().writes(3 as Weight))
}
// Storage: AuthorMapping MappingWithDeposit (r:2 w:2)
// Storage: AuthorMapping NimbusLookup (r:0 w:1)
fn update_association() -> Weight {
(44_960_000 as Weight)
(39_490_000 as Weight)
.saturating_add(T::DbWeight::get().reads(2 as Weight))
.saturating_add(T::DbWeight::get().writes(2 as Weight))
.saturating_add(T::DbWeight::get().writes(3 as Weight))
}
// Storage: AuthorMapping MappingWithDeposit (r:1 w:1)
// Storage: System Account (r:1 w:1)
// Storage: AuthorMapping NimbusLookup (r:0 w:1)
fn clear_association() -> Weight {
(53_660_000 as Weight)
(50_410_000 as Weight)
.saturating_add(T::DbWeight::get().reads(2 as Weight))
.saturating_add(T::DbWeight::get().writes(2 as Weight))
.saturating_add(T::DbWeight::get().writes(3 as Weight))
}
// Storage: AuthorMapping NimbusLookup (r:1 w:1)
// Storage: AuthorMapping MappingWithDeposit (r:1 w:1)
// Storage: System Account (r:1 w:1)
#[rustfmt::skip]
fn remove_keys() -> Weight {
(41_773_000 as Weight)
(48_640_000 as Weight)
.saturating_add(T::DbWeight::get().reads(3 as Weight))
.saturating_add(T::DbWeight::get().writes(3 as Weight))
}
// Storage: AuthorMapping NimbusLookup (r:1 w:1)
// Storage: AuthorMapping MappingWithDeposit (r:2 w:2)
#[rustfmt::skip]
fn set_keys() -> Weight {
(32_010_000 as Weight)
(47_160_000 as Weight)
.saturating_add(T::DbWeight::get().reads(3 as Weight))
.saturating_add(T::DbWeight::get().writes(3 as Weight))
}
Expand Down
6 changes: 3 additions & 3 deletions runtime/common/src/weights/pallet_author_slot_filter.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,11 @@
//! Autogenerated weights for pallet_author_slot_filter
//!
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
//! DATE: 2022-08-13, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]`
//! DATE: 2022-10-20, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]`
//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 1024
// Executed Command:
// ./target/release/zeitgeist
// ./target/production/zeitgeist
// benchmark
// pallet
// --chain=dev
Expand Down Expand Up @@ -50,6 +50,6 @@ pub struct WeightInfo<T>(PhantomData<T>);
impl<T: frame_system::Config> pallet_author_slot_filter::weights::WeightInfo for WeightInfo<T> {
// Storage: AuthorFilter EligibleCount (r:0 w:1)
fn set_eligible() -> Weight {
(23_880_000 as Weight).saturating_add(T::DbWeight::get().writes(1 as Weight))
(18_280_000 as Weight).saturating_add(T::DbWeight::get().writes(1 as Weight))
}
}
18 changes: 9 additions & 9 deletions runtime/common/src/weights/pallet_balances.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,11 @@
//! Autogenerated weights for pallet_balances
//!
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
//! DATE: 2022-08-13, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]`
//! DATE: 2022-10-17, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]`
//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 1024
// Executed Command:
// ./target/release/zeitgeist
// ./target/production/zeitgeist
// benchmark
// pallet
// --chain=dev
Expand Down Expand Up @@ -50,43 +50,43 @@ pub struct WeightInfo<T>(PhantomData<T>);
impl<T: frame_system::Config> pallet_balances::weights::WeightInfo for WeightInfo<T> {
// Storage: System Account (r:1 w:1)
fn transfer() -> Weight {
(99_320_000 as Weight)
(72_810_000 as Weight)
.saturating_add(T::DbWeight::get().reads(1 as Weight))
.saturating_add(T::DbWeight::get().writes(1 as Weight))
}
// Storage: System Account (r:1 w:1)
fn transfer_keep_alive() -> Weight {
(85_561_000 as Weight)
(49_010_000 as Weight)
.saturating_add(T::DbWeight::get().reads(1 as Weight))
.saturating_add(T::DbWeight::get().writes(1 as Weight))
}
// Storage: System Account (r:1 w:1)
fn set_balance_creating() -> Weight {
(53_110_000 as Weight)
(29_530_000 as Weight)
.saturating_add(T::DbWeight::get().reads(1 as Weight))
.saturating_add(T::DbWeight::get().writes(1 as Weight))
}
// Storage: System Account (r:1 w:1)
fn set_balance_killing() -> Weight {
(61_430_000 as Weight)
(40_450_000 as Weight)
.saturating_add(T::DbWeight::get().reads(1 as Weight))
.saturating_add(T::DbWeight::get().writes(1 as Weight))
}
// Storage: System Account (r:2 w:2)
fn force_transfer() -> Weight {
(96_530_000 as Weight)
(71_940_000 as Weight)
.saturating_add(T::DbWeight::get().reads(2 as Weight))
.saturating_add(T::DbWeight::get().writes(2 as Weight))
}
// Storage: System Account (r:1 w:1)
fn transfer_all() -> Weight {
(104_840_000 as Weight)
(53_580_000 as Weight)
.saturating_add(T::DbWeight::get().reads(1 as Weight))
.saturating_add(T::DbWeight::get().writes(1 as Weight))
}
// Storage: System Account (r:1 w:1)
fn force_unreserve() -> Weight {
(40_521_000 as Weight)
(26_040_000 as Weight)
.saturating_add(T::DbWeight::get().reads(1 as Weight))
.saturating_add(T::DbWeight::get().writes(1 as Weight))
}
Expand Down
Loading

0 comments on commit 8c6395f

Please sign in to comment.