From de9b057fe33358d8bb48e00c39000d8f19a3c468 Mon Sep 17 00:00:00 2001 From: nakul1010 Date: Tue, 29 Aug 2023 12:22:14 +0530 Subject: [PATCH] fix: update weights --- crates/issue/src/default_weights.rs | 274 ++++++++--------- crates/redeem/src/default_weights.rs | 279 +++++++++++------- .../runtime/interlay/src/weights/issue.rs | 126 ++++---- .../runtime/interlay/src/weights/redeem.rs | 130 +++++--- .../runtime/kintsugi/src/weights/issue.rs | 130 ++++---- .../runtime/kintsugi/src/weights/redeem.rs | 130 +++++--- 6 files changed, 618 insertions(+), 451 deletions(-) diff --git a/crates/issue/src/default_weights.rs b/crates/issue/src/default_weights.rs index 96bb68475d..fb590f3517 100644 --- a/crates/issue/src/default_weights.rs +++ b/crates/issue/src/default_weights.rs @@ -2,31 +2,32 @@ //! Autogenerated weights for issue //! //! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev -//! DATE: 2023-05-03, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! DATE: 2023-08-29, STEPS: `2`, REPEAT: `1`, LOW RANGE: `[]`, HIGH RANGE: `[]` //! WORST CASE MAP SIZE: `1000000` -//! HOSTNAME: `enterprise`, CPU: `Intel(R) Core(TM) i7-9700K CPU @ 3.60GHz` +//! HOSTNAME: `Nakuls-MacBook-Pro.local`, CPU: `` //! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("kintsugi-dev"), DB CACHE: 1024 // Executed Command: -// target/release/interbtc-parachain +// ./target/release/interbtc-parachain // benchmark // pallet // --pallet // issue // --extrinsic // * -// --chain -// kintsugi-dev // --execution=wasm // --wasm-execution=compiled // --steps -// 50 +// 2 // --repeat -// 20 -// --output -// crates/issue/src/default_weights.rs +// 1 // --template -// .deploy/default-weight-template.hbs +// .deploy/runtime-weight-template.hbs +// --chain +// kintsugi-dev +// --output +// generated_weight_kintsugi.rs + #![cfg_attr(rustfmt, rustfmt_skip)] #![allow(unused_parens)] @@ -67,6 +68,8 @@ impl WeightInfo for SubstrateWeight { /// Proof: Fee IssueGriefingCollateral (max_values: Some(1), max_size: Some(16), added: 511, mode: MaxEncodedLen) /// Storage: Tokens Accounts (r:1 w:1) /// Proof: Tokens Accounts (max_values: None, max_size: Some(115), added: 2590, mode: MaxEncodedLen) + /// Storage: Fee IssueFee (r:1 w:0) + /// Proof: Fee IssueFee (max_values: Some(1), max_size: Some(16), added: 511, mode: MaxEncodedLen) /// Storage: Issue IssueBtcDustValue (r:1 w:0) /// Proof: Issue IssueBtcDustValue (max_values: Some(1), max_size: Some(16), added: 511, mode: MaxEncodedLen) /// Storage: VaultRegistry SecureCollateralThreshold (r:1 w:0) @@ -75,8 +78,6 @@ impl WeightInfo for SubstrateWeight { /// Proof: VaultStaking Nonce (max_values: None, max_size: Some(74), added: 2549, mode: MaxEncodedLen) /// Storage: VaultStaking TotalCurrentStake (r:1 w:0) /// Proof: VaultStaking TotalCurrentStake (max_values: None, max_size: Some(106), added: 2581, mode: MaxEncodedLen) - /// Storage: Fee IssueFee (r:1 w:0) - /// Proof: Fee IssueFee (max_values: Some(1), max_size: Some(16), added: 511, mode: MaxEncodedLen) /// Storage: Security Nonce (r:1 w:1) /// Proof: Security Nonce (max_values: Some(1), max_size: Some(32), added: 527, mode: MaxEncodedLen) /// Storage: System ParentHash (r:1 w:0) @@ -93,8 +94,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `2690` // Estimated: `6028` - // Minimum execution time: 22_932_000_000 picoseconds. - Weight::from_parts(22_932_000_000, 6028) + // Minimum execution time: 38_621_000_000 picoseconds. + Weight::from_parts(38_621_000_000, 6028) .saturating_add(T::DbWeight::get().reads(18_u64)) .saturating_add(T::DbWeight::get().writes(4_u64)) } @@ -126,18 +127,16 @@ impl WeightInfo for SubstrateWeight { /// The range of component `i` is `[1, 10]`. /// The range of component `o` is `[1, 10]`. /// The range of component `b` is `[770, 2048]`. - fn execute_issue_exact (h: u32, i: u32, o: u32, _b: u32, ) -> Weight { + fn execute_issue_exact (_h: u32, i: u32, o: u32, _b: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `2448` // Estimated: `3760` - // Minimum execution time: 112_000_000 picoseconds. - Weight::from_parts(85_677_230, 3760) - // Standard Error: 649_519 - .saturating_add(Weight::from_parts(1_875_000, 0).saturating_mul(h.into())) - // Standard Error: 577_350 - .saturating_add(Weight::from_parts(1_888_888, 0).saturating_mul(i.into())) - // Standard Error: 577_350 - .saturating_add(Weight::from_parts(888_888, 0).saturating_mul(o.into())) + // Minimum execution time: 206_000_000 picoseconds. + Weight::from_parts(261_839_397, 3760) + // Standard Error: 96_225 + .saturating_add(Weight::from_parts(277_777, 0).saturating_mul(i.into())) + // Standard Error: 96_225 + .saturating_add(Weight::from_parts(166_666, 0).saturating_mul(o.into())) .saturating_add(T::DbWeight::get().reads(12_u64)) .saturating_add(T::DbWeight::get().writes(5_u64)) } @@ -179,16 +178,18 @@ impl WeightInfo for SubstrateWeight { /// The range of component `i` is `[1, 10]`. /// The range of component `o` is `[1, 10]`. /// The range of component `b` is `[770, 2048]`. - fn execute_issue_overpayment (h: u32, _i: u32, o: u32, _b: u32, ) -> Weight { + fn execute_issue_overpayment (_h: u32, i: u32, o: u32, b: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `3335` // Estimated: `3760` - // Minimum execution time: 172_000_000 picoseconds. - Weight::from_parts(185_757_824, 3760) - // Standard Error: 216_506 - .saturating_add(Weight::from_parts(1_625_000, 0).saturating_mul(h.into())) - // Standard Error: 192_450 - .saturating_add(Weight::from_parts(444_444, 0).saturating_mul(o.into())) + // Minimum execution time: 307_000_000 picoseconds. + Weight::from_parts(277_172_143, 3760) + // Standard Error: 1_347_150 + .saturating_add(Weight::from_parts(777_777, 0).saturating_mul(i.into())) + // Standard Error: 1_347_150 + .saturating_add(Weight::from_parts(1_000_000, 0).saturating_mul(o.into())) + // Standard Error: 9_486 + .saturating_add(Weight::from_parts(15_649, 0).saturating_mul(b.into())) .saturating_add(T::DbWeight::get().reads(17_u64)) .saturating_add(T::DbWeight::get().writes(5_u64)) } @@ -222,18 +223,18 @@ impl WeightInfo for SubstrateWeight { /// The range of component `i` is `[1, 10]`. /// The range of component `o` is `[1, 10]`. /// The range of component `b` is `[770, 2048]`. - fn execute_issue_underpayment (h: u32, _i: u32, o: u32, b: u32, ) -> Weight { + fn execute_issue_underpayment (h: u32, i: u32, _o: u32, b: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `2747` // Estimated: `3760` - // Minimum execution time: 124_000_000 picoseconds. - Weight::from_parts(113_290_101, 3760) - // Standard Error: 541_265 - .saturating_add(Weight::from_parts(2_187_500, 0).saturating_mul(h.into())) - // Standard Error: 481_125 - .saturating_add(Weight::from_parts(722_222, 0).saturating_mul(o.into())) - // Standard Error: 3_388 - .saturating_add(Weight::from_parts(7_433, 0).saturating_mul(b.into())) + // Minimum execution time: 214_000_000 picoseconds. + Weight::from_parts(184_539_123, 3760) + // Standard Error: 1_732_050 + .saturating_add(Weight::from_parts(4_250_000, 0).saturating_mul(h.into())) + // Standard Error: 1_539_600 + .saturating_add(Weight::from_parts(1_555_555, 0).saturating_mul(i.into())) + // Standard Error: 10_842 + .saturating_add(Weight::from_parts(8_607, 0).saturating_mul(b.into())) .saturating_add(T::DbWeight::get().reads(13_u64)) .saturating_add(T::DbWeight::get().writes(5_u64)) } @@ -265,18 +266,20 @@ impl WeightInfo for SubstrateWeight { /// The range of component `i` is `[1, 10]`. /// The range of component `o` is `[1, 10]`. /// The range of component `b` is `[770, 2048]`. - fn execute_expired_issue_exact (h: u32, _i: u32, o: u32, b: u32, ) -> Weight { + fn execute_expired_issue_exact (h: u32, i: u32, o: u32, b: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `3536` // Estimated: `3760` - // Minimum execution time: 115_000_000 picoseconds. - Weight::from_parts(89_545_774, 3760) - // Standard Error: 216_506 - .saturating_add(Weight::from_parts(2_375_000, 0).saturating_mul(h.into())) - // Standard Error: 192_450 - .saturating_add(Weight::from_parts(1_222_222, 0).saturating_mul(o.into())) - // Standard Error: 1_355 - .saturating_add(Weight::from_parts(11_737, 0).saturating_mul(b.into())) + // Minimum execution time: 194_000_000 picoseconds. + Weight::from_parts(163_253_716, 3760) + // Standard Error: 974_278 + .saturating_add(Weight::from_parts(3_562_500, 0).saturating_mul(h.into())) + // Standard Error: 866_025 + .saturating_add(Weight::from_parts(611_111, 0).saturating_mul(i.into())) + // Standard Error: 866_025 + .saturating_add(Weight::from_parts(388_888, 0).saturating_mul(o.into())) + // Standard Error: 6_098 + .saturating_add(Weight::from_parts(6_651, 0).saturating_mul(b.into())) .saturating_add(T::DbWeight::get().reads(12_u64)) .saturating_add(T::DbWeight::get().writes(5_u64)) } @@ -318,18 +321,18 @@ impl WeightInfo for SubstrateWeight { /// The range of component `i` is `[1, 10]`. /// The range of component `o` is `[1, 10]`. /// The range of component `b` is `[770, 2048]`. - fn execute_expired_issue_overpayment (h: u32, _i: u32, o: u32, b: u32, ) -> Weight { + fn execute_expired_issue_overpayment (h: u32, i: u32, o: u32, _b: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `4141 + h * (21 ±0) + i * (3 ±0) + o * (3 ±0)` // Estimated: `3760` - // Minimum execution time: 181_000_000 picoseconds. - Weight::from_parts(173_823_552, 3760) - // Standard Error: 649_519 - .saturating_add(Weight::from_parts(2_125_000, 0).saturating_mul(h.into())) - // Standard Error: 577_350 - .saturating_add(Weight::from_parts(1_444_444, 0).saturating_mul(o.into())) - // Standard Error: 4_065 - .saturating_add(Weight::from_parts(11_737, 0).saturating_mul(b.into())) + // Minimum execution time: 322_000_000 picoseconds. + Weight::from_parts(316_622_652, 3760) + // Standard Error: 108_253 + .saturating_add(Weight::from_parts(937_500, 0).saturating_mul(h.into())) + // Standard Error: 96_225 + .saturating_add(Weight::from_parts(1_055_555, 0).saturating_mul(i.into())) + // Standard Error: 96_225 + .saturating_add(Weight::from_parts(55_555, 0).saturating_mul(o.into())) .saturating_add(T::DbWeight::get().reads(17_u64)) .saturating_add(T::DbWeight::get().writes(5_u64)) } @@ -363,18 +366,18 @@ impl WeightInfo for SubstrateWeight { /// The range of component `i` is `[1, 10]`. /// The range of component `o` is `[1, 10]`. /// The range of component `b` is `[770, 2048]`. - fn execute_expired_issue_underpayment (h: u32, _i: u32, o: u32, b: u32, ) -> Weight { + fn execute_expired_issue_underpayment (h: u32, i: u32, _o: u32, b: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `3990` // Estimated: `3760` - // Minimum execution time: 132_000_000 picoseconds. - Weight::from_parts(106_780_516, 3760) - // Standard Error: 1_732_050 - .saturating_add(Weight::from_parts(2_375_000, 0).saturating_mul(h.into())) - // Standard Error: 1_539_600 - .saturating_add(Weight::from_parts(888_888, 0).saturating_mul(o.into())) - // Standard Error: 10_842 - .saturating_add(Weight::from_parts(7_824, 0).saturating_mul(b.into())) + // Minimum execution time: 231_000_000 picoseconds. + Weight::from_parts(177_273_669, 3760) + // Standard Error: 108_253 + .saturating_add(Weight::from_parts(5_437_500, 0).saturating_mul(h.into())) + // Standard Error: 96_225 + .saturating_add(Weight::from_parts(1_277_777, 0).saturating_mul(i.into())) + // Standard Error: 677 + .saturating_add(Weight::from_parts(16_040, 0).saturating_mul(b.into())) .saturating_add(T::DbWeight::get().reads(13_u64)) .saturating_add(T::DbWeight::get().writes(5_u64)) } @@ -392,8 +395,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `1505` // Estimated: `3760` - // Minimum execution time: 51_000_000 picoseconds. - Weight::from_parts(51_000_000, 3760) + // Minimum execution time: 89_000_000 picoseconds. + Weight::from_parts(89_000_000, 3760) .saturating_add(T::DbWeight::get().reads(5_u64)) .saturating_add(T::DbWeight::get().writes(2_u64)) } @@ -409,8 +412,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `1027` // Estimated: `3760` - // Minimum execution time: 35_000_000 picoseconds. - Weight::from_parts(35_000_000, 3760) + // Minimum execution time: 66_000_000 picoseconds. + Weight::from_parts(66_000_000, 3760) .saturating_add(T::DbWeight::get().reads(4_u64)) .saturating_add(T::DbWeight::get().writes(1_u64)) } @@ -420,8 +423,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 10_000_000 picoseconds. - Weight::from_parts(10_000_000, 0) + // Minimum execution time: 17_000_000 picoseconds. + Weight::from_parts(17_000_000, 0) .saturating_add(T::DbWeight::get().writes(1_u64)) } } @@ -443,6 +446,8 @@ impl WeightInfo for () { /// Proof: Fee IssueGriefingCollateral (max_values: Some(1), max_size: Some(16), added: 511, mode: MaxEncodedLen) /// Storage: Tokens Accounts (r:1 w:1) /// Proof: Tokens Accounts (max_values: None, max_size: Some(115), added: 2590, mode: MaxEncodedLen) + /// Storage: Fee IssueFee (r:1 w:0) + /// Proof: Fee IssueFee (max_values: Some(1), max_size: Some(16), added: 511, mode: MaxEncodedLen) /// Storage: Issue IssueBtcDustValue (r:1 w:0) /// Proof: Issue IssueBtcDustValue (max_values: Some(1), max_size: Some(16), added: 511, mode: MaxEncodedLen) /// Storage: VaultRegistry SecureCollateralThreshold (r:1 w:0) @@ -451,8 +456,6 @@ impl WeightInfo for () { /// Proof: VaultStaking Nonce (max_values: None, max_size: Some(74), added: 2549, mode: MaxEncodedLen) /// Storage: VaultStaking TotalCurrentStake (r:1 w:0) /// Proof: VaultStaking TotalCurrentStake (max_values: None, max_size: Some(106), added: 2581, mode: MaxEncodedLen) - /// Storage: Fee IssueFee (r:1 w:0) - /// Proof: Fee IssueFee (max_values: Some(1), max_size: Some(16), added: 511, mode: MaxEncodedLen) /// Storage: Security Nonce (r:1 w:1) /// Proof: Security Nonce (max_values: Some(1), max_size: Some(32), added: 527, mode: MaxEncodedLen) /// Storage: System ParentHash (r:1 w:0) @@ -469,11 +472,12 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `2690` // Estimated: `6028` - // Minimum execution time: 22_932_000_000 picoseconds. - Weight::from_parts(22_932_000_000, 6028) + // Minimum execution time: 38_621_000_000 picoseconds. + Weight::from_parts(38_621_000_000, 6028) .saturating_add(RocksDbWeight::get().reads(18_u64)) .saturating_add(RocksDbWeight::get().writes(4_u64)) } + /// Storage: Issue IssueRequests (r:1 w:1) /// Proof: Issue IssueRequests (max_values: None, max_size: Some(295), added: 2770, mode: MaxEncodedLen) /// Storage: BTCRelay DisableInclusionCheck (r:1 w:0) @@ -502,18 +506,16 @@ impl WeightInfo for () { /// The range of component `i` is `[1, 10]`. /// The range of component `o` is `[1, 10]`. /// The range of component `b` is `[770, 2048]`. - fn execute_issue_exact (h: u32, i: u32, o: u32, _b: u32, ) -> Weight { + fn execute_issue_exact (_h: u32, i: u32, o: u32, _b: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `2448` // Estimated: `3760` - // Minimum execution time: 112_000_000 picoseconds. - Weight::from_parts(85_677_230, 3760) - // Standard Error: 649_519 - .saturating_add(Weight::from_parts(1_875_000, 0).saturating_mul(h.into())) - // Standard Error: 577_350 - .saturating_add(Weight::from_parts(1_888_888, 0).saturating_mul(i.into())) - // Standard Error: 577_350 - .saturating_add(Weight::from_parts(888_888, 0).saturating_mul(o.into())) + // Minimum execution time: 206_000_000 picoseconds. + Weight::from_parts(261_839_397, 3760) + // Standard Error: 96_225 + .saturating_add(Weight::from_parts(277_777, 0).saturating_mul(i.into())) + // Standard Error: 96_225 + .saturating_add(Weight::from_parts(166_666, 0).saturating_mul(o.into())) .saturating_add(RocksDbWeight::get().reads(12_u64)) .saturating_add(RocksDbWeight::get().writes(5_u64)) } @@ -555,16 +557,18 @@ impl WeightInfo for () { /// The range of component `i` is `[1, 10]`. /// The range of component `o` is `[1, 10]`. /// The range of component `b` is `[770, 2048]`. - fn execute_issue_overpayment (h: u32, _i: u32, o: u32, _b: u32, ) -> Weight { + fn execute_issue_overpayment (_h: u32, i: u32, o: u32, b: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `3335` // Estimated: `3760` - // Minimum execution time: 172_000_000 picoseconds. - Weight::from_parts(185_757_824, 3760) - // Standard Error: 216_506 - .saturating_add(Weight::from_parts(1_625_000, 0).saturating_mul(h.into())) - // Standard Error: 192_450 - .saturating_add(Weight::from_parts(444_444, 0).saturating_mul(o.into())) + // Minimum execution time: 307_000_000 picoseconds. + Weight::from_parts(277_172_143, 3760) + // Standard Error: 1_347_150 + .saturating_add(Weight::from_parts(777_777, 0).saturating_mul(i.into())) + // Standard Error: 1_347_150 + .saturating_add(Weight::from_parts(1_000_000, 0).saturating_mul(o.into())) + // Standard Error: 9_486 + .saturating_add(Weight::from_parts(15_649, 0).saturating_mul(b.into())) .saturating_add(RocksDbWeight::get().reads(17_u64)) .saturating_add(RocksDbWeight::get().writes(5_u64)) } @@ -598,18 +602,18 @@ impl WeightInfo for () { /// The range of component `i` is `[1, 10]`. /// The range of component `o` is `[1, 10]`. /// The range of component `b` is `[770, 2048]`. - fn execute_issue_underpayment (h: u32, _i: u32, o: u32, b: u32, ) -> Weight { + fn execute_issue_underpayment (h: u32, i: u32, _o: u32, b: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `2747` // Estimated: `3760` - // Minimum execution time: 124_000_000 picoseconds. - Weight::from_parts(113_290_101, 3760) - // Standard Error: 541_265 - .saturating_add(Weight::from_parts(2_187_500, 0).saturating_mul(h.into())) - // Standard Error: 481_125 - .saturating_add(Weight::from_parts(722_222, 0).saturating_mul(o.into())) - // Standard Error: 3_388 - .saturating_add(Weight::from_parts(7_433, 0).saturating_mul(b.into())) + // Minimum execution time: 214_000_000 picoseconds. + Weight::from_parts(184_539_123, 3760) + // Standard Error: 1_732_050 + .saturating_add(Weight::from_parts(4_250_000, 0).saturating_mul(h.into())) + // Standard Error: 1_539_600 + .saturating_add(Weight::from_parts(1_555_555, 0).saturating_mul(i.into())) + // Standard Error: 10_842 + .saturating_add(Weight::from_parts(8_607, 0).saturating_mul(b.into())) .saturating_add(RocksDbWeight::get().reads(13_u64)) .saturating_add(RocksDbWeight::get().writes(5_u64)) } @@ -641,18 +645,20 @@ impl WeightInfo for () { /// The range of component `i` is `[1, 10]`. /// The range of component `o` is `[1, 10]`. /// The range of component `b` is `[770, 2048]`. - fn execute_expired_issue_exact (h: u32, _i: u32, o: u32, b: u32, ) -> Weight { + fn execute_expired_issue_exact (h: u32, i: u32, o: u32, b: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `3536` // Estimated: `3760` - // Minimum execution time: 115_000_000 picoseconds. - Weight::from_parts(89_545_774, 3760) - // Standard Error: 216_506 - .saturating_add(Weight::from_parts(2_375_000, 0).saturating_mul(h.into())) - // Standard Error: 192_450 - .saturating_add(Weight::from_parts(1_222_222, 0).saturating_mul(o.into())) - // Standard Error: 1_355 - .saturating_add(Weight::from_parts(11_737, 0).saturating_mul(b.into())) + // Minimum execution time: 194_000_000 picoseconds. + Weight::from_parts(163_253_716, 3760) + // Standard Error: 974_278 + .saturating_add(Weight::from_parts(3_562_500, 0).saturating_mul(h.into())) + // Standard Error: 866_025 + .saturating_add(Weight::from_parts(611_111, 0).saturating_mul(i.into())) + // Standard Error: 866_025 + .saturating_add(Weight::from_parts(388_888, 0).saturating_mul(o.into())) + // Standard Error: 6_098 + .saturating_add(Weight::from_parts(6_651, 0).saturating_mul(b.into())) .saturating_add(RocksDbWeight::get().reads(12_u64)) .saturating_add(RocksDbWeight::get().writes(5_u64)) } @@ -694,18 +700,18 @@ impl WeightInfo for () { /// The range of component `i` is `[1, 10]`. /// The range of component `o` is `[1, 10]`. /// The range of component `b` is `[770, 2048]`. - fn execute_expired_issue_overpayment (h: u32, _i: u32, o: u32, b: u32, ) -> Weight { + fn execute_expired_issue_overpayment (h: u32, i: u32, o: u32, _b: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `4141 + h * (21 ±0) + i * (3 ±0) + o * (3 ±0)` // Estimated: `3760` - // Minimum execution time: 181_000_000 picoseconds. - Weight::from_parts(173_823_552, 3760) - // Standard Error: 649_519 - .saturating_add(Weight::from_parts(2_125_000, 0).saturating_mul(h.into())) - // Standard Error: 577_350 - .saturating_add(Weight::from_parts(1_444_444, 0).saturating_mul(o.into())) - // Standard Error: 4_065 - .saturating_add(Weight::from_parts(11_737, 0).saturating_mul(b.into())) + // Minimum execution time: 322_000_000 picoseconds. + Weight::from_parts(316_622_652, 3760) + // Standard Error: 108_253 + .saturating_add(Weight::from_parts(937_500, 0).saturating_mul(h.into())) + // Standard Error: 96_225 + .saturating_add(Weight::from_parts(1_055_555, 0).saturating_mul(i.into())) + // Standard Error: 96_225 + .saturating_add(Weight::from_parts(55_555, 0).saturating_mul(o.into())) .saturating_add(RocksDbWeight::get().reads(17_u64)) .saturating_add(RocksDbWeight::get().writes(5_u64)) } @@ -739,18 +745,18 @@ impl WeightInfo for () { /// The range of component `i` is `[1, 10]`. /// The range of component `o` is `[1, 10]`. /// The range of component `b` is `[770, 2048]`. - fn execute_expired_issue_underpayment (h: u32, _i: u32, o: u32, b: u32, ) -> Weight { + fn execute_expired_issue_underpayment (h: u32, i: u32, _o: u32, b: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `3990` // Estimated: `3760` - // Minimum execution time: 132_000_000 picoseconds. - Weight::from_parts(106_780_516, 3760) - // Standard Error: 1_732_050 - .saturating_add(Weight::from_parts(2_375_000, 0).saturating_mul(h.into())) - // Standard Error: 1_539_600 - .saturating_add(Weight::from_parts(888_888, 0).saturating_mul(o.into())) - // Standard Error: 10_842 - .saturating_add(Weight::from_parts(7_824, 0).saturating_mul(b.into())) + // Minimum execution time: 231_000_000 picoseconds. + Weight::from_parts(177_273_669, 3760) + // Standard Error: 108_253 + .saturating_add(Weight::from_parts(5_437_500, 0).saturating_mul(h.into())) + // Standard Error: 96_225 + .saturating_add(Weight::from_parts(1_277_777, 0).saturating_mul(i.into())) + // Standard Error: 677 + .saturating_add(Weight::from_parts(16_040, 0).saturating_mul(b.into())) .saturating_add(RocksDbWeight::get().reads(13_u64)) .saturating_add(RocksDbWeight::get().writes(5_u64)) } @@ -768,8 +774,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `1505` // Estimated: `3760` - // Minimum execution time: 51_000_000 picoseconds. - Weight::from_parts(51_000_000, 3760) + // Minimum execution time: 89_000_000 picoseconds. + Weight::from_parts(89_000_000, 3760) .saturating_add(RocksDbWeight::get().reads(5_u64)) .saturating_add(RocksDbWeight::get().writes(2_u64)) } @@ -785,8 +791,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `1027` // Estimated: `3760` - // Minimum execution time: 35_000_000 picoseconds. - Weight::from_parts(35_000_000, 3760) + // Minimum execution time: 66_000_000 picoseconds. + Weight::from_parts(66_000_000, 3760) .saturating_add(RocksDbWeight::get().reads(4_u64)) .saturating_add(RocksDbWeight::get().writes(1_u64)) } @@ -796,8 +802,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 10_000_000 picoseconds. - Weight::from_parts(10_000_000, 0) + // Minimum execution time: 17_000_000 picoseconds. + Weight::from_parts(17_000_000, 0) .saturating_add(RocksDbWeight::get().writes(1_u64)) } } \ No newline at end of file diff --git a/crates/redeem/src/default_weights.rs b/crates/redeem/src/default_weights.rs index 73cce1d8d1..d150040f37 100644 --- a/crates/redeem/src/default_weights.rs +++ b/crates/redeem/src/default_weights.rs @@ -2,31 +2,31 @@ //! Autogenerated weights for redeem //! //! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev -//! DATE: 2023-05-12, STEPS: `100`, REPEAT: `10`, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! DATE: 2023-08-29, STEPS: `2`, REPEAT: `1`, LOW RANGE: `[]`, HIGH RANGE: `[]` //! WORST CASE MAP SIZE: `1000000` -//! HOSTNAME: `interlay-hetzner-01`, CPU: `AMD EPYC 7502P 32-Core Processor` -//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("kintsugi-testnet-latest"), DB CACHE: 1024 +//! HOSTNAME: `Nakuls-MacBook-Pro.local`, CPU: `` +//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("kintsugi-dev"), DB CACHE: 1024 // Executed Command: -// target/release/interbtc-parachain +// ./target/release/interbtc-parachain // benchmark // pallet -// --chain -// kintsugi-testnet-latest -// --execution=wasm -// --wasm-execution=compiled // --pallet // redeem // --extrinsic // * +// --execution=wasm +// --wasm-execution=compiled // --steps -// 100 +// 2 // --repeat -// 10 -// --output -// ./crates/redeem/src/default_weights.rs +// 1 // --template -// .deploy/default-weight-template.hbs +// .deploy/runtime-weight-template.hbs +// --chain +// kintsugi-dev +// --output +// generated_weight_kintsugi.rs #![cfg_attr(rustfmt, rustfmt_skip)] #![allow(unused_parens)] @@ -109,8 +109,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `3161` // Estimated: `6260` - // Minimum execution time: 169_000_000 picoseconds. - Weight::from_parts(169_000_000, 6260) + // Minimum execution time: 270_000_000 picoseconds. + Weight::from_parts(270_000_000, 6260) .saturating_add(T::DbWeight::get().reads(28_u64)) .saturating_add(T::DbWeight::get().writes(5_u64)) } @@ -142,8 +142,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `2193` // Estimated: `8760` - // Minimum execution time: 146_000_000 picoseconds. - Weight::from_parts(146_000_000, 8760) + // Minimum execution time: 257_000_000 picoseconds. + Weight::from_parts(257_000_000, 8760) .saturating_add(T::DbWeight::get().reads(16_u64)) .saturating_add(T::DbWeight::get().writes(11_u64)) } @@ -173,16 +173,18 @@ impl WeightInfo for SubstrateWeight { /// The range of component `i` is `[1, 10]`. /// The range of component `o` is `[2, 3]`. /// The range of component `b` is `[541, 2048]`. - fn execute_redeem (h: u32, _i: u32, _o: u32, b: u32, ) -> Weight { + fn execute_redeem (h: u32, _i: u32, o: u32, b: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `2268 + o * (1 ±0)` // Estimated: `3743` - // Minimum execution time: 97_000_000 picoseconds. - Weight::from_parts(152_285_196, 3743) + // Minimum execution time: 176_000_000 picoseconds. + Weight::from_parts(151_584_172, 3743) // Standard Error: 108_253 - .saturating_add(Weight::from_parts(1_562_500, 0).saturating_mul(h.into())) + .saturating_add(Weight::from_parts(2_562_500, 0).saturating_mul(h.into())) + // Standard Error: 866_025 + .saturating_add(Weight::from_parts(500_000, 0).saturating_mul(o.into())) // Standard Error: 574 - .saturating_add(Weight::from_parts(2_322, 0).saturating_mul(b.into())) + .saturating_add(Weight::from_parts(8_958, 0).saturating_mul(b.into())) .saturating_add(T::DbWeight::get().reads(11_u64)) .saturating_add(T::DbWeight::get().writes(4_u64)) } @@ -278,8 +280,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `5403` // Estimated: `11350` - // Minimum execution time: 460_000_000 picoseconds. - Weight::from_parts(460_000_000, 11350) + // Minimum execution time: 782_000_000 picoseconds. + Weight::from_parts(782_000_000, 11350) .saturating_add(T::DbWeight::get().reads(59_u64)) .saturating_add(T::DbWeight::get().writes(29_u64)) } @@ -375,8 +377,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `5403` // Estimated: `11350` - // Minimum execution time: 401_000_000 picoseconds. - Weight::from_parts(401_000_000, 11350) + // Minimum execution time: 706_000_000 picoseconds. + Weight::from_parts(706_000_000, 11350) .saturating_add(T::DbWeight::get().reads(58_u64)) .saturating_add(T::DbWeight::get().writes(28_u64)) } @@ -390,18 +392,54 @@ impl WeightInfo for SubstrateWeight { /// Proof: BTCRelay BestBlockHeight (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen) /// Storage: Issue IssueRequests (r:1 w:1) /// Proof: Issue IssueRequests (max_values: None, max_size: Some(295), added: 2770, mode: MaxEncodedLen) - /// Storage: VaultRegistry Vaults (r:2 w:2) - /// Proof: VaultRegistry Vaults (max_values: None, max_size: Some(212), added: 2687, mode: MaxEncodedLen) /// Storage: Issue IssuePeriod (r:1 w:0) /// Proof: Issue IssuePeriod (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen) + /// Storage: VaultRegistry Vaults (r:2 w:2) + /// Proof: VaultRegistry Vaults (max_values: None, max_size: Some(212), added: 2687, mode: MaxEncodedLen) + /// Storage: Oracle Aggregate (r:1 w:0) + /// Proof: Oracle Aggregate (max_values: None, max_size: Some(44), added: 2519, mode: MaxEncodedLen) + /// Storage: Fee PunishmentFee (r:1 w:0) + /// Proof: Fee PunishmentFee (max_values: Some(1), max_size: Some(16), added: 511, mode: MaxEncodedLen) + /// Storage: VaultStaking Nonce (r:1 w:0) + /// Proof: VaultStaking Nonce (max_values: None, max_size: Some(74), added: 2549, mode: MaxEncodedLen) + /// Storage: VaultStaking TotalCurrentStake (r:1 w:0) + /// Proof: VaultStaking TotalCurrentStake (max_values: None, max_size: Some(106), added: 2581, mode: MaxEncodedLen) + /// Storage: VaultRegistry TotalUserVaultCollateral (r:1 w:1) + /// Proof: VaultRegistry TotalUserVaultCollateral (max_values: None, max_size: Some(54), added: 2529, mode: MaxEncodedLen) + /// Storage: VaultCapacity Stake (r:1 w:0) + /// Proof: VaultCapacity Stake (max_values: None, max_size: Some(43), added: 2518, mode: MaxEncodedLen) + /// Storage: VaultCapacity RewardPerToken (r:2 w:0) + /// Proof: VaultCapacity RewardPerToken (max_values: None, max_size: Some(59), added: 2534, mode: MaxEncodedLen) + /// Storage: VaultCapacity RewardTally (r:2 w:2) + /// Proof: VaultCapacity RewardTally (max_values: None, max_size: Some(70), added: 2545, mode: MaxEncodedLen) + /// Storage: VaultCapacity TotalRewards (r:2 w:2) + /// Proof: VaultCapacity TotalRewards (max_values: None, max_size: Some(43), added: 2518, mode: MaxEncodedLen) + /// Storage: VaultRewards Stake (r:1 w:0) + /// Proof: VaultRewards Stake (max_values: None, max_size: Some(97), added: 2572, mode: MaxEncodedLen) + /// Storage: VaultRewards RewardPerToken (r:2 w:0) + /// Proof: VaultRewards RewardPerToken (max_values: None, max_size: Some(70), added: 2545, mode: MaxEncodedLen) + /// Storage: VaultRewards RewardTally (r:2 w:2) + /// Proof: VaultRewards RewardTally (max_values: None, max_size: Some(124), added: 2599, mode: MaxEncodedLen) + /// Storage: VaultRewards TotalRewards (r:2 w:2) + /// Proof: VaultRewards TotalRewards (max_values: None, max_size: Some(43), added: 2518, mode: MaxEncodedLen) + /// Storage: Fee Commission (r:1 w:0) + /// Proof: Fee Commission (max_values: None, max_size: Some(86), added: 2561, mode: MaxEncodedLen) + /// Storage: VaultStaking RewardPerToken (r:2 w:2) + /// Proof: VaultStaking RewardPerToken (max_values: None, max_size: Some(117), added: 2592, mode: MaxEncodedLen) + /// Storage: VaultStaking TotalStake (r:1 w:0) + /// Proof: VaultStaking TotalStake (max_values: None, max_size: Some(106), added: 2581, mode: MaxEncodedLen) + /// Storage: VaultRegistry SecureCollateralThreshold (r:1 w:0) + /// Proof: VaultRegistry SecureCollateralThreshold (max_values: None, max_size: Some(54), added: 2529, mode: MaxEncodedLen) + /// Storage: VaultRewards TotalStake (r:1 w:0) + /// Proof: VaultRewards TotalStake (max_values: None, max_size: Some(43), added: 2518, mode: MaxEncodedLen) fn cancel_replace () -> Weight { // Proof Size summary in bytes: - // Measured: `2045` + // Measured: `4404` // Estimated: `6364` - // Minimum execution time: 70_000_000 picoseconds. - Weight::from_parts(70_000_000, 6364) - .saturating_add(T::DbWeight::get().reads(8_u64)) - .saturating_add(T::DbWeight::get().writes(4_u64)) + // Minimum execution time: 394_000_000 picoseconds. + Weight::from_parts(394_000_000, 6364) + .saturating_add(T::DbWeight::get().reads(33_u64)) + .saturating_add(T::DbWeight::get().writes(15_u64)) } /// Storage: Redeem RedeemPeriod (r:0 w:1) /// Proof: Redeem RedeemPeriod (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen) @@ -409,8 +447,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 10_000_000 picoseconds. - Weight::from_parts(10_000_000, 0) + // Minimum execution time: 17_000_000 picoseconds. + Weight::from_parts(17_000_000, 0) .saturating_add(T::DbWeight::get().writes(1_u64)) } /// Storage: VaultRegistry Vaults (r:1 w:1) @@ -423,8 +461,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `1399` // Estimated: `3677` - // Minimum execution time: 66_000_000 picoseconds. - Weight::from_parts(66_000_000, 3677) + // Minimum execution time: 116_000_000 picoseconds. + Weight::from_parts(116_000_000, 3677) .saturating_add(T::DbWeight::get().reads(3_u64)) .saturating_add(T::DbWeight::get().writes(3_u64)) } @@ -436,22 +474,16 @@ impl WeightInfo for SubstrateWeight { /// Proof: BTCRelay BestBlockHeight (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen) /// Storage: VaultRegistry Vaults (r:2 w:2) /// Proof: VaultRegistry Vaults (max_values: None, max_size: Some(212), added: 2687, mode: MaxEncodedLen) - /// Storage: Oracle Aggregate (r:2 w:0) - /// Proof: Oracle Aggregate (max_values: None, max_size: Some(44), added: 2519, mode: MaxEncodedLen) - /// Storage: Fee IssueGriefingCollateral (r:1 w:0) - /// Proof: Fee IssueGriefingCollateral (max_values: Some(1), max_size: Some(16), added: 511, mode: MaxEncodedLen) - /// Storage: Tokens Accounts (r:1 w:1) - /// Proof: Tokens Accounts (max_values: None, max_size: Some(115), added: 2590, mode: MaxEncodedLen) /// Storage: Issue IssueBtcDustValue (r:1 w:0) /// Proof: Issue IssueBtcDustValue (max_values: Some(1), max_size: Some(16), added: 511, mode: MaxEncodedLen) /// Storage: VaultRegistry SecureCollateralThreshold (r:1 w:0) /// Proof: VaultRegistry SecureCollateralThreshold (max_values: None, max_size: Some(54), added: 2529, mode: MaxEncodedLen) + /// Storage: Oracle Aggregate (r:1 w:0) + /// Proof: Oracle Aggregate (max_values: None, max_size: Some(44), added: 2519, mode: MaxEncodedLen) /// Storage: VaultStaking Nonce (r:2 w:0) /// Proof: VaultStaking Nonce (max_values: None, max_size: Some(74), added: 2549, mode: MaxEncodedLen) /// Storage: VaultStaking TotalCurrentStake (r:2 w:0) /// Proof: VaultStaking TotalCurrentStake (max_values: None, max_size: Some(106), added: 2581, mode: MaxEncodedLen) - /// Storage: Fee IssueFee (r:1 w:0) - /// Proof: Fee IssueFee (max_values: Some(1), max_size: Some(16), added: 511, mode: MaxEncodedLen) /// Storage: Security Nonce (r:1 w:1) /// Proof: Security Nonce (max_values: Some(1), max_size: Some(32), added: 527, mode: MaxEncodedLen) /// Storage: System ParentHash (r:1 w:0) @@ -462,6 +494,8 @@ impl WeightInfo for SubstrateWeight { /// Proof: Security ActiveBlockCount (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen) /// Storage: Issue IssuePeriod (r:1 w:0) /// Proof: Issue IssuePeriod (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen) + /// Storage: Fee RedeemFee (r:1 w:0) + /// Proof: Fee RedeemFee (max_values: Some(1), max_size: Some(16), added: 511, mode: MaxEncodedLen) /// Storage: Redeem RedeemBtcDustValue (r:1 w:0) /// Proof: Redeem RedeemBtcDustValue (max_values: Some(1), max_size: Some(16), added: 511, mode: MaxEncodedLen) /// Storage: VaultRegistry PremiumRedeemThreshold (r:1 w:0) @@ -474,12 +508,12 @@ impl WeightInfo for SubstrateWeight { /// Proof: Redeem RedeemRequests (max_values: None, max_size: Some(278), added: 2753, mode: MaxEncodedLen) fn request_replace () -> Weight { // Proof Size summary in bytes: - // Measured: `3365` + // Measured: `2735` // Estimated: `6364` - // Minimum execution time: 22_754_000_000 picoseconds. - Weight::from_parts(22_754_000_000, 6364) - .saturating_add(T::DbWeight::get().reads(24_u64)) - .saturating_add(T::DbWeight::get().writes(6_u64)) + // Minimum execution time: 38_446_000_000 picoseconds. + Weight::from_parts(38_446_000_000, 6364) + .saturating_add(T::DbWeight::get().reads(21_u64)) + .saturating_add(T::DbWeight::get().writes(5_u64)) } /// Storage: Redeem RedeemRequests (r:1 w:1) /// Proof: Redeem RedeemRequests (max_values: None, max_size: Some(278), added: 2753, mode: MaxEncodedLen) @@ -505,16 +539,20 @@ impl WeightInfo for SubstrateWeight { /// The range of component `i` is `[1, 10]`. /// The range of component `o` is `[2, 3]`. /// The range of component `b` is `[541, 2048]`. - fn execute_replace (h: u32, i: u32, _o: u32, _b: u32, ) -> Weight { + fn execute_replace (h: u32, i: u32, o: u32, b: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `2310` // Estimated: `6364` - // Minimum execution time: 103_000_000 picoseconds. - Weight::from_parts(146_608_991, 6364) - // Standard Error: 1_732_050 - .saturating_add(Weight::from_parts(2_375_000, 0).saturating_mul(h.into())) - // Standard Error: 1_539_600 - .saturating_add(Weight::from_parts(1_000_000, 0).saturating_mul(i.into())) + // Minimum execution time: 178_000_000 picoseconds. + Weight::from_parts(108_702_702, 6364) + // Standard Error: 433_012 + .saturating_add(Weight::from_parts(3_875_000, 0).saturating_mul(h.into())) + // Standard Error: 384_900 + .saturating_add(Weight::from_parts(1_444_444, 0).saturating_mul(i.into())) + // Standard Error: 3_464_101 + .saturating_add(Weight::from_parts(8_000_000, 0).saturating_mul(o.into())) + // Standard Error: 2_298 + .saturating_add(Weight::from_parts(11_280, 0).saturating_mul(b.into())) .saturating_add(T::DbWeight::get().reads(11_u64)) .saturating_add(T::DbWeight::get().writes(4_u64)) } @@ -522,6 +560,7 @@ impl WeightInfo for SubstrateWeight { // For backwards compatibility and tests impl WeightInfo for () { + /// Storage: VaultRegistry Vaults (r:1 w:1) /// Proof: VaultRegistry Vaults (max_values: None, max_size: Some(212), added: 2687, mode: MaxEncodedLen) /// Storage: Tokens Accounts (r:2 w:1) @@ -578,8 +617,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `3161` // Estimated: `6260` - // Minimum execution time: 169_000_000 picoseconds. - Weight::from_parts(169_000_000, 6260) + // Minimum execution time: 270_000_000 picoseconds. + Weight::from_parts(270_000_000, 6260) .saturating_add(RocksDbWeight::get().reads(28_u64)) .saturating_add(RocksDbWeight::get().writes(5_u64)) } @@ -611,8 +650,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `2193` // Estimated: `8760` - // Minimum execution time: 146_000_000 picoseconds. - Weight::from_parts(146_000_000, 8760) + // Minimum execution time: 257_000_000 picoseconds. + Weight::from_parts(257_000_000, 8760) .saturating_add(RocksDbWeight::get().reads(16_u64)) .saturating_add(RocksDbWeight::get().writes(11_u64)) } @@ -642,16 +681,18 @@ impl WeightInfo for () { /// The range of component `i` is `[1, 10]`. /// The range of component `o` is `[2, 3]`. /// The range of component `b` is `[541, 2048]`. - fn execute_redeem (h: u32, _i: u32, _o: u32, b: u32, ) -> Weight { + fn execute_redeem (h: u32, _i: u32, o: u32, b: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `2268 + o * (1 ±0)` // Estimated: `3743` - // Minimum execution time: 97_000_000 picoseconds. - Weight::from_parts(152_285_196, 3743) + // Minimum execution time: 176_000_000 picoseconds. + Weight::from_parts(151_584_172, 3743) // Standard Error: 108_253 - .saturating_add(Weight::from_parts(1_562_500, 0).saturating_mul(h.into())) + .saturating_add(Weight::from_parts(2_562_500, 0).saturating_mul(h.into())) + // Standard Error: 866_025 + .saturating_add(Weight::from_parts(500_000, 0).saturating_mul(o.into())) // Standard Error: 574 - .saturating_add(Weight::from_parts(2_322, 0).saturating_mul(b.into())) + .saturating_add(Weight::from_parts(8_958, 0).saturating_mul(b.into())) .saturating_add(RocksDbWeight::get().reads(11_u64)) .saturating_add(RocksDbWeight::get().writes(4_u64)) } @@ -747,8 +788,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `5403` // Estimated: `11350` - // Minimum execution time: 460_000_000 picoseconds. - Weight::from_parts(460_000_000, 11350) + // Minimum execution time: 782_000_000 picoseconds. + Weight::from_parts(782_000_000, 11350) .saturating_add(RocksDbWeight::get().reads(59_u64)) .saturating_add(RocksDbWeight::get().writes(29_u64)) } @@ -844,8 +885,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `5403` // Estimated: `11350` - // Minimum execution time: 401_000_000 picoseconds. - Weight::from_parts(401_000_000, 11350) + // Minimum execution time: 706_000_000 picoseconds. + Weight::from_parts(706_000_000, 11350) .saturating_add(RocksDbWeight::get().reads(58_u64)) .saturating_add(RocksDbWeight::get().writes(28_u64)) } @@ -859,18 +900,54 @@ impl WeightInfo for () { /// Proof: BTCRelay BestBlockHeight (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen) /// Storage: Issue IssueRequests (r:1 w:1) /// Proof: Issue IssueRequests (max_values: None, max_size: Some(295), added: 2770, mode: MaxEncodedLen) - /// Storage: VaultRegistry Vaults (r:2 w:2) - /// Proof: VaultRegistry Vaults (max_values: None, max_size: Some(212), added: 2687, mode: MaxEncodedLen) /// Storage: Issue IssuePeriod (r:1 w:0) /// Proof: Issue IssuePeriod (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen) + /// Storage: VaultRegistry Vaults (r:2 w:2) + /// Proof: VaultRegistry Vaults (max_values: None, max_size: Some(212), added: 2687, mode: MaxEncodedLen) + /// Storage: Oracle Aggregate (r:1 w:0) + /// Proof: Oracle Aggregate (max_values: None, max_size: Some(44), added: 2519, mode: MaxEncodedLen) + /// Storage: Fee PunishmentFee (r:1 w:0) + /// Proof: Fee PunishmentFee (max_values: Some(1), max_size: Some(16), added: 511, mode: MaxEncodedLen) + /// Storage: VaultStaking Nonce (r:1 w:0) + /// Proof: VaultStaking Nonce (max_values: None, max_size: Some(74), added: 2549, mode: MaxEncodedLen) + /// Storage: VaultStaking TotalCurrentStake (r:1 w:0) + /// Proof: VaultStaking TotalCurrentStake (max_values: None, max_size: Some(106), added: 2581, mode: MaxEncodedLen) + /// Storage: VaultRegistry TotalUserVaultCollateral (r:1 w:1) + /// Proof: VaultRegistry TotalUserVaultCollateral (max_values: None, max_size: Some(54), added: 2529, mode: MaxEncodedLen) + /// Storage: VaultCapacity Stake (r:1 w:0) + /// Proof: VaultCapacity Stake (max_values: None, max_size: Some(43), added: 2518, mode: MaxEncodedLen) + /// Storage: VaultCapacity RewardPerToken (r:2 w:0) + /// Proof: VaultCapacity RewardPerToken (max_values: None, max_size: Some(59), added: 2534, mode: MaxEncodedLen) + /// Storage: VaultCapacity RewardTally (r:2 w:2) + /// Proof: VaultCapacity RewardTally (max_values: None, max_size: Some(70), added: 2545, mode: MaxEncodedLen) + /// Storage: VaultCapacity TotalRewards (r:2 w:2) + /// Proof: VaultCapacity TotalRewards (max_values: None, max_size: Some(43), added: 2518, mode: MaxEncodedLen) + /// Storage: VaultRewards Stake (r:1 w:0) + /// Proof: VaultRewards Stake (max_values: None, max_size: Some(97), added: 2572, mode: MaxEncodedLen) + /// Storage: VaultRewards RewardPerToken (r:2 w:0) + /// Proof: VaultRewards RewardPerToken (max_values: None, max_size: Some(70), added: 2545, mode: MaxEncodedLen) + /// Storage: VaultRewards RewardTally (r:2 w:2) + /// Proof: VaultRewards RewardTally (max_values: None, max_size: Some(124), added: 2599, mode: MaxEncodedLen) + /// Storage: VaultRewards TotalRewards (r:2 w:2) + /// Proof: VaultRewards TotalRewards (max_values: None, max_size: Some(43), added: 2518, mode: MaxEncodedLen) + /// Storage: Fee Commission (r:1 w:0) + /// Proof: Fee Commission (max_values: None, max_size: Some(86), added: 2561, mode: MaxEncodedLen) + /// Storage: VaultStaking RewardPerToken (r:2 w:2) + /// Proof: VaultStaking RewardPerToken (max_values: None, max_size: Some(117), added: 2592, mode: MaxEncodedLen) + /// Storage: VaultStaking TotalStake (r:1 w:0) + /// Proof: VaultStaking TotalStake (max_values: None, max_size: Some(106), added: 2581, mode: MaxEncodedLen) + /// Storage: VaultRegistry SecureCollateralThreshold (r:1 w:0) + /// Proof: VaultRegistry SecureCollateralThreshold (max_values: None, max_size: Some(54), added: 2529, mode: MaxEncodedLen) + /// Storage: VaultRewards TotalStake (r:1 w:0) + /// Proof: VaultRewards TotalStake (max_values: None, max_size: Some(43), added: 2518, mode: MaxEncodedLen) fn cancel_replace () -> Weight { // Proof Size summary in bytes: - // Measured: `2045` + // Measured: `4404` // Estimated: `6364` - // Minimum execution time: 70_000_000 picoseconds. - Weight::from_parts(70_000_000, 6364) - .saturating_add(RocksDbWeight::get().reads(8_u64)) - .saturating_add(RocksDbWeight::get().writes(4_u64)) + // Minimum execution time: 394_000_000 picoseconds. + Weight::from_parts(394_000_000, 6364) + .saturating_add(RocksDbWeight::get().reads(33_u64)) + .saturating_add(RocksDbWeight::get().writes(15_u64)) } /// Storage: Redeem RedeemPeriod (r:0 w:1) /// Proof: Redeem RedeemPeriod (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen) @@ -878,8 +955,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 10_000_000 picoseconds. - Weight::from_parts(10_000_000, 0) + // Minimum execution time: 17_000_000 picoseconds. + Weight::from_parts(17_000_000, 0) .saturating_add(RocksDbWeight::get().writes(1_u64)) } /// Storage: VaultRegistry Vaults (r:1 w:1) @@ -892,8 +969,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `1399` // Estimated: `3677` - // Minimum execution time: 66_000_000 picoseconds. - Weight::from_parts(66_000_000, 3677) + // Minimum execution time: 116_000_000 picoseconds. + Weight::from_parts(116_000_000, 3677) .saturating_add(RocksDbWeight::get().reads(3_u64)) .saturating_add(RocksDbWeight::get().writes(3_u64)) } @@ -905,22 +982,16 @@ impl WeightInfo for () { /// Proof: BTCRelay BestBlockHeight (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen) /// Storage: VaultRegistry Vaults (r:2 w:2) /// Proof: VaultRegistry Vaults (max_values: None, max_size: Some(212), added: 2687, mode: MaxEncodedLen) - /// Storage: Oracle Aggregate (r:2 w:0) - /// Proof: Oracle Aggregate (max_values: None, max_size: Some(44), added: 2519, mode: MaxEncodedLen) - /// Storage: Fee IssueGriefingCollateral (r:1 w:0) - /// Proof: Fee IssueGriefingCollateral (max_values: Some(1), max_size: Some(16), added: 511, mode: MaxEncodedLen) - /// Storage: Tokens Accounts (r:1 w:1) - /// Proof: Tokens Accounts (max_values: None, max_size: Some(115), added: 2590, mode: MaxEncodedLen) /// Storage: Issue IssueBtcDustValue (r:1 w:0) /// Proof: Issue IssueBtcDustValue (max_values: Some(1), max_size: Some(16), added: 511, mode: MaxEncodedLen) /// Storage: VaultRegistry SecureCollateralThreshold (r:1 w:0) /// Proof: VaultRegistry SecureCollateralThreshold (max_values: None, max_size: Some(54), added: 2529, mode: MaxEncodedLen) + /// Storage: Oracle Aggregate (r:1 w:0) + /// Proof: Oracle Aggregate (max_values: None, max_size: Some(44), added: 2519, mode: MaxEncodedLen) /// Storage: VaultStaking Nonce (r:2 w:0) /// Proof: VaultStaking Nonce (max_values: None, max_size: Some(74), added: 2549, mode: MaxEncodedLen) /// Storage: VaultStaking TotalCurrentStake (r:2 w:0) /// Proof: VaultStaking TotalCurrentStake (max_values: None, max_size: Some(106), added: 2581, mode: MaxEncodedLen) - /// Storage: Fee IssueFee (r:1 w:0) - /// Proof: Fee IssueFee (max_values: Some(1), max_size: Some(16), added: 511, mode: MaxEncodedLen) /// Storage: Security Nonce (r:1 w:1) /// Proof: Security Nonce (max_values: Some(1), max_size: Some(32), added: 527, mode: MaxEncodedLen) /// Storage: System ParentHash (r:1 w:0) @@ -931,6 +1002,8 @@ impl WeightInfo for () { /// Proof: Security ActiveBlockCount (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen) /// Storage: Issue IssuePeriod (r:1 w:0) /// Proof: Issue IssuePeriod (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen) + /// Storage: Fee RedeemFee (r:1 w:0) + /// Proof: Fee RedeemFee (max_values: Some(1), max_size: Some(16), added: 511, mode: MaxEncodedLen) /// Storage: Redeem RedeemBtcDustValue (r:1 w:0) /// Proof: Redeem RedeemBtcDustValue (max_values: Some(1), max_size: Some(16), added: 511, mode: MaxEncodedLen) /// Storage: VaultRegistry PremiumRedeemThreshold (r:1 w:0) @@ -943,12 +1016,12 @@ impl WeightInfo for () { /// Proof: Redeem RedeemRequests (max_values: None, max_size: Some(278), added: 2753, mode: MaxEncodedLen) fn request_replace () -> Weight { // Proof Size summary in bytes: - // Measured: `3365` + // Measured: `2735` // Estimated: `6364` - // Minimum execution time: 22_754_000_000 picoseconds. - Weight::from_parts(22_754_000_000, 6364) - .saturating_add(RocksDbWeight::get().reads(24_u64)) - .saturating_add(RocksDbWeight::get().writes(6_u64)) + // Minimum execution time: 38_446_000_000 picoseconds. + Weight::from_parts(38_446_000_000, 6364) + .saturating_add(RocksDbWeight::get().reads(21_u64)) + .saturating_add(RocksDbWeight::get().writes(5_u64)) } /// Storage: Redeem RedeemRequests (r:1 w:1) /// Proof: Redeem RedeemRequests (max_values: None, max_size: Some(278), added: 2753, mode: MaxEncodedLen) @@ -974,16 +1047,20 @@ impl WeightInfo for () { /// The range of component `i` is `[1, 10]`. /// The range of component `o` is `[2, 3]`. /// The range of component `b` is `[541, 2048]`. - fn execute_replace (h: u32, i: u32, _o: u32, _b: u32, ) -> Weight { + fn execute_replace (h: u32, i: u32, o: u32, b: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `2310` // Estimated: `6364` - // Minimum execution time: 103_000_000 picoseconds. - Weight::from_parts(146_608_991, 6364) - // Standard Error: 1_732_050 - .saturating_add(Weight::from_parts(2_375_000, 0).saturating_mul(h.into())) - // Standard Error: 1_539_600 - .saturating_add(Weight::from_parts(1_000_000, 0).saturating_mul(i.into())) + // Minimum execution time: 178_000_000 picoseconds. + Weight::from_parts(108_702_702, 6364) + // Standard Error: 433_012 + .saturating_add(Weight::from_parts(3_875_000, 0).saturating_mul(h.into())) + // Standard Error: 384_900 + .saturating_add(Weight::from_parts(1_444_444, 0).saturating_mul(i.into())) + // Standard Error: 3_464_101 + .saturating_add(Weight::from_parts(8_000_000, 0).saturating_mul(o.into())) + // Standard Error: 2_298 + .saturating_add(Weight::from_parts(11_280, 0).saturating_mul(b.into())) .saturating_add(RocksDbWeight::get().reads(11_u64)) .saturating_add(RocksDbWeight::get().writes(4_u64)) } diff --git a/parachain/runtime/interlay/src/weights/issue.rs b/parachain/runtime/interlay/src/weights/issue.rs index 555e10d9b3..cf0c067d1d 100644 --- a/parachain/runtime/interlay/src/weights/issue.rs +++ b/parachain/runtime/interlay/src/weights/issue.rs @@ -2,7 +2,7 @@ //! Autogenerated weights for issue //! //! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev -//! DATE: 2023-08-23, STEPS: `2`, REPEAT: `1`, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! DATE: 2023-08-29, STEPS: `2`, REPEAT: `1`, LOW RANGE: `[]`, HIGH RANGE: `[]` //! WORST CASE MAP SIZE: `1000000` //! HOSTNAME: `Nakuls-MacBook-Pro.local`, CPU: `` //! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("interlay-dev"), DB CACHE: 1024 @@ -26,7 +26,7 @@ // --chain // interlay-dev // --output -// generated_weight_kin.rs +// generated_weight_interlay.rs #![cfg_attr(rustfmt, rustfmt_skip)] #![allow(unused_parens)] @@ -54,6 +54,8 @@ impl issue::WeightInfo for WeightInfo { /// Proof: Fee IssueGriefingCollateral (max_values: Some(1), max_size: Some(16), added: 511, mode: MaxEncodedLen) /// Storage: Tokens Accounts (r:1 w:1) /// Proof: Tokens Accounts (max_values: None, max_size: Some(115), added: 2590, mode: MaxEncodedLen) + /// Storage: Fee IssueFee (r:1 w:0) + /// Proof: Fee IssueFee (max_values: Some(1), max_size: Some(16), added: 511, mode: MaxEncodedLen) /// Storage: Issue IssueBtcDustValue (r:1 w:0) /// Proof: Issue IssueBtcDustValue (max_values: Some(1), max_size: Some(16), added: 511, mode: MaxEncodedLen) /// Storage: VaultRegistry SecureCollateralThreshold (r:1 w:0) @@ -62,8 +64,6 @@ impl issue::WeightInfo for WeightInfo { /// Proof: VaultStaking Nonce (max_values: None, max_size: Some(74), added: 2549, mode: MaxEncodedLen) /// Storage: VaultStaking TotalCurrentStake (r:1 w:0) /// Proof: VaultStaking TotalCurrentStake (max_values: None, max_size: Some(106), added: 2581, mode: MaxEncodedLen) - /// Storage: Fee IssueFee (r:1 w:0) - /// Proof: Fee IssueFee (max_values: Some(1), max_size: Some(16), added: 511, mode: MaxEncodedLen) /// Storage: Security Nonce (r:1 w:1) /// Proof: Security Nonce (max_values: Some(1), max_size: Some(32), added: 527, mode: MaxEncodedLen) /// Storage: System ParentHash (r:1 w:0) @@ -80,8 +80,8 @@ impl issue::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `2633` // Estimated: `6028` - // Minimum execution time: 22_732_000_000 picoseconds. - Weight::from_parts(22_732_000_000, 6028) + // Minimum execution time: 39_089_000_000 picoseconds. + Weight::from_parts(39_089_000_000, 6028) .saturating_add(T::DbWeight::get().reads(18_u64)) .saturating_add(T::DbWeight::get().writes(4_u64)) } @@ -117,16 +117,16 @@ impl issue::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `2428` // Estimated: `3760` - // Minimum execution time: 114_000_000 picoseconds. - Weight::from_parts(15_456_572, 3760) - // Standard Error: 1_515_544 - .saturating_add(Weight::from_parts(2_875_000, 0).saturating_mul(h.into())) - // Standard Error: 1_347_150 - .saturating_add(Weight::from_parts(3_555_555, 0).saturating_mul(i.into())) - // Standard Error: 1_347_150 - .saturating_add(Weight::from_parts(2_777_777, 0).saturating_mul(o.into())) - // Standard Error: 9_486 - .saturating_add(Weight::from_parts(18_779, 0).saturating_mul(b.into())) + // Minimum execution time: 193_000_000 picoseconds. + Weight::from_parts(160_513_301, 3760) + // Standard Error: 0 + .saturating_add(Weight::from_parts(1_500_000, 0).saturating_mul(h.into())) + // Standard Error: 0 + .saturating_add(Weight::from_parts(1_333_333, 0).saturating_mul(i.into())) + // Standard Error: 0 + .saturating_add(Weight::from_parts(333_333, 0).saturating_mul(o.into())) + // Standard Error: 0 + .saturating_add(Weight::from_parts(6_259, 0).saturating_mul(b.into())) .saturating_add(T::DbWeight::get().reads(12_u64)) .saturating_add(T::DbWeight::get().writes(5_u64)) } @@ -168,16 +168,20 @@ impl issue::WeightInfo for WeightInfo { /// The range of component `i` is `[1, 10]`. /// The range of component `o` is `[1, 10]`. /// The range of component `b` is `[770, 2048]`. - fn execute_issue_overpayment (h: u32, i: u32, _o: u32, _b: u32, ) -> Weight { + fn execute_issue_overpayment (h: u32, i: u32, o: u32, b: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `3278` // Estimated: `3760` - // Minimum execution time: 165_000_000 picoseconds. - Weight::from_parts(177_886_150, 3760) - // Standard Error: 433_012 + // Minimum execution time: 305_000_000 picoseconds. + Weight::from_parts(260_494_913, 3760) + // Standard Error: 216_506 .saturating_add(Weight::from_parts(2_125_000, 0).saturating_mul(h.into())) - // Standard Error: 384_900 - .saturating_add(Weight::from_parts(666_666, 0).saturating_mul(i.into())) + // Standard Error: 192_450 + .saturating_add(Weight::from_parts(555_555, 0).saturating_mul(i.into())) + // Standard Error: 192_450 + .saturating_add(Weight::from_parts(444_444, 0).saturating_mul(o.into())) + // Standard Error: 1_355 + .saturating_add(Weight::from_parts(17_214, 0).saturating_mul(b.into())) .saturating_add(T::DbWeight::get().reads(17_u64)) .saturating_add(T::DbWeight::get().writes(5_u64)) } @@ -211,18 +215,18 @@ impl issue::WeightInfo for WeightInfo { /// The range of component `i` is `[1, 10]`. /// The range of component `o` is `[1, 10]`. /// The range of component `b` is `[770, 2048]`. - fn execute_issue_underpayment (h: u32, _i: u32, o: u32, b: u32, ) -> Weight { + fn execute_issue_underpayment (h: u32, i: u32, o: u32, _b: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `2727` // Estimated: `3760` - // Minimum execution time: 128_000_000 picoseconds. - Weight::from_parts(115_815_923, 3760) - // Standard Error: 108_253 - .saturating_add(Weight::from_parts(2_187_500, 0).saturating_mul(h.into())) - // Standard Error: 96_225 - .saturating_add(Weight::from_parts(277_777, 0).saturating_mul(o.into())) - // Standard Error: 677 - .saturating_add(Weight::from_parts(9_780, 0).saturating_mul(b.into())) + // Minimum execution time: 220_000_000 picoseconds. + Weight::from_parts(220_934_076, 3760) + // Standard Error: 1_840_303 + .saturating_add(Weight::from_parts(3_437_500, 0).saturating_mul(h.into())) + // Standard Error: 1_635_825 + .saturating_add(Weight::from_parts(611_111, 0).saturating_mul(i.into())) + // Standard Error: 1_635_825 + .saturating_add(Weight::from_parts(611_111, 0).saturating_mul(o.into())) .saturating_add(T::DbWeight::get().reads(13_u64)) .saturating_add(T::DbWeight::get().writes(5_u64)) } @@ -254,20 +258,16 @@ impl issue::WeightInfo for WeightInfo { /// The range of component `i` is `[1, 10]`. /// The range of component `o` is `[1, 10]`. /// The range of component `b` is `[770, 2048]`. - fn execute_expired_issue_exact (h: u32, i: u32, o: u32, b: u32, ) -> Weight { + fn execute_expired_issue_exact (h: u32, _i: u32, _o: u32, b: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `3287` // Estimated: `3760` - // Minimum execution time: 115_000_000 picoseconds. - Weight::from_parts(50_522_691, 3760) - // Standard Error: 1_732_050 - .saturating_add(Weight::from_parts(3_500_000, 0).saturating_mul(h.into())) - // Standard Error: 1_539_600 - .saturating_add(Weight::from_parts(1_444_444, 0).saturating_mul(i.into())) - // Standard Error: 1_539_600 - .saturating_add(Weight::from_parts(777_777, 0).saturating_mul(o.into())) - // Standard Error: 10_842 - .saturating_add(Weight::from_parts(17_214, 0).saturating_mul(b.into())) + // Minimum execution time: 193_000_000 picoseconds. + Weight::from_parts(223_547_730, 3760) + // Standard Error: 649_519 + .saturating_add(Weight::from_parts(4_000_000, 0).saturating_mul(h.into())) + // Standard Error: 4_065 + .saturating_add(Weight::from_parts(9_389, 0).saturating_mul(b.into())) .saturating_add(T::DbWeight::get().reads(12_u64)) .saturating_add(T::DbWeight::get().writes(5_u64)) } @@ -309,16 +309,18 @@ impl issue::WeightInfo for WeightInfo { /// The range of component `i` is `[1, 10]`. /// The range of component `o` is `[1, 10]`. /// The range of component `b` is `[770, 2048]`. - fn execute_expired_issue_overpayment (_h: u32, i: u32, o: u32, _b: u32, ) -> Weight { + fn execute_expired_issue_overpayment (h: u32, i: u32, _o: u32, b: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `4018 + h * (9 ±0) + i * (4 ±0)` // Estimated: `3760` - // Minimum execution time: 179_000_000 picoseconds. - Weight::from_parts(192_356_416, 3760) - // Standard Error: 384_900 - .saturating_add(Weight::from_parts(777_777, 0).saturating_mul(i.into())) - // Standard Error: 384_900 - .saturating_add(Weight::from_parts(333_333, 0).saturating_mul(o.into())) + // Minimum execution time: 314_000_000 picoseconds. + Weight::from_parts(269_041_862, 3760) + // Standard Error: 3_031_088 + .saturating_add(Weight::from_parts(2_875_000, 0).saturating_mul(h.into())) + // Standard Error: 2_694_301 + .saturating_add(Weight::from_parts(1_555_555, 0).saturating_mul(i.into())) + // Standard Error: 18_973 + .saturating_add(Weight::from_parts(16_431, 0).saturating_mul(b.into())) .saturating_add(T::DbWeight::get().reads(17_u64)) .saturating_add(T::DbWeight::get().writes(5_u64)) } @@ -352,12 +354,20 @@ impl issue::WeightInfo for WeightInfo { /// The range of component `i` is `[1, 10]`. /// The range of component `o` is `[1, 10]`. /// The range of component `b` is `[770, 2048]`. - fn execute_expired_issue_underpayment (_h: u32, _i: u32, _o: u32, _b: u32, ) -> Weight { + fn execute_expired_issue_underpayment (h: u32, i: u32, o: u32, b: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `4257` // Estimated: `3760` - // Minimum execution time: 141_000_000 picoseconds. - Weight::from_parts(214_401_799, 3760) + // Minimum execution time: 225_000_000 picoseconds. + Weight::from_parts(169_911_776, 3760) + // Standard Error: 108_253 + .saturating_add(Weight::from_parts(4_312_500, 0).saturating_mul(h.into())) + // Standard Error: 96_225 + .saturating_add(Weight::from_parts(2_166_666, 0).saturating_mul(i.into())) + // Standard Error: 96_225 + .saturating_add(Weight::from_parts(1_277_777, 0).saturating_mul(o.into())) + // Standard Error: 677 + .saturating_add(Weight::from_parts(5_868, 0).saturating_mul(b.into())) .saturating_add(T::DbWeight::get().reads(13_u64)) .saturating_add(T::DbWeight::get().writes(5_u64)) } @@ -375,8 +385,8 @@ impl issue::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `1485` // Estimated: `3760` - // Minimum execution time: 49_000_000 picoseconds. - Weight::from_parts(49_000_000, 3760) + // Minimum execution time: 90_000_000 picoseconds. + Weight::from_parts(90_000_000, 3760) .saturating_add(T::DbWeight::get().reads(5_u64)) .saturating_add(T::DbWeight::get().writes(2_u64)) } @@ -392,8 +402,8 @@ impl issue::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `1007` // Estimated: `3760` - // Minimum execution time: 34_000_000 picoseconds. - Weight::from_parts(34_000_000, 3760) + // Minimum execution time: 63_000_000 picoseconds. + Weight::from_parts(63_000_000, 3760) .saturating_add(T::DbWeight::get().reads(4_u64)) .saturating_add(T::DbWeight::get().writes(1_u64)) } @@ -403,8 +413,8 @@ impl issue::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 9_000_000 picoseconds. - Weight::from_parts(9_000_000, 0) + // Minimum execution time: 17_000_000 picoseconds. + Weight::from_parts(17_000_000, 0) .saturating_add(T::DbWeight::get().writes(1_u64)) } } \ No newline at end of file diff --git a/parachain/runtime/interlay/src/weights/redeem.rs b/parachain/runtime/interlay/src/weights/redeem.rs index d98684fda0..967effd348 100644 --- a/parachain/runtime/interlay/src/weights/redeem.rs +++ b/parachain/runtime/interlay/src/weights/redeem.rs @@ -2,7 +2,7 @@ //! Autogenerated weights for redeem //! //! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev -//! DATE: 2023-08-23, STEPS: `2`, REPEAT: `1`, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! DATE: 2023-08-29, STEPS: `2`, REPEAT: `1`, LOW RANGE: `[]`, HIGH RANGE: `[]` //! WORST CASE MAP SIZE: `1000000` //! HOSTNAME: `Nakuls-MacBook-Pro.local`, CPU: `` //! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("interlay-dev"), DB CACHE: 1024 @@ -26,7 +26,7 @@ // --chain // interlay-dev // --output -// generated_weight.rs +// generated_weight_interlay.rs #![cfg_attr(rustfmt, rustfmt_skip)] #![allow(unused_parens)] @@ -96,8 +96,8 @@ impl redeem::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `3107` // Estimated: `6260` - // Minimum execution time: 156_000_000 picoseconds. - Weight::from_parts(156_000_000, 6260) + // Minimum execution time: 307_000_000 picoseconds. + Weight::from_parts(307_000_000, 6260) .saturating_add(T::DbWeight::get().reads(28_u64)) .saturating_add(T::DbWeight::get().writes(5_u64)) } @@ -129,8 +129,8 @@ impl redeem::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `2173` // Estimated: `8760` - // Minimum execution time: 143_000_000 picoseconds. - Weight::from_parts(143_000_000, 8760) + // Minimum execution time: 292_000_000 picoseconds. + Weight::from_parts(292_000_000, 8760) .saturating_add(T::DbWeight::get().reads(16_u64)) .saturating_add(T::DbWeight::get().writes(11_u64)) } @@ -160,18 +160,20 @@ impl redeem::WeightInfo for WeightInfo { /// The range of component `i` is `[1, 10]`. /// The range of component `o` is `[2, 3]`. /// The range of component `b` is `[541, 2048]`. - fn execute_redeem (h: u32, i: u32, _o: u32, b: u32, ) -> Weight { + fn execute_redeem (h: u32, i: u32, o: u32, b: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `2248 + o * (1 ±0)` // Estimated: `3743` - // Minimum execution time: 95_000_000 picoseconds. - Weight::from_parts(88_556_615, 3743) + // Minimum execution time: 182_000_000 picoseconds. + Weight::from_parts(136_635_488, 3743) // Standard Error: 108_253 - .saturating_add(Weight::from_parts(1_687_500, 0).saturating_mul(h.into())) + .saturating_add(Weight::from_parts(562_500, 0).saturating_mul(h.into())) // Standard Error: 96_225 - .saturating_add(Weight::from_parts(388_888, 0).saturating_mul(i.into())) + .saturating_add(Weight::from_parts(1_611_111, 0).saturating_mul(i.into())) + // Standard Error: 866_025 + .saturating_add(Weight::from_parts(7_500_000, 0).saturating_mul(o.into())) // Standard Error: 574 - .saturating_add(Weight::from_parts(331, 0).saturating_mul(b.into())) + .saturating_add(Weight::from_parts(7_631, 0).saturating_mul(b.into())) .saturating_add(T::DbWeight::get().reads(11_u64)) .saturating_add(T::DbWeight::get().writes(4_u64)) } @@ -267,8 +269,8 @@ impl redeem::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `5349` // Estimated: `11350` - // Minimum execution time: 440_000_000 picoseconds. - Weight::from_parts(440_000_000, 11350) + // Minimum execution time: 753_000_000 picoseconds. + Weight::from_parts(753_000_000, 11350) .saturating_add(T::DbWeight::get().reads(59_u64)) .saturating_add(T::DbWeight::get().writes(29_u64)) } @@ -364,8 +366,8 @@ impl redeem::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `5349` // Estimated: `11350` - // Minimum execution time: 397_000_000 picoseconds. - Weight::from_parts(397_000_000, 11350) + // Minimum execution time: 724_000_000 picoseconds. + Weight::from_parts(724_000_000, 11350) .saturating_add(T::DbWeight::get().reads(58_u64)) .saturating_add(T::DbWeight::get().writes(28_u64)) } @@ -379,18 +381,54 @@ impl redeem::WeightInfo for WeightInfo { /// Proof: BTCRelay BestBlockHeight (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen) /// Storage: Issue IssueRequests (r:1 w:1) /// Proof: Issue IssueRequests (max_values: None, max_size: Some(295), added: 2770, mode: MaxEncodedLen) - /// Storage: VaultRegistry Vaults (r:2 w:2) - /// Proof: VaultRegistry Vaults (max_values: None, max_size: Some(212), added: 2687, mode: MaxEncodedLen) /// Storage: Issue IssuePeriod (r:1 w:0) /// Proof: Issue IssuePeriod (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen) + /// Storage: VaultRegistry Vaults (r:2 w:2) + /// Proof: VaultRegistry Vaults (max_values: None, max_size: Some(212), added: 2687, mode: MaxEncodedLen) + /// Storage: Oracle Aggregate (r:1 w:0) + /// Proof: Oracle Aggregate (max_values: None, max_size: Some(44), added: 2519, mode: MaxEncodedLen) + /// Storage: Fee PunishmentFee (r:1 w:0) + /// Proof: Fee PunishmentFee (max_values: Some(1), max_size: Some(16), added: 511, mode: MaxEncodedLen) + /// Storage: VaultStaking Nonce (r:1 w:0) + /// Proof: VaultStaking Nonce (max_values: None, max_size: Some(74), added: 2549, mode: MaxEncodedLen) + /// Storage: VaultStaking TotalCurrentStake (r:1 w:0) + /// Proof: VaultStaking TotalCurrentStake (max_values: None, max_size: Some(106), added: 2581, mode: MaxEncodedLen) + /// Storage: VaultRegistry TotalUserVaultCollateral (r:1 w:1) + /// Proof: VaultRegistry TotalUserVaultCollateral (max_values: None, max_size: Some(54), added: 2529, mode: MaxEncodedLen) + /// Storage: VaultCapacity Stake (r:1 w:0) + /// Proof: VaultCapacity Stake (max_values: None, max_size: Some(43), added: 2518, mode: MaxEncodedLen) + /// Storage: VaultCapacity RewardPerToken (r:2 w:0) + /// Proof: VaultCapacity RewardPerToken (max_values: None, max_size: Some(59), added: 2534, mode: MaxEncodedLen) + /// Storage: VaultCapacity RewardTally (r:2 w:2) + /// Proof: VaultCapacity RewardTally (max_values: None, max_size: Some(70), added: 2545, mode: MaxEncodedLen) + /// Storage: VaultCapacity TotalRewards (r:2 w:2) + /// Proof: VaultCapacity TotalRewards (max_values: None, max_size: Some(43), added: 2518, mode: MaxEncodedLen) + /// Storage: VaultRewards Stake (r:1 w:0) + /// Proof: VaultRewards Stake (max_values: None, max_size: Some(97), added: 2572, mode: MaxEncodedLen) + /// Storage: VaultRewards RewardPerToken (r:2 w:0) + /// Proof: VaultRewards RewardPerToken (max_values: None, max_size: Some(70), added: 2545, mode: MaxEncodedLen) + /// Storage: VaultRewards RewardTally (r:2 w:2) + /// Proof: VaultRewards RewardTally (max_values: None, max_size: Some(124), added: 2599, mode: MaxEncodedLen) + /// Storage: VaultRewards TotalRewards (r:2 w:2) + /// Proof: VaultRewards TotalRewards (max_values: None, max_size: Some(43), added: 2518, mode: MaxEncodedLen) + /// Storage: Fee Commission (r:1 w:0) + /// Proof: Fee Commission (max_values: None, max_size: Some(86), added: 2561, mode: MaxEncodedLen) + /// Storage: VaultStaking RewardPerToken (r:2 w:2) + /// Proof: VaultStaking RewardPerToken (max_values: None, max_size: Some(117), added: 2592, mode: MaxEncodedLen) + /// Storage: VaultStaking TotalStake (r:1 w:0) + /// Proof: VaultStaking TotalStake (max_values: None, max_size: Some(106), added: 2581, mode: MaxEncodedLen) + /// Storage: VaultRegistry SecureCollateralThreshold (r:1 w:0) + /// Proof: VaultRegistry SecureCollateralThreshold (max_values: None, max_size: Some(54), added: 2529, mode: MaxEncodedLen) + /// Storage: VaultRewards TotalStake (r:1 w:0) + /// Proof: VaultRewards TotalStake (max_values: None, max_size: Some(43), added: 2518, mode: MaxEncodedLen) fn cancel_replace () -> Weight { // Proof Size summary in bytes: - // Measured: `2021` + // Measured: `4412` // Estimated: `6364` - // Minimum execution time: 72_000_000 picoseconds. - Weight::from_parts(72_000_000, 6364) - .saturating_add(T::DbWeight::get().reads(8_u64)) - .saturating_add(T::DbWeight::get().writes(4_u64)) + // Minimum execution time: 397_000_000 picoseconds. + Weight::from_parts(397_000_000, 6364) + .saturating_add(T::DbWeight::get().reads(33_u64)) + .saturating_add(T::DbWeight::get().writes(15_u64)) } /// Storage: Redeem RedeemPeriod (r:0 w:1) /// Proof: Redeem RedeemPeriod (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen) @@ -398,8 +436,8 @@ impl redeem::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 9_000_000 picoseconds. - Weight::from_parts(9_000_000, 0) + // Minimum execution time: 17_000_000 picoseconds. + Weight::from_parts(17_000_000, 0) .saturating_add(T::DbWeight::get().writes(1_u64)) } /// Storage: VaultRegistry Vaults (r:1 w:1) @@ -412,8 +450,8 @@ impl redeem::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `1379` // Estimated: `3677` - // Minimum execution time: 65_000_000 picoseconds. - Weight::from_parts(65_000_000, 3677) + // Minimum execution time: 111_000_000 picoseconds. + Weight::from_parts(111_000_000, 3677) .saturating_add(T::DbWeight::get().reads(3_u64)) .saturating_add(T::DbWeight::get().writes(3_u64)) } @@ -425,22 +463,16 @@ impl redeem::WeightInfo for WeightInfo { /// Proof: BTCRelay BestBlockHeight (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen) /// Storage: VaultRegistry Vaults (r:2 w:2) /// Proof: VaultRegistry Vaults (max_values: None, max_size: Some(212), added: 2687, mode: MaxEncodedLen) - /// Storage: Oracle Aggregate (r:2 w:0) - /// Proof: Oracle Aggregate (max_values: None, max_size: Some(44), added: 2519, mode: MaxEncodedLen) - /// Storage: Fee IssueGriefingCollateral (r:1 w:0) - /// Proof: Fee IssueGriefingCollateral (max_values: Some(1), max_size: Some(16), added: 511, mode: MaxEncodedLen) - /// Storage: Tokens Accounts (r:1 w:1) - /// Proof: Tokens Accounts (max_values: None, max_size: Some(115), added: 2590, mode: MaxEncodedLen) /// Storage: Issue IssueBtcDustValue (r:1 w:0) /// Proof: Issue IssueBtcDustValue (max_values: Some(1), max_size: Some(16), added: 511, mode: MaxEncodedLen) /// Storage: VaultRegistry SecureCollateralThreshold (r:1 w:0) /// Proof: VaultRegistry SecureCollateralThreshold (max_values: None, max_size: Some(54), added: 2529, mode: MaxEncodedLen) + /// Storage: Oracle Aggregate (r:1 w:0) + /// Proof: Oracle Aggregate (max_values: None, max_size: Some(44), added: 2519, mode: MaxEncodedLen) /// Storage: VaultStaking Nonce (r:2 w:0) /// Proof: VaultStaking Nonce (max_values: None, max_size: Some(74), added: 2549, mode: MaxEncodedLen) /// Storage: VaultStaking TotalCurrentStake (r:2 w:0) /// Proof: VaultStaking TotalCurrentStake (max_values: None, max_size: Some(106), added: 2581, mode: MaxEncodedLen) - /// Storage: Fee IssueFee (r:1 w:0) - /// Proof: Fee IssueFee (max_values: Some(1), max_size: Some(16), added: 511, mode: MaxEncodedLen) /// Storage: Security Nonce (r:1 w:1) /// Proof: Security Nonce (max_values: Some(1), max_size: Some(32), added: 527, mode: MaxEncodedLen) /// Storage: System ParentHash (r:1 w:0) @@ -451,6 +483,8 @@ impl redeem::WeightInfo for WeightInfo { /// Proof: Security ActiveBlockCount (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen) /// Storage: Issue IssuePeriod (r:1 w:0) /// Proof: Issue IssuePeriod (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen) + /// Storage: Fee RedeemFee (r:1 w:0) + /// Proof: Fee RedeemFee (max_values: Some(1), max_size: Some(16), added: 511, mode: MaxEncodedLen) /// Storage: Redeem RedeemBtcDustValue (r:1 w:0) /// Proof: Redeem RedeemBtcDustValue (max_values: Some(1), max_size: Some(16), added: 511, mode: MaxEncodedLen) /// Storage: VaultRegistry PremiumRedeemThreshold (r:1 w:0) @@ -463,12 +497,12 @@ impl redeem::WeightInfo for WeightInfo { /// Proof: Redeem RedeemRequests (max_values: None, max_size: Some(278), added: 2753, mode: MaxEncodedLen) fn request_replace () -> Weight { // Proof Size summary in bytes: - // Measured: `3271` + // Measured: `2641` // Estimated: `6364` - // Minimum execution time: 22_553_000_000 picoseconds. - Weight::from_parts(22_553_000_000, 6364) - .saturating_add(T::DbWeight::get().reads(24_u64)) - .saturating_add(T::DbWeight::get().writes(6_u64)) + // Minimum execution time: 39_118_000_000 picoseconds. + Weight::from_parts(39_118_000_000, 6364) + .saturating_add(T::DbWeight::get().reads(21_u64)) + .saturating_add(T::DbWeight::get().writes(5_u64)) } /// Storage: Redeem RedeemRequests (r:1 w:1) /// Proof: Redeem RedeemRequests (max_values: None, max_size: Some(278), added: 2753, mode: MaxEncodedLen) @@ -498,14 +532,14 @@ impl redeem::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `2286` // Estimated: `6364` - // Minimum execution time: 99_000_000 picoseconds. - Weight::from_parts(96_790_496, 6364) - // Standard Error: 0 - .saturating_add(Weight::from_parts(1_750_000, 0).saturating_mul(h.into())) - // Standard Error: 0 - .saturating_add(Weight::from_parts(555_555, 0).saturating_mul(i.into())) - // Standard Error: 0 - .saturating_add(Weight::from_parts(3_981, 0).saturating_mul(b.into())) + // Minimum execution time: 172_000_000 picoseconds. + Weight::from_parts(166_279_897, 6364) + // Standard Error: 216_506 + .saturating_add(Weight::from_parts(3_125_000, 0).saturating_mul(h.into())) + // Standard Error: 192_450 + .saturating_add(Weight::from_parts(111_111, 0).saturating_mul(i.into())) + // Standard Error: 1_149 + .saturating_add(Weight::from_parts(663, 0).saturating_mul(b.into())) .saturating_add(T::DbWeight::get().reads(11_u64)) .saturating_add(T::DbWeight::get().writes(4_u64)) } diff --git a/parachain/runtime/kintsugi/src/weights/issue.rs b/parachain/runtime/kintsugi/src/weights/issue.rs index d32b45d520..eeeded9f67 100644 --- a/parachain/runtime/kintsugi/src/weights/issue.rs +++ b/parachain/runtime/kintsugi/src/weights/issue.rs @@ -2,7 +2,7 @@ //! Autogenerated weights for issue //! //! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev -//! DATE: 2023-08-23, STEPS: `2`, REPEAT: `1`, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! DATE: 2023-08-29, STEPS: `2`, REPEAT: `1`, LOW RANGE: `[]`, HIGH RANGE: `[]` //! WORST CASE MAP SIZE: `1000000` //! HOSTNAME: `Nakuls-MacBook-Pro.local`, CPU: `` //! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("kintsugi-dev"), DB CACHE: 1024 @@ -26,7 +26,7 @@ // --chain // kintsugi-dev // --output -// generated_weight_kin.rs +// generated_weight_kintsugi.rs #![cfg_attr(rustfmt, rustfmt_skip)] #![allow(unused_parens)] @@ -54,6 +54,8 @@ impl issue::WeightInfo for WeightInfo { /// Proof: Fee IssueGriefingCollateral (max_values: Some(1), max_size: Some(16), added: 511, mode: MaxEncodedLen) /// Storage: Tokens Accounts (r:1 w:1) /// Proof: Tokens Accounts (max_values: None, max_size: Some(115), added: 2590, mode: MaxEncodedLen) + /// Storage: Fee IssueFee (r:1 w:0) + /// Proof: Fee IssueFee (max_values: Some(1), max_size: Some(16), added: 511, mode: MaxEncodedLen) /// Storage: Issue IssueBtcDustValue (r:1 w:0) /// Proof: Issue IssueBtcDustValue (max_values: Some(1), max_size: Some(16), added: 511, mode: MaxEncodedLen) /// Storage: VaultRegistry SecureCollateralThreshold (r:1 w:0) @@ -62,8 +64,6 @@ impl issue::WeightInfo for WeightInfo { /// Proof: VaultStaking Nonce (max_values: None, max_size: Some(74), added: 2549, mode: MaxEncodedLen) /// Storage: VaultStaking TotalCurrentStake (r:1 w:0) /// Proof: VaultStaking TotalCurrentStake (max_values: None, max_size: Some(106), added: 2581, mode: MaxEncodedLen) - /// Storage: Fee IssueFee (r:1 w:0) - /// Proof: Fee IssueFee (max_values: Some(1), max_size: Some(16), added: 511, mode: MaxEncodedLen) /// Storage: Security Nonce (r:1 w:1) /// Proof: Security Nonce (max_values: Some(1), max_size: Some(32), added: 527, mode: MaxEncodedLen) /// Storage: System ParentHash (r:1 w:0) @@ -80,8 +80,8 @@ impl issue::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `2690` // Estimated: `6028` - // Minimum execution time: 22_932_000_000 picoseconds. - Weight::from_parts(22_932_000_000, 6028) + // Minimum execution time: 38_621_000_000 picoseconds. + Weight::from_parts(38_621_000_000, 6028) .saturating_add(T::DbWeight::get().reads(18_u64)) .saturating_add(T::DbWeight::get().writes(4_u64)) } @@ -113,18 +113,16 @@ impl issue::WeightInfo for WeightInfo { /// The range of component `i` is `[1, 10]`. /// The range of component `o` is `[1, 10]`. /// The range of component `b` is `[770, 2048]`. - fn execute_issue_exact (h: u32, i: u32, o: u32, _b: u32, ) -> Weight { + fn execute_issue_exact (_h: u32, i: u32, o: u32, _b: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `2448` // Estimated: `3760` - // Minimum execution time: 112_000_000 picoseconds. - Weight::from_parts(85_677_230, 3760) - // Standard Error: 649_519 - .saturating_add(Weight::from_parts(1_875_000, 0).saturating_mul(h.into())) - // Standard Error: 577_350 - .saturating_add(Weight::from_parts(1_888_888, 0).saturating_mul(i.into())) - // Standard Error: 577_350 - .saturating_add(Weight::from_parts(888_888, 0).saturating_mul(o.into())) + // Minimum execution time: 206_000_000 picoseconds. + Weight::from_parts(261_839_397, 3760) + // Standard Error: 96_225 + .saturating_add(Weight::from_parts(277_777, 0).saturating_mul(i.into())) + // Standard Error: 96_225 + .saturating_add(Weight::from_parts(166_666, 0).saturating_mul(o.into())) .saturating_add(T::DbWeight::get().reads(12_u64)) .saturating_add(T::DbWeight::get().writes(5_u64)) } @@ -166,16 +164,18 @@ impl issue::WeightInfo for WeightInfo { /// The range of component `i` is `[1, 10]`. /// The range of component `o` is `[1, 10]`. /// The range of component `b` is `[770, 2048]`. - fn execute_issue_overpayment (h: u32, _i: u32, o: u32, _b: u32, ) -> Weight { + fn execute_issue_overpayment (_h: u32, i: u32, o: u32, b: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `3335` // Estimated: `3760` - // Minimum execution time: 172_000_000 picoseconds. - Weight::from_parts(185_757_824, 3760) - // Standard Error: 216_506 - .saturating_add(Weight::from_parts(1_625_000, 0).saturating_mul(h.into())) - // Standard Error: 192_450 - .saturating_add(Weight::from_parts(444_444, 0).saturating_mul(o.into())) + // Minimum execution time: 307_000_000 picoseconds. + Weight::from_parts(277_172_143, 3760) + // Standard Error: 1_347_150 + .saturating_add(Weight::from_parts(777_777, 0).saturating_mul(i.into())) + // Standard Error: 1_347_150 + .saturating_add(Weight::from_parts(1_000_000, 0).saturating_mul(o.into())) + // Standard Error: 9_486 + .saturating_add(Weight::from_parts(15_649, 0).saturating_mul(b.into())) .saturating_add(T::DbWeight::get().reads(17_u64)) .saturating_add(T::DbWeight::get().writes(5_u64)) } @@ -209,18 +209,18 @@ impl issue::WeightInfo for WeightInfo { /// The range of component `i` is `[1, 10]`. /// The range of component `o` is `[1, 10]`. /// The range of component `b` is `[770, 2048]`. - fn execute_issue_underpayment (h: u32, _i: u32, o: u32, b: u32, ) -> Weight { + fn execute_issue_underpayment (h: u32, i: u32, _o: u32, b: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `2747` // Estimated: `3760` - // Minimum execution time: 124_000_000 picoseconds. - Weight::from_parts(113_290_101, 3760) - // Standard Error: 541_265 - .saturating_add(Weight::from_parts(2_187_500, 0).saturating_mul(h.into())) - // Standard Error: 481_125 - .saturating_add(Weight::from_parts(722_222, 0).saturating_mul(o.into())) - // Standard Error: 3_388 - .saturating_add(Weight::from_parts(7_433, 0).saturating_mul(b.into())) + // Minimum execution time: 214_000_000 picoseconds. + Weight::from_parts(184_539_123, 3760) + // Standard Error: 1_732_050 + .saturating_add(Weight::from_parts(4_250_000, 0).saturating_mul(h.into())) + // Standard Error: 1_539_600 + .saturating_add(Weight::from_parts(1_555_555, 0).saturating_mul(i.into())) + // Standard Error: 10_842 + .saturating_add(Weight::from_parts(8_607, 0).saturating_mul(b.into())) .saturating_add(T::DbWeight::get().reads(13_u64)) .saturating_add(T::DbWeight::get().writes(5_u64)) } @@ -252,18 +252,20 @@ impl issue::WeightInfo for WeightInfo { /// The range of component `i` is `[1, 10]`. /// The range of component `o` is `[1, 10]`. /// The range of component `b` is `[770, 2048]`. - fn execute_expired_issue_exact (h: u32, _i: u32, o: u32, b: u32, ) -> Weight { + fn execute_expired_issue_exact (h: u32, i: u32, o: u32, b: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `3536` // Estimated: `3760` - // Minimum execution time: 115_000_000 picoseconds. - Weight::from_parts(89_545_774, 3760) - // Standard Error: 216_506 - .saturating_add(Weight::from_parts(2_375_000, 0).saturating_mul(h.into())) - // Standard Error: 192_450 - .saturating_add(Weight::from_parts(1_222_222, 0).saturating_mul(o.into())) - // Standard Error: 1_355 - .saturating_add(Weight::from_parts(11_737, 0).saturating_mul(b.into())) + // Minimum execution time: 194_000_000 picoseconds. + Weight::from_parts(163_253_716, 3760) + // Standard Error: 974_278 + .saturating_add(Weight::from_parts(3_562_500, 0).saturating_mul(h.into())) + // Standard Error: 866_025 + .saturating_add(Weight::from_parts(611_111, 0).saturating_mul(i.into())) + // Standard Error: 866_025 + .saturating_add(Weight::from_parts(388_888, 0).saturating_mul(o.into())) + // Standard Error: 6_098 + .saturating_add(Weight::from_parts(6_651, 0).saturating_mul(b.into())) .saturating_add(T::DbWeight::get().reads(12_u64)) .saturating_add(T::DbWeight::get().writes(5_u64)) } @@ -305,18 +307,18 @@ impl issue::WeightInfo for WeightInfo { /// The range of component `i` is `[1, 10]`. /// The range of component `o` is `[1, 10]`. /// The range of component `b` is `[770, 2048]`. - fn execute_expired_issue_overpayment (h: u32, _i: u32, o: u32, b: u32, ) -> Weight { + fn execute_expired_issue_overpayment (h: u32, i: u32, o: u32, _b: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `4141 + h * (21 ±0) + i * (3 ±0) + o * (3 ±0)` // Estimated: `3760` - // Minimum execution time: 181_000_000 picoseconds. - Weight::from_parts(173_823_552, 3760) - // Standard Error: 649_519 - .saturating_add(Weight::from_parts(2_125_000, 0).saturating_mul(h.into())) - // Standard Error: 577_350 - .saturating_add(Weight::from_parts(1_444_444, 0).saturating_mul(o.into())) - // Standard Error: 4_065 - .saturating_add(Weight::from_parts(11_737, 0).saturating_mul(b.into())) + // Minimum execution time: 322_000_000 picoseconds. + Weight::from_parts(316_622_652, 3760) + // Standard Error: 108_253 + .saturating_add(Weight::from_parts(937_500, 0).saturating_mul(h.into())) + // Standard Error: 96_225 + .saturating_add(Weight::from_parts(1_055_555, 0).saturating_mul(i.into())) + // Standard Error: 96_225 + .saturating_add(Weight::from_parts(55_555, 0).saturating_mul(o.into())) .saturating_add(T::DbWeight::get().reads(17_u64)) .saturating_add(T::DbWeight::get().writes(5_u64)) } @@ -350,18 +352,18 @@ impl issue::WeightInfo for WeightInfo { /// The range of component `i` is `[1, 10]`. /// The range of component `o` is `[1, 10]`. /// The range of component `b` is `[770, 2048]`. - fn execute_expired_issue_underpayment (h: u32, _i: u32, o: u32, b: u32, ) -> Weight { + fn execute_expired_issue_underpayment (h: u32, i: u32, _o: u32, b: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `3990` // Estimated: `3760` - // Minimum execution time: 132_000_000 picoseconds. - Weight::from_parts(106_780_516, 3760) - // Standard Error: 1_732_050 - .saturating_add(Weight::from_parts(2_375_000, 0).saturating_mul(h.into())) - // Standard Error: 1_539_600 - .saturating_add(Weight::from_parts(888_888, 0).saturating_mul(o.into())) - // Standard Error: 10_842 - .saturating_add(Weight::from_parts(7_824, 0).saturating_mul(b.into())) + // Minimum execution time: 231_000_000 picoseconds. + Weight::from_parts(177_273_669, 3760) + // Standard Error: 108_253 + .saturating_add(Weight::from_parts(5_437_500, 0).saturating_mul(h.into())) + // Standard Error: 96_225 + .saturating_add(Weight::from_parts(1_277_777, 0).saturating_mul(i.into())) + // Standard Error: 677 + .saturating_add(Weight::from_parts(16_040, 0).saturating_mul(b.into())) .saturating_add(T::DbWeight::get().reads(13_u64)) .saturating_add(T::DbWeight::get().writes(5_u64)) } @@ -379,8 +381,8 @@ impl issue::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `1505` // Estimated: `3760` - // Minimum execution time: 51_000_000 picoseconds. - Weight::from_parts(51_000_000, 3760) + // Minimum execution time: 89_000_000 picoseconds. + Weight::from_parts(89_000_000, 3760) .saturating_add(T::DbWeight::get().reads(5_u64)) .saturating_add(T::DbWeight::get().writes(2_u64)) } @@ -396,8 +398,8 @@ impl issue::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `1027` // Estimated: `3760` - // Minimum execution time: 35_000_000 picoseconds. - Weight::from_parts(35_000_000, 3760) + // Minimum execution time: 66_000_000 picoseconds. + Weight::from_parts(66_000_000, 3760) .saturating_add(T::DbWeight::get().reads(4_u64)) .saturating_add(T::DbWeight::get().writes(1_u64)) } @@ -407,8 +409,8 @@ impl issue::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 10_000_000 picoseconds. - Weight::from_parts(10_000_000, 0) + // Minimum execution time: 17_000_000 picoseconds. + Weight::from_parts(17_000_000, 0) .saturating_add(T::DbWeight::get().writes(1_u64)) } } \ No newline at end of file diff --git a/parachain/runtime/kintsugi/src/weights/redeem.rs b/parachain/runtime/kintsugi/src/weights/redeem.rs index 1c68b76479..dfe0a5d757 100644 --- a/parachain/runtime/kintsugi/src/weights/redeem.rs +++ b/parachain/runtime/kintsugi/src/weights/redeem.rs @@ -2,7 +2,7 @@ //! Autogenerated weights for redeem //! //! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev -//! DATE: 2023-08-23, STEPS: `2`, REPEAT: `1`, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! DATE: 2023-08-29, STEPS: `2`, REPEAT: `1`, LOW RANGE: `[]`, HIGH RANGE: `[]` //! WORST CASE MAP SIZE: `1000000` //! HOSTNAME: `Nakuls-MacBook-Pro.local`, CPU: `` //! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("kintsugi-dev"), DB CACHE: 1024 @@ -26,7 +26,7 @@ // --chain // kintsugi-dev // --output -// generated_weight.rs +// generated_weight_kintsugi.rs #![cfg_attr(rustfmt, rustfmt_skip)] #![allow(unused_parens)] @@ -96,8 +96,8 @@ impl redeem::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `3161` // Estimated: `6260` - // Minimum execution time: 169_000_000 picoseconds. - Weight::from_parts(169_000_000, 6260) + // Minimum execution time: 270_000_000 picoseconds. + Weight::from_parts(270_000_000, 6260) .saturating_add(T::DbWeight::get().reads(28_u64)) .saturating_add(T::DbWeight::get().writes(5_u64)) } @@ -129,8 +129,8 @@ impl redeem::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `2193` // Estimated: `8760` - // Minimum execution time: 146_000_000 picoseconds. - Weight::from_parts(146_000_000, 8760) + // Minimum execution time: 257_000_000 picoseconds. + Weight::from_parts(257_000_000, 8760) .saturating_add(T::DbWeight::get().reads(16_u64)) .saturating_add(T::DbWeight::get().writes(11_u64)) } @@ -160,16 +160,18 @@ impl redeem::WeightInfo for WeightInfo { /// The range of component `i` is `[1, 10]`. /// The range of component `o` is `[2, 3]`. /// The range of component `b` is `[541, 2048]`. - fn execute_redeem (h: u32, _i: u32, _o: u32, b: u32, ) -> Weight { + fn execute_redeem (h: u32, _i: u32, o: u32, b: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `2268 + o * (1 ±0)` // Estimated: `3743` - // Minimum execution time: 97_000_000 picoseconds. - Weight::from_parts(152_285_196, 3743) + // Minimum execution time: 176_000_000 picoseconds. + Weight::from_parts(151_584_172, 3743) // Standard Error: 108_253 - .saturating_add(Weight::from_parts(1_562_500, 0).saturating_mul(h.into())) + .saturating_add(Weight::from_parts(2_562_500, 0).saturating_mul(h.into())) + // Standard Error: 866_025 + .saturating_add(Weight::from_parts(500_000, 0).saturating_mul(o.into())) // Standard Error: 574 - .saturating_add(Weight::from_parts(2_322, 0).saturating_mul(b.into())) + .saturating_add(Weight::from_parts(8_958, 0).saturating_mul(b.into())) .saturating_add(T::DbWeight::get().reads(11_u64)) .saturating_add(T::DbWeight::get().writes(4_u64)) } @@ -265,8 +267,8 @@ impl redeem::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `5403` // Estimated: `11350` - // Minimum execution time: 460_000_000 picoseconds. - Weight::from_parts(460_000_000, 11350) + // Minimum execution time: 782_000_000 picoseconds. + Weight::from_parts(782_000_000, 11350) .saturating_add(T::DbWeight::get().reads(59_u64)) .saturating_add(T::DbWeight::get().writes(29_u64)) } @@ -362,8 +364,8 @@ impl redeem::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `5403` // Estimated: `11350` - // Minimum execution time: 401_000_000 picoseconds. - Weight::from_parts(401_000_000, 11350) + // Minimum execution time: 706_000_000 picoseconds. + Weight::from_parts(706_000_000, 11350) .saturating_add(T::DbWeight::get().reads(58_u64)) .saturating_add(T::DbWeight::get().writes(28_u64)) } @@ -377,18 +379,54 @@ impl redeem::WeightInfo for WeightInfo { /// Proof: BTCRelay BestBlockHeight (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen) /// Storage: Issue IssueRequests (r:1 w:1) /// Proof: Issue IssueRequests (max_values: None, max_size: Some(295), added: 2770, mode: MaxEncodedLen) - /// Storage: VaultRegistry Vaults (r:2 w:2) - /// Proof: VaultRegistry Vaults (max_values: None, max_size: Some(212), added: 2687, mode: MaxEncodedLen) /// Storage: Issue IssuePeriod (r:1 w:0) /// Proof: Issue IssuePeriod (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen) + /// Storage: VaultRegistry Vaults (r:2 w:2) + /// Proof: VaultRegistry Vaults (max_values: None, max_size: Some(212), added: 2687, mode: MaxEncodedLen) + /// Storage: Oracle Aggregate (r:1 w:0) + /// Proof: Oracle Aggregate (max_values: None, max_size: Some(44), added: 2519, mode: MaxEncodedLen) + /// Storage: Fee PunishmentFee (r:1 w:0) + /// Proof: Fee PunishmentFee (max_values: Some(1), max_size: Some(16), added: 511, mode: MaxEncodedLen) + /// Storage: VaultStaking Nonce (r:1 w:0) + /// Proof: VaultStaking Nonce (max_values: None, max_size: Some(74), added: 2549, mode: MaxEncodedLen) + /// Storage: VaultStaking TotalCurrentStake (r:1 w:0) + /// Proof: VaultStaking TotalCurrentStake (max_values: None, max_size: Some(106), added: 2581, mode: MaxEncodedLen) + /// Storage: VaultRegistry TotalUserVaultCollateral (r:1 w:1) + /// Proof: VaultRegistry TotalUserVaultCollateral (max_values: None, max_size: Some(54), added: 2529, mode: MaxEncodedLen) + /// Storage: VaultCapacity Stake (r:1 w:0) + /// Proof: VaultCapacity Stake (max_values: None, max_size: Some(43), added: 2518, mode: MaxEncodedLen) + /// Storage: VaultCapacity RewardPerToken (r:2 w:0) + /// Proof: VaultCapacity RewardPerToken (max_values: None, max_size: Some(59), added: 2534, mode: MaxEncodedLen) + /// Storage: VaultCapacity RewardTally (r:2 w:2) + /// Proof: VaultCapacity RewardTally (max_values: None, max_size: Some(70), added: 2545, mode: MaxEncodedLen) + /// Storage: VaultCapacity TotalRewards (r:2 w:2) + /// Proof: VaultCapacity TotalRewards (max_values: None, max_size: Some(43), added: 2518, mode: MaxEncodedLen) + /// Storage: VaultRewards Stake (r:1 w:0) + /// Proof: VaultRewards Stake (max_values: None, max_size: Some(97), added: 2572, mode: MaxEncodedLen) + /// Storage: VaultRewards RewardPerToken (r:2 w:0) + /// Proof: VaultRewards RewardPerToken (max_values: None, max_size: Some(70), added: 2545, mode: MaxEncodedLen) + /// Storage: VaultRewards RewardTally (r:2 w:2) + /// Proof: VaultRewards RewardTally (max_values: None, max_size: Some(124), added: 2599, mode: MaxEncodedLen) + /// Storage: VaultRewards TotalRewards (r:2 w:2) + /// Proof: VaultRewards TotalRewards (max_values: None, max_size: Some(43), added: 2518, mode: MaxEncodedLen) + /// Storage: Fee Commission (r:1 w:0) + /// Proof: Fee Commission (max_values: None, max_size: Some(86), added: 2561, mode: MaxEncodedLen) + /// Storage: VaultStaking RewardPerToken (r:2 w:2) + /// Proof: VaultStaking RewardPerToken (max_values: None, max_size: Some(117), added: 2592, mode: MaxEncodedLen) + /// Storage: VaultStaking TotalStake (r:1 w:0) + /// Proof: VaultStaking TotalStake (max_values: None, max_size: Some(106), added: 2581, mode: MaxEncodedLen) + /// Storage: VaultRegistry SecureCollateralThreshold (r:1 w:0) + /// Proof: VaultRegistry SecureCollateralThreshold (max_values: None, max_size: Some(54), added: 2529, mode: MaxEncodedLen) + /// Storage: VaultRewards TotalStake (r:1 w:0) + /// Proof: VaultRewards TotalStake (max_values: None, max_size: Some(43), added: 2518, mode: MaxEncodedLen) fn cancel_replace () -> Weight { // Proof Size summary in bytes: - // Measured: `2045` + // Measured: `4404` // Estimated: `6364` - // Minimum execution time: 70_000_000 picoseconds. - Weight::from_parts(70_000_000, 6364) - .saturating_add(T::DbWeight::get().reads(8_u64)) - .saturating_add(T::DbWeight::get().writes(4_u64)) + // Minimum execution time: 394_000_000 picoseconds. + Weight::from_parts(394_000_000, 6364) + .saturating_add(T::DbWeight::get().reads(33_u64)) + .saturating_add(T::DbWeight::get().writes(15_u64)) } /// Storage: Redeem RedeemPeriod (r:0 w:1) /// Proof: Redeem RedeemPeriod (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen) @@ -396,8 +434,8 @@ impl redeem::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 10_000_000 picoseconds. - Weight::from_parts(10_000_000, 0) + // Minimum execution time: 17_000_000 picoseconds. + Weight::from_parts(17_000_000, 0) .saturating_add(T::DbWeight::get().writes(1_u64)) } /// Storage: VaultRegistry Vaults (r:1 w:1) @@ -410,8 +448,8 @@ impl redeem::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `1399` // Estimated: `3677` - // Minimum execution time: 66_000_000 picoseconds. - Weight::from_parts(66_000_000, 3677) + // Minimum execution time: 116_000_000 picoseconds. + Weight::from_parts(116_000_000, 3677) .saturating_add(T::DbWeight::get().reads(3_u64)) .saturating_add(T::DbWeight::get().writes(3_u64)) } @@ -423,22 +461,16 @@ impl redeem::WeightInfo for WeightInfo { /// Proof: BTCRelay BestBlockHeight (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen) /// Storage: VaultRegistry Vaults (r:2 w:2) /// Proof: VaultRegistry Vaults (max_values: None, max_size: Some(212), added: 2687, mode: MaxEncodedLen) - /// Storage: Oracle Aggregate (r:2 w:0) - /// Proof: Oracle Aggregate (max_values: None, max_size: Some(44), added: 2519, mode: MaxEncodedLen) - /// Storage: Fee IssueGriefingCollateral (r:1 w:0) - /// Proof: Fee IssueGriefingCollateral (max_values: Some(1), max_size: Some(16), added: 511, mode: MaxEncodedLen) - /// Storage: Tokens Accounts (r:1 w:1) - /// Proof: Tokens Accounts (max_values: None, max_size: Some(115), added: 2590, mode: MaxEncodedLen) /// Storage: Issue IssueBtcDustValue (r:1 w:0) /// Proof: Issue IssueBtcDustValue (max_values: Some(1), max_size: Some(16), added: 511, mode: MaxEncodedLen) /// Storage: VaultRegistry SecureCollateralThreshold (r:1 w:0) /// Proof: VaultRegistry SecureCollateralThreshold (max_values: None, max_size: Some(54), added: 2529, mode: MaxEncodedLen) + /// Storage: Oracle Aggregate (r:1 w:0) + /// Proof: Oracle Aggregate (max_values: None, max_size: Some(44), added: 2519, mode: MaxEncodedLen) /// Storage: VaultStaking Nonce (r:2 w:0) /// Proof: VaultStaking Nonce (max_values: None, max_size: Some(74), added: 2549, mode: MaxEncodedLen) /// Storage: VaultStaking TotalCurrentStake (r:2 w:0) /// Proof: VaultStaking TotalCurrentStake (max_values: None, max_size: Some(106), added: 2581, mode: MaxEncodedLen) - /// Storage: Fee IssueFee (r:1 w:0) - /// Proof: Fee IssueFee (max_values: Some(1), max_size: Some(16), added: 511, mode: MaxEncodedLen) /// Storage: Security Nonce (r:1 w:1) /// Proof: Security Nonce (max_values: Some(1), max_size: Some(32), added: 527, mode: MaxEncodedLen) /// Storage: System ParentHash (r:1 w:0) @@ -449,6 +481,8 @@ impl redeem::WeightInfo for WeightInfo { /// Proof: Security ActiveBlockCount (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen) /// Storage: Issue IssuePeriod (r:1 w:0) /// Proof: Issue IssuePeriod (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen) + /// Storage: Fee RedeemFee (r:1 w:0) + /// Proof: Fee RedeemFee (max_values: Some(1), max_size: Some(16), added: 511, mode: MaxEncodedLen) /// Storage: Redeem RedeemBtcDustValue (r:1 w:0) /// Proof: Redeem RedeemBtcDustValue (max_values: Some(1), max_size: Some(16), added: 511, mode: MaxEncodedLen) /// Storage: VaultRegistry PremiumRedeemThreshold (r:1 w:0) @@ -461,12 +495,12 @@ impl redeem::WeightInfo for WeightInfo { /// Proof: Redeem RedeemRequests (max_values: None, max_size: Some(278), added: 2753, mode: MaxEncodedLen) fn request_replace () -> Weight { // Proof Size summary in bytes: - // Measured: `3365` + // Measured: `2735` // Estimated: `6364` - // Minimum execution time: 22_754_000_000 picoseconds. - Weight::from_parts(22_754_000_000, 6364) - .saturating_add(T::DbWeight::get().reads(24_u64)) - .saturating_add(T::DbWeight::get().writes(6_u64)) + // Minimum execution time: 38_446_000_000 picoseconds. + Weight::from_parts(38_446_000_000, 6364) + .saturating_add(T::DbWeight::get().reads(21_u64)) + .saturating_add(T::DbWeight::get().writes(5_u64)) } /// Storage: Redeem RedeemRequests (r:1 w:1) /// Proof: Redeem RedeemRequests (max_values: None, max_size: Some(278), added: 2753, mode: MaxEncodedLen) @@ -492,16 +526,20 @@ impl redeem::WeightInfo for WeightInfo { /// The range of component `i` is `[1, 10]`. /// The range of component `o` is `[2, 3]`. /// The range of component `b` is `[541, 2048]`. - fn execute_replace (h: u32, i: u32, _o: u32, _b: u32, ) -> Weight { + fn execute_replace (h: u32, i: u32, o: u32, b: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `2310` // Estimated: `6364` - // Minimum execution time: 103_000_000 picoseconds. - Weight::from_parts(146_608_991, 6364) - // Standard Error: 1_732_050 - .saturating_add(Weight::from_parts(2_375_000, 0).saturating_mul(h.into())) - // Standard Error: 1_539_600 - .saturating_add(Weight::from_parts(1_000_000, 0).saturating_mul(i.into())) + // Minimum execution time: 178_000_000 picoseconds. + Weight::from_parts(108_702_702, 6364) + // Standard Error: 433_012 + .saturating_add(Weight::from_parts(3_875_000, 0).saturating_mul(h.into())) + // Standard Error: 384_900 + .saturating_add(Weight::from_parts(1_444_444, 0).saturating_mul(i.into())) + // Standard Error: 3_464_101 + .saturating_add(Weight::from_parts(8_000_000, 0).saturating_mul(o.into())) + // Standard Error: 2_298 + .saturating_add(Weight::from_parts(11_280, 0).saturating_mul(b.into())) .saturating_add(T::DbWeight::get().reads(11_u64)) .saturating_add(T::DbWeight::get().writes(4_u64)) }