diff --git a/pallets/marketplace/src/weights.rs b/pallets/marketplace/src/weights.rs index 9786eb0a3f..c64a71a0ed 100644 --- a/pallets/marketplace/src/weights.rs +++ b/pallets/marketplace/src/weights.rs @@ -15,7 +15,6 @@ // See the License for the specific language governing permissions and // limitations under the License. - //! Autogenerated weights for `pallet_marketplace` //! //! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev diff --git a/pallets/xyk-liquidity-mining/src/weights.rs b/pallets/xyk-liquidity-mining/src/weights.rs index 0d105bebc5..967fa8e9ab 100644 --- a/pallets/xyk-liquidity-mining/src/weights.rs +++ b/pallets/xyk-liquidity-mining/src/weights.rs @@ -15,7 +15,6 @@ // See the License for the specific language governing permissions and // limitations under the License. - //! Autogenerated weights for `pallet_xyk_liquidity_mining` //! //! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev diff --git a/runtime/basilisk/src/weights/asset_registry.rs b/runtime/basilisk/src/weights/asset_registry.rs index 559b9cdecb..01fa777339 100644 --- a/runtime/basilisk/src/weights/asset_registry.rs +++ b/runtime/basilisk/src/weights/asset_registry.rs @@ -15,7 +15,6 @@ // See the License for the specific language governing permissions and // limitations under the License. - //! Autogenerated weights for `pallet_asset_registry` //! //! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev diff --git a/runtime/basilisk/src/weights/balances.rs b/runtime/basilisk/src/weights/balances.rs index 6fd0e104ac..b58a9c9fa6 100644 --- a/runtime/basilisk/src/weights/balances.rs +++ b/runtime/basilisk/src/weights/balances.rs @@ -15,7 +15,6 @@ // See the License for the specific language governing permissions and // limitations under the License. - //! Autogenerated weights for `pallet_balances` //! //! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev @@ -133,7 +132,7 @@ impl WeightInfo for BasiliskWeight { /// Storage: `System::Account` (r:1000 w:1000) /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`) /// The range of component `u` is `[1, 1000]`. - fn upgrade_accounts(u: u32, ) -> Weight { + fn upgrade_accounts(u: u32) -> Weight { // Proof Size summary in bytes: // Measured: `0 + u * (135 ±0)` // Estimated: `990 + u * (2603 ±0)` diff --git a/runtime/basilisk/src/weights/collator_selection.rs b/runtime/basilisk/src/weights/collator_selection.rs index 0f57cb724f..586ac03aee 100644 --- a/runtime/basilisk/src/weights/collator_selection.rs +++ b/runtime/basilisk/src/weights/collator_selection.rs @@ -15,7 +15,6 @@ // See the License for the specific language governing permissions and // limitations under the License. - //! Autogenerated weights for `pallet_collator_selection` //! //! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev @@ -58,7 +57,7 @@ impl WeightInfo for BasiliskWeight { /// Storage: `CollatorSelection::Invulnerables` (r:0 w:1) /// Proof: `CollatorSelection::Invulnerables` (`max_values`: Some(1), `max_size`: Some(1601), added: 2096, mode: `MaxEncodedLen`) /// The range of component `b` is `[1, 50]`. - fn set_invulnerables(b: u32, ) -> Weight { + fn set_invulnerables(b: u32) -> Weight { // Proof Size summary in bytes: // Measured: `205 + b * (79 ±0)` // Estimated: `1194 + b * (2554 ±0)` @@ -80,7 +79,7 @@ impl WeightInfo for BasiliskWeight { /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`) /// The range of component `b` is `[1, 49]`. /// The range of component `c` is `[1, 19]`. - fn add_invulnerable(b: u32, c: u32, ) -> Weight { + fn add_invulnerable(b: u32, c: u32) -> Weight { // Proof Size summary in bytes: // Measured: `853 + b * (42 ±0) + c * (48 ±0)` // Estimated: `4355 + b * (42 ±0) + c * (46 ±0)` @@ -100,7 +99,7 @@ impl WeightInfo for BasiliskWeight { /// Storage: `CollatorSelection::Invulnerables` (r:1 w:1) /// Proof: `CollatorSelection::Invulnerables` (`max_values`: Some(1), `max_size`: Some(1601), added: 2096, mode: `MaxEncodedLen`) /// The range of component `b` is `[5, 50]`. - fn remove_invulnerable(b: u32, ) -> Weight { + fn remove_invulnerable(b: u32) -> Weight { // Proof Size summary in bytes: // Measured: `186 + b * (32 ±0)` // Estimated: `3086` @@ -118,8 +117,7 @@ impl WeightInfo for BasiliskWeight { // Measured: `0` // Estimated: `0` // Minimum execution time: 11_074_000 picoseconds. - Weight::from_parts(11_287_000, 0) - .saturating_add(T::DbWeight::get().writes(1_u64)) + Weight::from_parts(11_287_000, 0).saturating_add(T::DbWeight::get().writes(1_u64)) } /// Storage: `CollatorSelection::CandidacyBond` (r:0 w:1) /// Proof: `CollatorSelection::CandidacyBond` (`max_values`: Some(1), `max_size`: Some(16), added: 511, mode: `MaxEncodedLen`) @@ -128,8 +126,7 @@ impl WeightInfo for BasiliskWeight { // Measured: `0` // Estimated: `0` // Minimum execution time: 11_109_000 picoseconds. - Weight::from_parts(11_327_000, 0) - .saturating_add(T::DbWeight::get().writes(1_u64)) + Weight::from_parts(11_327_000, 0).saturating_add(T::DbWeight::get().writes(1_u64)) } /// Storage: `CollatorSelection::Candidates` (r:1 w:1) /// Proof: `CollatorSelection::Candidates` (`max_values`: Some(1), `max_size`: Some(961), added: 1456, mode: `MaxEncodedLen`) @@ -144,7 +141,7 @@ impl WeightInfo for BasiliskWeight { /// Storage: `CollatorSelection::LastAuthoredBlock` (r:0 w:1) /// Proof: `CollatorSelection::LastAuthoredBlock` (`max_values`: None, `max_size`: Some(44), added: 2519, mode: `MaxEncodedLen`) /// The range of component `c` is `[1, 19]`. - fn register_as_candidate(c: u32, ) -> Weight { + fn register_as_candidate(c: u32) -> Weight { // Proof Size summary in bytes: // Measured: `621 + c * (61 ±0)` // Estimated: `4091 + c * (61 ±0)` @@ -163,7 +160,7 @@ impl WeightInfo for BasiliskWeight { /// Storage: `CollatorSelection::LastAuthoredBlock` (r:0 w:1) /// Proof: `CollatorSelection::LastAuthoredBlock` (`max_values`: None, `max_size`: Some(44), added: 2519, mode: `MaxEncodedLen`) /// The range of component `c` is `[3, 20]`. - fn leave_intent(c: u32, ) -> Weight { + fn leave_intent(c: u32) -> Weight { // Proof Size summary in bytes: // Measured: `448 + c * (47 ±0)` // Estimated: `3086` @@ -201,7 +198,7 @@ impl WeightInfo for BasiliskWeight { /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`) /// The range of component `r` is `[1, 20]`. /// The range of component `c` is `[1, 20]`. - fn new_session(r: u32, c: u32, ) -> Weight { + fn new_session(r: u32, c: u32) -> Weight { // Proof Size summary in bytes: // Measured: `312 + c * (98 ±0) + r * (117 ±0)` // Estimated: `3086 + c * (2519 ±0) + r * (2603 ±0)` diff --git a/runtime/basilisk/src/weights/collective.rs b/runtime/basilisk/src/weights/collective.rs index d57969a1e3..daf6d9618b 100644 --- a/runtime/basilisk/src/weights/collective.rs +++ b/runtime/basilisk/src/weights/collective.rs @@ -15,7 +15,6 @@ // See the License for the specific language governing permissions and // limitations under the License. - //! Autogenerated weights for `pallet_collective` //! //! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev @@ -64,7 +63,7 @@ impl WeightInfo for BasiliskWeight { /// The range of component `m` is `[0, 10]`. /// The range of component `n` is `[0, 10]`. /// The range of component `p` is `[0, 20]`. - fn set_members(m: u32, _n: u32, p: u32, ) -> Weight { + fn set_members(m: u32, _n: u32, p: u32) -> Weight { // Proof Size summary in bytes: // Measured: `0 + m * (672 ±0) + p * (310 ±0)` // Estimated: `7085 + m * (396 ±7) + p * (2539 ±3)` @@ -85,7 +84,7 @@ impl WeightInfo for BasiliskWeight { /// Proof: `TechnicalCommittee::Members` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) /// The range of component `b` is `[2, 1024]`. /// The range of component `m` is `[1, 10]`. - fn execute(b: u32, m: u32, ) -> Weight { + fn execute(b: u32, m: u32) -> Weight { // Proof Size summary in bytes: // Measured: `70 + m * (32 ±0)` // Estimated: `1555 + m * (32 ±0)` @@ -104,7 +103,7 @@ impl WeightInfo for BasiliskWeight { /// Proof: `TechnicalCommittee::ProposalOf` (`max_values`: None, `max_size`: None, mode: `Measured`) /// The range of component `b` is `[2, 1024]`. /// The range of component `m` is `[1, 10]`. - fn propose_execute(b: u32, m: u32, ) -> Weight { + fn propose_execute(b: u32, m: u32) -> Weight { // Proof Size summary in bytes: // Measured: `70 + m * (32 ±0)` // Estimated: `3535 + m * (32 ±0)` @@ -130,7 +129,7 @@ impl WeightInfo for BasiliskWeight { /// The range of component `b` is `[2, 1024]`. /// The range of component `m` is `[2, 10]`. /// The range of component `p` is `[1, 20]`. - fn propose_proposed(b: u32, m: u32, p: u32, ) -> Weight { + fn propose_proposed(b: u32, m: u32, p: u32) -> Weight { // Proof Size summary in bytes: // Measured: `128 + m * (32 ±0) + p * (52 ±0)` // Estimated: `3529 + m * (36 ±0) + p * (54 ±0)` @@ -152,7 +151,7 @@ impl WeightInfo for BasiliskWeight { /// Storage: `TechnicalCommittee::Voting` (r:1 w:1) /// Proof: `TechnicalCommittee::Voting` (`max_values`: None, `max_size`: None, mode: `Measured`) /// The range of component `m` is `[5, 10]`. - fn vote(m: u32, ) -> Weight { + fn vote(m: u32) -> Weight { // Proof Size summary in bytes: // Measured: `610 + m * (64 ±0)` // Estimated: `4075 + m * (64 ±0)` @@ -174,7 +173,7 @@ impl WeightInfo for BasiliskWeight { /// Proof: `TechnicalCommittee::ProposalOf` (`max_values`: None, `max_size`: None, mode: `Measured`) /// The range of component `m` is `[4, 10]`. /// The range of component `p` is `[1, 20]`. - fn close_early_disapproved(m: u32, p: u32, ) -> Weight { + fn close_early_disapproved(m: u32, p: u32) -> Weight { // Proof Size summary in bytes: // Measured: `164 + m * (64 ±0) + p * (55 ±0)` // Estimated: `3623 + m * (66 ±0) + p * (55 ±0)` @@ -200,7 +199,7 @@ impl WeightInfo for BasiliskWeight { /// The range of component `b` is `[2, 1024]`. /// The range of component `m` is `[4, 10]`. /// The range of component `p` is `[1, 20]`. - fn close_early_approved(b: u32, m: u32, p: u32, ) -> Weight { + fn close_early_approved(b: u32, m: u32, p: u32) -> Weight { // Proof Size summary in bytes: // Measured: `66 + b * (1 ±0) + m * (64 ±0) + p * (79 ±0)` // Estimated: `3612 + b * (1 ±0) + m * (59 ±1) + p * (76 ±0)` @@ -228,7 +227,7 @@ impl WeightInfo for BasiliskWeight { /// Proof: `TechnicalCommittee::ProposalOf` (`max_values`: None, `max_size`: None, mode: `Measured`) /// The range of component `m` is `[4, 10]`. /// The range of component `p` is `[1, 20]`. - fn close_disapproved(m: u32, p: u32, ) -> Weight { + fn close_disapproved(m: u32, p: u32) -> Weight { // Proof Size summary in bytes: // Measured: `184 + m * (64 ±0) + p * (55 ±0)` // Estimated: `3643 + m * (66 ±0) + p * (55 ±0)` @@ -256,7 +255,7 @@ impl WeightInfo for BasiliskWeight { /// The range of component `b` is `[2, 1024]`. /// The range of component `m` is `[4, 10]`. /// The range of component `p` is `[1, 20]`. - fn close_approved(b: u32, m: u32, p: u32, ) -> Weight { + fn close_approved(b: u32, m: u32, p: u32) -> Weight { // Proof Size summary in bytes: // Measured: `86 + b * (1 ±0) + m * (64 ±0) + p * (79 ±0)` // Estimated: `3632 + b * (1 ±0) + m * (59 ±1) + p * (76 ±0)` @@ -279,7 +278,7 @@ impl WeightInfo for BasiliskWeight { /// Storage: `TechnicalCommittee::ProposalOf` (r:0 w:1) /// Proof: `TechnicalCommittee::ProposalOf` (`max_values`: None, `max_size`: None, mode: `Measured`) /// The range of component `p` is `[1, 20]`. - fn disapprove_proposal(p: u32, ) -> Weight { + fn disapprove_proposal(p: u32) -> Weight { // Proof Size summary in bytes: // Measured: `226 + p * (32 ±0)` // Estimated: `1711 + p * (32 ±0)` diff --git a/runtime/basilisk/src/weights/currencies.rs b/runtime/basilisk/src/weights/currencies.rs index 563cfc2a75..a2a5467104 100644 --- a/runtime/basilisk/src/weights/currencies.rs +++ b/runtime/basilisk/src/weights/currencies.rs @@ -15,7 +15,6 @@ // See the License for the specific language governing permissions and // limitations under the License. - //! Autogenerated weights for `pallet_currencies` //! //! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev diff --git a/runtime/basilisk/src/weights/democracy.rs b/runtime/basilisk/src/weights/democracy.rs index 31646473ae..78ba3dbc8b 100644 --- a/runtime/basilisk/src/weights/democracy.rs +++ b/runtime/basilisk/src/weights/democracy.rs @@ -15,7 +15,6 @@ // See the License for the specific language governing permissions and // limitations under the License. - //! Autogenerated weights for `pallet_democracy` //! //! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev @@ -173,8 +172,7 @@ impl WeightInfo for BasiliskWeight { // Measured: `0` // Estimated: `0` // Minimum execution time: 5_331_000 picoseconds. - Weight::from_parts(5_514_000, 0) - .saturating_add(T::DbWeight::get().writes(1_u64)) + Weight::from_parts(5_514_000, 0).saturating_add(T::DbWeight::get().writes(1_u64)) } /// Storage: `Democracy::NextExternal` (r:0 w:1) /// Proof: `Democracy::NextExternal` (`max_values`: Some(1), `max_size`: Some(132), added: 627, mode: `MaxEncodedLen`) @@ -183,8 +181,7 @@ impl WeightInfo for BasiliskWeight { // Measured: `0` // Estimated: `0` // Minimum execution time: 5_374_000 picoseconds. - Weight::from_parts(5_579_000, 0) - .saturating_add(T::DbWeight::get().writes(1_u64)) + Weight::from_parts(5_579_000, 0).saturating_add(T::DbWeight::get().writes(1_u64)) } /// Storage: `Democracy::NextExternal` (r:1 w:1) /// Proof: `Democracy::NextExternal` (`max_values`: Some(1), `max_size`: Some(132), added: 627, mode: `MaxEncodedLen`) @@ -255,7 +252,7 @@ impl WeightInfo for BasiliskWeight { /// Storage: `Democracy::ReferendumInfoOf` (r:99 w:0) /// Proof: `Democracy::ReferendumInfoOf` (`max_values`: None, `max_size`: Some(201), added: 2676, mode: `MaxEncodedLen`) /// The range of component `r` is `[0, 99]`. - fn on_initialize_base(r: u32, ) -> Weight { + fn on_initialize_base(r: u32) -> Weight { // Proof Size summary in bytes: // Measured: `125 + r * (86 ±0)` // Estimated: `1489 + r * (2676 ±0)` @@ -281,7 +278,7 @@ impl WeightInfo for BasiliskWeight { /// Storage: `Democracy::ReferendumInfoOf` (r:99 w:0) /// Proof: `Democracy::ReferendumInfoOf` (`max_values`: None, `max_size`: Some(201), added: 2676, mode: `MaxEncodedLen`) /// The range of component `r` is `[0, 99]`. - fn on_initialize_base_with_launch_period(r: u32, ) -> Weight { + fn on_initialize_base_with_launch_period(r: u32) -> Weight { // Proof Size summary in bytes: // Measured: `125 + r * (86 ±0)` // Estimated: `18187 + r * (2676 ±0)` @@ -303,7 +300,7 @@ impl WeightInfo for BasiliskWeight { /// Storage: `Balances::Freezes` (r:1 w:0) /// Proof: `Balances::Freezes` (`max_values`: None, `max_size`: Some(49), added: 2524, mode: `MaxEncodedLen`) /// The range of component `r` is `[0, 99]`. - fn delegate(r: u32, ) -> Weight { + fn delegate(r: u32) -> Weight { // Proof Size summary in bytes: // Measured: `748 + r * (108 ±0)` // Estimated: `19800 + r * (2676 ±0)` @@ -322,7 +319,7 @@ impl WeightInfo for BasiliskWeight { /// Storage: `Democracy::ReferendumInfoOf` (r:99 w:99) /// Proof: `Democracy::ReferendumInfoOf` (`max_values`: None, `max_size`: Some(201), added: 2676, mode: `MaxEncodedLen`) /// The range of component `r` is `[0, 99]`. - fn undelegate(r: u32, ) -> Weight { + fn undelegate(r: u32) -> Weight { // Proof Size summary in bytes: // Measured: `373 + r * (108 ±0)` // Estimated: `13530 + r * (2676 ±0)` @@ -343,8 +340,7 @@ impl WeightInfo for BasiliskWeight { // Measured: `0` // Estimated: `0` // Minimum execution time: 5_548_000 picoseconds. - Weight::from_parts(5_679_000, 0) - .saturating_add(T::DbWeight::get().writes(1_u64)) + Weight::from_parts(5_679_000, 0).saturating_add(T::DbWeight::get().writes(1_u64)) } /// Storage: `Democracy::VotingOf` (r:1 w:1) /// Proof: `Democracy::VotingOf` (`max_values`: None, `max_size`: Some(3795), added: 6270, mode: `MaxEncodedLen`) @@ -355,7 +351,7 @@ impl WeightInfo for BasiliskWeight { /// Storage: `System::Account` (r:1 w:1) /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`) /// The range of component `r` is `[0, 99]`. - fn unlock_remove(r: u32, ) -> Weight { + fn unlock_remove(r: u32) -> Weight { // Proof Size summary in bytes: // Measured: `504` // Estimated: `7260` @@ -375,7 +371,7 @@ impl WeightInfo for BasiliskWeight { /// Storage: `System::Account` (r:1 w:1) /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`) /// The range of component `r` is `[0, 99]`. - fn unlock_set(r: u32, ) -> Weight { + fn unlock_set(r: u32) -> Weight { // Proof Size summary in bytes: // Measured: `504 + r * (22 ±0)` // Estimated: `7260` @@ -391,7 +387,7 @@ impl WeightInfo for BasiliskWeight { /// Storage: `Democracy::VotingOf` (r:1 w:1) /// Proof: `Democracy::VotingOf` (`max_values`: None, `max_size`: Some(3795), added: 6270, mode: `MaxEncodedLen`) /// The range of component `r` is `[1, 100]`. - fn remove_vote(r: u32, ) -> Weight { + fn remove_vote(r: u32) -> Weight { // Proof Size summary in bytes: // Measured: `644 + r * (25 ±0)` // Estimated: `7260` @@ -407,7 +403,7 @@ impl WeightInfo for BasiliskWeight { /// Storage: `Democracy::VotingOf` (r:1 w:1) /// Proof: `Democracy::VotingOf` (`max_values`: None, `max_size`: Some(3795), added: 6270, mode: `MaxEncodedLen`) /// The range of component `r` is `[1, 100]`. - fn remove_other_vote(r: u32, ) -> Weight { + fn remove_other_vote(r: u32) -> Weight { // Proof Size summary in bytes: // Measured: `644 + r * (25 ±0)` // Estimated: `7260` diff --git a/runtime/basilisk/src/weights/duster.rs b/runtime/basilisk/src/weights/duster.rs index fa164a8eb6..06f1e28691 100644 --- a/runtime/basilisk/src/weights/duster.rs +++ b/runtime/basilisk/src/weights/duster.rs @@ -15,7 +15,6 @@ // See the License for the specific language governing permissions and // limitations under the License. - //! Autogenerated weights for `pallet_duster` //! //! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev @@ -83,8 +82,7 @@ impl WeightInfo for BasiliskWeight { // Measured: `966` // Estimated: `0` // Minimum execution time: 21_498_000 picoseconds. - Weight::from_parts(21_926_000, 0) - .saturating_add(T::DbWeight::get().writes(1_u64)) + Weight::from_parts(21_926_000, 0).saturating_add(T::DbWeight::get().writes(1_u64)) } /// Storage: `Duster::AccountBlacklist` (r:1 w:1) /// Proof: `Duster::AccountBlacklist` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`) diff --git a/runtime/basilisk/src/weights/ema_oracle.rs b/runtime/basilisk/src/weights/ema_oracle.rs index d735a32b14..da43ea68d5 100644 --- a/runtime/basilisk/src/weights/ema_oracle.rs +++ b/runtime/basilisk/src/weights/ema_oracle.rs @@ -15,7 +15,6 @@ // See the License for the specific language governing permissions and // limitations under the License. - //! Autogenerated weights for `pallet_ema_oracle` //! //! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev @@ -60,15 +59,14 @@ impl WeightInfo for BasiliskWeight { // Measured: `109` // Estimated: `5926` // Minimum execution time: 3_828_000 picoseconds. - Weight::from_parts(3_986_000, 5926) - .saturating_add(T::DbWeight::get().reads(1_u64)) + Weight::from_parts(3_986_000, 5926).saturating_add(T::DbWeight::get().reads(1_u64)) } /// Storage: `EmaOracle::Accumulator` (r:1 w:1) /// Proof: `EmaOracle::Accumulator` (`max_values`: Some(1), `max_size`: Some(4441), added: 4936, mode: `MaxEncodedLen`) /// Storage: `EmaOracle::Oracles` (r:145 w:145) /// Proof: `EmaOracle::Oracles` (`max_values`: None, `max_size`: Some(177), added: 2652, mode: `MaxEncodedLen`) /// The range of component `b` is `[1, 29]`. - fn on_finalize_multiple_tokens(b: u32, ) -> Weight { + fn on_finalize_multiple_tokens(b: u32) -> Weight { // Proof Size summary in bytes: // Measured: `170 + b * (933 ±0)` // Estimated: `5926 + b * (13260 ±0)` @@ -85,7 +83,7 @@ impl WeightInfo for BasiliskWeight { /// Storage: `EmaOracle::Accumulator` (r:1 w:1) /// Proof: `EmaOracle::Accumulator` (`max_values`: Some(1), `max_size`: Some(4441), added: 4936, mode: `MaxEncodedLen`) /// The range of component `b` is `[1, 29]`. - fn on_trade_multiple_tokens(b: u32, ) -> Weight { + fn on_trade_multiple_tokens(b: u32) -> Weight { // Proof Size summary in bytes: // Measured: `171 + b * (148 ±0)` // Estimated: `5926` @@ -99,7 +97,7 @@ impl WeightInfo for BasiliskWeight { /// Storage: `EmaOracle::Accumulator` (r:1 w:1) /// Proof: `EmaOracle::Accumulator` (`max_values`: Some(1), `max_size`: Some(4441), added: 4936, mode: `MaxEncodedLen`) /// The range of component `b` is `[1, 29]`. - fn on_liquidity_changed_multiple_tokens(b: u32, ) -> Weight { + fn on_liquidity_changed_multiple_tokens(b: u32) -> Weight { // Proof Size summary in bytes: // Measured: `171 + b * (148 ±0)` // Estimated: `5926` @@ -117,7 +115,6 @@ impl WeightInfo for BasiliskWeight { // Measured: `575` // Estimated: `6294` // Minimum execution time: 19_841_000 picoseconds. - Weight::from_parts(20_202_000, 6294) - .saturating_add(T::DbWeight::get().reads(2_u64)) + Weight::from_parts(20_202_000, 6294).saturating_add(T::DbWeight::get().reads(2_u64)) } } diff --git a/runtime/basilisk/src/weights/lbp.rs b/runtime/basilisk/src/weights/lbp.rs index 949dfb0ffd..d1e96b6efd 100644 --- a/runtime/basilisk/src/weights/lbp.rs +++ b/runtime/basilisk/src/weights/lbp.rs @@ -15,7 +15,6 @@ // See the License for the specific language governing permissions and // limitations under the License. - //! Autogenerated weights for `pallet_lbp` //! //! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev @@ -179,7 +178,7 @@ impl WeightInfo for BasiliskWeight { /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`) /// The range of component `c` is `[1, 2]`. /// The range of component `e` is `[0, 1]`. - fn router_execution_sell(c: u32, e: u32, ) -> Weight { + fn router_execution_sell(c: u32, e: u32) -> Weight { // Proof Size summary in bytes: // Measured: `784 + e * (754 ±0)` // Estimated: `6156 + e * (7749 ±99_524_913_928_918_768)` @@ -206,7 +205,7 @@ impl WeightInfo for BasiliskWeight { /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`) /// The range of component `c` is `[1, 3]`. /// The range of component `e` is `[0, 1]`. - fn router_execution_buy(c: u32, e: u32, ) -> Weight { + fn router_execution_buy(c: u32, e: u32) -> Weight { // Proof Size summary in bytes: // Measured: `784 + e * (754 ±0)` // Estimated: `6156 + e * (7749 ±0)` @@ -230,7 +229,6 @@ impl WeightInfo for BasiliskWeight { // Measured: `784` // Estimated: `6156` // Minimum execution time: 66_271_000 picoseconds. - Weight::from_parts(66_643_000, 6156) - .saturating_add(T::DbWeight::get().reads(3_u64)) + Weight::from_parts(66_643_000, 6156).saturating_add(T::DbWeight::get().reads(3_u64)) } } diff --git a/runtime/basilisk/src/weights/marketplace.rs b/runtime/basilisk/src/weights/marketplace.rs index 38432869fa..343c44f147 100644 --- a/runtime/basilisk/src/weights/marketplace.rs +++ b/runtime/basilisk/src/weights/marketplace.rs @@ -15,7 +15,6 @@ // See the License for the specific language governing permissions and // limitations under the License. - //! Autogenerated weights for `pallet_marketplace` //! //! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev diff --git a/runtime/basilisk/src/weights/nft.rs b/runtime/basilisk/src/weights/nft.rs index 1df6233308..7f690d4c50 100644 --- a/runtime/basilisk/src/weights/nft.rs +++ b/runtime/basilisk/src/weights/nft.rs @@ -15,25 +15,27 @@ // See the License for the specific language governing permissions and // limitations under the License. -//! Autogenerated weights for pallet_nft +//! Autogenerated weights for `pallet_nft` //! //! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev -//! DATE: 2023-06-01, STEPS: 5, REPEAT: 20, LOW RANGE: [], HIGH RANGE: [] -//! EXECUTION: None, WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 1024 +//! DATE: 2023-12-06, STEPS: `10`, REPEAT: `30`, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! WORST CASE MAP SIZE: `1000000` +//! HOSTNAME: `bench-bot`, CPU: `Intel(R) Core(TM) i7-7700K CPU @ 4.20GHz` +//! WASM-EXECUTION: `Compiled`, CHAIN: `Some("dev")`, DB CACHE: `1024` // Executed Command: // target/release/basilisk // benchmark // pallet -// --pallet=pallet-nft // --chain=dev -// --extrinsic=* -// --steps=5 -// --repeat=20 -// --output -// nft.rs -// --template -// .maintain/pallet-weight-template-no-back.hbs +// --steps=10 +// --repeat=30 +// --wasm-execution=compiled +// --heap-pages=4096 +// --template=.maintain/pallet-weight-template-no-back.hbs +// --pallet=pallet-nft +// --output=nft.rs +// --extrinsic=*s #![allow(unused_parens)] #![allow(unused_imports)] @@ -54,104 +56,117 @@ const CREATE_COLLECTION_OFFSET: u64 = 180 * 2; const MINT_OFFSET: u64 = 140 * 2; impl WeightInfo for BasiliskWeight { - // Storage: Uniques Class (r:1 w:1) - // Proof: Uniques Class (max_values: None, max_size: Some(190), added: 2665, mode: MaxEncodedLen) - // Storage: AssetRegistry NextAssetId (r:1 w:0) - // Proof Skipped: AssetRegistry NextAssetId (max_values: Some(1), max_size: None, mode: Measured) - // Storage: AssetRegistry LocationAssets (r:1 w:0) - // Proof Skipped: AssetRegistry LocationAssets (max_values: None, max_size: None, mode: Measured) - // Storage: Uniques ClassAccount (r:0 w:1) - // Proof: Uniques ClassAccount (max_values: None, max_size: Some(80), added: 2555, mode: MaxEncodedLen) - // Storage: NFT Collections (r:0 w:1) - // Proof: NFT Collections (max_values: None, max_size: Some(99), added: 2574, mode: MaxEncodedLen) + /// Storage: `Uniques::Class` (r:1 w:1) + /// Proof: `Uniques::Class` (`max_values`: None, `max_size`: Some(190), added: 2665, mode: `MaxEncodedLen`) + /// Storage: `AssetRegistry::NextAssetId` (r:1 w:0) + /// Proof: `AssetRegistry::NextAssetId` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`) + /// Storage: `AssetRegistry::LocationAssets` (r:1 w:0) + /// Proof: `AssetRegistry::LocationAssets` (`max_values`: None, `max_size`: Some(622), added: 3097, mode: `MaxEncodedLen`) + /// Storage: `Uniques::ClassAccount` (r:0 w:1) + /// Proof: `Uniques::ClassAccount` (`max_values`: None, `max_size`: Some(80), added: 2555, mode: `MaxEncodedLen`) + /// Storage: `NFT::Collections` (r:0 w:1) + /// Proof: `NFT::Collections` (`max_values`: None, `max_size`: Some(99), added: 2574, mode: `MaxEncodedLen`) fn create_collection() -> Weight { - // Minimum execution time: 19_500 nanoseconds. - Weight::from_parts(19_928_000, 0) - .saturating_mul(CREATE_COLLECTION_OFFSET) - .saturating_add(T::DbWeight::get().reads(3 as u64)) - .saturating_add(T::DbWeight::get().writes(3 as u64)) + // Proof Size summary in bytes: + // Measured: `467` + // Estimated: `4087` + // Minimum execution time: 35_975_000 picoseconds. + Weight::from_parts(36_565_000, 4087) + .saturating_add(T::DbWeight::get().reads(3_u64)) + .saturating_add(T::DbWeight::get().writes(3_u64)) } - // Storage: NFT Collections (r:1 w:0) - // Proof: NFT Collections (max_values: None, max_size: Some(99), added: 2574, mode: MaxEncodedLen) - // Storage: Uniques Class (r:1 w:1) - // Proof: Uniques Class (max_values: None, max_size: Some(190), added: 2665, mode: MaxEncodedLen) - // Storage: Uniques Asset (r:1 w:1) - // Proof: Uniques Asset (max_values: None, max_size: Some(146), added: 2621, mode: MaxEncodedLen) - // Storage: Uniques CollectionMaxSupply (r:1 w:0) - // Proof: Uniques CollectionMaxSupply (max_values: None, max_size: Some(36), added: 2511, mode: MaxEncodedLen) - // Storage: AssetRegistry NextAssetId (r:1 w:0) - // Proof Skipped: AssetRegistry NextAssetId (max_values: Some(1), max_size: None, mode: Measured) - // Storage: AssetRegistry LocationAssets (r:1 w:0) - // Proof Skipped: AssetRegistry LocationAssets (max_values: None, max_size: None, mode: Measured) - // Storage: Uniques Account (r:0 w:1) - // Proof: Uniques Account (max_values: None, max_size: Some(112), added: 2587, mode: MaxEncodedLen) - // Storage: NFT Items (r:0 w:1) - // Proof: NFT Items (max_values: None, max_size: Some(122), added: 2597, mode: MaxEncodedLen) + /// Storage: `NFT::Collections` (r:1 w:0) + /// Proof: `NFT::Collections` (`max_values`: None, `max_size`: Some(99), added: 2574, mode: `MaxEncodedLen`) + /// Storage: `Uniques::Class` (r:1 w:1) + /// Proof: `Uniques::Class` (`max_values`: None, `max_size`: Some(190), added: 2665, mode: `MaxEncodedLen`) + /// Storage: `Uniques::Asset` (r:1 w:1) + /// Proof: `Uniques::Asset` (`max_values`: None, `max_size`: Some(146), added: 2621, mode: `MaxEncodedLen`) + /// Storage: `Uniques::CollectionMaxSupply` (r:1 w:0) + /// Proof: `Uniques::CollectionMaxSupply` (`max_values`: None, `max_size`: Some(36), added: 2511, mode: `MaxEncodedLen`) + /// Storage: `AssetRegistry::NextAssetId` (r:1 w:0) + /// Proof: `AssetRegistry::NextAssetId` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`) + /// Storage: `AssetRegistry::LocationAssets` (r:1 w:0) + /// Proof: `AssetRegistry::LocationAssets` (`max_values`: None, `max_size`: Some(622), added: 3097, mode: `MaxEncodedLen`) + /// Storage: `Uniques::Account` (r:0 w:1) + /// Proof: `Uniques::Account` (`max_values`: None, `max_size`: Some(112), added: 2587, mode: `MaxEncodedLen`) + /// Storage: `NFT::Items` (r:0 w:1) + /// Proof: `NFT::Items` (`max_values`: None, `max_size`: Some(122), added: 2597, mode: `MaxEncodedLen`) fn mint() -> Weight { - // Minimum execution time: 31_625 nanoseconds. - Weight::from_parts(32_251_000, 0) - .saturating_mul(MINT_OFFSET) - .saturating_add(T::DbWeight::get().reads(6 as u64)) - .saturating_add(T::DbWeight::get().writes(4 as u64)) + // Proof Size summary in bytes: + // Measured: `903` + // Estimated: `4087` + // Minimum execution time: 57_747_000 picoseconds. + Weight::from_parts(58_565_000, 4087) + .saturating_add(T::DbWeight::get().reads(6_u64)) + .saturating_add(T::DbWeight::get().writes(4_u64)) } - // Storage: NFT Collections (r:1 w:0) - // Proof: NFT Collections (max_values: None, max_size: Some(99), added: 2574, mode: MaxEncodedLen) - // Storage: Uniques Asset (r:1 w:1) - // Proof: Uniques Asset (max_values: None, max_size: Some(146), added: 2621, mode: MaxEncodedLen) - // Storage: Uniques Class (r:1 w:0) - // Proof: Uniques Class (max_values: None, max_size: Some(190), added: 2665, mode: MaxEncodedLen) - // Storage: Uniques Account (r:0 w:2) - // Proof: Uniques Account (max_values: None, max_size: Some(112), added: 2587, mode: MaxEncodedLen) - // Storage: Uniques ItemPriceOf (r:0 w:1) - // Proof: Uniques ItemPriceOf (max_values: None, max_size: Some(113), added: 2588, mode: MaxEncodedLen) + /// Storage: `NFT::Collections` (r:1 w:0) + /// Proof: `NFT::Collections` (`max_values`: None, `max_size`: Some(99), added: 2574, mode: `MaxEncodedLen`) + /// Storage: `Uniques::Asset` (r:1 w:1) + /// Proof: `Uniques::Asset` (`max_values`: None, `max_size`: Some(146), added: 2621, mode: `MaxEncodedLen`) + /// Storage: `Uniques::Class` (r:1 w:0) + /// Proof: `Uniques::Class` (`max_values`: None, `max_size`: Some(190), added: 2665, mode: `MaxEncodedLen`) + /// Storage: `Uniques::Account` (r:0 w:2) + /// Proof: `Uniques::Account` (`max_values`: None, `max_size`: Some(112), added: 2587, mode: `MaxEncodedLen`) + /// Storage: `Uniques::ItemPriceOf` (r:0 w:1) + /// Proof: `Uniques::ItemPriceOf` (`max_values`: None, `max_size`: Some(113), added: 2588, mode: `MaxEncodedLen`) fn transfer() -> Weight { - // Minimum execution time: 28_903 nanoseconds. - Weight::from_parts(29_233_000, 0) - .saturating_add(T::DbWeight::get().reads(3 as u64)) - .saturating_add(T::DbWeight::get().writes(4 as u64)) + // Proof Size summary in bytes: + // Measured: `873` + // Estimated: `3655` + // Minimum execution time: 53_268_000 picoseconds. + Weight::from_parts(53_731_000, 3655) + .saturating_add(T::DbWeight::get().reads(3_u64)) + .saturating_add(T::DbWeight::get().writes(4_u64)) } - // Storage: NFT Collections (r:1 w:1) - // Proof: NFT Collections (max_values: None, max_size: Some(99), added: 2574, mode: MaxEncodedLen) - // Storage: Uniques Class (r:1 w:1) - // Proof: Uniques Class (max_values: None, max_size: Some(190), added: 2665, mode: MaxEncodedLen) - // Storage: Uniques Asset (r:1 w:0) - // Proof: Uniques Asset (max_values: None, max_size: Some(146), added: 2621, mode: MaxEncodedLen) - // Storage: AssetRegistry NextAssetId (r:1 w:0) - // Proof Skipped: AssetRegistry NextAssetId (max_values: Some(1), max_size: None, mode: Measured) - // Storage: AssetRegistry LocationAssets (r:1 w:0) - // Proof Skipped: AssetRegistry LocationAssets (max_values: None, max_size: None, mode: Measured) - // Storage: Uniques ClassAccount (r:0 w:1) - // Proof: Uniques ClassAccount (max_values: None, max_size: Some(80), added: 2555, mode: MaxEncodedLen) - // Storage: Uniques ClassMetadataOf (r:0 w:1) - // Proof: Uniques ClassMetadataOf (max_values: None, max_size: Some(123), added: 2598, mode: MaxEncodedLen) - // Storage: Uniques CollectionMaxSupply (r:0 w:1) - // Proof: Uniques CollectionMaxSupply (max_values: None, max_size: Some(36), added: 2511, mode: MaxEncodedLen) + /// Storage: `NFT::Collections` (r:1 w:1) + /// Proof: `NFT::Collections` (`max_values`: None, `max_size`: Some(99), added: 2574, mode: `MaxEncodedLen`) + /// Storage: `Uniques::Class` (r:1 w:1) + /// Proof: `Uniques::Class` (`max_values`: None, `max_size`: Some(190), added: 2665, mode: `MaxEncodedLen`) + /// Storage: `Uniques::Asset` (r:1 w:0) + /// Proof: `Uniques::Asset` (`max_values`: None, `max_size`: Some(146), added: 2621, mode: `MaxEncodedLen`) + /// Storage: `AssetRegistry::NextAssetId` (r:1 w:0) + /// Proof: `AssetRegistry::NextAssetId` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`) + /// Storage: `AssetRegistry::LocationAssets` (r:1 w:0) + /// Proof: `AssetRegistry::LocationAssets` (`max_values`: None, `max_size`: Some(622), added: 3097, mode: `MaxEncodedLen`) + /// Storage: `Uniques::ClassAccount` (r:0 w:1) + /// Proof: `Uniques::ClassAccount` (`max_values`: None, `max_size`: Some(80), added: 2555, mode: `MaxEncodedLen`) + /// Storage: `Uniques::ClassMetadataOf` (r:0 w:1) + /// Proof: `Uniques::ClassMetadataOf` (`max_values`: None, `max_size`: Some(123), added: 2598, mode: `MaxEncodedLen`) + /// Storage: `Uniques::CollectionMaxSupply` (r:0 w:1) + /// Proof: `Uniques::CollectionMaxSupply` (`max_values`: None, `max_size`: Some(36), added: 2511, mode: `MaxEncodedLen`) fn destroy_collection() -> Weight { - // Minimum execution time: 38_674 nanoseconds. - Weight::from_parts(39_564_000, 0) - .saturating_add(T::DbWeight::get().reads(5 as u64)) - .saturating_add(T::DbWeight::get().writes(5 as u64)) + // Proof Size summary in bytes: + // Measured: `945` + // Estimated: `4087` + // Minimum execution time: 67_375_000 picoseconds. + Weight::from_parts(68_038_000, 4087) + .saturating_add(T::DbWeight::get().reads(5_u64)) + .saturating_add(T::DbWeight::get().writes(5_u64)) } - // Storage: NFT Collections (r:1 w:0) - // Proof: NFT Collections (max_values: None, max_size: Some(99), added: 2574, mode: MaxEncodedLen) - // Storage: Uniques Asset (r:1 w:1) - // Proof: Uniques Asset (max_values: None, max_size: Some(146), added: 2621, mode: MaxEncodedLen) - // Storage: Uniques Class (r:1 w:1) - // Proof: Uniques Class (max_values: None, max_size: Some(190), added: 2665, mode: MaxEncodedLen) - // Storage: AssetRegistry NextAssetId (r:1 w:0) - // Proof Skipped: AssetRegistry NextAssetId (max_values: Some(1), max_size: None, mode: Measured) - // Storage: AssetRegistry LocationAssets (r:1 w:0) - // Proof Skipped: AssetRegistry LocationAssets (max_values: None, max_size: None, mode: Measured) - // Storage: Uniques Account (r:0 w:1) - // Proof: Uniques Account (max_values: None, max_size: Some(112), added: 2587, mode: MaxEncodedLen) - // Storage: Uniques ItemPriceOf (r:0 w:1) - // Proof: Uniques ItemPriceOf (max_values: None, max_size: Some(113), added: 2588, mode: MaxEncodedLen) - // Storage: NFT Items (r:0 w:1) - // Proof: NFT Items (max_values: None, max_size: Some(122), added: 2597, mode: MaxEncodedLen) + /// Storage: `NFT::Collections` (r:1 w:0) + /// Proof: `NFT::Collections` (`max_values`: None, `max_size`: Some(99), added: 2574, mode: `MaxEncodedLen`) + /// Storage: `Uniques::Asset` (r:1 w:1) + /// Proof: `Uniques::Asset` (`max_values`: None, `max_size`: Some(146), added: 2621, mode: `MaxEncodedLen`) + /// Storage: `Uniques::Class` (r:1 w:1) + /// Proof: `Uniques::Class` (`max_values`: None, `max_size`: Some(190), added: 2665, mode: `MaxEncodedLen`) + /// Storage: `AssetRegistry::NextAssetId` (r:1 w:0) + /// Proof: `AssetRegistry::NextAssetId` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`) + /// Storage: `AssetRegistry::LocationAssets` (r:1 w:0) + /// Proof: `AssetRegistry::LocationAssets` (`max_values`: None, `max_size`: Some(622), added: 3097, mode: `MaxEncodedLen`) + /// Storage: `Uniques::Account` (r:0 w:1) + /// Proof: `Uniques::Account` (`max_values`: None, `max_size`: Some(112), added: 2587, mode: `MaxEncodedLen`) + /// Storage: `Uniques::ItemPriceOf` (r:0 w:1) + /// Proof: `Uniques::ItemPriceOf` (`max_values`: None, `max_size`: Some(113), added: 2588, mode: `MaxEncodedLen`) + /// Storage: `NFT::Items` (r:0 w:1) + /// Proof: `NFT::Items` (`max_values`: None, `max_size`: Some(122), added: 2597, mode: `MaxEncodedLen`) fn burn() -> Weight { - // Minimum execution time: 32_790 nanoseconds. - Weight::from_parts(33_331_000, 0) - .saturating_add(T::DbWeight::get().reads(5 as u64)) - .saturating_add(T::DbWeight::get().writes(5 as u64)) + // Proof Size summary in bytes: + // Measured: `1108` + // Estimated: `4087` + // Minimum execution time: 57_175_000 picoseconds. + Weight::from_parts(57_634_000, 4087) + .saturating_add(T::DbWeight::get().reads(5_u64)) + .saturating_add(T::DbWeight::get().writes(5_u64)) } } diff --git a/runtime/basilisk/src/weights/payment.rs b/runtime/basilisk/src/weights/payment.rs index 6c7e5815fe..19934b2086 100644 --- a/runtime/basilisk/src/weights/payment.rs +++ b/runtime/basilisk/src/weights/payment.rs @@ -54,7 +54,7 @@ impl WeightInfo for BasiliskWeight { // Proof: MultiTransactionPayment AcceptedCurrencies (max_values: None, max_size: Some(28), added: 2503, mode: MaxEncodedLen) fn add_currency() -> Weight { // Minimum execution time: 17_576 nanoseconds. - Weight::from_parts(18_000_000, 0) + Weight::from_ref_time(18_000_000 as u64) .saturating_add(T::DbWeight::get().reads(1 as u64)) .saturating_add(T::DbWeight::get().writes(1 as u64)) } @@ -62,7 +62,7 @@ impl WeightInfo for BasiliskWeight { // Proof: MultiTransactionPayment AcceptedCurrencies (max_values: None, max_size: Some(28), added: 2503, mode: MaxEncodedLen) fn remove_currency() -> Weight { // Minimum execution time: 18_399 nanoseconds. - Weight::from_parts(18_777_000, 0) + Weight::from_ref_time(18_777_000 as u64) .saturating_add(T::DbWeight::get().reads(1 as u64)) .saturating_add(T::DbWeight::get().writes(1 as u64)) } @@ -72,7 +72,7 @@ impl WeightInfo for BasiliskWeight { // Proof: MultiTransactionPayment AccountCurrencyMap (max_values: None, max_size: Some(52), added: 2527, mode: MaxEncodedLen) fn set_currency() -> Weight { // Minimum execution time: 21_494 nanoseconds. - Weight::from_parts(22_029_000, 0) + Weight::from_ref_time(22_029_000 as u64) .saturating_add(T::DbWeight::get().reads(1 as u64)) .saturating_add(T::DbWeight::get().writes(1 as u64)) } @@ -82,8 +82,8 @@ impl WeightInfo for BasiliskWeight { // Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen) // Storage: Tokens Accounts (r:1 w:0) // Proof: Tokens Accounts (max_values: None, max_size: Some(108), added: 2583, mode: MaxEncodedLen) - fn get_oracle_price() -> Weight { + fn get_spot_price() -> Weight { // Minimum execution time: 21_535 nanoseconds. - Weight::from_parts(87_795_000, 0).saturating_add(T::DbWeight::get().reads(11 as u64)) + Weight::from_ref_time(21_794_000 as u64).saturating_add(T::DbWeight::get().reads(3 as u64)) } } diff --git a/runtime/basilisk/src/weights/route_executor.rs b/runtime/basilisk/src/weights/route_executor.rs index 0fe2ccaeb3..36ecf812d4 100644 --- a/runtime/basilisk/src/weights/route_executor.rs +++ b/runtime/basilisk/src/weights/route_executor.rs @@ -18,22 +18,23 @@ //! Autogenerated weights for pallet_route_executor //! //! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev -//! DATE: 2023-06-01, STEPS: 5, REPEAT: 20, LOW RANGE: [], HIGH RANGE: [] -//! EXECUTION: None, WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 1024 +//! DATE: 2023-11-02, STEPS: 5, REPEAT: 20, LOW RANGE: [], HIGH RANGE: [] +//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 1024 // Executed Command: // target/release/basilisk // benchmark // pallet -// --pallet=pallet-route-executor // --chain=dev -// --extrinsic=* // --steps=5 // --repeat=20 -// --output -// route_executor.rs -// --template -// .maintain/pallet-weight-template-no-back.hbs +// --execution=wasm +// --wasm-execution=compiled +// --heap-pages=4096 +// --template=.maintain/pallet-weight-template-no-back.hbs +// --pallet=pallet_route_executor +// --output=route_executor.rs +// --extrinsic=* #![allow(unused_parens)] #![allow(unused_imports)] @@ -50,13 +51,52 @@ use pallet_route_executor::weights::WeightInfo; pub struct BasiliskWeight(PhantomData); impl WeightInfo for BasiliskWeight { - fn calculate_and_execute_sell_in_lbp(_c: u32, _s: u32) -> Weight { - Weight::zero() - } - fn calculate_and_execute_buy_in_lbp(_c: u32, _b: u32) -> Weight { - Weight::zero() + // Storage: LBP PoolData (r:1 w:0) + // Proof: LBP PoolData (max_values: None, max_size: Some(163), added: 2638, mode: MaxEncodedLen) + // Storage: System Account (r:3 w:3) + // Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen) + // Storage: Tokens Accounts (r:2 w:2) + // Proof: Tokens Accounts (max_values: None, max_size: Some(108), added: 2583, mode: MaxEncodedLen) + // Storage: Balances Locks (r:1 w:1) + // Proof: Balances Locks (max_values: None, max_size: Some(1299), added: 3774, mode: MaxEncodedLen) + // Storage: Duster AccountBlacklist (r:1 w:0) + // Proof: Duster AccountBlacklist (max_values: None, max_size: Some(48), added: 2523, mode: MaxEncodedLen) + // Storage: AssetRegistry Assets (r:1 w:0) + // Proof: AssetRegistry Assets (max_values: None, max_size: Some(133), added: 2608, mode: MaxEncodedLen) + /// The range of component `c` is `[0, 1]`. + /// The range of component `s` is `[0, 1]`. + fn calculate_and_execute_sell_in_lbp(c: u32, s: u32) -> Weight { + // Minimum execution time: 74_900 nanoseconds. + Weight::from_ref_time(22_725_125 as u64) // Standard Error: 553_983 + .saturating_add(Weight::from_ref_time(53_740_725 as u64).saturating_mul(c as u64)) + // Standard Error: 553_983 + .saturating_add(Weight::from_ref_time(272_720_950 as u64).saturating_mul(s as u64)) + .saturating_add(T::DbWeight::get().reads(3 as u64)) + .saturating_add(T::DbWeight::get().reads((6 as u64).saturating_mul(s as u64))) + .saturating_add(T::DbWeight::get().writes((6 as u64).saturating_mul(s as u64))) } - fn set_route_for_xyk() -> Weight { - Weight::zero() + // Storage: LBP PoolData (r:1 w:0) + // Proof: LBP PoolData (max_values: None, max_size: Some(163), added: 2638, mode: MaxEncodedLen) + // Storage: System Account (r:3 w:3) + // Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen) + // Storage: Tokens Accounts (r:2 w:2) + // Proof: Tokens Accounts (max_values: None, max_size: Some(108), added: 2583, mode: MaxEncodedLen) + // Storage: Balances Locks (r:1 w:1) + // Proof: Balances Locks (max_values: None, max_size: Some(1299), added: 3774, mode: MaxEncodedLen) + // Storage: Duster AccountBlacklist (r:1 w:0) + // Proof: Duster AccountBlacklist (max_values: None, max_size: Some(48), added: 2523, mode: MaxEncodedLen) + // Storage: AssetRegistry Assets (r:1 w:0) + // Proof: AssetRegistry Assets (max_values: None, max_size: Some(133), added: 2608, mode: MaxEncodedLen) + /// The range of component `c` is `[1, 2]`. + /// The range of component `b` is `[0, 1]`. + fn calculate_and_execute_buy_in_lbp(c: u32, b: u32) -> Weight { + // Minimum execution time: 73_321 nanoseconds. + Weight::from_ref_time(73_929_000 as u64) // Standard Error: 1_479_776 + .saturating_add(Weight::from_ref_time(4_663_038 as u64).saturating_mul(c as u64)) + // Standard Error: 3_196_682 + .saturating_add(Weight::from_ref_time(228_932_815 as u64).saturating_mul(b as u64)) + .saturating_add(T::DbWeight::get().reads(3 as u64)) + .saturating_add(T::DbWeight::get().reads((6 as u64).saturating_mul(b as u64))) + .saturating_add(T::DbWeight::get().writes((6 as u64).saturating_mul(b as u64))) } } diff --git a/runtime/basilisk/src/weights/scheduler.rs b/runtime/basilisk/src/weights/scheduler.rs index adb3946d37..97aceba97f 100644 --- a/runtime/basilisk/src/weights/scheduler.rs +++ b/runtime/basilisk/src/weights/scheduler.rs @@ -15,25 +15,27 @@ // See the License for the specific language governing permissions and // limitations under the License. -//! Autogenerated weights for pallet_scheduler +//! Autogenerated weights for `pallet_scheduler` //! //! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev -//! DATE: 2023-06-01, STEPS: 5, REPEAT: 20, LOW RANGE: [], HIGH RANGE: [] -//! EXECUTION: None, WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 1024 +//! DATE: 2023-12-06, STEPS: `10`, REPEAT: `30`, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! WORST CASE MAP SIZE: `1000000` +//! HOSTNAME: `bench-bot`, CPU: `Intel(R) Core(TM) i7-7700K CPU @ 4.20GHz` +//! WASM-EXECUTION: `Compiled`, CHAIN: `Some("dev")`, DB CACHE: `1024` // Executed Command: // target/release/basilisk // benchmark // pallet -// --pallet=pallet-scheduler // --chain=dev +// --steps=10 +// --repeat=30 +// --wasm-execution=compiled +// --heap-pages=4096 +// --template=.maintain/pallet-weight-template-no-back.hbs +// --pallet=pallet-scheduler +// --output=scheduler.rs // --extrinsic=* -// --steps=5 -// --repeat=20 -// --output -// scheduler.rs -// --template -// .maintain/pallet-weight-template-no-back.hbs #![allow(unused_parens)] #![allow(unused_imports)] @@ -50,102 +52,145 @@ use pallet_scheduler::weights::WeightInfo; pub struct BasiliskWeight(PhantomData); impl WeightInfo for BasiliskWeight { - // Storage: Scheduler IncompleteSince (r:1 w:1) - // Proof: Scheduler IncompleteSince (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen) + /// Storage: `Scheduler::IncompleteSince` (r:1 w:1) + /// Proof: `Scheduler::IncompleteSince` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`) fn service_agendas_base() -> Weight { - // Minimum execution time: 2_786 nanoseconds. - Weight::from_parts(2_922_000, 0) - .saturating_add(T::DbWeight::get().reads(1 as u64)) - .saturating_add(T::DbWeight::get().writes(1 as u64)) + // Proof Size summary in bytes: + // Measured: `31` + // Estimated: `1489` + // Minimum execution time: 4_598_000 picoseconds. + Weight::from_parts(4_742_000, 1489) + .saturating_add(T::DbWeight::get().reads(1_u64)) + .saturating_add(T::DbWeight::get().writes(1_u64)) } - // Storage: Scheduler Agenda (r:1 w:1) - // Proof: Scheduler Agenda (max_values: None, max_size: Some(38963), added: 41438, mode: MaxEncodedLen) + /// Storage: `Scheduler::Agenda` (r:1 w:1) + /// Proof: `Scheduler::Agenda` (`max_values`: None, `max_size`: Some(38963), added: 41438, mode: `MaxEncodedLen`) /// The range of component `s` is `[0, 50]`. fn service_agenda_base(s: u32) -> Weight { - // Minimum execution time: 1_945 nanoseconds. - Weight::from_parts(3_527_815, 0) // Standard Error: 8_736 - .saturating_add(Weight::from_parts(408_541, 0).saturating_mul(s as u64)) - .saturating_add(T::DbWeight::get().reads(1 as u64)) - .saturating_add(T::DbWeight::get().writes(1 as u64)) + // Proof Size summary in bytes: + // Measured: `78 + s * (177 ±0)` + // Estimated: `42428` + // Minimum execution time: 4_565_000 picoseconds. + Weight::from_parts(7_755_183, 42428) + // Standard Error: 6_110 + .saturating_add(Weight::from_parts(915_896, 0).saturating_mul(s.into())) + .saturating_add(T::DbWeight::get().reads(1_u64)) + .saturating_add(T::DbWeight::get().writes(1_u64)) } fn service_task_base() -> Weight { - // Minimum execution time: 2_805 nanoseconds. - Weight::from_parts(2_906_000, 0) + // Proof Size summary in bytes: + // Measured: `0` + // Estimated: `0` + // Minimum execution time: 7_984_000 picoseconds. + Weight::from_parts(8_157_000, 0) } - // Storage: Preimage PreimageFor (r:1 w:1) - // Proof: Preimage PreimageFor (max_values: None, max_size: Some(4194344), added: 4196819, mode: Measured) - // Storage: Preimage StatusFor (r:1 w:1) - // Proof: Preimage StatusFor (max_values: None, max_size: Some(91), added: 2566, mode: MaxEncodedLen) + /// Storage: `Preimage::PreimageFor` (r:1 w:1) + /// Proof: `Preimage::PreimageFor` (`max_values`: None, `max_size`: Some(4194344), added: 4196819, mode: `Measured`) + /// Storage: `Preimage::StatusFor` (r:1 w:1) + /// Proof: `Preimage::StatusFor` (`max_values`: None, `max_size`: Some(91), added: 2566, mode: `MaxEncodedLen`) /// The range of component `s` is `[128, 4194304]`. fn service_task_fetched(s: u32) -> Weight { - // Minimum execution time: 12_849 nanoseconds. - Weight::from_parts(13_154_000, 0) // Standard Error: 8 - .saturating_add(Weight::from_parts(852, 0).saturating_mul(s as u64)) - .saturating_add(T::DbWeight::get().reads(2 as u64)) - .saturating_add(T::DbWeight::get().writes(2 as u64)) + // Proof Size summary in bytes: + // Measured: `246 + s * (1 ±0)` + // Estimated: `3709 + s * (1 ±0)` + // Minimum execution time: 27_139_000 picoseconds. + Weight::from_parts(27_473_000, 3709) + // Standard Error: 4 + .saturating_add(Weight::from_parts(1_166, 0).saturating_mul(s.into())) + .saturating_add(T::DbWeight::get().reads(2_u64)) + .saturating_add(T::DbWeight::get().writes(2_u64)) + .saturating_add(Weight::from_parts(0, 1).saturating_mul(s.into())) } - // Storage: Scheduler Lookup (r:0 w:1) - // Proof: Scheduler Lookup (max_values: None, max_size: Some(48), added: 2523, mode: MaxEncodedLen) + /// Storage: `Scheduler::Lookup` (r:0 w:1) + /// Proof: `Scheduler::Lookup` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`) fn service_task_named() -> Weight { - // Minimum execution time: 3_707 nanoseconds. - Weight::from_parts(3_925_000, 0).saturating_add(T::DbWeight::get().writes(1 as u64)) + // Proof Size summary in bytes: + // Measured: `0` + // Estimated: `0` + // Minimum execution time: 10_205_000 picoseconds. + Weight::from_parts(10_367_000, 0).saturating_add(T::DbWeight::get().writes(1_u64)) } fn service_task_periodic() -> Weight { - // Minimum execution time: 2_832 nanoseconds. - Weight::from_parts(3_042_000, 0) + // Proof Size summary in bytes: + // Measured: `0` + // Estimated: `0` + // Minimum execution time: 7_923_000 picoseconds. + Weight::from_parts(8_071_000, 0) } fn execute_dispatch_signed() -> Weight { - // Minimum execution time: 1_471 nanoseconds. - Weight::from_parts(1_620_000, 0) + // Proof Size summary in bytes: + // Measured: `0` + // Estimated: `0` + // Minimum execution time: 4_249_000 picoseconds. + Weight::from_parts(4_382_000, 0) } fn execute_dispatch_unsigned() -> Weight { - // Minimum execution time: 1_413 nanoseconds. - Weight::from_parts(1_509_000, 0) + // Proof Size summary in bytes: + // Measured: `0` + // Estimated: `0` + // Minimum execution time: 4_250_000 picoseconds. + Weight::from_parts(4_362_000, 0) } - // Storage: Scheduler Agenda (r:1 w:1) - // Proof: Scheduler Agenda (max_values: None, max_size: Some(38963), added: 41438, mode: MaxEncodedLen) + /// Storage: `Scheduler::Agenda` (r:1 w:1) + /// Proof: `Scheduler::Agenda` (`max_values`: None, `max_size`: Some(38963), added: 41438, mode: `MaxEncodedLen`) /// The range of component `s` is `[0, 49]`. fn schedule(s: u32) -> Weight { - // Minimum execution time: 7_807 nanoseconds. - Weight::from_parts(9_795_871, 0) // Standard Error: 10_186 - .saturating_add(Weight::from_parts(419_618, 0).saturating_mul(s as u64)) - .saturating_add(T::DbWeight::get().reads(1 as u64)) - .saturating_add(T::DbWeight::get().writes(1 as u64)) + // Proof Size summary in bytes: + // Measured: `78 + s * (177 ±0)` + // Estimated: `42428` + // Minimum execution time: 18_492_000 picoseconds. + Weight::from_parts(21_478_785, 42428) + // Standard Error: 5_321 + .saturating_add(Weight::from_parts(911_220, 0).saturating_mul(s.into())) + .saturating_add(T::DbWeight::get().reads(1_u64)) + .saturating_add(T::DbWeight::get().writes(1_u64)) } - // Storage: Scheduler Agenda (r:1 w:1) - // Proof: Scheduler Agenda (max_values: None, max_size: Some(38963), added: 41438, mode: MaxEncodedLen) - // Storage: Scheduler Lookup (r:0 w:1) - // Proof: Scheduler Lookup (max_values: None, max_size: Some(48), added: 2523, mode: MaxEncodedLen) + /// Storage: `Scheduler::Agenda` (r:1 w:1) + /// Proof: `Scheduler::Agenda` (`max_values`: None, `max_size`: Some(38963), added: 41438, mode: `MaxEncodedLen`) + /// Storage: `Scheduler::Lookup` (r:0 w:1) + /// Proof: `Scheduler::Lookup` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`) /// The range of component `s` is `[1, 50]`. fn cancel(s: u32) -> Weight { - // Minimum execution time: 11_196 nanoseconds. - Weight::from_parts(11_533_708, 0) // Standard Error: 6_405 - .saturating_add(Weight::from_parts(589_313, 0).saturating_mul(s as u64)) - .saturating_add(T::DbWeight::get().reads(1 as u64)) - .saturating_add(T::DbWeight::get().writes(2 as u64)) + // Proof Size summary in bytes: + // Measured: `78 + s * (177 ±0)` + // Estimated: `42428` + // Minimum execution time: 24_837_000 picoseconds. + Weight::from_parts(23_346_268, 42428) + // Standard Error: 1_857 + .saturating_add(Weight::from_parts(1_608_066, 0).saturating_mul(s.into())) + .saturating_add(T::DbWeight::get().reads(1_u64)) + .saturating_add(T::DbWeight::get().writes(2_u64)) } - // Storage: Scheduler Lookup (r:1 w:1) - // Proof: Scheduler Lookup (max_values: None, max_size: Some(48), added: 2523, mode: MaxEncodedLen) - // Storage: Scheduler Agenda (r:1 w:1) - // Proof: Scheduler Agenda (max_values: None, max_size: Some(38963), added: 41438, mode: MaxEncodedLen) + /// Storage: `Scheduler::Lookup` (r:1 w:1) + /// Proof: `Scheduler::Lookup` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`) + /// Storage: `Scheduler::Agenda` (r:1 w:1) + /// Proof: `Scheduler::Agenda` (`max_values`: None, `max_size`: Some(38963), added: 41438, mode: `MaxEncodedLen`) /// The range of component `s` is `[0, 49]`. fn schedule_named(s: u32) -> Weight { - // Minimum execution time: 9_508 nanoseconds. - Weight::from_parts(11_886_342, 0) // Standard Error: 12_420 - .saturating_add(Weight::from_parts(463_642, 0).saturating_mul(s as u64)) - .saturating_add(T::DbWeight::get().reads(2 as u64)) - .saturating_add(T::DbWeight::get().writes(2 as u64)) + // Proof Size summary in bytes: + // Measured: `192 + s * (187 ±0)` + // Estimated: `42428` + // Minimum execution time: 23_029_000 picoseconds. + Weight::from_parts(26_578_390, 42428) + // Standard Error: 6_709 + .saturating_add(Weight::from_parts(979_380, 0).saturating_mul(s.into())) + .saturating_add(T::DbWeight::get().reads(2_u64)) + .saturating_add(T::DbWeight::get().writes(2_u64)) } - // Storage: Scheduler Lookup (r:1 w:1) - // Proof: Scheduler Lookup (max_values: None, max_size: Some(48), added: 2523, mode: MaxEncodedLen) - // Storage: Scheduler Agenda (r:1 w:1) - // Proof: Scheduler Agenda (max_values: None, max_size: Some(38963), added: 41438, mode: MaxEncodedLen) + /// Storage: `Scheduler::Lookup` (r:1 w:1) + /// Proof: `Scheduler::Lookup` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`) + /// Storage: `Scheduler::Agenda` (r:1 w:1) + /// Proof: `Scheduler::Agenda` (`max_values`: None, `max_size`: Some(38963), added: 41438, mode: `MaxEncodedLen`) /// The range of component `s` is `[1, 50]`. fn cancel_named(s: u32) -> Weight { - // Minimum execution time: 12_759 nanoseconds. - Weight::from_parts(13_759_716, 0) // Standard Error: 8_454 - .saturating_add(Weight::from_parts(614_785, 0).saturating_mul(s as u64)) - .saturating_add(T::DbWeight::get().reads(2 as u64)) - .saturating_add(T::DbWeight::get().writes(2 as u64)) + // Proof Size summary in bytes: + // Measured: `263 + s * (186 ±0)` + // Estimated: `42428` + // Minimum execution time: 26_618_000 picoseconds. + Weight::from_parts(25_991_009, 42428) + // Standard Error: 2_370 + .saturating_add(Weight::from_parts(1_630_071, 0).saturating_mul(s.into())) + .saturating_add(T::DbWeight::get().reads(2_u64)) + .saturating_add(T::DbWeight::get().writes(2_u64)) } } diff --git a/runtime/basilisk/src/weights/system.rs b/runtime/basilisk/src/weights/system.rs index b64db9df73..9ba4818332 100644 --- a/runtime/basilisk/src/weights/system.rs +++ b/runtime/basilisk/src/weights/system.rs @@ -53,14 +53,14 @@ impl WeightInfo for BasiliskWeight { /// The range of component `b` is `[0, 3932160]`. fn remark(b: u32) -> Weight { // Minimum execution time: 1_243 nanoseconds. - Weight::from_parts(1_305_000, 0) // Standard Error: 2 - .saturating_add(Weight::from_parts(305, 0).saturating_mul(b as u64)) + Weight::from_ref_time(1_305_000 as u64) // Standard Error: 2 + .saturating_add(Weight::from_ref_time(305 as u64).saturating_mul(b as u64)) } /// The range of component `b` is `[0, 3932160]`. fn remark_with_event(b: u32) -> Weight { // Minimum execution time: 4_434 nanoseconds. - Weight::from_parts(4_615_000, 0) // Standard Error: 2 - .saturating_add(Weight::from_parts(1_280, 0).saturating_mul(b as u64)) + Weight::from_ref_time(4_615_000 as u64) // Standard Error: 2 + .saturating_add(Weight::from_ref_time(1_280 as u64).saturating_mul(b as u64)) } // Storage: System Digest (r:1 w:1) // Proof Skipped: System Digest (max_values: Some(1), max_size: None, mode: Measured) @@ -68,7 +68,7 @@ impl WeightInfo for BasiliskWeight { // Proof Skipped: unknown `0x3a686561707061676573` (r:0 w:1) fn set_heap_pages() -> Weight { // Minimum execution time: 2_790 nanoseconds. - Weight::from_parts(2_938_000, 0) + Weight::from_ref_time(2_938_000 as u64) .saturating_add(T::DbWeight::get().reads(1 as u64)) .saturating_add(T::DbWeight::get().writes(2 as u64)) } @@ -77,8 +77,8 @@ impl WeightInfo for BasiliskWeight { /// The range of component `i` is `[0, 1000]`. fn set_storage(i: u32) -> Weight { // Minimum execution time: 1_278 nanoseconds. - Weight::from_parts(1_324_000, 0) // Standard Error: 4_118 - .saturating_add(Weight::from_parts(490_036, 0).saturating_mul(i as u64)) + Weight::from_ref_time(1_324_000 as u64) // Standard Error: 4_118 + .saturating_add(Weight::from_ref_time(490_036 as u64).saturating_mul(i as u64)) .saturating_add(T::DbWeight::get().writes((1 as u64).saturating_mul(i as u64))) } // Storage: Skipped Metadata (r:0 w:0) @@ -86,8 +86,8 @@ impl WeightInfo for BasiliskWeight { /// The range of component `i` is `[0, 1000]`. fn kill_storage(i: u32) -> Weight { // Minimum execution time: 1_317 nanoseconds. - Weight::from_parts(1_380_000, 0) // Standard Error: 2_773 - .saturating_add(Weight::from_parts(408_846, 0).saturating_mul(i as u64)) + Weight::from_ref_time(1_380_000 as u64) // Standard Error: 2_773 + .saturating_add(Weight::from_ref_time(408_846 as u64).saturating_mul(i as u64)) .saturating_add(T::DbWeight::get().writes((1 as u64).saturating_mul(i as u64))) } // Storage: Skipped Metadata (r:0 w:0) @@ -95,11 +95,8 @@ impl WeightInfo for BasiliskWeight { /// The range of component `p` is `[0, 1000]`. fn kill_prefix(p: u32) -> Weight { // Minimum execution time: 3_084 nanoseconds. - Weight::from_parts(3_135_000, 0) // Standard Error: 3_312 - .saturating_add(Weight::from_parts(1_028_885, 0).saturating_mul(p as u64)) + Weight::from_ref_time(3_135_000 as u64) // Standard Error: 3_312 + .saturating_add(Weight::from_ref_time(1_028_885 as u64).saturating_mul(p as u64)) .saturating_add(T::DbWeight::get().writes((1 as u64).saturating_mul(p as u64))) } - fn set_code() -> Weight { - Weight::zero() - } } diff --git a/runtime/basilisk/src/weights/timestamp.rs b/runtime/basilisk/src/weights/timestamp.rs index 937b40f29a..efd46d4afc 100644 --- a/runtime/basilisk/src/weights/timestamp.rs +++ b/runtime/basilisk/src/weights/timestamp.rs @@ -15,25 +15,27 @@ // See the License for the specific language governing permissions and // limitations under the License. -//! Autogenerated weights for pallet_timestamp +//! Autogenerated weights for `pallet_timestamp` //! //! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev -//! DATE: 2023-06-01, STEPS: 5, REPEAT: 20, LOW RANGE: [], HIGH RANGE: [] -//! EXECUTION: None, WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 1024 +//! DATE: 2023-12-06, STEPS: `10`, REPEAT: `30`, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! WORST CASE MAP SIZE: `1000000` +//! HOSTNAME: `bench-bot`, CPU: `Intel(R) Core(TM) i7-7700K CPU @ 4.20GHz` +//! WASM-EXECUTION: `Compiled`, CHAIN: `Some("dev")`, DB CACHE: `1024` // Executed Command: // target/release/basilisk // benchmark // pallet -// --pallet=pallet-timestamp // --chain=dev +// --steps=10 +// --repeat=30 +// --wasm-execution=compiled +// --heap-pages=4096 +// --template=.maintain/pallet-weight-template-no-back.hbs +// --pallet=pallet-timestamp +// --output=timestamp.rs // --extrinsic=* -// --steps=5 -// --repeat=20 -// --output -// timestamp.rs -// --template -// .maintain/pallet-weight-template-no-back.hbs #![allow(unused_parens)] #![allow(unused_imports)] @@ -50,16 +52,22 @@ use pallet_timestamp::weights::WeightInfo; pub struct BasiliskWeight(PhantomData); impl WeightInfo for BasiliskWeight { - // Storage: Timestamp Now (r:1 w:1) - // Proof: Timestamp Now (max_values: Some(1), max_size: Some(8), added: 503, mode: MaxEncodedLen) + /// Storage: `Timestamp::Now` (r:1 w:1) + /// Proof: `Timestamp::Now` (`max_values`: Some(1), `max_size`: Some(8), added: 503, mode: `MaxEncodedLen`) fn set() -> Weight { - // Minimum execution time: 5_445 nanoseconds. - Weight::from_parts(5_666_000, 0) - .saturating_add(T::DbWeight::get().reads(1 as u64)) - .saturating_add(T::DbWeight::get().writes(1 as u64)) + // Proof Size summary in bytes: + // Measured: `42` + // Estimated: `1493` + // Minimum execution time: 10_471_000 picoseconds. + Weight::from_parts(10_728_000, 1493) + .saturating_add(T::DbWeight::get().reads(1_u64)) + .saturating_add(T::DbWeight::get().writes(1_u64)) } fn on_finalize() -> Weight { - // Minimum execution time: 4_437 nanoseconds. - Weight::from_parts(4_691_000, 0) + // Proof Size summary in bytes: + // Measured: `94` + // Estimated: `0` + // Minimum execution time: 5_483_000 picoseconds. + Weight::from_parts(5_750_000, 0) } } diff --git a/runtime/basilisk/src/weights/tokens.rs b/runtime/basilisk/src/weights/tokens.rs index 80155e54c4..6ba0906881 100644 --- a/runtime/basilisk/src/weights/tokens.rs +++ b/runtime/basilisk/src/weights/tokens.rs @@ -18,22 +18,23 @@ //! Autogenerated weights for orml_tokens //! //! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev -//! DATE: 2023-06-01, STEPS: 5, REPEAT: 20, LOW RANGE: [], HIGH RANGE: [] -//! EXECUTION: None, WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 1024 +//! DATE: 2023-11-02, STEPS: 5, REPEAT: 20, LOW RANGE: [], HIGH RANGE: [] +//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 1024 // Executed Command: // target/release/basilisk // benchmark // pallet -// --pallet=orml-tokens // --chain=dev -// --extrinsic=* // --steps=5 // --repeat=20 -// --output -// tokens.rs -// --template -// .maintain/pallet-weight-template-no-back.hbs +// --execution=wasm +// --wasm-execution=compiled +// --heap-pages=4096 +// --template=.maintain/pallet-weight-template-no-back.hbs +// --pallet=orml_tokens +// --output=tokens.rs +// --extrinsic=* #![allow(unused_parens)] #![allow(unused_imports)] @@ -50,10 +51,12 @@ use orml_tokens::WeightInfo; pub struct BasiliskWeight(PhantomData); impl WeightInfo for BasiliskWeight { + // Storage: Duster AccountBlacklist (r:1 w:0) + // Proof: Duster AccountBlacklist (max_values: None, max_size: Some(48), added: 2523, mode: MaxEncodedLen) // Storage: Tokens Accounts (r:2 w:2) // Proof: Tokens Accounts (max_values: None, max_size: Some(108), added: 2583, mode: MaxEncodedLen) // Storage: AssetRegistry Assets (r:1 w:0) - // Proof Skipped: AssetRegistry Assets (max_values: None, max_size: None, mode: Measured) + // Proof: AssetRegistry Assets (max_values: None, max_size: Some(133), added: 2608, mode: MaxEncodedLen) // Storage: System Account (r:1 w:1) // Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen) // Storage: MultiTransactionPayment AccountCurrencyMap (r:1 w:1) @@ -61,15 +64,17 @@ impl WeightInfo for BasiliskWeight { // Storage: MultiTransactionPayment AcceptedCurrencies (r:1 w:0) // Proof: MultiTransactionPayment AcceptedCurrencies (max_values: None, max_size: Some(28), added: 2503, mode: MaxEncodedLen) fn transfer() -> Weight { - // Minimum execution time: 51_309 nanoseconds. - Weight::from_parts(51_976_000, 0) - .saturating_add(T::DbWeight::get().reads(6 as u64)) + // Minimum execution time: 99_858 nanoseconds. + Weight::from_ref_time(100_871_000 as u64) + .saturating_add(T::DbWeight::get().reads(7 as u64)) .saturating_add(T::DbWeight::get().writes(4 as u64)) } // Storage: Tokens Accounts (r:2 w:2) // Proof: Tokens Accounts (max_values: None, max_size: Some(108), added: 2583, mode: MaxEncodedLen) + // Storage: Duster AccountBlacklist (r:1 w:0) + // Proof: Duster AccountBlacklist (max_values: None, max_size: Some(48), added: 2523, mode: MaxEncodedLen) // Storage: AssetRegistry Assets (r:1 w:0) - // Proof Skipped: AssetRegistry Assets (max_values: None, max_size: None, mode: Measured) + // Proof: AssetRegistry Assets (max_values: None, max_size: Some(133), added: 2608, mode: MaxEncodedLen) // Storage: System Account (r:1 w:1) // Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen) // Storage: MultiTransactionPayment AccountCurrencyMap (r:1 w:1) @@ -77,15 +82,17 @@ impl WeightInfo for BasiliskWeight { // Storage: MultiTransactionPayment AcceptedCurrencies (r:1 w:0) // Proof: MultiTransactionPayment AcceptedCurrencies (max_values: None, max_size: Some(28), added: 2503, mode: MaxEncodedLen) fn transfer_all() -> Weight { - // Minimum execution time: 53_472 nanoseconds. - Weight::from_parts(56_437_000, 0) - .saturating_add(T::DbWeight::get().reads(6 as u64)) + // Minimum execution time: 104_995 nanoseconds. + Weight::from_ref_time(105_965_000 as u64) + .saturating_add(T::DbWeight::get().reads(7 as u64)) .saturating_add(T::DbWeight::get().writes(4 as u64)) } + // Storage: Duster AccountBlacklist (r:1 w:0) + // Proof: Duster AccountBlacklist (max_values: None, max_size: Some(48), added: 2523, mode: MaxEncodedLen) // Storage: Tokens Accounts (r:2 w:2) // Proof: Tokens Accounts (max_values: None, max_size: Some(108), added: 2583, mode: MaxEncodedLen) // Storage: AssetRegistry Assets (r:1 w:0) - // Proof Skipped: AssetRegistry Assets (max_values: None, max_size: None, mode: Measured) + // Proof: AssetRegistry Assets (max_values: None, max_size: Some(133), added: 2608, mode: MaxEncodedLen) // Storage: System Account (r:1 w:1) // Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen) // Storage: MultiTransactionPayment AccountCurrencyMap (r:1 w:0) @@ -93,15 +100,17 @@ impl WeightInfo for BasiliskWeight { // Storage: MultiTransactionPayment AcceptedCurrencies (r:1 w:0) // Proof: MultiTransactionPayment AcceptedCurrencies (max_values: None, max_size: Some(28), added: 2503, mode: MaxEncodedLen) fn transfer_keep_alive() -> Weight { - // Minimum execution time: 47_484 nanoseconds. - Weight::from_parts(48_063_000, 0) - .saturating_add(T::DbWeight::get().reads(6 as u64)) + // Minimum execution time: 85_463 nanoseconds. + Weight::from_ref_time(86_391_000 as u64) + .saturating_add(T::DbWeight::get().reads(7 as u64)) .saturating_add(T::DbWeight::get().writes(3 as u64)) } + // Storage: Duster AccountBlacklist (r:1 w:0) + // Proof: Duster AccountBlacklist (max_values: None, max_size: Some(48), added: 2523, mode: MaxEncodedLen) // Storage: Tokens Accounts (r:2 w:2) // Proof: Tokens Accounts (max_values: None, max_size: Some(108), added: 2583, mode: MaxEncodedLen) // Storage: AssetRegistry Assets (r:1 w:0) - // Proof Skipped: AssetRegistry Assets (max_values: None, max_size: None, mode: Measured) + // Proof: AssetRegistry Assets (max_values: None, max_size: Some(133), added: 2608, mode: MaxEncodedLen) // Storage: System Account (r:2 w:1) // Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen) // Storage: MultiTransactionPayment AccountCurrencyMap (r:1 w:0) @@ -109,15 +118,15 @@ impl WeightInfo for BasiliskWeight { // Storage: MultiTransactionPayment AcceptedCurrencies (r:1 w:0) // Proof: MultiTransactionPayment AcceptedCurrencies (max_values: None, max_size: Some(28), added: 2503, mode: MaxEncodedLen) fn force_transfer() -> Weight { - // Minimum execution time: 49_337 nanoseconds. - Weight::from_parts(49_975_000, 0) - .saturating_add(T::DbWeight::get().reads(7 as u64)) + // Minimum execution time: 88_958 nanoseconds. + Weight::from_ref_time(89_652_000 as u64) + .saturating_add(T::DbWeight::get().reads(8 as u64)) .saturating_add(T::DbWeight::get().writes(3 as u64)) } // Storage: Tokens Accounts (r:1 w:1) // Proof: Tokens Accounts (max_values: None, max_size: Some(108), added: 2583, mode: MaxEncodedLen) // Storage: AssetRegistry Assets (r:1 w:0) - // Proof Skipped: AssetRegistry Assets (max_values: None, max_size: None, mode: Measured) + // Proof: AssetRegistry Assets (max_values: None, max_size: Some(133), added: 2608, mode: MaxEncodedLen) // Storage: Tokens TotalIssuance (r:1 w:1) // Proof: Tokens TotalIssuance (max_values: None, max_size: Some(28), added: 2503, mode: MaxEncodedLen) // Storage: System Account (r:1 w:1) @@ -127,8 +136,8 @@ impl WeightInfo for BasiliskWeight { // Storage: MultiTransactionPayment AcceptedCurrencies (r:1 w:0) // Proof: MultiTransactionPayment AcceptedCurrencies (max_values: None, max_size: Some(28), added: 2503, mode: MaxEncodedLen) fn set_balance() -> Weight { - // Minimum execution time: 43_668 nanoseconds. - Weight::from_parts(44_590_000, 0) + // Minimum execution time: 68_548 nanoseconds. + Weight::from_ref_time(69_396_000 as u64) .saturating_add(T::DbWeight::get().reads(6 as u64)) .saturating_add(T::DbWeight::get().writes(3 as u64)) } diff --git a/runtime/basilisk/src/weights/transaction_pause.rs b/runtime/basilisk/src/weights/transaction_pause.rs index 2bc531149c..cc0dfeb589 100644 --- a/runtime/basilisk/src/weights/transaction_pause.rs +++ b/runtime/basilisk/src/weights/transaction_pause.rs @@ -54,7 +54,7 @@ impl WeightInfo for BasiliskWeight { // Proof Skipped: TransactionPause PausedTransactions (max_values: None, max_size: None, mode: Measured) fn pause_transaction() -> Weight { // Minimum execution time: 7_829 nanoseconds. - Weight::from_parts(8_312_000, 0) + Weight::from_ref_time(8_312_000 as u64) .saturating_add(T::DbWeight::get().reads(1 as u64)) .saturating_add(T::DbWeight::get().writes(1 as u64)) } @@ -62,7 +62,7 @@ impl WeightInfo for BasiliskWeight { // Proof Skipped: TransactionPause PausedTransactions (max_values: None, max_size: None, mode: Measured) fn unpause_transaction() -> Weight { // Minimum execution time: 9_161 nanoseconds. - Weight::from_parts(9_447_000, 0) + Weight::from_ref_time(9_447_000 as u64) .saturating_add(T::DbWeight::get().reads(1 as u64)) .saturating_add(T::DbWeight::get().writes(1 as u64)) } diff --git a/runtime/basilisk/src/weights/treasury.rs b/runtime/basilisk/src/weights/treasury.rs index 18453d4616..c7943d9100 100644 --- a/runtime/basilisk/src/weights/treasury.rs +++ b/runtime/basilisk/src/weights/treasury.rs @@ -15,25 +15,27 @@ // See the License for the specific language governing permissions and // limitations under the License. -//! Autogenerated weights for pallet_treasury +//! Autogenerated weights for `pallet_treasury` //! //! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev -//! DATE: 2023-06-01, STEPS: 5, REPEAT: 20, LOW RANGE: [], HIGH RANGE: [] -//! EXECUTION: None, WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 1024 +//! DATE: 2023-12-06, STEPS: `10`, REPEAT: `30`, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! WORST CASE MAP SIZE: `1000000` +//! HOSTNAME: `bench-bot`, CPU: `Intel(R) Core(TM) i7-7700K CPU @ 4.20GHz` +//! WASM-EXECUTION: `Compiled`, CHAIN: `Some("dev")`, DB CACHE: `1024` // Executed Command: // target/release/basilisk // benchmark // pallet -// --pallet=pallet-treasury // --chain=dev +// --steps=10 +// --repeat=30 +// --wasm-execution=compiled +// --heap-pages=4096 +// --template=.maintain/pallet-weight-template-no-back.hbs +// --pallet=pallet-treasury +// --output=treasury.rs // --extrinsic=* -// --steps=5 -// --repeat=20 -// --output -// treasury.rs -// --template -// .maintain/pallet-weight-template-no-back.hbs #![allow(unused_parens)] #![allow(unused_imports)] @@ -51,67 +53,88 @@ pub struct BasiliskWeight(PhantomData); impl WeightInfo for BasiliskWeight { fn spend() -> Weight { - // Minimum execution time: 57 nanoseconds. - Weight::from_parts(70_000, 0) + // Proof Size summary in bytes: + // Measured: `0` + // Estimated: `0` + // Minimum execution time: 362_000 picoseconds. + Weight::from_parts(413_000, 0) } - // Storage: Treasury ProposalCount (r:1 w:1) - // Proof: Treasury ProposalCount (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen) - // Storage: Treasury Proposals (r:0 w:1) - // Proof: Treasury Proposals (max_values: None, max_size: Some(108), added: 2583, mode: MaxEncodedLen) + /// Storage: `Treasury::ProposalCount` (r:1 w:1) + /// Proof: `Treasury::ProposalCount` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`) + /// Storage: `Treasury::Proposals` (r:0 w:1) + /// Proof: `Treasury::Proposals` (`max_values`: None, `max_size`: Some(108), added: 2583, mode: `MaxEncodedLen`) fn propose_spend() -> Weight { - // Minimum execution time: 16_004 nanoseconds. - Weight::from_parts(16_358_000, 0) - .saturating_add(T::DbWeight::get().reads(1 as u64)) - .saturating_add(T::DbWeight::get().writes(2 as u64)) + // Proof Size summary in bytes: + // Measured: `210` + // Estimated: `1489` + // Minimum execution time: 38_307_000 picoseconds. + Weight::from_parts(38_572_000, 1489) + .saturating_add(T::DbWeight::get().reads(1_u64)) + .saturating_add(T::DbWeight::get().writes(2_u64)) } - // Storage: Treasury Proposals (r:1 w:1) - // Proof: Treasury Proposals (max_values: None, max_size: Some(108), added: 2583, mode: MaxEncodedLen) - // Storage: System Account (r:1 w:1) - // Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen) + /// Storage: `Treasury::Proposals` (r:1 w:1) + /// Proof: `Treasury::Proposals` (`max_values`: None, `max_size`: Some(108), added: 2583, mode: `MaxEncodedLen`) + /// Storage: `System::Account` (r:1 w:1) + /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`) fn reject_proposal() -> Weight { - // Minimum execution time: 21_853 nanoseconds. - Weight::from_parts(22_820_000, 0) - .saturating_add(T::DbWeight::get().reads(2 as u64)) - .saturating_add(T::DbWeight::get().writes(2 as u64)) + // Proof Size summary in bytes: + // Measured: `368` + // Estimated: `3593` + // Minimum execution time: 54_591_000 picoseconds. + Weight::from_parts(55_157_000, 3593) + .saturating_add(T::DbWeight::get().reads(2_u64)) + .saturating_add(T::DbWeight::get().writes(2_u64)) } - // Storage: Treasury Proposals (r:1 w:0) - // Proof: Treasury Proposals (max_values: None, max_size: Some(108), added: 2583, mode: MaxEncodedLen) - // Storage: Treasury Approvals (r:1 w:1) - // Proof: Treasury Approvals (max_values: Some(1), max_size: Some(402), added: 897, mode: MaxEncodedLen) + /// Storage: `Treasury::Proposals` (r:1 w:0) + /// Proof: `Treasury::Proposals` (`max_values`: None, `max_size`: Some(108), added: 2583, mode: `MaxEncodedLen`) + /// Storage: `Treasury::Approvals` (r:1 w:1) + /// Proof: `Treasury::Approvals` (`max_values`: Some(1), `max_size`: Some(402), added: 897, mode: `MaxEncodedLen`) /// The range of component `p` is `[0, 99]`. fn approve_proposal(p: u32) -> Weight { - // Minimum execution time: 8_428 nanoseconds. - Weight::from_parts(10_215_802, 0) // Standard Error: 5_445 - .saturating_add(Weight::from_parts(40_062, 0).saturating_mul(p as u64)) - .saturating_add(T::DbWeight::get().reads(2 as u64)) - .saturating_add(T::DbWeight::get().writes(1 as u64)) + // Proof Size summary in bytes: + // Measured: `571 + p * (7 ±0)` + // Estimated: `3573` + // Minimum execution time: 13_878_000 picoseconds. + Weight::from_parts(17_030_669, 3573) + // Standard Error: 3_125 + .saturating_add(Weight::from_parts(37_137, 0).saturating_mul(p.into())) + .saturating_add(T::DbWeight::get().reads(2_u64)) + .saturating_add(T::DbWeight::get().writes(1_u64)) } - // Storage: Treasury Approvals (r:1 w:1) - // Proof: Treasury Approvals (max_values: Some(1), max_size: Some(402), added: 897, mode: MaxEncodedLen) + /// Storage: `Treasury::Approvals` (r:1 w:1) + /// Proof: `Treasury::Approvals` (`max_values`: Some(1), `max_size`: Some(402), added: 897, mode: `MaxEncodedLen`) fn remove_approval() -> Weight { - // Minimum execution time: 6_749 nanoseconds. - Weight::from_parts(6_979_000, 0) - .saturating_add(T::DbWeight::get().reads(1 as u64)) - .saturating_add(T::DbWeight::get().writes(1 as u64)) + // Proof Size summary in bytes: + // Measured: `194` + // Estimated: `1887` + // Minimum execution time: 10_734_000 picoseconds. + Weight::from_parts(10_918_000, 1887) + .saturating_add(T::DbWeight::get().reads(1_u64)) + .saturating_add(T::DbWeight::get().writes(1_u64)) } - // Storage: Treasury Deactivated (r:1 w:1) - // Proof: Treasury Deactivated (max_values: Some(1), max_size: Some(16), added: 511, mode: MaxEncodedLen) - // Storage: Balances InactiveIssuance (r:1 w:1) - // Proof: Balances InactiveIssuance (max_values: Some(1), max_size: Some(16), added: 511, mode: MaxEncodedLen) - // Storage: Treasury Approvals (r:1 w:1) - // Proof: Treasury Approvals (max_values: Some(1), max_size: Some(402), added: 897, mode: MaxEncodedLen) - // Storage: Treasury Proposals (r:100 w:100) - // Proof: Treasury Proposals (max_values: None, max_size: Some(108), added: 2583, mode: MaxEncodedLen) - // Storage: System Account (r:200 w:200) - // Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen) + /// Storage: `Treasury::Deactivated` (r:1 w:1) + /// Proof: `Treasury::Deactivated` (`max_values`: Some(1), `max_size`: Some(16), added: 511, mode: `MaxEncodedLen`) + /// Storage: `Balances::InactiveIssuance` (r:1 w:1) + /// Proof: `Balances::InactiveIssuance` (`max_values`: Some(1), `max_size`: Some(16), added: 511, mode: `MaxEncodedLen`) + /// Storage: `Treasury::Approvals` (r:1 w:1) + /// Proof: `Treasury::Approvals` (`max_values`: Some(1), `max_size`: Some(402), added: 897, mode: `MaxEncodedLen`) + /// Storage: `Treasury::Proposals` (r:100 w:100) + /// Proof: `Treasury::Proposals` (`max_values`: None, `max_size`: Some(108), added: 2583, mode: `MaxEncodedLen`) + /// Storage: `System::Account` (r:200 w:200) + /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`) /// The range of component `p` is `[0, 100]`. fn on_initialize_proposals(p: u32) -> Weight { - // Minimum execution time: 15_011 nanoseconds. - Weight::from_parts(17_185_760, 0) // Standard Error: 18_518 - .saturating_add(Weight::from_parts(17_277_918, 0).saturating_mul(p as u64)) - .saturating_add(T::DbWeight::get().reads(3 as u64)) - .saturating_add(T::DbWeight::get().reads((3 as u64).saturating_mul(p as u64))) - .saturating_add(T::DbWeight::get().writes(3 as u64)) - .saturating_add(T::DbWeight::get().writes((3 as u64).saturating_mul(p as u64))) + // Proof Size summary in bytes: + // Measured: `43 + p * (250 ±0)` + // Estimated: `1887 + p * (5206 ±0)` + // Minimum execution time: 36_728_000 picoseconds. + Weight::from_parts(44_092_087, 1887) + // Standard Error: 33_396 + .saturating_add(Weight::from_parts(50_659_961, 0).saturating_mul(p.into())) + .saturating_add(T::DbWeight::get().reads(3_u64)) + .saturating_add(T::DbWeight::get().reads((3_u64).saturating_mul(p.into()))) + .saturating_add(T::DbWeight::get().writes(3_u64)) + .saturating_add(T::DbWeight::get().writes((3_u64).saturating_mul(p.into()))) + .saturating_add(Weight::from_parts(0, 5206).saturating_mul(p.into())) } } diff --git a/runtime/basilisk/src/weights/utility.rs b/runtime/basilisk/src/weights/utility.rs index 7d15a026a8..4fcaaf341f 100644 --- a/runtime/basilisk/src/weights/utility.rs +++ b/runtime/basilisk/src/weights/utility.rs @@ -15,25 +15,27 @@ // See the License for the specific language governing permissions and // limitations under the License. -//! Autogenerated weights for pallet_utility +//! Autogenerated weights for `pallet_utility` //! //! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev -//! DATE: 2023-06-01, STEPS: 5, REPEAT: 20, LOW RANGE: [], HIGH RANGE: [] -//! EXECUTION: None, WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 1024 +//! DATE: 2023-12-06, STEPS: `10`, REPEAT: `30`, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! WORST CASE MAP SIZE: `1000000` +//! HOSTNAME: `bench-bot`, CPU: `Intel(R) Core(TM) i7-7700K CPU @ 4.20GHz` +//! WASM-EXECUTION: `Compiled`, CHAIN: `Some("dev")`, DB CACHE: `1024` // Executed Command: // target/release/basilisk // benchmark // pallet -// --pallet=pallet-utility // --chain=dev +// --steps=10 +// --repeat=30 +// --wasm-execution=compiled +// --heap-pages=4096 +// --template=.maintain/pallet-weight-template-no-back.hbs +// --pallet=pallet-utility +// --output=utility.rs // --extrinsic=* -// --steps=5 -// --repeat=20 -// --output -// utility.rs -// --template -// .maintain/pallet-weight-template-no-back.hbs #![allow(unused_parens)] #![allow(unused_imports)] @@ -52,28 +54,46 @@ pub struct BasiliskWeight(PhantomData); impl WeightInfo for BasiliskWeight { /// The range of component `c` is `[0, 1000]`. fn batch(c: u32) -> Weight { - // Minimum execution time: 4_082 nanoseconds. - Weight::from_parts(25_336_600, 0) // Standard Error: 10_544 - .saturating_add(Weight::from_parts(1_904_658, 0).saturating_mul(c as u64)) + // Proof Size summary in bytes: + // Measured: `0` + // Estimated: `0` + // Minimum execution time: 10_465_000 picoseconds. + Weight::from_parts(27_663_433, 0) + // Standard Error: 6_642 + .saturating_add(Weight::from_parts(6_748_023, 0).saturating_mul(c.into())) } fn as_derivative() -> Weight { - // Minimum execution time: 3_059 nanoseconds. - Weight::from_parts(3_239_000, 0) + // Proof Size summary in bytes: + // Measured: `0` + // Estimated: `0` + // Minimum execution time: 7_814_000 picoseconds. + Weight::from_parts(8_073_000, 0) } /// The range of component `c` is `[0, 1000]`. fn batch_all(c: u32) -> Weight { - // Minimum execution time: 4_104 nanoseconds. - Weight::from_parts(5_430_080, 0) // Standard Error: 3_514 - .saturating_add(Weight::from_parts(1_960_391, 0).saturating_mul(c as u64)) + // Proof Size summary in bytes: + // Measured: `0` + // Estimated: `0` + // Minimum execution time: 10_467_000 picoseconds. + Weight::from_parts(19_111_722, 0) + // Standard Error: 4_841 + .saturating_add(Weight::from_parts(7_115_721, 0).saturating_mul(c.into())) } fn dispatch_as() -> Weight { - // Minimum execution time: 5_083 nanoseconds. - Weight::from_parts(5_299_000, 0) + // Proof Size summary in bytes: + // Measured: `0` + // Estimated: `0` + // Minimum execution time: 13_379_000 picoseconds. + Weight::from_parts(13_619_000, 0) } /// The range of component `c` is `[0, 1000]`. fn force_batch(c: u32) -> Weight { - // Minimum execution time: 3_953 nanoseconds. - Weight::from_parts(596_620, 0) // Standard Error: 3_802 - .saturating_add(Weight::from_parts(1_932_954, 0).saturating_mul(c as u64)) + // Proof Size summary in bytes: + // Measured: `0` + // Estimated: `0` + // Minimum execution time: 10_366_000 picoseconds. + Weight::from_parts(12_968_873, 0) + // Standard Error: 5_452 + .saturating_add(Weight::from_parts(6_756_652, 0).saturating_mul(c.into())) } } diff --git a/runtime/basilisk/src/weights/vesting.rs b/runtime/basilisk/src/weights/vesting.rs index 2dc29dfd86..84f32229b3 100644 --- a/runtime/basilisk/src/weights/vesting.rs +++ b/runtime/basilisk/src/weights/vesting.rs @@ -58,7 +58,7 @@ impl WeightInfo for BasiliskWeight { // Proof: Balances Locks (max_values: None, max_size: Some(1299), added: 3774, mode: MaxEncodedLen) fn vested_transfer() -> Weight { // Minimum execution time: 45_615 nanoseconds. - Weight::from_parts(46_574_000, 0) + Weight::from_ref_time(46_574_000 as u64) .saturating_add(T::DbWeight::get().reads(4 as u64)) .saturating_add(T::DbWeight::get().writes(4 as u64)) } @@ -69,8 +69,8 @@ impl WeightInfo for BasiliskWeight { /// The range of component `i` is `[1, 15]`. fn claim(i: u32) -> Weight { // Minimum execution time: 37_873 nanoseconds. - Weight::from_parts(38_786_783, 0) // Standard Error: 9_805 - .saturating_add(Weight::from_parts(83_184, 0).saturating_mul(i as u64)) + Weight::from_ref_time(38_786_783 as u64) // Standard Error: 9_805 + .saturating_add(Weight::from_ref_time(83_184 as u64).saturating_mul(i as u64)) .saturating_add(T::DbWeight::get().reads(2 as u64)) .saturating_add(T::DbWeight::get().writes(2 as u64)) } @@ -83,8 +83,8 @@ impl WeightInfo for BasiliskWeight { /// The range of component `i` is `[1, 15]`. fn update_vesting_schedules(i: u32) -> Weight { // Minimum execution time: 28_006 nanoseconds. - Weight::from_parts(28_815_764, 0) // Standard Error: 7_802 - .saturating_add(Weight::from_parts(95_130, 0).saturating_mul(i as u64)) + Weight::from_ref_time(28_815_764 as u64) // Standard Error: 7_802 + .saturating_add(Weight::from_ref_time(95_130 as u64).saturating_mul(i as u64)) .saturating_add(T::DbWeight::get().reads(2 as u64)) .saturating_add(T::DbWeight::get().writes(3 as u64)) } diff --git a/runtime/basilisk/src/weights/xcm.rs b/runtime/basilisk/src/weights/xcm.rs index 60bdd62091..1f0d751edc 100644 --- a/runtime/basilisk/src/weights/xcm.rs +++ b/runtime/basilisk/src/weights/xcm.rs @@ -15,25 +15,27 @@ // See the License for the specific language governing permissions and // limitations under the License. -//! Autogenerated weights for pallet_xcm +//! Autogenerated weights for `pallet_xcm` //! //! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev -//! DATE: 2023-06-01, STEPS: 5, REPEAT: 20, LOW RANGE: [], HIGH RANGE: [] -//! EXECUTION: None, WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 1024 +//! DATE: 2023-12-06, STEPS: `10`, REPEAT: `30`, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! WORST CASE MAP SIZE: `1000000` +//! HOSTNAME: `bench-bot`, CPU: `Intel(R) Core(TM) i7-7700K CPU @ 4.20GHz` +//! WASM-EXECUTION: `Compiled`, CHAIN: `Some("dev")`, DB CACHE: `1024` // Executed Command: // target/release/basilisk // benchmark // pallet -// --pallet=pallet-xcm // --chain=dev +// --steps=10 +// --repeat=30 +// --wasm-execution=compiled +// --heap-pages=4096 +// --template=.maintain/pallet-weight-template-no-back.hbs +// --pallet=pallet-xcm +// --output=xcm.rs // --extrinsic=* -// --steps=5 -// --repeat=20 -// --output -// xcm.rs -// --template -// .maintain/pallet-weight-template-no-back.hbs #![allow(unused_parens)] #![allow(unused_imports)] @@ -50,165 +52,216 @@ use pallet_xcm::WeightInfo; pub struct BasiliskWeight(PhantomData); impl WeightInfo for BasiliskWeight { - // Storage: PolkadotXcm SupportedVersion (r:1 w:0) - // Proof Skipped: PolkadotXcm SupportedVersion (max_values: None, max_size: None, mode: Measured) - // Storage: PolkadotXcm VersionDiscoveryQueue (r:1 w:1) - // Proof Skipped: PolkadotXcm VersionDiscoveryQueue (max_values: Some(1), max_size: None, mode: Measured) - // Storage: PolkadotXcm SafeXcmVersion (r:1 w:0) - // Proof Skipped: PolkadotXcm SafeXcmVersion (max_values: Some(1), max_size: None, mode: Measured) - // Storage: ParachainSystem HostConfiguration (r:1 w:0) - // Proof Skipped: ParachainSystem HostConfiguration (max_values: Some(1), max_size: None, mode: Measured) - // Storage: ParachainSystem PendingUpwardMessages (r:1 w:1) - // Proof Skipped: ParachainSystem PendingUpwardMessages (max_values: Some(1), max_size: None, mode: Measured) + /// Storage: `PolkadotXcm::SupportedVersion` (r:1 w:0) + /// Proof: `PolkadotXcm::SupportedVersion` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `PolkadotXcm::VersionDiscoveryQueue` (r:1 w:1) + /// Proof: `PolkadotXcm::VersionDiscoveryQueue` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `PolkadotXcm::SafeXcmVersion` (r:1 w:0) + /// Proof: `PolkadotXcm::SafeXcmVersion` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `ParachainSystem::HostConfiguration` (r:1 w:0) + /// Proof: `ParachainSystem::HostConfiguration` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `ParachainSystem::PendingUpwardMessages` (r:1 w:1) + /// Proof: `ParachainSystem::PendingUpwardMessages` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) fn send() -> Weight { - // Minimum execution time: 17_707 nanoseconds. - Weight::from_parts(18_429_000, 0) - .saturating_add(T::DbWeight::get().reads(5 as u64)) - .saturating_add(T::DbWeight::get().writes(2 as u64)) + // Proof Size summary in bytes: + // Measured: `145` + // Estimated: `3610` + // Minimum execution time: 39_039_000 picoseconds. + Weight::from_parts(39_621_000, 3610) + .saturating_add(T::DbWeight::get().reads(5_u64)) + .saturating_add(T::DbWeight::get().writes(2_u64)) } - // Storage: Benchmark Override (r:0 w:0) - // Proof Skipped: Benchmark Override (max_values: None, max_size: None, mode: Measured) + /// Storage: `Benchmark::Override` (r:0 w:0) + /// Proof: `Benchmark::Override` (`max_values`: None, `max_size`: None, mode: `Measured`) fn teleport_assets() -> Weight { - // Minimum execution time: 18_446_744_073_709_551 nanoseconds. + // Proof Size summary in bytes: + // Measured: `0` + // Estimated: `0` + // Minimum execution time: 18_446_744_073_709_551_000 picoseconds. Weight::from_parts(18_446_744_073_709_551_000, 0) } - // Storage: ParachainInfo ParachainId (r:1 w:0) - // Proof: ParachainInfo ParachainId (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen) + /// Storage: `ParachainInfo::ParachainId` (r:1 w:0) + /// Proof: `ParachainInfo::ParachainId` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`) fn reserve_transfer_assets() -> Weight { - // Minimum execution time: 12_747 nanoseconds. - Weight::from_parts(13_188_000, 0).saturating_add(T::DbWeight::get().reads(1 as u64)) + // Proof Size summary in bytes: + // Measured: `69` + // Estimated: `1489` + // Minimum execution time: 30_760_000 picoseconds. + Weight::from_parts(31_238_000, 1489).saturating_add(T::DbWeight::get().reads(1_u64)) } fn execute() -> Weight { - // Minimum execution time: 5_205 nanoseconds. - Weight::from_parts(5_338_000, 0) + // Proof Size summary in bytes: + // Measured: `0` + // Estimated: `0` + // Minimum execution time: 13_599_000 picoseconds. + Weight::from_parts(13_806_000, 0) } - // Storage: PolkadotXcm SupportedVersion (r:0 w:1) - // Proof Skipped: PolkadotXcm SupportedVersion (max_values: None, max_size: None, mode: Measured) + /// Storage: `PolkadotXcm::SupportedVersion` (r:0 w:1) + /// Proof: `PolkadotXcm::SupportedVersion` (`max_values`: None, `max_size`: None, mode: `Measured`) fn force_xcm_version() -> Weight { - // Minimum execution time: 5_677 nanoseconds. - Weight::from_parts(5_857_000, 0).saturating_add(T::DbWeight::get().writes(1 as u64)) + // Proof Size summary in bytes: + // Measured: `0` + // Estimated: `0` + // Minimum execution time: 14_086_000 picoseconds. + Weight::from_parts(14_427_000, 0).saturating_add(T::DbWeight::get().writes(1_u64)) } - // Storage: PolkadotXcm SafeXcmVersion (r:0 w:1) - // Proof Skipped: PolkadotXcm SafeXcmVersion (max_values: Some(1), max_size: None, mode: Measured) + /// Storage: `PolkadotXcm::SafeXcmVersion` (r:0 w:1) + /// Proof: `PolkadotXcm::SafeXcmVersion` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) fn force_default_xcm_version() -> Weight { - // Minimum execution time: 1_786 nanoseconds. - Weight::from_parts(1_915_000, 0).saturating_add(T::DbWeight::get().writes(1 as u64)) - } - // Storage: PolkadotXcm VersionNotifiers (r:1 w:1) - // Proof Skipped: PolkadotXcm VersionNotifiers (max_values: None, max_size: None, mode: Measured) - // Storage: PolkadotXcm QueryCounter (r:1 w:1) - // Proof Skipped: PolkadotXcm QueryCounter (max_values: Some(1), max_size: None, mode: Measured) - // Storage: PolkadotXcm SupportedVersion (r:1 w:0) - // Proof Skipped: PolkadotXcm SupportedVersion (max_values: None, max_size: None, mode: Measured) - // Storage: PolkadotXcm VersionDiscoveryQueue (r:1 w:1) - // Proof Skipped: PolkadotXcm VersionDiscoveryQueue (max_values: Some(1), max_size: None, mode: Measured) - // Storage: PolkadotXcm SafeXcmVersion (r:1 w:0) - // Proof Skipped: PolkadotXcm SafeXcmVersion (max_values: Some(1), max_size: None, mode: Measured) - // Storage: ParachainSystem HostConfiguration (r:1 w:0) - // Proof Skipped: ParachainSystem HostConfiguration (max_values: Some(1), max_size: None, mode: Measured) - // Storage: ParachainSystem PendingUpwardMessages (r:1 w:1) - // Proof Skipped: ParachainSystem PendingUpwardMessages (max_values: Some(1), max_size: None, mode: Measured) - // Storage: PolkadotXcm Queries (r:0 w:1) - // Proof Skipped: PolkadotXcm Queries (max_values: None, max_size: None, mode: Measured) + // Proof Size summary in bytes: + // Measured: `0` + // Estimated: `0` + // Minimum execution time: 4_944_000 picoseconds. + Weight::from_parts(5_132_000, 0).saturating_add(T::DbWeight::get().writes(1_u64)) + } + /// Storage: `PolkadotXcm::VersionNotifiers` (r:1 w:1) + /// Proof: `PolkadotXcm::VersionNotifiers` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `PolkadotXcm::QueryCounter` (r:1 w:1) + /// Proof: `PolkadotXcm::QueryCounter` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `PolkadotXcm::SupportedVersion` (r:1 w:0) + /// Proof: `PolkadotXcm::SupportedVersion` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `PolkadotXcm::VersionDiscoveryQueue` (r:1 w:1) + /// Proof: `PolkadotXcm::VersionDiscoveryQueue` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `PolkadotXcm::SafeXcmVersion` (r:1 w:0) + /// Proof: `PolkadotXcm::SafeXcmVersion` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `ParachainSystem::HostConfiguration` (r:1 w:0) + /// Proof: `ParachainSystem::HostConfiguration` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `ParachainSystem::PendingUpwardMessages` (r:1 w:1) + /// Proof: `ParachainSystem::PendingUpwardMessages` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `PolkadotXcm::Queries` (r:0 w:1) + /// Proof: `PolkadotXcm::Queries` (`max_values`: None, `max_size`: None, mode: `Measured`) fn force_subscribe_version_notify() -> Weight { - // Minimum execution time: 22_986 nanoseconds. - Weight::from_parts(23_583_000, 0) - .saturating_add(T::DbWeight::get().reads(7 as u64)) - .saturating_add(T::DbWeight::get().writes(5 as u64)) - } - // Storage: PolkadotXcm VersionNotifiers (r:1 w:1) - // Proof Skipped: PolkadotXcm VersionNotifiers (max_values: None, max_size: None, mode: Measured) - // Storage: PolkadotXcm SupportedVersion (r:1 w:0) - // Proof Skipped: PolkadotXcm SupportedVersion (max_values: None, max_size: None, mode: Measured) - // Storage: PolkadotXcm VersionDiscoveryQueue (r:1 w:1) - // Proof Skipped: PolkadotXcm VersionDiscoveryQueue (max_values: Some(1), max_size: None, mode: Measured) - // Storage: PolkadotXcm SafeXcmVersion (r:1 w:0) - // Proof Skipped: PolkadotXcm SafeXcmVersion (max_values: Some(1), max_size: None, mode: Measured) - // Storage: ParachainSystem HostConfiguration (r:1 w:0) - // Proof Skipped: ParachainSystem HostConfiguration (max_values: Some(1), max_size: None, mode: Measured) - // Storage: ParachainSystem PendingUpwardMessages (r:1 w:1) - // Proof Skipped: ParachainSystem PendingUpwardMessages (max_values: Some(1), max_size: None, mode: Measured) - // Storage: PolkadotXcm Queries (r:0 w:1) - // Proof Skipped: PolkadotXcm Queries (max_values: None, max_size: None, mode: Measured) + // Proof Size summary in bytes: + // Measured: `145` + // Estimated: `3610` + // Minimum execution time: 44_784_000 picoseconds. + Weight::from_parts(45_502_000, 3610) + .saturating_add(T::DbWeight::get().reads(7_u64)) + .saturating_add(T::DbWeight::get().writes(5_u64)) + } + /// Storage: `PolkadotXcm::VersionNotifiers` (r:1 w:1) + /// Proof: `PolkadotXcm::VersionNotifiers` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `PolkadotXcm::SupportedVersion` (r:1 w:0) + /// Proof: `PolkadotXcm::SupportedVersion` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `PolkadotXcm::VersionDiscoveryQueue` (r:1 w:1) + /// Proof: `PolkadotXcm::VersionDiscoveryQueue` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `PolkadotXcm::SafeXcmVersion` (r:1 w:0) + /// Proof: `PolkadotXcm::SafeXcmVersion` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `ParachainSystem::HostConfiguration` (r:1 w:0) + /// Proof: `ParachainSystem::HostConfiguration` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `ParachainSystem::PendingUpwardMessages` (r:1 w:1) + /// Proof: `ParachainSystem::PendingUpwardMessages` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `PolkadotXcm::Queries` (r:0 w:1) + /// Proof: `PolkadotXcm::Queries` (`max_values`: None, `max_size`: None, mode: `Measured`) fn force_unsubscribe_version_notify() -> Weight { - // Minimum execution time: 27_669 nanoseconds. - Weight::from_parts(28_290_000, 0) - .saturating_add(T::DbWeight::get().reads(6 as u64)) - .saturating_add(T::DbWeight::get().writes(4 as u64)) + // Proof Size summary in bytes: + // Measured: `328` + // Estimated: `3793` + // Minimum execution time: 45_133_000 picoseconds. + Weight::from_parts(45_639_000, 3793) + .saturating_add(T::DbWeight::get().reads(6_u64)) + .saturating_add(T::DbWeight::get().writes(4_u64)) + } + /// Storage: `PolkadotXcm::XcmExecutionSuspended` (r:0 w:1) + /// Proof: `PolkadotXcm::XcmExecutionSuspended` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + fn force_suspension() -> Weight { + // Proof Size summary in bytes: + // Measured: `0` + // Estimated: `0` + // Minimum execution time: 4_909_000 picoseconds. + Weight::from_parts(5_060_000, 0).saturating_add(T::DbWeight::get().writes(1_u64)) } - // Storage: PolkadotXcm SupportedVersion (r:4 w:2) - // Proof Skipped: PolkadotXcm SupportedVersion (max_values: None, max_size: None, mode: Measured) + /// Storage: `PolkadotXcm::SupportedVersion` (r:4 w:2) + /// Proof: `PolkadotXcm::SupportedVersion` (`max_values`: None, `max_size`: None, mode: `Measured`) fn migrate_supported_version() -> Weight { - // Minimum execution time: 16_265 nanoseconds. - Weight::from_parts(17_001_000, 0) - .saturating_add(T::DbWeight::get().reads(4 as u64)) - .saturating_add(T::DbWeight::get().writes(2 as u64)) + // Proof Size summary in bytes: + // Measured: `167` + // Estimated: `11057` + // Minimum execution time: 23_812_000 picoseconds. + Weight::from_parts(24_307_000, 11057) + .saturating_add(T::DbWeight::get().reads(4_u64)) + .saturating_add(T::DbWeight::get().writes(2_u64)) } - // Storage: PolkadotXcm VersionNotifiers (r:4 w:2) - // Proof Skipped: PolkadotXcm VersionNotifiers (max_values: None, max_size: None, mode: Measured) + /// Storage: `PolkadotXcm::VersionNotifiers` (r:4 w:2) + /// Proof: `PolkadotXcm::VersionNotifiers` (`max_values`: None, `max_size`: None, mode: `Measured`) fn migrate_version_notifiers() -> Weight { - // Minimum execution time: 16_608 nanoseconds. - Weight::from_parts(17_024_000, 0) - .saturating_add(T::DbWeight::get().reads(4 as u64)) - .saturating_add(T::DbWeight::get().writes(2 as u64)) + // Proof Size summary in bytes: + // Measured: `171` + // Estimated: `11061` + // Minimum execution time: 23_979_000 picoseconds. + Weight::from_parts(24_489_000, 11061) + .saturating_add(T::DbWeight::get().reads(4_u64)) + .saturating_add(T::DbWeight::get().writes(2_u64)) } - // Storage: PolkadotXcm VersionNotifyTargets (r:5 w:0) - // Proof Skipped: PolkadotXcm VersionNotifyTargets (max_values: None, max_size: None, mode: Measured) + /// Storage: `PolkadotXcm::VersionNotifyTargets` (r:5 w:0) + /// Proof: `PolkadotXcm::VersionNotifyTargets` (`max_values`: None, `max_size`: None, mode: `Measured`) fn already_notified_target() -> Weight { - // Minimum execution time: 19_984 nanoseconds. - Weight::from_parts(20_480_000, 0).saturating_add(T::DbWeight::get().reads(5 as u64)) - } - // Storage: PolkadotXcm VersionNotifyTargets (r:2 w:1) - // Proof Skipped: PolkadotXcm VersionNotifyTargets (max_values: None, max_size: None, mode: Measured) - // Storage: PolkadotXcm SupportedVersion (r:1 w:0) - // Proof Skipped: PolkadotXcm SupportedVersion (max_values: None, max_size: None, mode: Measured) - // Storage: PolkadotXcm VersionDiscoveryQueue (r:1 w:1) - // Proof Skipped: PolkadotXcm VersionDiscoveryQueue (max_values: Some(1), max_size: None, mode: Measured) - // Storage: PolkadotXcm SafeXcmVersion (r:1 w:0) - // Proof Skipped: PolkadotXcm SafeXcmVersion (max_values: Some(1), max_size: None, mode: Measured) - // Storage: ParachainSystem HostConfiguration (r:1 w:0) - // Proof Skipped: ParachainSystem HostConfiguration (max_values: Some(1), max_size: None, mode: Measured) - // Storage: ParachainSystem PendingUpwardMessages (r:1 w:1) - // Proof Skipped: ParachainSystem PendingUpwardMessages (max_values: Some(1), max_size: None, mode: Measured) + // Proof Size summary in bytes: + // Measured: `178` + // Estimated: `13543` + // Minimum execution time: 25_259_000 picoseconds. + Weight::from_parts(25_771_000, 13543).saturating_add(T::DbWeight::get().reads(5_u64)) + } + /// Storage: `PolkadotXcm::VersionNotifyTargets` (r:2 w:1) + /// Proof: `PolkadotXcm::VersionNotifyTargets` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `PolkadotXcm::SupportedVersion` (r:1 w:0) + /// Proof: `PolkadotXcm::SupportedVersion` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `PolkadotXcm::VersionDiscoveryQueue` (r:1 w:1) + /// Proof: `PolkadotXcm::VersionDiscoveryQueue` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `PolkadotXcm::SafeXcmVersion` (r:1 w:0) + /// Proof: `PolkadotXcm::SafeXcmVersion` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `ParachainSystem::HostConfiguration` (r:1 w:0) + /// Proof: `ParachainSystem::HostConfiguration` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `ParachainSystem::PendingUpwardMessages` (r:1 w:1) + /// Proof: `ParachainSystem::PendingUpwardMessages` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) fn notify_current_targets() -> Weight { - // Minimum execution time: 25_037 nanoseconds. - Weight::from_parts(25_651_000, 0) - .saturating_add(T::DbWeight::get().reads(7 as u64)) - .saturating_add(T::DbWeight::get().writes(3 as u64)) + // Proof Size summary in bytes: + // Measured: `212` + // Estimated: `6152` + // Minimum execution time: 41_433_000 picoseconds. + Weight::from_parts(41_900_000, 6152) + .saturating_add(T::DbWeight::get().reads(7_u64)) + .saturating_add(T::DbWeight::get().writes(3_u64)) } - // Storage: PolkadotXcm VersionNotifyTargets (r:3 w:0) - // Proof Skipped: PolkadotXcm VersionNotifyTargets (max_values: None, max_size: None, mode: Measured) + /// Storage: `PolkadotXcm::VersionNotifyTargets` (r:3 w:0) + /// Proof: `PolkadotXcm::VersionNotifyTargets` (`max_values`: None, `max_size`: None, mode: `Measured`) fn notify_target_migration_fail() -> Weight { - // Minimum execution time: 8_072 nanoseconds. - Weight::from_parts(8_298_000, 0).saturating_add(T::DbWeight::get().reads(3 as u64)) + // Proof Size summary in bytes: + // Measured: `172` + // Estimated: `8587` + // Minimum execution time: 13_707_000 picoseconds. + Weight::from_parts(13_997_000, 8587).saturating_add(T::DbWeight::get().reads(3_u64)) } - // Storage: PolkadotXcm VersionNotifyTargets (r:4 w:2) - // Proof Skipped: PolkadotXcm VersionNotifyTargets (max_values: None, max_size: None, mode: Measured) + /// Storage: `PolkadotXcm::VersionNotifyTargets` (r:4 w:2) + /// Proof: `PolkadotXcm::VersionNotifyTargets` (`max_values`: None, `max_size`: None, mode: `Measured`) fn migrate_version_notify_targets() -> Weight { - // Minimum execution time: 17_316 nanoseconds. - Weight::from_parts(17_739_000, 0) - .saturating_add(T::DbWeight::get().reads(4 as u64)) - .saturating_add(T::DbWeight::get().writes(2 as u64)) - } - // Storage: PolkadotXcm VersionNotifyTargets (r:4 w:2) - // Proof Skipped: PolkadotXcm VersionNotifyTargets (max_values: None, max_size: None, mode: Measured) - // Storage: PolkadotXcm SupportedVersion (r:1 w:0) - // Proof Skipped: PolkadotXcm SupportedVersion (max_values: None, max_size: None, mode: Measured) - // Storage: PolkadotXcm VersionDiscoveryQueue (r:1 w:1) - // Proof Skipped: PolkadotXcm VersionDiscoveryQueue (max_values: Some(1), max_size: None, mode: Measured) - // Storage: PolkadotXcm SafeXcmVersion (r:1 w:0) - // Proof Skipped: PolkadotXcm SafeXcmVersion (max_values: Some(1), max_size: None, mode: Measured) - // Storage: ParachainSystem HostConfiguration (r:1 w:0) - // Proof Skipped: ParachainSystem HostConfiguration (max_values: Some(1), max_size: None, mode: Measured) - // Storage: ParachainSystem PendingUpwardMessages (r:1 w:1) - // Proof Skipped: ParachainSystem PendingUpwardMessages (max_values: Some(1), max_size: None, mode: Measured) - fn migrate_and_notify_old_targets() -> Weight { - // Minimum execution time: 28_326 nanoseconds. - Weight::from_parts(28_905_000, 0) - .saturating_add(T::DbWeight::get().reads(9 as u64)) - .saturating_add(T::DbWeight::get().writes(4 as u64)) + // Proof Size summary in bytes: + // Measured: `178` + // Estimated: `11068` + // Minimum execution time: 24_743_000 picoseconds. + Weight::from_parts(25_115_000, 11068) + .saturating_add(T::DbWeight::get().reads(4_u64)) + .saturating_add(T::DbWeight::get().writes(2_u64)) } - fn force_suspension() -> Weight { - Weight::zero() + /// Storage: `PolkadotXcm::VersionNotifyTargets` (r:4 w:2) + /// Proof: `PolkadotXcm::VersionNotifyTargets` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `PolkadotXcm::SupportedVersion` (r:1 w:0) + /// Proof: `PolkadotXcm::SupportedVersion` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `PolkadotXcm::VersionDiscoveryQueue` (r:1 w:1) + /// Proof: `PolkadotXcm::VersionDiscoveryQueue` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `PolkadotXcm::SafeXcmVersion` (r:1 w:0) + /// Proof: `PolkadotXcm::SafeXcmVersion` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `ParachainSystem::HostConfiguration` (r:1 w:0) + /// Proof: `ParachainSystem::HostConfiguration` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `ParachainSystem::PendingUpwardMessages` (r:1 w:1) + /// Proof: `ParachainSystem::PendingUpwardMessages` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + fn migrate_and_notify_old_targets() -> Weight { + // Proof Size summary in bytes: + // Measured: `254` + // Estimated: `11144` + // Minimum execution time: 50_844_000 picoseconds. + Weight::from_parts(51_349_000, 11144) + .saturating_add(T::DbWeight::get().reads(9_u64)) + .saturating_add(T::DbWeight::get().writes(4_u64)) } } diff --git a/runtime/basilisk/src/weights/xcmp_queue.rs b/runtime/basilisk/src/weights/xcmp_queue.rs index f9e4d8887b..68126ee078 100644 --- a/runtime/basilisk/src/weights/xcmp_queue.rs +++ b/runtime/basilisk/src/weights/xcmp_queue.rs @@ -18,7 +18,7 @@ //! Autogenerated weights for cumulus_pallet_xcmp_queue //! //! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev -//! DATE: 2023-07-24, STEPS: 10, REPEAT: 30, LOW RANGE: [], HIGH RANGE: [] +//! DATE: 2023-10-20, STEPS: 10, REPEAT: 30, LOW RANGE: [], HIGH RANGE: [] //! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 1024 // Executed Command: @@ -54,30 +54,65 @@ impl WeightInfo for BasiliskWeight { // Storage: XcmpQueue QueueConfig (r:1 w:1) // Proof Skipped: XcmpQueue QueueConfig (max_values: Some(1), max_size: None, mode: Measured) fn set_config_with_u32() -> Weight { - // Minimum execution time: 8_406 nanoseconds. - Weight::from_parts(8_709_000, 0) + // Minimum execution time: 8_682 nanoseconds. + Weight::from_ref_time(8_848_000 as u64) .saturating_add(T::DbWeight::get().reads(1 as u64)) .saturating_add(T::DbWeight::get().writes(1 as u64)) } // Storage: XcmpQueue QueueConfig (r:1 w:1) // Proof Skipped: XcmpQueue QueueConfig (max_values: Some(1), max_size: None, mode: Measured) fn set_config_with_weight() -> Weight { - // Minimum execution time: 8_605 nanoseconds. - Weight::from_parts(8_861_000, 0) + // Minimum execution time: 9_041 nanoseconds. + Weight::from_ref_time(9_304_000 as u64) .saturating_add(T::DbWeight::get().reads(1 as u64)) .saturating_add(T::DbWeight::get().writes(1 as u64)) } - fn service_deferred(_b: u32) -> Weight { - Weight::zero() + // Storage: XcmpQueue QueueConfig (r:1 w:0) + // Proof Skipped: XcmpQueue QueueConfig (max_values: Some(1), max_size: None, mode: Measured) + // Storage: XcmpQueue QueueSuspended (r:1 w:0) + // Proof Skipped: XcmpQueue QueueSuspended (max_values: Some(1), max_size: None, mode: Measured) + // Storage: XcmpQueue DeferredQueueSuspended (r:1 w:0) + // Proof Skipped: XcmpQueue DeferredQueueSuspended (max_values: Some(1), max_size: None, mode: Measured) + // Storage: XcmpQueue DeferredIndices (r:1 w:1) + // Proof Skipped: XcmpQueue DeferredIndices (max_values: None, max_size: None, mode: Measured) + // Storage: XcmpQueue DeferredMessageBuckets (r:1 w:1) + // Proof Skipped: XcmpQueue DeferredMessageBuckets (max_values: None, max_size: None, mode: Measured) + // Storage: XcmpQueue CounterForOverweight (r:1 w:1) + // Proof: XcmpQueue CounterForOverweight (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen) + // Storage: XcmpQueue OverweightCount (r:1 w:1) + // Proof Skipped: XcmpQueue OverweightCount (max_values: Some(1), max_size: None, mode: Measured) + // Storage: XcmpQueue Overweight (r:100 w:100) + // Proof Skipped: XcmpQueue Overweight (max_values: None, max_size: None, mode: Measured) + fn service_deferred() -> Weight { + // Minimum execution time: 194_325_209 nanoseconds. + Weight::from_ref_time(194_943_960_000 as u64) + .saturating_add(T::DbWeight::get().reads(107 as u64)) + .saturating_add(T::DbWeight::get().writes(104 as u64)) } - fn discard_deferred_bucket(_m: u32) -> Weight { - Weight::zero() + // Storage: XcmpQueue DeferredMessageBuckets (r:1 w:1) + // Proof Skipped: XcmpQueue DeferredMessageBuckets (max_values: None, max_size: None, mode: Measured) + fn discard_deferred_bucket() -> Weight { + // Minimum execution time: 113_011_714 nanoseconds. + Weight::from_ref_time(113_235_429_000 as u64) + .saturating_add(T::DbWeight::get().reads(1 as u64)) + .saturating_add(T::DbWeight::get().writes(1 as u64)) } - fn discard_deferred_individual(_m: u32) -> Weight { - Weight::zero() + // Storage: XcmpQueue DeferredMessageBuckets (r:1 w:1) + // Proof Skipped: XcmpQueue DeferredMessageBuckets (max_values: None, max_size: None, mode: Measured) + fn discard_deferred_individual() -> Weight { + // Minimum execution time: 125_386_024 nanoseconds. + Weight::from_ref_time(125_637_367_000 as u64) + .saturating_add(T::DbWeight::get().reads(1 as u64)) + .saturating_add(T::DbWeight::get().writes(1 as u64)) } - fn try_place_in_deferred_queue(_m: u32) -> Weight { - // TODO: run benchmarks - Weight::zero() + // Storage: XcmpQueue DeferredIndices (r:1 w:1) + // Proof Skipped: XcmpQueue DeferredIndices (max_values: None, max_size: None, mode: Measured) + // Storage: XcmpQueue DeferredMessageBuckets (r:1 w:1) + // Proof Skipped: XcmpQueue DeferredMessageBuckets (max_values: None, max_size: None, mode: Measured) + fn try_place_in_deferred_queue() -> Weight { + // Minimum execution time: 447_239 nanoseconds. + Weight::from_ref_time(533_778_000 as u64) + .saturating_add(T::DbWeight::get().reads(2 as u64)) + .saturating_add(T::DbWeight::get().writes(2 as u64)) } } diff --git a/runtime/basilisk/src/weights/xyk.rs b/runtime/basilisk/src/weights/xyk.rs index f3af354261..32f2d505ba 100644 --- a/runtime/basilisk/src/weights/xyk.rs +++ b/runtime/basilisk/src/weights/xyk.rs @@ -15,7 +15,6 @@ // See the License for the specific language governing permissions and // limitations under the License. - //! Autogenerated weights for `pallet_xyk` //! //! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev @@ -186,7 +185,7 @@ impl WeightInfo for BasiliskWeight { /// Proof: `EmaOracle::Accumulator` (`max_values`: Some(1), `max_size`: Some(4441), added: 4936, mode: `MaxEncodedLen`) /// The range of component `c` is `[1, 2]`. /// The range of component `e` is `[0, 1]`. - fn router_execution_sell(c: u32, e: u32, ) -> Weight { + fn router_execution_sell(c: u32, e: u32) -> Weight { // Proof Size summary in bytes: // Measured: `648 + e * (772 ±0)` // Estimated: `6156 + e * (5166 ±213_489_293_787_578_112)` @@ -213,7 +212,7 @@ impl WeightInfo for BasiliskWeight { /// Proof: `EmaOracle::Accumulator` (`max_values`: Some(1), `max_size`: Some(4441), added: 4936, mode: `MaxEncodedLen`) /// The range of component `c` is `[1, 3]`. /// The range of component `e` is `[0, 1]`. - fn router_execution_buy(c: u32, e: u32, ) -> Weight { + fn router_execution_buy(c: u32, e: u32) -> Weight { // Proof Size summary in bytes: // Measured: `648 + e * (772 ±0)` // Estimated: `6156 + e * (5166 ±0)` diff --git a/runtime/basilisk/src/weights/xyk_liquidity_mining.rs b/runtime/basilisk/src/weights/xyk_liquidity_mining.rs index 7b4c234acf..927c8145ad 100644 --- a/runtime/basilisk/src/weights/xyk_liquidity_mining.rs +++ b/runtime/basilisk/src/weights/xyk_liquidity_mining.rs @@ -15,7 +15,6 @@ // See the License for the specific language governing permissions and // limitations under the License. - //! Autogenerated weights for `pallet_xyk_liquidity_mining` //! //! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev