Skip to content

Commit

Permalink
Bench Pangolin
Browse files Browse the repository at this point in the history
  • Loading branch information
aurexav committed Oct 17, 2023
1 parent b30a14a commit d6ef3d1
Show file tree
Hide file tree
Showing 27 changed files with 1,585 additions and 746 deletions.
2 changes: 1 addition & 1 deletion pallet/staking/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -893,7 +893,7 @@ pub mod pallet {
pub fn elect() -> Vec<T::AccountId> {
let mut collators = <Collators<T>>::iter()
.map(|(c, cm)| {
let scaler = (Perbill::one() - cm);
let scaler = Perbill::one() - cm;
let mut collator_v = 0;
let nominators = <Nominators<T>>::iter()
.filter_map(|(n, c_)| {
Expand Down
5 changes: 3 additions & 2 deletions runtime/pangolin/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -210,15 +210,18 @@ frame_benchmarking::define_benchmarks! {
[pallet_balances, Balances]
[pallet_collective, Council]
[pallet_collective, TechnicalCommittee]
[pallet_conviction_voting, ConvictionVoting]
[pallet_democracy, Democracy]
[pallet_identity, Identity]
[pallet_preimage, Preimage]
[pallet_proxy, Proxy]
[pallet_referenda, Referenda]
[pallet_scheduler, Scheduler]
[pallet_treasury, Treasury]
[pallet_utility, Utility]
[pallet_session, SessionBench::<Runtime>]
[pallet_timestamp, Timestamp]
[pallet_whitelist, Whitelist]
}

impl_self_contained_call!();
Expand Down Expand Up @@ -740,7 +743,6 @@ sp_api::impl_runtime_apis! {
// substrate
use frame_benchmarking::*;
use frame_support::traits::StorageInfoTrait;
use frame_system_benchmarking::Pallet as SystemBench;
use cumulus_pallet_session_benchmarking::Pallet as SessionBench;
// darwinia-messages-substrate
use pallet_bridge_parachains::benchmarking::Pallet as ParachainsBench;
Expand Down Expand Up @@ -783,7 +785,6 @@ sp_api::impl_runtime_apis! {
use frame_support::pallet_prelude::Weight;
use frame_support::traits::Currency;

use frame_system_benchmarking::Pallet as SystemBench;
impl frame_system_benchmarking::Config for Runtime {}

use cumulus_pallet_session_benchmarking::Pallet as SessionBench;
Expand Down
10 changes: 5 additions & 5 deletions runtime/pangolin/src/weights/cumulus_pallet_xcmp_queue.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
//! Autogenerated weights for `cumulus_pallet_xcmp_queue`
//!
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
//! DATE: 2023-07-28, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
//! DATE: 2023-10-17, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
//! WORST CASE MAP SIZE: `1000000`
//! HOSTNAME: `inv.cafe`, CPU: `13th Gen Intel(R) Core(TM) i9-13900K`
//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("pangolin-dev"), DB CACHE: 1024
Expand Down Expand Up @@ -64,8 +64,8 @@ impl<T: frame_system::Config> cumulus_pallet_xcmp_queue::WeightInfo for WeightIn
// Proof Size summary in bytes:
// Measured: `76`
// Estimated: `1561`
// Minimum execution time: 3_966_000 picoseconds.
Weight::from_parts(4_142_000, 0)
// Minimum execution time: 3_534_000 picoseconds.
Weight::from_parts(3_739_000, 0)
.saturating_add(Weight::from_parts(0, 1561))
.saturating_add(T::DbWeight::get().reads(1))
.saturating_add(T::DbWeight::get().writes(1))
Expand All @@ -76,8 +76,8 @@ impl<T: frame_system::Config> cumulus_pallet_xcmp_queue::WeightInfo for WeightIn
// Proof Size summary in bytes:
// Measured: `76`
// Estimated: `1561`
// Minimum execution time: 4_048_000 picoseconds.
Weight::from_parts(4_236_000, 0)
// Minimum execution time: 3_314_000 picoseconds.
Weight::from_parts(3_578_000, 0)
.saturating_add(Weight::from_parts(0, 1561))
.saturating_add(T::DbWeight::get().reads(1))
.saturating_add(T::DbWeight::get().writes(1))
Expand Down
24 changes: 12 additions & 12 deletions runtime/pangolin/src/weights/darwinia_account_migration.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
//! Autogenerated weights for `darwinia_account_migration`
//!
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
//! DATE: 2023-07-28, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
//! DATE: 2023-10-17, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
//! WORST CASE MAP SIZE: `1000000`
//! HOSTNAME: `inv.cafe`, CPU: `13th Gen Intel(R) Core(TM) i9-13900K`
//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("pangolin-dev"), DB CACHE: 1024
Expand Down Expand Up @@ -84,11 +84,11 @@ impl<T: frame_system::Config> darwinia_account_migration::WeightInfo for WeightI
/// Proof: Deposit Deposits (max_values: None, max_size: Some(26150), added: 28625, mode: MaxEncodedLen)
fn migrate() -> Weight {
// Proof Size summary in bytes:
// Measured: `29179`
// Estimated: `32644`
// Minimum execution time: 146_383_000 picoseconds.
Weight::from_parts(150_287_000, 0)
.saturating_add(Weight::from_parts(0, 32644))
// Measured: `29212`
// Estimated: `32677`
// Minimum execution time: 148_718_000 picoseconds.
Weight::from_parts(152_984_000, 0)
.saturating_add(Weight::from_parts(0, 32677))
.saturating_add(T::DbWeight::get().reads(10))
.saturating_add(T::DbWeight::get().writes(15))
}
Expand Down Expand Up @@ -125,11 +125,11 @@ impl<T: frame_system::Config> darwinia_account_migration::WeightInfo for WeightI
// Proof Size summary in bytes:
// Measured: `0`
// Estimated: `2 + x * (165 ±0) + z * (165 ±0)`
// Minimum execution time: 6_939_000 picoseconds.
Weight::from_parts(22_706_568, 0)
// Minimum execution time: 6_991_000 picoseconds.
Weight::from_parts(22_460_322, 0)
.saturating_add(Weight::from_parts(0, 2))
// Standard Error: 13_060
.saturating_add(Weight::from_parts(6_469, 0).saturating_mul(x.into()))
// Standard Error: 12_671
.saturating_add(Weight::from_parts(6_604, 0).saturating_mul(x.into()))
.saturating_add(T::DbWeight::get().reads(1))
.saturating_add(T::DbWeight::get().writes(2))
.saturating_add(Weight::from_parts(0, 165).saturating_mul(x.into()))
Expand All @@ -143,8 +143,8 @@ impl<T: frame_system::Config> darwinia_account_migration::WeightInfo for WeightI
// Proof Size summary in bytes:
// Measured: `3499`
// Estimated: `6964`
// Minimum execution time: 8_336_000 picoseconds.
Weight::from_parts(8_770_000, 0)
// Minimum execution time: 8_303_000 picoseconds.
Weight::from_parts(8_863_000, 0)
.saturating_add(Weight::from_parts(0, 6964))
.saturating_add(T::DbWeight::get().reads(2))
.saturating_add(T::DbWeight::get().writes(1))
Expand Down
20 changes: 10 additions & 10 deletions runtime/pangolin/src/weights/darwinia_deposit.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
//! Autogenerated weights for `darwinia_deposit`
//!
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
//! DATE: 2023-07-28, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
//! DATE: 2023-10-17, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
//! WORST CASE MAP SIZE: `1000000`
//! HOSTNAME: `inv.cafe`, CPU: `13th Gen Intel(R) Core(TM) i9-13900K`
//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("pangolin-dev"), DB CACHE: 1024
Expand Down Expand Up @@ -70,10 +70,10 @@ impl<T: frame_system::Config> darwinia_deposit::WeightInfo for WeightInfo<T> {
/// Proof: Assets Account (max_values: None, max_size: Some(114), added: 2589, mode: MaxEncodedLen)
fn lock() -> Weight {
// Proof Size summary in bytes:
// Measured: `26748`
// Measured: `26848`
// Estimated: `29615`
// Minimum execution time: 71_802_000 picoseconds.
Weight::from_parts(77_526_000, 0)
// Minimum execution time: 80_895_000 picoseconds.
Weight::from_parts(84_588_000, 0)
.saturating_add(Weight::from_parts(0, 29615))
.saturating_add(T::DbWeight::get().reads(5))
.saturating_add(T::DbWeight::get().writes(4))
Expand All @@ -86,10 +86,10 @@ impl<T: frame_system::Config> darwinia_deposit::WeightInfo for WeightInfo<T> {
/// Proof: System Account (max_values: None, max_size: Some(116), added: 2591, mode: MaxEncodedLen)
fn claim() -> Weight {
// Proof Size summary in bytes:
// Measured: `26478`
// Measured: `26578`
// Estimated: `29615`
// Minimum execution time: 1_300_312_000 picoseconds.
Weight::from_parts(1_322_080_000, 0)
// Minimum execution time: 1_302_503_000 picoseconds.
Weight::from_parts(1_376_838_000, 0)
.saturating_add(Weight::from_parts(0, 29615))
.saturating_add(T::DbWeight::get().reads(3))
.saturating_add(T::DbWeight::get().writes(2))
Expand All @@ -104,10 +104,10 @@ impl<T: frame_system::Config> darwinia_deposit::WeightInfo for WeightInfo<T> {
/// Proof: Assets Asset (max_values: None, max_size: Some(166), added: 2641, mode: MaxEncodedLen)
fn claim_with_penalty() -> Weight {
// Proof Size summary in bytes:
// Measured: `26637`
// Measured: `26704`
// Estimated: `29615`
// Minimum execution time: 47_227_000 picoseconds.
Weight::from_parts(52_351_000, 0)
// Minimum execution time: 53_449_000 picoseconds.
Weight::from_parts(56_897_000, 0)
.saturating_add(Weight::from_parts(0, 29615))
.saturating_add(T::DbWeight::get().reads(4))
.saturating_add(T::DbWeight::get().writes(3))
Expand Down
62 changes: 31 additions & 31 deletions runtime/pangolin/src/weights/darwinia_ecdsa_authority.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
//! Autogenerated weights for `darwinia_ecdsa_authority`
//!
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
//! DATE: 2023-07-28, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
//! DATE: 2023-10-17, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
//! WORST CASE MAP SIZE: `1000000`
//! HOSTNAME: `inv.cafe`, CPU: `13th Gen Intel(R) Core(TM) i9-13900K`
//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("pangolin-dev"), DB CACHE: 1024
Expand Down Expand Up @@ -66,11 +66,11 @@ impl<T: frame_system::Config> darwinia_ecdsa_authority::WeightInfo for WeightInf
/// Proof Skipped: EcdsaAuthority Nonce (max_values: Some(1), max_size: None, mode: Measured)
fn on_initialize() -> Weight {
// Proof Size summary in bytes:
// Measured: `87`
// Estimated: `1572`
// Minimum execution time: 10_059_000 picoseconds.
Weight::from_parts(10_725_000, 0)
.saturating_add(Weight::from_parts(0, 1572))
// Measured: `154`
// Estimated: `1639`
// Minimum execution time: 9_499_000 picoseconds.
Weight::from_parts(9_887_000, 0)
.saturating_add(Weight::from_parts(0, 1639))
.saturating_add(T::DbWeight::get().reads(3))
.saturating_add(T::DbWeight::get().writes(1))
}
Expand All @@ -82,11 +82,11 @@ impl<T: frame_system::Config> darwinia_ecdsa_authority::WeightInfo for WeightInf
/// Proof Skipped: EcdsaAuthority Nonce (max_values: Some(1), max_size: None, mode: Measured)
fn add_authority() -> Weight {
// Proof Size summary in bytes:
// Measured: `87`
// Estimated: `1572`
// Minimum execution time: 12_859_000 picoseconds.
Weight::from_parts(13_675_000, 0)
.saturating_add(Weight::from_parts(0, 1572))
// Measured: `154`
// Estimated: `1639`
// Minimum execution time: 12_839_000 picoseconds.
Weight::from_parts(13_376_000, 0)
.saturating_add(Weight::from_parts(0, 1639))
.saturating_add(T::DbWeight::get().reads(3))
.saturating_add(T::DbWeight::get().writes(2))
}
Expand All @@ -98,11 +98,11 @@ impl<T: frame_system::Config> darwinia_ecdsa_authority::WeightInfo for WeightInf
/// Proof Skipped: EcdsaAuthority Nonce (max_values: Some(1), max_size: None, mode: Measured)
fn remove_authority() -> Weight {
// Proof Size summary in bytes:
// Measured: `166`
// Estimated: `1651`
// Minimum execution time: 13_216_000 picoseconds.
Weight::from_parts(13_638_000, 0)
.saturating_add(Weight::from_parts(0, 1651))
// Measured: `233`
// Estimated: `1718`
// Minimum execution time: 13_887_000 picoseconds.
Weight::from_parts(14_596_000, 0)
.saturating_add(Weight::from_parts(0, 1718))
.saturating_add(T::DbWeight::get().reads(3))
.saturating_add(T::DbWeight::get().writes(2))
}
Expand All @@ -114,11 +114,11 @@ impl<T: frame_system::Config> darwinia_ecdsa_authority::WeightInfo for WeightInf
/// Proof Skipped: EcdsaAuthority Nonce (max_values: Some(1), max_size: None, mode: Measured)
fn swap_authority() -> Weight {
// Proof Size summary in bytes:
// Measured: `267`
// Estimated: `1752`
// Minimum execution time: 13_785_000 picoseconds.
Weight::from_parts(14_473_000, 0)
.saturating_add(Weight::from_parts(0, 1752))
// Measured: `334`
// Estimated: `1819`
// Minimum execution time: 13_867_000 picoseconds.
Weight::from_parts(14_436_000, 0)
.saturating_add(Weight::from_parts(0, 1819))
.saturating_add(T::DbWeight::get().reads(3))
.saturating_add(T::DbWeight::get().writes(2))
}
Expand All @@ -134,11 +134,11 @@ impl<T: frame_system::Config> darwinia_ecdsa_authority::WeightInfo for WeightInf
/// Proof Skipped: EcdsaAuthority MessageRootToSign (max_values: Some(1), max_size: None, mode: Measured)
fn submit_authorities_change_signature() -> Weight {
// Proof Size summary in bytes:
// Measured: `251`
// Estimated: `1736`
// Minimum execution time: 41_514_000 picoseconds.
Weight::from_parts(44_496_000, 0)
.saturating_add(Weight::from_parts(0, 1736))
// Measured: `318`
// Estimated: `1803`
// Minimum execution time: 43_242_000 picoseconds.
Weight::from_parts(45_719_000, 0)
.saturating_add(Weight::from_parts(0, 1803))
.saturating_add(T::DbWeight::get().reads(4))
.saturating_add(T::DbWeight::get().writes(4))
}
Expand All @@ -148,11 +148,11 @@ impl<T: frame_system::Config> darwinia_ecdsa_authority::WeightInfo for WeightInf
/// Proof Skipped: EcdsaAuthority MessageRootToSign (max_values: Some(1), max_size: None, mode: Measured)
fn submit_new_message_root_signature() -> Weight {
// Proof Size summary in bytes:
// Measured: `245`
// Estimated: `1730`
// Minimum execution time: 31_879_000 picoseconds.
Weight::from_parts(32_410_000, 0)
.saturating_add(Weight::from_parts(0, 1730))
// Measured: `312`
// Estimated: `1797`
// Minimum execution time: 96_062_000 picoseconds.
Weight::from_parts(100_295_000, 0)
.saturating_add(Weight::from_parts(0, 1797))
.saturating_add(T::DbWeight::get().reads(2))
.saturating_add(T::DbWeight::get().writes(1))
}
Expand Down
Loading

0 comments on commit d6ef3d1

Please sign in to comment.