Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add benchmarks for runtime 2800 #2669

Merged
merged 6 commits into from Feb 22, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
Binary file added primitives/storage-proof/benchmark_proofs
Binary file not shown.
22 changes: 11 additions & 11 deletions runtime/common/src/weights/cumulus_pallet_xcmp_queue.rs
Expand Up @@ -16,13 +16,13 @@
//! Autogenerated weights for `cumulus_pallet_xcmp_queue`
//!
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
//! DATE: 2023-11-01, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
//! DATE: 2024-02-22, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
//! WORST CASE MAP SIZE: `1000000`
//! HOSTNAME: `ip-10-0-0-176`, CPU: `Intel(R) Xeon(R) Platinum 8375C CPU @ 2.90GHz`
//! EXECUTION: None, WASM-EXECUTION: Compiled, CHAIN: Some("moonbase-dev"), DB CACHE: 1024
//! WASM-EXECUTION: `Compiled`, CHAIN: `Some("moonbase-dev")`, DB CACHE: 1024

// Executed Command:
// ./target/release/moonbeam
// ./target/production/moonbeam
// benchmark
// pallet
// --chain=moonbase-dev
Expand All @@ -45,26 +45,26 @@ use core::marker::PhantomData;
/// Weight functions for `cumulus_pallet_xcmp_queue`.
pub struct WeightInfo<T>(PhantomData<T>);
impl<T: frame_system::Config> cumulus_pallet_xcmp_queue::WeightInfo for WeightInfo<T> {
/// Storage: XcmpQueue QueueConfig (r:1 w:1)
/// Proof Skipped: XcmpQueue QueueConfig (max_values: Some(1), max_size: None, mode: Measured)
/// Storage: `XcmpQueue::QueueConfig` (r:1 w:1)
/// Proof: `XcmpQueue::QueueConfig` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
fn set_config_with_u32() -> Weight {
// Proof Size summary in bytes:
// Measured: `142`
// Estimated: `1627`
// Minimum execution time: 3_683_000 picoseconds.
Weight::from_parts(3_779_000, 0)
// Minimum execution time: 4_825_000 picoseconds.
Weight::from_parts(5_093_000, 0)
.saturating_add(Weight::from_parts(0, 1627))
.saturating_add(T::DbWeight::get().reads(1))
.saturating_add(T::DbWeight::get().writes(1))
}
/// Storage: XcmpQueue QueueConfig (r:1 w:1)
/// Proof Skipped: XcmpQueue QueueConfig (max_values: Some(1), max_size: None, mode: Measured)
/// Storage: `XcmpQueue::QueueConfig` (r:1 w:1)
/// Proof: `XcmpQueue::QueueConfig` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
fn set_config_with_weight() -> Weight {
// Proof Size summary in bytes:
// Measured: `142`
// Estimated: `1627`
// Minimum execution time: 3_832_000 picoseconds.
Weight::from_parts(3_976_000, 0)
// Minimum execution time: 4_831_000 picoseconds.
Weight::from_parts(4_988_000, 0)
.saturating_add(Weight::from_parts(0, 1627))
.saturating_add(T::DbWeight::get().reads(1))
.saturating_add(T::DbWeight::get().writes(1))
Expand Down
414 changes: 208 additions & 206 deletions runtime/common/src/weights/pallet_assets.rs

Large diffs are not rendered by default.

42 changes: 21 additions & 21 deletions runtime/common/src/weights/pallet_author_inherent.rs
Expand Up @@ -16,13 +16,13 @@
//! Autogenerated weights for `pallet_author_inherent`
//!
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
//! DATE: 2023-11-01, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
//! DATE: 2024-02-22, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
//! WORST CASE MAP SIZE: `1000000`
//! HOSTNAME: `ip-10-0-0-176`, CPU: `Intel(R) Xeon(R) Platinum 8375C CPU @ 2.90GHz`
//! EXECUTION: None, WASM-EXECUTION: Compiled, CHAIN: Some("moonbase-dev"), DB CACHE: 1024
//! WASM-EXECUTION: `Compiled`, CHAIN: `Some("moonbase-dev")`, DB CACHE: 1024

// Executed Command:
// ./target/release/moonbeam
// ./target/production/moonbeam
// benchmark
// pallet
// --chain=moonbase-dev
Expand All @@ -45,26 +45,26 @@ use core::marker::PhantomData;
/// Weight functions for `pallet_author_inherent`.
pub struct WeightInfo<T>(PhantomData<T>);
impl<T: frame_system::Config> pallet_author_inherent::WeightInfo for WeightInfo<T> {
/// Storage: ParachainSystem ValidationData (r:1 w:0)
/// Proof Skipped: ParachainSystem ValidationData (max_values: Some(1), max_size: None, mode: Measured)
/// Storage: AuthorInherent HighestSlotSeen (r:1 w:1)
/// Proof: AuthorInherent HighestSlotSeen (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)
/// Storage: AuthorInherent Author (r:1 w:0)
/// Proof: AuthorInherent Author (max_values: Some(1), max_size: Some(20), added: 515, mode: MaxEncodedLen)
/// Storage: ParachainStaking SelectedCandidates (r:1 w:0)
/// Proof Skipped: ParachainStaking SelectedCandidates (max_values: Some(1), max_size: None, mode: Measured)
/// Storage: AuthorFilter EligibleCount (r:1 w:0)
/// Proof Skipped: AuthorFilter EligibleCount (max_values: Some(1), max_size: None, mode: Measured)
/// Storage: Randomness PreviousLocalVrfOutput (r:1 w:0)
/// Proof Skipped: Randomness PreviousLocalVrfOutput (max_values: Some(1), max_size: None, mode: Measured)
/// Storage: `ParachainSystem::ValidationData` (r:1 w:0)
/// Proof: `ParachainSystem::ValidationData` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
/// Storage: `AuthorInherent::Author` (r:1 w:0)
/// Proof: `AuthorInherent::Author` (`max_values`: Some(1), `max_size`: Some(20), added: 515, mode: `MaxEncodedLen`)
/// Storage: `ParachainStaking::SelectedCandidates` (r:1 w:0)
/// Proof: `ParachainStaking::SelectedCandidates` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
/// Storage: `AuthorFilter::EligibleCount` (r:1 w:0)
/// Proof: `AuthorFilter::EligibleCount` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
/// Storage: `Randomness::PreviousLocalVrfOutput` (r:1 w:0)
/// Proof: `Randomness::PreviousLocalVrfOutput` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
/// Storage: `AuthorInherent::InherentIncluded` (r:0 w:1)
/// Proof: `AuthorInherent::InherentIncluded` (`max_values`: Some(1), `max_size`: Some(1), added: 496, mode: `MaxEncodedLen`)
fn kick_off_authorship_validation() -> Weight {
// Proof Size summary in bytes:
// Measured: `371`
// Estimated: `1856`
// Minimum execution time: 14_675_000 picoseconds.
Weight::from_parts(15_236_000, 0)
.saturating_add(Weight::from_parts(0, 1856))
.saturating_add(T::DbWeight::get().reads(6))
// Measured: `372`
// Estimated: `1857`
// Minimum execution time: 17_504_000 picoseconds.
Weight::from_parts(18_163_000, 0)
.saturating_add(Weight::from_parts(0, 1857))
.saturating_add(T::DbWeight::get().reads(5))
.saturating_add(T::DbWeight::get().writes(1))
}
}
82 changes: 41 additions & 41 deletions runtime/common/src/weights/pallet_author_mapping.rs
Expand Up @@ -16,13 +16,13 @@
//! Autogenerated weights for `pallet_author_mapping`
//!
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
//! DATE: 2023-11-01, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
//! DATE: 2024-02-22, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
//! WORST CASE MAP SIZE: `1000000`
//! HOSTNAME: `ip-10-0-0-176`, CPU: `Intel(R) Xeon(R) Platinum 8375C CPU @ 2.90GHz`
//! EXECUTION: None, WASM-EXECUTION: Compiled, CHAIN: Some("moonbase-dev"), DB CACHE: 1024
//! WASM-EXECUTION: `Compiled`, CHAIN: `Some("moonbase-dev")`, DB CACHE: 1024

// Executed Command:
// ./target/release/moonbeam
// ./target/production/moonbeam
// benchmark
// pallet
// --chain=moonbase-dev
Expand All @@ -45,80 +45,80 @@ use core::marker::PhantomData;
/// Weight functions for `pallet_author_mapping`.
pub struct WeightInfo<T>(PhantomData<T>);
impl<T: frame_system::Config> pallet_author_mapping::WeightInfo for WeightInfo<T> {
/// Storage: AuthorMapping MappingWithDeposit (r:1 w:1)
/// Proof Skipped: AuthorMapping MappingWithDeposit (max_values: None, max_size: None, mode: Measured)
/// Storage: System Account (r:1 w:1)
/// Proof: System Account (max_values: None, max_size: Some(116), added: 2591, mode: MaxEncodedLen)
/// Storage: AuthorMapping NimbusLookup (r:0 w:1)
/// Proof Skipped: AuthorMapping NimbusLookup (max_values: None, max_size: None, mode: Measured)
/// Storage: `AuthorMapping::MappingWithDeposit` (r:1 w:1)
/// Proof: `AuthorMapping::MappingWithDeposit` (`max_values`: None, `max_size`: None, mode: `Measured`)
/// Storage: `System::Account` (r:1 w:1)
/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(116), added: 2591, mode: `MaxEncodedLen`)
/// Storage: `AuthorMapping::NimbusLookup` (r:0 w:1)
/// Proof: `AuthorMapping::NimbusLookup` (`max_values`: None, `max_size`: None, mode: `Measured`)
fn add_association() -> Weight {
// Proof Size summary in bytes:
// Measured: `376`
// Estimated: `3841`
// Minimum execution time: 17_903_000 picoseconds.
Weight::from_parts(18_427_000, 0)
// Minimum execution time: 28_917_000 picoseconds.
Weight::from_parts(29_722_000, 0)
.saturating_add(Weight::from_parts(0, 3841))
.saturating_add(T::DbWeight::get().reads(2))
.saturating_add(T::DbWeight::get().writes(3))
}
/// Storage: AuthorMapping MappingWithDeposit (r:2 w:2)
/// Proof Skipped: AuthorMapping MappingWithDeposit (max_values: None, max_size: None, mode: Measured)
/// Storage: AuthorMapping NimbusLookup (r:0 w:1)
/// Proof Skipped: AuthorMapping NimbusLookup (max_values: None, max_size: None, mode: Measured)
/// Storage: `AuthorMapping::MappingWithDeposit` (r:2 w:2)
/// Proof: `AuthorMapping::MappingWithDeposit` (`max_values`: None, `max_size`: None, mode: `Measured`)
/// Storage: `AuthorMapping::NimbusLookup` (r:0 w:1)
/// Proof: `AuthorMapping::NimbusLookup` (`max_values`: None, `max_size`: None, mode: `Measured`)
fn update_association() -> Weight {
// Proof Size summary in bytes:
// Measured: `325`
// Estimated: `6265`
// Minimum execution time: 12_636_000 picoseconds.
Weight::from_parts(12_893_000, 0)
// Minimum execution time: 18_157_000 picoseconds.
Weight::from_parts(18_848_000, 0)
.saturating_add(Weight::from_parts(0, 6265))
.saturating_add(T::DbWeight::get().reads(2))
.saturating_add(T::DbWeight::get().writes(3))
}
/// Storage: AuthorMapping MappingWithDeposit (r:1 w:1)
/// Proof Skipped: AuthorMapping MappingWithDeposit (max_values: None, max_size: None, mode: Measured)
/// Storage: System Account (r:1 w:1)
/// Proof: System Account (max_values: None, max_size: Some(116), added: 2591, mode: MaxEncodedLen)
/// Storage: AuthorMapping NimbusLookup (r:0 w:1)
/// Proof Skipped: AuthorMapping NimbusLookup (max_values: None, max_size: None, mode: Measured)
/// Storage: `AuthorMapping::MappingWithDeposit` (r:1 w:1)
/// Proof: `AuthorMapping::MappingWithDeposit` (`max_values`: None, `max_size`: None, mode: `Measured`)
/// Storage: `System::Account` (r:1 w:1)
/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(116), added: 2591, mode: `MaxEncodedLen`)
/// Storage: `AuthorMapping::NimbusLookup` (r:0 w:1)
/// Proof: `AuthorMapping::NimbusLookup` (`max_values`: None, `max_size`: None, mode: `Measured`)
fn clear_association() -> Weight {
// Proof Size summary in bytes:
// Measured: `453`
// Estimated: `3918`
// Minimum execution time: 19_255_000 picoseconds.
Weight::from_parts(19_892_000, 0)
// Minimum execution time: 29_981_000 picoseconds.
Weight::from_parts(30_813_000, 0)
.saturating_add(Weight::from_parts(0, 3918))
.saturating_add(T::DbWeight::get().reads(2))
.saturating_add(T::DbWeight::get().writes(3))
}
/// Storage: AuthorMapping NimbusLookup (r:1 w:1)
/// Proof Skipped: AuthorMapping NimbusLookup (max_values: None, max_size: None, mode: Measured)
/// Storage: AuthorMapping MappingWithDeposit (r:1 w:1)
/// Proof Skipped: AuthorMapping MappingWithDeposit (max_values: None, max_size: None, mode: Measured)
/// Storage: System Account (r:1 w:1)
/// Proof: System Account (max_values: None, max_size: Some(116), added: 2591, mode: MaxEncodedLen)
/// Storage: `AuthorMapping::NimbusLookup` (r:1 w:1)
/// Proof: `AuthorMapping::NimbusLookup` (`max_values`: None, `max_size`: None, mode: `Measured`)
/// Storage: `AuthorMapping::MappingWithDeposit` (r:1 w:1)
/// Proof: `AuthorMapping::MappingWithDeposit` (`max_values`: None, `max_size`: None, mode: `Measured`)
/// Storage: `System::Account` (r:1 w:1)
/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(116), added: 2591, mode: `MaxEncodedLen`)
fn remove_keys() -> Weight {
// Proof Size summary in bytes:
// Measured: `547`
// Estimated: `4012`
// Minimum execution time: 22_108_000 picoseconds.
Weight::from_parts(22_636_000, 0)
// Minimum execution time: 35_732_000 picoseconds.
Weight::from_parts(36_993_000, 0)
.saturating_add(Weight::from_parts(0, 4012))
.saturating_add(T::DbWeight::get().reads(3))
.saturating_add(T::DbWeight::get().writes(3))
}
/// Storage: AuthorMapping NimbusLookup (r:1 w:1)
/// Proof Skipped: AuthorMapping NimbusLookup (max_values: None, max_size: None, mode: Measured)
/// Storage: AuthorMapping MappingWithDeposit (r:1 w:1)
/// Proof Skipped: AuthorMapping MappingWithDeposit (max_values: None, max_size: None, mode: Measured)
/// Storage: System Account (r:1 w:1)
/// Proof: System Account (max_values: None, max_size: Some(116), added: 2591, mode: MaxEncodedLen)
/// Storage: `AuthorMapping::NimbusLookup` (r:1 w:1)
/// Proof: `AuthorMapping::NimbusLookup` (`max_values`: None, `max_size`: None, mode: `Measured`)
/// Storage: `AuthorMapping::MappingWithDeposit` (r:1 w:1)
/// Proof: `AuthorMapping::MappingWithDeposit` (`max_values`: None, `max_size`: None, mode: `Measured`)
/// Storage: `System::Account` (r:1 w:1)
/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(116), added: 2591, mode: `MaxEncodedLen`)
fn set_keys() -> Weight {
// Proof Size summary in bytes:
// Measured: `432`
// Estimated: `3897`
// Minimum execution time: 19_904_000 picoseconds.
Weight::from_parts(20_421_000, 0)
// Minimum execution time: 31_672_000 picoseconds.
Weight::from_parts(32_977_000, 0)
.saturating_add(Weight::from_parts(0, 3897))
.saturating_add(T::DbWeight::get().reads(3))
.saturating_add(T::DbWeight::get().writes(3))
Expand Down
14 changes: 7 additions & 7 deletions runtime/common/src/weights/pallet_author_slot_filter.rs
Expand Up @@ -16,13 +16,13 @@
//! Autogenerated weights for `pallet_author_slot_filter`
//!
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
//! DATE: 2023-11-01, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
//! DATE: 2024-02-22, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
//! WORST CASE MAP SIZE: `1000000`
//! HOSTNAME: `ip-10-0-0-176`, CPU: `Intel(R) Xeon(R) Platinum 8375C CPU @ 2.90GHz`
//! EXECUTION: None, WASM-EXECUTION: Compiled, CHAIN: Some("moonbase-dev"), DB CACHE: 1024
//! WASM-EXECUTION: `Compiled`, CHAIN: `Some("moonbase-dev")`, DB CACHE: 1024

// Executed Command:
// ./target/release/moonbeam
// ./target/production/moonbeam
// benchmark
// pallet
// --chain=moonbase-dev
Expand All @@ -45,14 +45,14 @@ use core::marker::PhantomData;
/// Weight functions for `pallet_author_slot_filter`.
pub struct WeightInfo<T>(PhantomData<T>);
impl<T: frame_system::Config> pallet_author_slot_filter::WeightInfo for WeightInfo<T> {
/// Storage: AuthorFilter EligibleCount (r:0 w:1)
/// Proof Skipped: AuthorFilter EligibleCount (max_values: Some(1), max_size: None, mode: Measured)
/// Storage: `AuthorFilter::EligibleCount` (r:0 w:1)
/// Proof: `AuthorFilter::EligibleCount` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
fn set_eligible() -> Weight {
// Proof Size summary in bytes:
// Measured: `0`
// Estimated: `0`
// Minimum execution time: 3_628_000 picoseconds.
Weight::from_parts(3_777_000, 0)
// Minimum execution time: 5_229_000 picoseconds.
Weight::from_parts(5_407_000, 0)
.saturating_add(Weight::from_parts(0, 0))
.saturating_add(T::DbWeight::get().writes(1))
}
Expand Down