Skip to content

Commit

Permalink
Update weights.
Browse files Browse the repository at this point in the history
  • Loading branch information
Neopallium committed Jan 19, 2023
1 parent 2ee11e0 commit e1ef16b
Show file tree
Hide file tree
Showing 21 changed files with 639 additions and 406 deletions.
2 changes: 1 addition & 1 deletion pallets/runtime/common/src/runtime.rs
Original file line number Diff line number Diff line change
Expand Up @@ -297,7 +297,7 @@ macro_rules! misc_pallet_impls {

impl pallet_relayer::Config for Runtime {
type RuntimeEvent = RuntimeEvent;
type WeightInfo = polymesh_weights::pallet_relayer::SubstrateWeight<Runtime>;
type WeightInfo = polymesh_weights::pallet_relayer::SubstrateWeight;
}

impl pallet_rewards::Config for Runtime {
Expand Down
44 changes: 28 additions & 16 deletions pallets/weights/src/frame_system.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,9 @@
//! Autogenerated weights for frame_system
//!
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
//! DATE: 2022-06-22, STEPS: `100`, REPEAT: 5, LOW RANGE: `[]`, HIGH RANGE: `[]`
//! DATE: 2023-01-18, STEPS: `100`, REPEAT: 5, LOW RANGE: `[]`, HIGH RANGE: `[]`
//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: None, DB CACHE: 512
//! HOSTNAME: `dev-fsn001`, CPU: `AMD Ryzen 9 5950X 16-Core Processor`
// Executed Command:
// ./target/release/polymesh
Expand Down Expand Up @@ -52,42 +53,53 @@ use polymesh_runtime_common::{RocksDbWeight as DbWeight, Weight};
/// Weights for frame_system using the Substrate node and recommended hardware.
pub struct SubstrateWeight;
impl frame_system::WeightInfo for SubstrateWeight {
/// The range of component `b` is `[0, 7864320]`.
fn remark(b: u32) -> Weight {
Weight::from_ref_time(0 as u64)
// Minimum execution time: 4_799 nanoseconds.
Weight::from_ref_time(3_782_975 as u64)
// Standard Error: 0
.saturating_add(Weight::from_ref_time(1_000 as u64).saturating_mul(b as u64))
.saturating_add(Weight::from_ref_time(219 as u64).saturating_mul(b as u64))
}
/// The range of component `b` is `[0, 7864320]`.
fn remark_with_event(b: u32) -> Weight {
Weight::from_ref_time(0 as u64)
// Standard Error: 0
.saturating_add(Weight::from_ref_time(3_000 as u64).saturating_mul(b as u64))
// Minimum execution time: 16_020 nanoseconds.
Weight::from_ref_time(16_641_000 as u64)
// Standard Error: 1
.saturating_add(Weight::from_ref_time(1_189 as u64).saturating_mul(b as u64))
}
// Storage: System Digest (r:1 w:1)
// Storage: unknown [0x3a686561707061676573] (r:0 w:1)
fn set_heap_pages() -> Weight {
Weight::from_ref_time(6_757_000 as u64)
// Minimum execution time: 15_829 nanoseconds.
Weight::from_ref_time(16_020_000 as u64)
.saturating_add(DbWeight::get().reads(1 as u64))
.saturating_add(DbWeight::get().writes(2 as u64))
}
// Storage: Skipped Metadata (r:0 w:0)
/// The range of component `i` is `[0, 1000]`.
fn set_storage(i: u32) -> Weight {
Weight::from_ref_time(0 as u64)
// Standard Error: 22_000
.saturating_add(Weight::from_ref_time(1_224_000 as u64).saturating_mul(i as u64))
// Minimum execution time: 7_974 nanoseconds.
Weight::from_ref_time(7_995_000 as u64)
// Standard Error: 1_116
.saturating_add(Weight::from_ref_time(714_164 as u64).saturating_mul(i as u64))
.saturating_add(DbWeight::get().writes((1 as u64).saturating_mul(i as u64)))
}
// Storage: Skipped Metadata (r:0 w:0)
/// The range of component `i` is `[0, 1000]`.
fn kill_storage(i: u32) -> Weight {
Weight::from_ref_time(0 as u64)
// Standard Error: 16_000
.saturating_add(Weight::from_ref_time(790_000 as u64).saturating_mul(i as u64))
// Minimum execution time: 5_210 nanoseconds.
Weight::from_ref_time(5_320_000 as u64)
// Standard Error: 1_136
.saturating_add(Weight::from_ref_time(582_206 as u64).saturating_mul(i as u64))
.saturating_add(DbWeight::get().writes((1 as u64).saturating_mul(i as u64)))
}
// Storage: Skipped Metadata (r:0 w:0)
/// The range of component `p` is `[0, 1000]`.
fn kill_prefix(p: u32) -> Weight {
Weight::from_ref_time(0 as u64)
// Standard Error: 23_000
.saturating_add(Weight::from_ref_time(1_696_000 as u64).saturating_mul(p as u64))
// Minimum execution time: 7_894 nanoseconds.
Weight::from_ref_time(8_045_000 as u64)
// Standard Error: 1_207
.saturating_add(Weight::from_ref_time(1_127_154 as u64).saturating_mul(p as u64))
.saturating_add(DbWeight::get().writes((1 as u64).saturating_mul(p as u64)))
}
}
136 changes: 85 additions & 51 deletions pallets/weights/src/pallet_asset.rs

Large diffs are not rendered by default.

25 changes: 16 additions & 9 deletions pallets/weights/src/pallet_checkpoint.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,9 @@
//! Autogenerated weights for pallet_checkpoint
//!
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
//! DATE: 2022-06-22, STEPS: `100`, REPEAT: 5, LOW RANGE: `[]`, HIGH RANGE: `[]`
//! DATE: 2023-01-18, STEPS: `100`, REPEAT: 5, LOW RANGE: `[]`, HIGH RANGE: `[]`
//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: None, DB CACHE: 512
//! HOSTNAME: `dev-fsn001`, CPU: `AMD Ryzen 9 5950X 16-Core Processor`
// Executed Command:
// ./target/release/polymesh
Expand Down Expand Up @@ -54,7 +55,8 @@ pub struct SubstrateWeight;
impl pallet_asset::checkpoint::WeightInfo for SubstrateWeight {
// Storage: Checkpoint SchedulesMaxComplexity (r:0 w:1)
fn set_schedules_max_complexity() -> Weight {
Weight::from_ref_time(22_014_000 as u64).saturating_add(DbWeight::get().writes(1 as u64))
// Minimum execution time: 17_713 nanoseconds.
Weight::from_ref_time(18_424_000 as u64).saturating_add(DbWeight::get().writes(1 as u64))
}
// Storage: Identity KeyRecords (r:1 w:0)
// Storage: ExternalAgents GroupOfAgent (r:1 w:0)
Expand All @@ -66,7 +68,8 @@ impl pallet_asset::checkpoint::WeightInfo for SubstrateWeight {
// Storage: Checkpoint TotalSupply (r:0 w:1)
// Storage: Checkpoint Timestamps (r:0 w:1)
fn create_checkpoint() -> Weight {
Weight::from_ref_time(80_449_000 as u64)
// Minimum execution time: 53_509 nanoseconds.
Weight::from_ref_time(54_550_000 as u64)
.saturating_add(DbWeight::get().reads(7 as u64))
.saturating_add(DbWeight::get().writes(3 as u64))
}
Expand All @@ -86,10 +89,12 @@ impl pallet_asset::checkpoint::WeightInfo for SubstrateWeight {
// Storage: Checkpoint TotalSupply (r:0 w:1)
// Storage: Checkpoint Timestamps (r:0 w:1)
// Storage: Checkpoint ScheduleRefCount (r:0 w:1)
/// The range of component `s` is `[1, 52]`.
fn create_schedule(s: u32) -> Weight {
Weight::from_ref_time(137_723_000 as u64)
// Standard Error: 106_000
.saturating_add(Weight::from_ref_time(518_000 as u64).saturating_mul(s as u64))
// Minimum execution time: 79_597 nanoseconds.
Weight::from_ref_time(82_521_401 as u64)
// Standard Error: 3_167
.saturating_add(Weight::from_ref_time(100_649 as u64).saturating_mul(s as u64))
.saturating_add(DbWeight::get().reads(13 as u64))
.saturating_add(DbWeight::get().writes(7 as u64))
}
Expand All @@ -99,10 +104,12 @@ impl pallet_asset::checkpoint::WeightInfo for SubstrateWeight {
// Storage: Permissions CurrentDispatchableName (r:1 w:0)
// Storage: Checkpoint Schedules (r:1 w:1)
// Storage: Checkpoint ScheduleRefCount (r:1 w:1)
/// The range of component `s` is `[1, 52]`.
fn remove_schedule(s: u32) -> Weight {
Weight::from_ref_time(85_362_000 as u64)
// Standard Error: 91_000
.saturating_add(Weight::from_ref_time(332_000 as u64).saturating_mul(s as u64))
// Minimum execution time: 49_030 nanoseconds.
Weight::from_ref_time(52_146_579 as u64)
// Standard Error: 6_090
.saturating_add(Weight::from_ref_time(165_419 as u64).saturating_mul(s as u64))
.saturating_add(DbWeight::get().reads(6 as u64))
.saturating_add(DbWeight::get().writes(2 as u64))
}
Expand Down
24 changes: 16 additions & 8 deletions pallets/weights/src/pallet_committee.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,9 @@
//! Autogenerated weights for pallet_committee
//!
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
//! DATE: 2022-06-22, STEPS: `100`, REPEAT: 5, LOW RANGE: `[]`, HIGH RANGE: `[]`
//! DATE: 2023-01-18, STEPS: `100`, REPEAT: 5, LOW RANGE: `[]`, HIGH RANGE: `[]`
//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: None, DB CACHE: 512
//! HOSTNAME: `dev-fsn001`, CPU: `AMD Ryzen 9 5950X 16-Core Processor`
// Executed Command:
// ./target/release/polymesh
Expand Down Expand Up @@ -54,18 +55,21 @@ pub struct SubstrateWeight;
impl pallet_committee::WeightInfo for SubstrateWeight {
// Storage: Instance1Committee VoteThreshold (r:0 w:1)
fn set_vote_threshold() -> Weight {
Weight::from_ref_time(20_972_000 as u64).saturating_add(DbWeight::get().writes(1 as u64))
// Minimum execution time: 17_322 nanoseconds.
Weight::from_ref_time(18_153_000 as u64).saturating_add(DbWeight::get().writes(1 as u64))
}
// Storage: Instance1Committee Members (r:1 w:0)
// Storage: Instance1Committee ReleaseCoordinator (r:0 w:1)
fn set_release_coordinator() -> Weight {
Weight::from_ref_time(166_590_000 as u64)
// Minimum execution time: 121_574 nanoseconds.
Weight::from_ref_time(133_636_000 as u64)
.saturating_add(DbWeight::get().reads(1 as u64))
.saturating_add(DbWeight::get().writes(1 as u64))
}
// Storage: Instance1Committee ExpiresAfter (r:0 w:1)
fn set_expires_after() -> Weight {
Weight::from_ref_time(24_033_000 as u64).saturating_add(DbWeight::get().writes(1 as u64))
// Minimum execution time: 21_139 nanoseconds.
Weight::from_ref_time(21_850_000 as u64).saturating_add(DbWeight::get().writes(1 as u64))
}
// Storage: Instance1Committee Voting (r:1 w:1)
// Storage: Identity KeyRecords (r:1 w:0)
Expand All @@ -75,7 +79,8 @@ impl pallet_committee::WeightInfo for SubstrateWeight {
// Storage: Instance1Committee Proposals (r:1 w:1)
// Storage: Instance1Committee ExpiresAfter (r:1 w:0)
fn vote_or_propose_new_proposal() -> Weight {
Weight::from_ref_time(396_265_000 as u64)
// Minimum execution time: 281_019 nanoseconds.
Weight::from_ref_time(284_926_000 as u64)
.saturating_add(DbWeight::get().reads(7 as u64))
.saturating_add(DbWeight::get().writes(4 as u64))
}
Expand All @@ -84,7 +89,8 @@ impl pallet_committee::WeightInfo for SubstrateWeight {
// Storage: Instance1Committee Members (r:1 w:0)
// Storage: Instance1Committee VoteThreshold (r:1 w:0)
fn vote_or_propose_existing_proposal() -> Weight {
Weight::from_ref_time(309_183_000 as u64)
// Minimum execution time: 263_446 nanoseconds.
Weight::from_ref_time(266_863_000 as u64)
.saturating_add(DbWeight::get().reads(4 as u64))
.saturating_add(DbWeight::get().writes(1 as u64))
}
Expand All @@ -96,7 +102,8 @@ impl pallet_committee::WeightInfo for SubstrateWeight {
// Storage: Instance1Committee ProposalOf (r:1 w:1)
// Storage: Instance1Committee Proposals (r:1 w:1)
fn vote_aye() -> Weight {
Weight::from_ref_time(550_119_000 as u64)
// Minimum execution time: 366_677 nanoseconds.
Weight::from_ref_time(370_605_000 as u64)
.saturating_add(DbWeight::get().reads(7 as u64))
.saturating_add(DbWeight::get().writes(3 as u64))
}
Expand All @@ -105,7 +112,8 @@ impl pallet_committee::WeightInfo for SubstrateWeight {
// Storage: Instance1Committee Voting (r:1 w:1)
// Storage: Instance1Committee VoteThreshold (r:1 w:0)
fn vote_nay() -> Weight {
Weight::from_ref_time(332_290_000 as u64)
// Minimum execution time: 239_021 nanoseconds.
Weight::from_ref_time(250_753_000 as u64)
.saturating_add(DbWeight::get().reads(4 as u64))
.saturating_add(DbWeight::get().writes(1 as u64))
}
Expand Down
68 changes: 43 additions & 25 deletions pallets/weights/src/pallet_compliance_manager.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,9 @@
//! Autogenerated weights for pallet_compliance_manager
//!
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
//! DATE: 2022-06-28, STEPS: `100`, REPEAT: 5, LOW RANGE: `[]`, HIGH RANGE: `[]`
//! DATE: 2023-01-18, STEPS: `100`, REPEAT: 5, LOW RANGE: `[]`, HIGH RANGE: `[]`
//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: None, DB CACHE: 512
//! HOSTNAME: `dev-fsn001`, CPU: `AMD Ryzen 9 5950X 16-Core Processor`
// Executed Command:
// ./target/release/polymesh
Expand Down Expand Up @@ -52,16 +53,21 @@ use polymesh_runtime_common::{RocksDbWeight as DbWeight, Weight};
/// Weights for pallet_compliance_manager using the Substrate node and recommended hardware.
pub struct SubstrateWeight;
impl pallet_compliance_manager::WeightInfo for SubstrateWeight {
/// The range of component `a` is `[1, 10]`.
/// The range of component `b` is `[1, 10]`.
/// The range of component `c` is `[1, 10]`.
/// The range of component `d` is `[1, 10]`.
fn condition_costs(a: u32, b: u32, c: u32, d: u32) -> Weight {
Weight::from_ref_time(0 as u64)
// Standard Error: 522_000
.saturating_add(Weight::from_ref_time(9_579_000 as u64).saturating_mul(a as u64))
// Standard Error: 522_000
.saturating_add(Weight::from_ref_time(5_484_000 as u64).saturating_mul(b as u64))
// Standard Error: 522_000
.saturating_add(Weight::from_ref_time(5_395_000 as u64).saturating_mul(c as u64))
// Standard Error: 522_000
.saturating_add(Weight::from_ref_time(968_000 as u64).saturating_mul(d as u64))
// Minimum execution time: 7_874 nanoseconds.
Weight::from_ref_time(8_095_000 as u64)
// Standard Error: 39_414
.saturating_add(Weight::from_ref_time(2_955_380 as u64).saturating_mul(a as u64))
// Standard Error: 39_414
.saturating_add(Weight::from_ref_time(476_194 as u64).saturating_mul(b as u64))
// Standard Error: 39_414
.saturating_add(Weight::from_ref_time(721_394 as u64).saturating_mul(c as u64))
// Manually set for `d`
.saturating_add(Weight::from_ref_time(721_394 as u64).saturating_mul(d as u64))
}
// Storage: Identity KeyRecords (r:1 w:0)
// Storage: ExternalAgents GroupOfAgent (r:1 w:0)
Expand All @@ -71,10 +77,12 @@ impl pallet_compliance_manager::WeightInfo for SubstrateWeight {
// Storage: ComplianceManager TrustedClaimIssuer (r:1 w:0)
// Storage: ProtocolFee Coefficient (r:1 w:0)
// Storage: ProtocolFee BaseFees (r:1 w:0)
/// The range of component `c` is `[1, 6]`.
fn add_compliance_requirement(c: u32) -> Weight {
Weight::from_ref_time(115_178_000 as u64)
// Standard Error: 1_087_000
.saturating_add(Weight::from_ref_time(387_000 as u64).saturating_mul(c as u64))
// Minimum execution time: 60_372 nanoseconds.
Weight::from_ref_time(63_026_589 as u64)
// Standard Error: 46_582
.saturating_add(Weight::from_ref_time(540_810 as u64).saturating_mul(c as u64))
.saturating_add(DbWeight::get().reads(8 as u64))
.saturating_add(DbWeight::get().writes(1 as u64))
}
Expand All @@ -84,7 +92,8 @@ impl pallet_compliance_manager::WeightInfo for SubstrateWeight {
// Storage: Permissions CurrentDispatchableName (r:1 w:0)
// Storage: ComplianceManager AssetCompliances (r:1 w:1)
fn remove_compliance_requirement() -> Weight {
Weight::from_ref_time(85_598_000 as u64)
// Minimum execution time: 51_265 nanoseconds.
Weight::from_ref_time(51_766_000 as u64)
.saturating_add(DbWeight::get().reads(5 as u64))
.saturating_add(DbWeight::get().writes(1 as u64))
}
Expand All @@ -94,7 +103,8 @@ impl pallet_compliance_manager::WeightInfo for SubstrateWeight {
// Storage: Permissions CurrentDispatchableName (r:1 w:0)
// Storage: ComplianceManager AssetCompliances (r:1 w:1)
fn pause_asset_compliance() -> Weight {
Weight::from_ref_time(108_303_000 as u64)
// Minimum execution time: 52_668 nanoseconds.
Weight::from_ref_time(53_188_000 as u64)
.saturating_add(DbWeight::get().reads(5 as u64))
.saturating_add(DbWeight::get().writes(1 as u64))
}
Expand All @@ -104,7 +114,8 @@ impl pallet_compliance_manager::WeightInfo for SubstrateWeight {
// Storage: Permissions CurrentDispatchableName (r:1 w:0)
// Storage: ComplianceManager AssetCompliances (r:1 w:1)
fn resume_asset_compliance() -> Weight {
Weight::from_ref_time(74_689_000 as u64)
// Minimum execution time: 49_812 nanoseconds.
Weight::from_ref_time(54_541_000 as u64)
.saturating_add(DbWeight::get().reads(5 as u64))
.saturating_add(DbWeight::get().writes(1 as u64))
}
Expand All @@ -116,7 +127,8 @@ impl pallet_compliance_manager::WeightInfo for SubstrateWeight {
// Storage: ComplianceManager TrustedClaimIssuer (r:1 w:1)
// Storage: ComplianceManager AssetCompliances (r:1 w:0)
fn add_default_trusted_claim_issuer() -> Weight {
Weight::from_ref_time(89_973_000 as u64)
// Minimum execution time: 56_625 nanoseconds.
Weight::from_ref_time(57_235_000 as u64)
.saturating_add(DbWeight::get().reads(7 as u64))
.saturating_add(DbWeight::get().writes(1 as u64))
}
Expand All @@ -126,7 +138,8 @@ impl pallet_compliance_manager::WeightInfo for SubstrateWeight {
// Storage: Permissions CurrentDispatchableName (r:1 w:0)
// Storage: ComplianceManager TrustedClaimIssuer (r:1 w:1)
fn remove_default_trusted_claim_issuer() -> Weight {
Weight::from_ref_time(73_911_000 as u64)
// Minimum execution time: 49_361 nanoseconds.
Weight::from_ref_time(49_752_000 as u64)
.saturating_add(DbWeight::get().reads(5 as u64))
.saturating_add(DbWeight::get().writes(1 as u64))
}
Expand All @@ -136,10 +149,12 @@ impl pallet_compliance_manager::WeightInfo for SubstrateWeight {
// Storage: Permissions CurrentDispatchableName (r:1 w:0)
// Storage: ComplianceManager AssetCompliances (r:1 w:1)
// Storage: ComplianceManager TrustedClaimIssuer (r:1 w:0)
/// The range of component `c` is `[1, 6]`.
fn change_compliance_requirement(c: u32) -> Weight {
Weight::from_ref_time(100_696_000 as u64)
// Standard Error: 1_115_000
.saturating_add(Weight::from_ref_time(1_832_000 as u64).saturating_mul(c as u64))
// Minimum execution time: 55_863 nanoseconds.
Weight::from_ref_time(56_861_754 as u64)
// Standard Error: 30_721
.saturating_add(Weight::from_ref_time(737_109 as u64).saturating_mul(c as u64))
.saturating_add(DbWeight::get().reads(6 as u64))
.saturating_add(DbWeight::get().writes(1 as u64))
}
Expand All @@ -149,10 +164,12 @@ impl pallet_compliance_manager::WeightInfo for SubstrateWeight {
// Storage: Permissions CurrentDispatchableName (r:1 w:0)
// Storage: ComplianceManager TrustedClaimIssuer (r:1 w:0)
// Storage: ComplianceManager AssetCompliances (r:1 w:1)
/// The range of component `c` is `[0, 2]`.
fn replace_asset_compliance(c: u32) -> Weight {
Weight::from_ref_time(103_333_000 as u64)
// Standard Error: 2_864_000
.saturating_add(Weight::from_ref_time(10_787_000 as u64).saturating_mul(c as u64))
// Minimum execution time: 52_056 nanoseconds.
Weight::from_ref_time(54_555_106 as u64)
// Standard Error: 62_685
.saturating_add(Weight::from_ref_time(6_376_676 as u64).saturating_mul(c as u64))
.saturating_add(DbWeight::get().reads(6 as u64))
.saturating_add(DbWeight::get().writes(1 as u64))
}
Expand All @@ -162,7 +179,8 @@ impl pallet_compliance_manager::WeightInfo for SubstrateWeight {
// Storage: Permissions CurrentDispatchableName (r:1 w:0)
// Storage: ComplianceManager AssetCompliances (r:0 w:1)
fn reset_asset_compliance() -> Weight {
Weight::from_ref_time(69_229_000 as u64)
// Minimum execution time: 43_210 nanoseconds.
Weight::from_ref_time(43_600_000 as u64)
.saturating_add(DbWeight::get().reads(4 as u64))
.saturating_add(DbWeight::get().writes(1 as u64))
}
Expand Down
Loading

0 comments on commit e1ef16b

Please sign in to comment.