Skip to content
This repository has been archived by the owner on Nov 15, 2023. It is now read-only.

Commit

Permalink
[benchmarks] pr with weights (#2198)
Browse files Browse the repository at this point in the history
Co-authored-by: paritytech-ci <paritytech-ci@parity.io>
  • Loading branch information
2 people authored and EgorPopelyaev committed Feb 17, 2023
1 parent f8dd779 commit d513b2e
Show file tree
Hide file tree
Showing 11 changed files with 976 additions and 521 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,9 @@
//! Autogenerated weights for `cumulus_pallet_xcmp_queue`
//!
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
//! DATE: 2023-01-25, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]`
//! HOSTNAME: `runner-b3zmxxc-project-238-concurrent-0`, CPU: `Intel(R) Xeon(R) CPU @ 2.60GHz`
//! DATE: 2023-02-16, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
//! WORST CASE MAP SIZE: `1000000`
//! HOSTNAME: `runner-osnnfcqu-project-238-concurrent-0`, CPU: `Intel(R) Xeon(R) CPU @ 2.60GHz`
//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("collectives-polkadot-dev"), DB CACHE: 1024

// Executed Command:
Expand Down Expand Up @@ -46,17 +47,25 @@ use sp_std::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)
/// Storage: XcmpQueue QueueConfig (r:1 w:1)
/// Proof Skipped: XcmpQueue QueueConfig (max_values: Some(1), max_size: None, mode: Measured)
fn set_config_with_u32() -> Weight {
// Minimum execution time: 7_029 nanoseconds.
Weight::from_ref_time(7_466_000)
// Proof Size summary in bytes:
// Measured: `76`
// Estimated: `571`
// Minimum execution time: 4_617 nanoseconds.
Weight::from_parts(4_888_000, 571)
.saturating_add(T::DbWeight::get().reads(1))
.saturating_add(T::DbWeight::get().writes(1))
}
// Storage: XcmpQueue QueueConfig (r:1 w:1)
/// Storage: XcmpQueue QueueConfig (r:1 w:1)
/// Proof Skipped: XcmpQueue QueueConfig (max_values: Some(1), max_size: None, mode: Measured)
fn set_config_with_weight() -> Weight {
// Minimum execution time: 7_027 nanoseconds.
Weight::from_ref_time(7_256_000)
// Proof Size summary in bytes:
// Measured: `76`
// Estimated: `571`
// Minimum execution time: 4_527 nanoseconds.
Weight::from_parts(4_881_000, 571)
.saturating_add(T::DbWeight::get().reads(1))
.saturating_add(T::DbWeight::get().writes(1))
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,9 @@
//! Autogenerated weights for `frame_system`
//!
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
//! DATE: 2023-01-25, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]`
//! HOSTNAME: `runner-b3zmxxc-project-238-concurrent-0`, CPU: `Intel(R) Xeon(R) CPU @ 2.60GHz`
//! DATE: 2023-02-16, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
//! WORST CASE MAP SIZE: `1000000`
//! HOSTNAME: `runner-osnnfcqu-project-238-concurrent-0`, CPU: `Intel(R) Xeon(R) CPU @ 2.60GHz`
//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("collectives-polkadot-dev"), DB CACHE: 1024

// Executed Command:
Expand Down Expand Up @@ -48,51 +49,75 @@ pub struct WeightInfo<T>(PhantomData<T>);
impl<T: frame_system::Config> frame_system::WeightInfo for WeightInfo<T> {
/// The range of component `b` is `[0, 3932160]`.
fn remark(b: u32, ) -> Weight {
// Minimum execution time: 3_824 nanoseconds.
Weight::from_ref_time(3_006_762)
// Proof Size summary in bytes:
// Measured: `0`
// Estimated: `0`
// Minimum execution time: 1_299 nanoseconds.
Weight::from_ref_time(1_345_000)
// Standard Error: 0
.saturating_add(Weight::from_ref_time(476).saturating_mul(b.into()))
.saturating_add(Weight::from_ref_time(538).saturating_mul(b.into()))
}
/// The range of component `b` is `[0, 3932160]`.
fn remark_with_event(b: u32, ) -> Weight {
// Minimum execution time: 13_506 nanoseconds.
Weight::from_ref_time(145_176_063)
// Standard Error: 4
.saturating_add(Weight::from_ref_time(1_865).saturating_mul(b.into()))
// Proof Size summary in bytes:
// Measured: `0`
// Estimated: `0`
// Minimum execution time: 6_397 nanoseconds.
Weight::from_ref_time(17_508_692)
// Standard Error: 0
.saturating_add(Weight::from_ref_time(2_089).saturating_mul(b.into()))
}
// Storage: System Digest (r:1 w:1)
// Storage: unknown [0x3a686561707061676573] (r:0 w:1)
/// Storage: System Digest (r:1 w:1)
/// Proof Skipped: System Digest (max_values: Some(1), max_size: None, mode: Measured)
/// Storage: unknown `0x3a686561707061676573` (r:0 w:1)
/// Proof Skipped: unknown `0x3a686561707061676573` (r:0 w:1)
fn set_heap_pages() -> Weight {
// Minimum execution time: 8_012 nanoseconds.
Weight::from_ref_time(8_298_000)
// Proof Size summary in bytes:
// Measured: `0`
// Estimated: `495`
// Minimum execution time: 2_965 nanoseconds.
Weight::from_parts(3_207_000, 495)
.saturating_add(T::DbWeight::get().reads(1))
.saturating_add(T::DbWeight::get().writes(2))
}
// Storage: Skipped Metadata (r:0 w:0)
/// Storage: Skipped Metadata (r:0 w:0)
/// Proof Skipped: Skipped Metadata (max_values: None, max_size: None, mode: Measured)
/// The range of component `i` is `[0, 1000]`.
fn set_storage(i: u32, ) -> Weight {
// Minimum execution time: 3_968 nanoseconds.
Weight::from_ref_time(4_082_000)
// Standard Error: 2_428
.saturating_add(Weight::from_ref_time(684_810).saturating_mul(i.into()))
// Proof Size summary in bytes:
// Measured: `0`
// Estimated: `0`
// Minimum execution time: 1_398 nanoseconds.
Weight::from_ref_time(1_447_000)
// Standard Error: 1_897
.saturating_add(Weight::from_ref_time(628_612).saturating_mul(i.into()))
.saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(i.into())))
}
// Storage: Skipped Metadata (r:0 w:0)
/// Storage: Skipped Metadata (r:0 w:0)
/// Proof Skipped: Skipped Metadata (max_values: None, max_size: None, mode: Measured)
/// The range of component `i` is `[0, 1000]`.
fn kill_storage(i: u32, ) -> Weight {
// Minimum execution time: 4_019 nanoseconds.
Weight::from_ref_time(4_112_000)
// Standard Error: 969
.saturating_add(Weight::from_ref_time(516_358).saturating_mul(i.into()))
// Proof Size summary in bytes:
// Measured: `0`
// Estimated: `0`
// Minimum execution time: 1_462 nanoseconds.
Weight::from_ref_time(1_544_000)
// Standard Error: 877
.saturating_add(Weight::from_ref_time(504_031).saturating_mul(i.into()))
.saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(i.into())))
}
// Storage: Skipped Metadata (r:0 w:0)
/// Storage: Skipped Metadata (r:0 w:0)
/// Proof Skipped: Skipped Metadata (max_values: None, max_size: None, mode: Measured)
/// The range of component `p` is `[0, 1000]`.
fn kill_prefix(p: u32, ) -> Weight {
// Minimum execution time: 5_739 nanoseconds.
Weight::from_ref_time(5_965_000)
// Standard Error: 1_231
.saturating_add(Weight::from_ref_time(1_157_068).saturating_mul(p.into()))
// Proof Size summary in bytes:
// Measured: `68 + p * (69 ±0)`
// Estimated: `69 + p * (70 ±0)`
// Minimum execution time: 3_048 nanoseconds.
Weight::from_parts(3_171_000, 69)
// Standard Error: 1_286
.saturating_add(Weight::from_ref_time(1_121_726).saturating_mul(p.into()))
.saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(p.into())))
.saturating_add(Weight::from_proof_size(70).saturating_mul(p.into()))
}
}
Loading

0 comments on commit d513b2e

Please sign in to comment.