Skip to content

Commit

Permalink
Update weights for dolphin
Browse files Browse the repository at this point in the history
Signed-off-by: Dengjianping <[email protected]>
  • Loading branch information
Dengjianping committed Jun 8, 2022
1 parent 03d0a1b commit 294d10b
Show file tree
Hide file tree
Showing 18 changed files with 580 additions and 582 deletions.
14 changes: 7 additions & 7 deletions runtime/dolphin/src/weights/cumulus_pallet_xcmp_queue.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,13 @@
//! Autogenerated weights for cumulus_pallet_xcmp_queue
//!
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
//! DATE: 2022-06-06, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]`
//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("calamari-dev"), DB CACHE: 1024
//! DATE: 2022-06-07, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]`
//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("dolphin-dev"), DB CACHE: 1024
// Executed Command:
// manta
// benchmark
// --chain=calamari-dev
// --chain=dolphin-dev
// --pallet=cumulus_pallet_xcmp_queue
// --extrinsic=*
// --execution=Wasm
Expand Down Expand Up @@ -52,13 +52,13 @@ pub struct SubstrateWeight<T>(PhantomData<T>);
impl<T: frame_system::Config> cumulus_pallet_xcmp_queue::WeightInfo for SubstrateWeight<T> {
// Storage: XcmpQueue QueueConfig (r:1 w:1)
fn set_config_with_u32() -> Weight {
(6_354_000 as Weight)
(3_155_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 {
(4_226_000 as Weight)
(3_231_000 as Weight)
.saturating_add(T::DbWeight::get().reads(1 as Weight))
.saturating_add(T::DbWeight::get().writes(1 as Weight))
}
Expand All @@ -68,13 +68,13 @@ impl<T: frame_system::Config> cumulus_pallet_xcmp_queue::WeightInfo for Substrat
impl WeightInfo for () {
// Storage: XcmpQueue QueueConfig (r:1 w:1)
fn set_config_with_u32() -> Weight {
(6_354_000 as Weight)
(3_155_000 as Weight)
.saturating_add(RocksDbWeight::get().reads(1 as Weight))
.saturating_add(RocksDbWeight::get().writes(1 as Weight))
}
// Storage: XcmpQueue QueueConfig (r:1 w:1)
fn set_config_with_weight() -> Weight {
(4_226_000 as Weight)
(3_231_000 as Weight)
.saturating_add(RocksDbWeight::get().reads(1 as Weight))
.saturating_add(RocksDbWeight::get().writes(1 as Weight))
}
Expand Down
40 changes: 18 additions & 22 deletions runtime/dolphin/src/weights/frame_system.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
//! Autogenerated weights for frame_system
//!
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
//! DATE: 2022-04-18, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]`
//! DATE: 2022-06-07, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]`
//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("dolphin-dev"), DB CACHE: 1024
// Executed Command:
Expand Down Expand Up @@ -54,84 +54,80 @@ pub trait WeightInfo {
/// Weights for frame_system using the Substrate node and recommended hardware.
pub struct SubstrateWeight<T>(PhantomData<T>);
impl<T: frame_system::Config> frame_system::WeightInfo for SubstrateWeight<T> {
fn remark(b: u32, ) -> Weight {
(8_427_000 as Weight)
// Standard Error: 0
.saturating_add((1_000 as Weight).saturating_mul(b as Weight))
fn remark(_b: u32, ) -> Weight {
(1_672_000 as Weight)
}
fn remark_with_event(b: u32, ) -> Weight {
(16_495_000 as Weight)
(0 as Weight)
// Standard Error: 0
.saturating_add((2_000 as Weight).saturating_mul(b as Weight))
}
// Storage: System Digest (r:1 w:1)
// Storage: unknown [0x3a686561707061676573] (r:0 w:1)
fn set_heap_pages() -> Weight {
(3_101_000 as Weight)
(2_834_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: 0
.saturating_add((505_000 as Weight).saturating_mul(i as Weight))
.saturating_add((493_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 {
(2_180_000 as Weight)
(1_098_000 as Weight)
// Standard Error: 0
.saturating_add((350_000 as Weight).saturating_mul(i as Weight))
.saturating_add((351_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: 1_000
.saturating_add((810_000 as Weight).saturating_mul(p as Weight))
.saturating_add((822_000 as Weight).saturating_mul(p as Weight))
.saturating_add(T::DbWeight::get().writes((1 as Weight).saturating_mul(p as Weight)))
}
}

// For backwards compatibility and tests
impl WeightInfo for () {
fn remark(b: u32, ) -> Weight {
(8_427_000 as Weight)
// Standard Error: 0
.saturating_add((1_000 as Weight).saturating_mul(b as Weight))
fn remark(_b: u32, ) -> Weight {
(1_672_000 as Weight)
}
fn remark_with_event(b: u32, ) -> Weight {
(16_495_000 as Weight)
(0 as Weight)
// Standard Error: 0
.saturating_add((2_000 as Weight).saturating_mul(b as Weight))
}
// Storage: System Digest (r:1 w:1)
// Storage: unknown [0x3a686561707061676573] (r:0 w:1)
fn set_heap_pages() -> Weight {
(3_101_000 as Weight)
(2_834_000 as Weight)
.saturating_add(RocksDbWeight::get().reads(1 as Weight))
.saturating_add(RocksDbWeight::get().writes(2 as Weight))
}
// Storage: Skipped Metadata (r:0 w:0)
fn set_storage(i: u32, ) -> Weight {
(0 as Weight)
// Standard Error: 0
.saturating_add((505_000 as Weight).saturating_mul(i as Weight))
.saturating_add((493_000 as Weight).saturating_mul(i as Weight))
.saturating_add(RocksDbWeight::get().writes((1 as Weight).saturating_mul(i as Weight)))
}
// Storage: Skipped Metadata (r:0 w:0)
fn kill_storage(i: u32, ) -> Weight {
(2_180_000 as Weight)
(1_098_000 as Weight)
// Standard Error: 0
.saturating_add((350_000 as Weight).saturating_mul(i as Weight))
.saturating_add((351_000 as Weight).saturating_mul(i as Weight))
.saturating_add(RocksDbWeight::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: 1_000
.saturating_add((810_000 as Weight).saturating_mul(p as Weight))
.saturating_add((822_000 as Weight).saturating_mul(p as Weight))
.saturating_add(RocksDbWeight::get().writes((1 as Weight).saturating_mul(p as Weight)))
}
}
}
84 changes: 42 additions & 42 deletions runtime/dolphin/src/weights/manta_collator_selection.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
//! Autogenerated weights for manta_collator_selection
//!
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
//! DATE: 2022-04-18, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]`
//! DATE: 2022-06-07, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]`
//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("dolphin-dev"), DB CACHE: 1024
// Executed Command:
Expand Down Expand Up @@ -61,29 +61,29 @@ pub struct SubstrateWeight<T>(PhantomData<T>);
impl<T: frame_system::Config> manta_collator_selection::WeightInfo for SubstrateWeight<T> {
// Storage: CollatorSelection Invulnerables (r:0 w:1)
fn set_invulnerables(b: u32, ) -> Weight {
(9_956_000 as Weight)
// Standard Error: 17_000
.saturating_add((86_000 as Weight).saturating_mul(b as Weight))
(9_677_000 as Weight)
// Standard Error: 16_000
.saturating_add((99_000 as Weight).saturating_mul(b as Weight))
.saturating_add(T::DbWeight::get().writes(1 as Weight))
}
// Storage: CollatorSelection DesiredCandidates (r:0 w:1)
fn set_desired_candidates() -> Weight {
(11_127_000 as Weight)
(10_756_000 as Weight)
.saturating_add(T::DbWeight::get().writes(1 as Weight))
}
// Storage: CollatorSelection CandidacyBond (r:0 w:1)
fn set_candidacy_bond() -> Weight {
(9_579_000 as Weight)
(9_204_000 as Weight)
.saturating_add(T::DbWeight::get().writes(1 as Weight))
}
// Storage: CollatorSelection EvictionBaseline (r:0 w:1)
fn set_eviction_baseline() -> Weight {
(9_030_000 as Weight)
(8_762_000 as Weight)
.saturating_add(T::DbWeight::get().writes(1 as Weight))
}
// Storage: CollatorSelection EvictionTolerance (r:0 w:1)
fn set_eviction_tolerance() -> Weight {
(9_150_000 as Weight)
(8_900_000 as Weight)
.saturating_add(T::DbWeight::get().writes(1 as Weight))
}
// Storage: CollatorSelection Candidates (r:1 w:1)
Expand All @@ -92,26 +92,26 @@ impl<T: frame_system::Config> manta_collator_selection::WeightInfo for Substrate
// Storage: Session NextKeys (r:1 w:0)
// Storage: CollatorSelection CandidacyBond (r:1 w:0)
fn register_as_candidate(c: u32, ) -> Weight {
(39_170_000 as Weight)
(38_497_000 as Weight)
// Standard Error: 5_000
.saturating_add((357_000 as Weight).saturating_mul(c as Weight))
.saturating_add((298_000 as Weight).saturating_mul(c as Weight))
.saturating_add(T::DbWeight::get().reads(5 as Weight))
.saturating_add(T::DbWeight::get().writes(1 as Weight))
}
// Storage: CollatorSelection Candidates (r:1 w:1)
fn leave_intent(c: u32, ) -> Weight {
(26_854_000 as Weight)
(25_779_000 as Weight)
// Standard Error: 4_000
.saturating_add((304_000 as Weight).saturating_mul(c as Weight))
.saturating_add((270_000 as Weight).saturating_mul(c as Weight))
.saturating_add(T::DbWeight::get().reads(1 as Weight))
.saturating_add(T::DbWeight::get().writes(1 as Weight))
}
// Storage: CollatorSelection Invulnerables (r:1 w:0)
// Storage: CollatorSelection Candidates (r:1 w:1)
fn remove_collator(c: u32, ) -> Weight {
(29_411_000 as Weight)
(28_838_000 as Weight)
// Standard Error: 4_000
.saturating_add((301_000 as Weight).saturating_mul(c as Weight))
.saturating_add((253_000 as Weight).saturating_mul(c as Weight))
.saturating_add(T::DbWeight::get().reads(2 as Weight))
.saturating_add(T::DbWeight::get().writes(1 as Weight))
}
Expand All @@ -121,17 +121,17 @@ impl<T: frame_system::Config> manta_collator_selection::WeightInfo for Substrate
// Storage: Session NextKeys (r:1 w:0)
// Storage: CollatorSelection CandidacyBond (r:1 w:0)
fn register_candidate(c: u32, ) -> Weight {
(39_051_000 as Weight)
// Standard Error: 5_000
.saturating_add((332_000 as Weight).saturating_mul(c as Weight))
(38_419_000 as Weight)
// Standard Error: 6_000
.saturating_add((271_000 as Weight).saturating_mul(c as Weight))
.saturating_add(T::DbWeight::get().reads(5 as Weight))
.saturating_add(T::DbWeight::get().writes(1 as Weight))
}
// Storage: System Account (r:2 w:2)
// Storage: CollatorSelection BlocksPerCollatorThisSession (r:1 w:1)
// Storage: System BlockWeight (r:1 w:1)
fn note_author() -> Weight {
(39_455_000 as Weight)
(37_567_000 as Weight)
.saturating_add(T::DbWeight::get().reads(4 as Weight))
.saturating_add(T::DbWeight::get().writes(4 as Weight))
}
Expand All @@ -144,9 +144,9 @@ impl<T: frame_system::Config> manta_collator_selection::WeightInfo for Substrate
// Storage: Session Validators (r:1 w:0)
// Storage: System Account (r:1 w:1)
fn new_session(c: u32, ) -> Weight {
(0 as Weight)
// Standard Error: 85_000
.saturating_add((27_816_000 as Weight).saturating_mul(c as Weight))
(3_898_000 as Weight)
// Standard Error: 78_000
.saturating_add((25_284_000 as Weight).saturating_mul(c as Weight))
.saturating_add(T::DbWeight::get().reads(6 as Weight))
.saturating_add(T::DbWeight::get().reads((2 as Weight).saturating_mul(c as Weight)))
.saturating_add(T::DbWeight::get().writes(2 as Weight))
Expand All @@ -158,29 +158,29 @@ impl<T: frame_system::Config> manta_collator_selection::WeightInfo for Substrate
impl WeightInfo for () {
// Storage: CollatorSelection Invulnerables (r:0 w:1)
fn set_invulnerables(b: u32, ) -> Weight {
(9_956_000 as Weight)
// Standard Error: 17_000
.saturating_add((86_000 as Weight).saturating_mul(b as Weight))
(9_677_000 as Weight)
// Standard Error: 16_000
.saturating_add((99_000 as Weight).saturating_mul(b as Weight))
.saturating_add(RocksDbWeight::get().writes(1 as Weight))
}
// Storage: CollatorSelection DesiredCandidates (r:0 w:1)
fn set_desired_candidates() -> Weight {
(11_127_000 as Weight)
(10_756_000 as Weight)
.saturating_add(RocksDbWeight::get().writes(1 as Weight))
}
// Storage: CollatorSelection CandidacyBond (r:0 w:1)
fn set_candidacy_bond() -> Weight {
(9_579_000 as Weight)
(9_204_000 as Weight)
.saturating_add(RocksDbWeight::get().writes(1 as Weight))
}
// Storage: CollatorSelection EvictionBaseline (r:0 w:1)
fn set_eviction_baseline() -> Weight {
(9_030_000 as Weight)
(8_762_000 as Weight)
.saturating_add(RocksDbWeight::get().writes(1 as Weight))
}
// Storage: CollatorSelection EvictionTolerance (r:0 w:1)
fn set_eviction_tolerance() -> Weight {
(9_150_000 as Weight)
(8_900_000 as Weight)
.saturating_add(RocksDbWeight::get().writes(1 as Weight))
}
// Storage: CollatorSelection Candidates (r:1 w:1)
Expand All @@ -189,26 +189,26 @@ impl WeightInfo for () {
// Storage: Session NextKeys (r:1 w:0)
// Storage: CollatorSelection CandidacyBond (r:1 w:0)
fn register_as_candidate(c: u32, ) -> Weight {
(39_170_000 as Weight)
(38_497_000 as Weight)
// Standard Error: 5_000
.saturating_add((357_000 as Weight).saturating_mul(c as Weight))
.saturating_add((298_000 as Weight).saturating_mul(c as Weight))
.saturating_add(RocksDbWeight::get().reads(5 as Weight))
.saturating_add(RocksDbWeight::get().writes(1 as Weight))
}
// Storage: CollatorSelection Candidates (r:1 w:1)
fn leave_intent(c: u32, ) -> Weight {
(26_854_000 as Weight)
(25_779_000 as Weight)
// Standard Error: 4_000
.saturating_add((304_000 as Weight).saturating_mul(c as Weight))
.saturating_add((270_000 as Weight).saturating_mul(c as Weight))
.saturating_add(RocksDbWeight::get().reads(1 as Weight))
.saturating_add(RocksDbWeight::get().writes(1 as Weight))
}
// Storage: CollatorSelection Invulnerables (r:1 w:0)
// Storage: CollatorSelection Candidates (r:1 w:1)
fn remove_collator(c: u32, ) -> Weight {
(29_411_000 as Weight)
(28_838_000 as Weight)
// Standard Error: 4_000
.saturating_add((301_000 as Weight).saturating_mul(c as Weight))
.saturating_add((253_000 as Weight).saturating_mul(c as Weight))
.saturating_add(RocksDbWeight::get().reads(2 as Weight))
.saturating_add(RocksDbWeight::get().writes(1 as Weight))
}
Expand All @@ -218,17 +218,17 @@ impl WeightInfo for () {
// Storage: Session NextKeys (r:1 w:0)
// Storage: CollatorSelection CandidacyBond (r:1 w:0)
fn register_candidate(c: u32, ) -> Weight {
(39_051_000 as Weight)
// Standard Error: 5_000
.saturating_add((332_000 as Weight).saturating_mul(c as Weight))
(38_419_000 as Weight)
// Standard Error: 6_000
.saturating_add((271_000 as Weight).saturating_mul(c as Weight))
.saturating_add(RocksDbWeight::get().reads(5 as Weight))
.saturating_add(RocksDbWeight::get().writes(1 as Weight))
}
// Storage: System Account (r:2 w:2)
// Storage: CollatorSelection BlocksPerCollatorThisSession (r:1 w:1)
// Storage: System BlockWeight (r:1 w:1)
fn note_author() -> Weight {
(39_455_000 as Weight)
(37_567_000 as Weight)
.saturating_add(RocksDbWeight::get().reads(4 as Weight))
.saturating_add(RocksDbWeight::get().writes(4 as Weight))
}
Expand All @@ -241,12 +241,12 @@ impl WeightInfo for () {
// Storage: Session Validators (r:1 w:0)
// Storage: System Account (r:1 w:1)
fn new_session(c: u32, ) -> Weight {
(0 as Weight)
// Standard Error: 85_000
.saturating_add((27_816_000 as Weight).saturating_mul(c as Weight))
(3_898_000 as Weight)
// Standard Error: 78_000
.saturating_add((25_284_000 as Weight).saturating_mul(c as Weight))
.saturating_add(RocksDbWeight::get().reads(6 as Weight))
.saturating_add(RocksDbWeight::get().reads((2 as Weight).saturating_mul(c as Weight)))
.saturating_add(RocksDbWeight::get().writes(2 as Weight))
.saturating_add(RocksDbWeight::get().writes((2 as Weight).saturating_mul(c as Weight)))
}
}
}
Loading

0 comments on commit 294d10b

Please sign in to comment.