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 (#2199)
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 34cd722 commit a1e05c3
Show file tree
Hide file tree
Showing 30 changed files with 1,392 additions and 762 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("bridge-hub-kusama-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: 6_738 nanoseconds.
Weight::from_ref_time(7_394_000)
// Proof Size summary in bytes:
// Measured: `76`
// Estimated: `571`
// Minimum execution time: 4_586 nanoseconds.
Weight::from_parts(4_819_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: 6_921 nanoseconds.
Weight::from_ref_time(7_291_000)
// Proof Size summary in bytes:
// Measured: `76`
// Estimated: `571`
// Minimum execution time: 4_560 nanoseconds.
Weight::from_parts(4_900_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("bridge-hub-kusama-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_581 nanoseconds.
Weight::from_ref_time(2_072_524)
// Proof Size summary in bytes:
// Measured: `0`
// Estimated: `0`
// Minimum execution time: 1_390 nanoseconds.
Weight::from_ref_time(1_422_000)
// Standard Error: 0
.saturating_add(Weight::from_ref_time(536).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_070 nanoseconds.
Weight::from_ref_time(86_161_928)
// Standard Error: 4
.saturating_add(Weight::from_ref_time(2_039).saturating_mul(b.into()))
// Proof Size summary in bytes:
// Measured: `0`
// Estimated: `0`
// Minimum execution time: 6_081 nanoseconds.
Weight::from_ref_time(72_265_543)
// Standard Error: 5
.saturating_add(Weight::from_ref_time(2_009).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: 7_871 nanoseconds.
Weight::from_ref_time(8_315_000)
// Proof Size summary in bytes:
// Measured: `0`
// Estimated: `495`
// Minimum execution time: 3_133 nanoseconds.
Weight::from_parts(3_326_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_758 nanoseconds.
Weight::from_ref_time(3_866_000)
// Standard Error: 2_296
.saturating_add(Weight::from_ref_time(689_752).saturating_mul(i.into()))
// Proof Size summary in bytes:
// Measured: `0`
// Estimated: `0`
// Minimum execution time: 1_493 nanoseconds.
Weight::from_ref_time(1_537_000)
// Standard Error: 2_124
.saturating_add(Weight::from_ref_time(635_837).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: 3_721 nanoseconds.
Weight::from_ref_time(3_836_000)
// Standard Error: 973
.saturating_add(Weight::from_ref_time(522_358).saturating_mul(i.into()))
// Proof Size summary in bytes:
// Measured: `0`
// Estimated: `0`
// Minimum execution time: 1_434 nanoseconds.
Weight::from_ref_time(1_452_000)
// Standard Error: 868
.saturating_add(Weight::from_ref_time(508_882).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_304 nanoseconds.
Weight::from_ref_time(5_563_000)
// Standard Error: 1_192
.saturating_add(Weight::from_ref_time(1_158_340).saturating_mul(p.into()))
// Proof Size summary in bytes:
// Measured: `68 + p * (69 ±0)`
// Estimated: `66 + p * (70 ±0)`
// Minimum execution time: 2_956 nanoseconds.
Weight::from_parts(3_215_000, 66)
// Standard Error: 1_491
.saturating_add(Weight::from_ref_time(1_132_402).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()))
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,9 @@
//! Autogenerated weights for `pallet_balances`
//!
//! 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("bridge-hub-kusama-dev"), DB CACHE: 1024

// Executed Command:
Expand Down Expand Up @@ -46,52 +47,80 @@ use sp_std::marker::PhantomData;
/// Weight functions for `pallet_balances`.
pub struct WeightInfo<T>(PhantomData<T>);
impl<T: frame_system::Config> pallet_balances::WeightInfo for WeightInfo<T> {
// Storage: System Account (r:1 w:1)
/// Storage: System Account (r:1 w:1)
/// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen)
fn transfer() -> Weight {
// Minimum execution time: 45_631 nanoseconds.
Weight::from_ref_time(46_232_000)
// Proof Size summary in bytes:
// Measured: `1314`
// Estimated: `2603`
// Minimum execution time: 46_494 nanoseconds.
Weight::from_parts(47_632_000, 2603)
.saturating_add(T::DbWeight::get().reads(1))
.saturating_add(T::DbWeight::get().writes(1))
}
// Storage: System Account (r:1 w:1)
/// Storage: System Account (r:1 w:1)
/// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen)
fn transfer_keep_alive() -> Weight {
// Minimum execution time: 33_809 nanoseconds.
Weight::from_ref_time(34_968_000)
// Proof Size summary in bytes:
// Measured: `1198`
// Estimated: `2603`
// Minimum execution time: 34_677 nanoseconds.
Weight::from_parts(35_469_000, 2603)
.saturating_add(T::DbWeight::get().reads(1))
.saturating_add(T::DbWeight::get().writes(1))
}
// Storage: System Account (r:1 w:1)
/// Storage: System Account (r:1 w:1)
/// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen)
fn set_balance_creating() -> Weight {
// Minimum execution time: 23_694 nanoseconds.
Weight::from_ref_time(24_610_000)
// Proof Size summary in bytes:
// Measured: `1348`
// Estimated: `2603`
// Minimum execution time: 25_439 nanoseconds.
Weight::from_parts(26_119_000, 2603)
.saturating_add(T::DbWeight::get().reads(1))
.saturating_add(T::DbWeight::get().writes(1))
}
// Storage: System Account (r:1 w:1)
/// Storage: System Account (r:1 w:1)
/// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen)
fn set_balance_killing() -> Weight {
// Minimum execution time: 27_156 nanoseconds.
Weight::from_ref_time(27_727_000)
// Proof Size summary in bytes:
// Measured: `1348`
// Estimated: `2603`
// Minimum execution time: 28_360 nanoseconds.
Weight::from_parts(29_374_000, 2603)
.saturating_add(T::DbWeight::get().reads(1))
.saturating_add(T::DbWeight::get().writes(1))
}
// Storage: System Account (r:2 w:2)
/// Storage: System Account (r:2 w:2)
/// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen)
fn force_transfer() -> Weight {
// Minimum execution time: 45_045 nanoseconds.
Weight::from_ref_time(46_147_000)
// Proof Size summary in bytes:
// Measured: `1310`
// Estimated: `5206`
// Minimum execution time: 45_527 nanoseconds.
Weight::from_parts(46_784_000, 5206)
.saturating_add(T::DbWeight::get().reads(2))
.saturating_add(T::DbWeight::get().writes(2))
}
// Storage: System Account (r:1 w:1)
/// Storage: System Account (r:1 w:1)
/// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen)
fn transfer_all() -> Weight {
// Minimum execution time: 40_239 nanoseconds.
Weight::from_ref_time(41_296_000)
// Proof Size summary in bytes:
// Measured: `1198`
// Estimated: `2603`
// Minimum execution time: 40_636 nanoseconds.
Weight::from_parts(41_987_000, 2603)
.saturating_add(T::DbWeight::get().reads(1))
.saturating_add(T::DbWeight::get().writes(1))
}
// Storage: System Account (r:1 w:1)
/// Storage: System Account (r:1 w:1)
/// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen)
fn force_unreserve() -> Weight {
// Minimum execution time: 21_014 nanoseconds.
Weight::from_ref_time(21_561_000)
// Proof Size summary in bytes:
// Measured: `1232`
// Estimated: `2603`
// Minimum execution time: 22_283 nanoseconds.
Weight::from_parts(23_195_000, 2603)
.saturating_add(T::DbWeight::get().reads(1))
.saturating_add(T::DbWeight::get().writes(1))
}
Expand Down
Loading

0 comments on commit a1e05c3

Please sign in to comment.