From 1ee6bc40993421e8ed7355aca2a9c585aedc401f Mon Sep 17 00:00:00 2001 From: Deepanshu Hooda Date: Sat, 21 Oct 2023 01:23:10 +0530 Subject: [PATCH] add correct weight --- .../fungible_assets_benchmarks.rs | 84 +++---- .../fungible_balances_benchmarks.rs | 107 ++++----- .../generic_benchmarks.rs | 220 +++++++----------- 3 files changed, 164 insertions(+), 247 deletions(-) diff --git a/runtime/shibuya/src/weights/xcm_instruction_benchmarks/fungible_assets_benchmarks.rs b/runtime/shibuya/src/weights/xcm_instruction_benchmarks/fungible_assets_benchmarks.rs index 937db8c28a..dae5969057 100644 --- a/runtime/shibuya/src/weights/xcm_instruction_benchmarks/fungible_assets_benchmarks.rs +++ b/runtime/shibuya/src/weights/xcm_instruction_benchmarks/fungible_assets_benchmarks.rs @@ -1,3 +1,4 @@ + // This file is part of Astar. // Copyright (C) 2019-2023 Stake Technologies Pte.Ltd. @@ -16,44 +17,39 @@ // You should have received a copy of the GNU General Public License // along with Astar. If not, see . -//! Autogenerated weights for `astar_xcm_benchmarks::fungible::assets` +//! Autogenerated weights for astar_xcm_benchmarks::fungible::assets //! //! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev -//! DATE: 2023-10-18, STEPS: `50`, REPEAT: `1`, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! DATE: 2023-10-20, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` //! WORST CASE MAP SIZE: `1000000` -//! HOSTNAME: `Deepanshu.local`, CPU: `` +//! HOSTNAME: `devserver-01`, CPU: `Intel(R) Xeon(R) E-2236 CPU @ 3.40GHz` //! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("shibuya-dev"), DB CACHE: 1024 // Executed Command: // ./target/release/astar-collator // benchmark // pallet -// --chain -// shibuya-dev +// --chain=shibuya-dev +// --steps=50 +// --repeat=20 +// --pallet=astar_xcm_benchmarks::fungible::assets +// --extrinsic=* // --execution=wasm // --wasm-execution=compiled -// --pallet -// astar_xcm_benchmarks::fungible::assets -// --extrinsic -// * -// --steps -// 50 -// --repeat -// 1 -// --output -// pallets/transfer-weight.rs +// --heap-pages=4096 +// --output=./benchmark-results/shibuya-dev/xcm_benchmarks_fungible_assets_weights.rs +// --template=./scripts/templates/weight-template.hbs #![cfg_attr(rustfmt, rustfmt_skip)] #![allow(unused_parens)] #![allow(unused_imports)] -#![allow(missing_docs)] -use frame_support::{traits::Get, weights::Weight}; +use frame_support::{traits::Get, weights::{Weight, constants::RocksDbWeight}}; use core::marker::PhantomData; -/// Weight functions for `astar_xcm_benchmarks::fungible::assets`. +/// Weights for astar_xcm_benchmarks::fungible::assets using the Substrate node and recommended hardware. pub struct WeightInfo(PhantomData); -impl WeightInfo { +impl WeightInfo { /// Storage: XcAssetConfig AssetLocationToId (r:1 w:0) /// Proof Skipped: XcAssetConfig AssetLocationToId (max_values: None, max_size: None, mode: Measured) /// Storage: Assets Asset (r:1 w:1) @@ -68,11 +64,10 @@ impl WeightInfo { // Proof Size summary in bytes: // Measured: `688` // Estimated: `4153` - // Minimum execution time: 116_000_000 picoseconds. - Weight::from_parts(116_000_000, 0) - .saturating_add(Weight::from_parts(0, 4153)) - .saturating_add(T::DbWeight::get().reads(5)) - .saturating_add(T::DbWeight::get().writes(3)) + // Minimum execution time: 48_407_000 picoseconds. + Weight::from_parts(48_710_000, 4153) + .saturating_add(T::DbWeight::get().reads(5_u64)) + .saturating_add(T::DbWeight::get().writes(3_u64)) } /// Storage: XcAssetConfig AssetLocationToId (r:1 w:0) /// Proof Skipped: XcAssetConfig AssetLocationToId (max_values: None, max_size: None, mode: Measured) @@ -84,11 +79,10 @@ impl WeightInfo { // Proof Size summary in bytes: // Measured: `622` // Estimated: `6232` - // Minimum execution time: 107_000_000 picoseconds. - Weight::from_parts(107_000_000, 0) - .saturating_add(Weight::from_parts(0, 6232)) - .saturating_add(T::DbWeight::get().reads(4)) - .saturating_add(T::DbWeight::get().writes(3)) + // Minimum execution time: 43_069_000 picoseconds. + Weight::from_parts(44_006_000, 6232) + .saturating_add(T::DbWeight::get().reads(4_u64)) + .saturating_add(T::DbWeight::get().writes(3_u64)) } /// Storage: XcAssetConfig AssetLocationToId (r:1 w:0) /// Proof Skipped: XcAssetConfig AssetLocationToId (max_values: None, max_size: None, mode: Measured) @@ -112,11 +106,10 @@ impl WeightInfo { // Proof Size summary in bytes: // Measured: `836` // Estimated: `6232` - // Minimum execution time: 151_000_000 picoseconds. - Weight::from_parts(151_000_000, 0) - .saturating_add(Weight::from_parts(0, 6232)) - .saturating_add(T::DbWeight::get().reads(10)) - .saturating_add(T::DbWeight::get().writes(5)) + // Minimum execution time: 68_124_000 picoseconds. + Weight::from_parts(68_800_000, 6232) + .saturating_add(T::DbWeight::get().reads(10_u64)) + .saturating_add(T::DbWeight::get().writes(5_u64)) } /// Storage: Benchmark Override (r:0 w:0) /// Proof Skipped: Benchmark Override (max_values: None, max_size: None, mode: Measured) @@ -126,7 +119,6 @@ impl WeightInfo { // Estimated: `0` // Minimum execution time: 18_446_744_073_709_551_000 picoseconds. Weight::from_parts(18_446_744_073_709_551_000, 0) - .saturating_add(Weight::from_parts(0, 0)) } /// Storage: XcAssetConfig AssetLocationToId (r:1 w:0) /// Proof Skipped: XcAssetConfig AssetLocationToId (max_values: None, max_size: None, mode: Measured) @@ -140,11 +132,10 @@ impl WeightInfo { // Proof Size summary in bytes: // Measured: `424` // Estimated: `3889` - // Minimum execution time: 79_000_000 picoseconds. - Weight::from_parts(79_000_000, 0) - .saturating_add(Weight::from_parts(0, 3889)) - .saturating_add(T::DbWeight::get().reads(4)) - .saturating_add(T::DbWeight::get().writes(3)) + // Minimum execution time: 37_158_000 picoseconds. + Weight::from_parts(37_598_000, 3889) + .saturating_add(T::DbWeight::get().reads(4_u64)) + .saturating_add(T::DbWeight::get().writes(3_u64)) } /// Storage: XcAssetConfig AssetLocationToId (r:1 w:0) /// Proof Skipped: XcAssetConfig AssetLocationToId (max_values: None, max_size: None, mode: Measured) @@ -170,11 +161,10 @@ impl WeightInfo { // Proof Size summary in bytes: // Measured: `638` // Estimated: `4103` - // Minimum execution time: 121_000_000 picoseconds. - Weight::from_parts(121_000_000, 0) - .saturating_add(Weight::from_parts(0, 4103)) - .saturating_add(T::DbWeight::get().reads(10)) - .saturating_add(T::DbWeight::get().writes(5)) + // Minimum execution time: 61_240_000 picoseconds. + Weight::from_parts(61_987_000, 4103) + .saturating_add(T::DbWeight::get().reads(10_u64)) + .saturating_add(T::DbWeight::get().writes(5_u64)) } /// Storage: Benchmark Override (r:0 w:0) /// Proof Skipped: Benchmark Override (max_values: None, max_size: None, mode: Measured) @@ -184,9 +174,9 @@ impl WeightInfo { // Estimated: `0` // Minimum execution time: 18_446_744_073_709_551_000 picoseconds. Weight::from_parts(18_446_744_073_709_551_000, 0) - .saturating_add(Weight::from_parts(0, 0)) } - pub(crate) fn reserve_asset_deposited() -> Weight { + + pub(crate) fn reserve_asset_deposited() -> Weight { // This instruction is a no-op for PoV (no storage access) Weight::from_parts(200_000_000 as u64, 0) } diff --git a/runtime/shibuya/src/weights/xcm_instruction_benchmarks/fungible_balances_benchmarks.rs b/runtime/shibuya/src/weights/xcm_instruction_benchmarks/fungible_balances_benchmarks.rs index b8903aff93..7369c496ca 100644 --- a/runtime/shibuya/src/weights/xcm_instruction_benchmarks/fungible_balances_benchmarks.rs +++ b/runtime/shibuya/src/weights/xcm_instruction_benchmarks/fungible_balances_benchmarks.rs @@ -54,48 +54,36 @@ use core::marker::PhantomData; /// Weight functions for `astar_xcm_benchmarks::fungible::assets`. pub struct WeightInfo(PhantomData); impl WeightInfo { - /// Storage: XcAssetConfig AssetLocationToId (r:1 w:0) - /// Proof Skipped: XcAssetConfig AssetLocationToId (max_values: None, max_size: None, mode: Measured) - /// Storage: Assets Asset (r:1 w:1) - /// Proof: Assets Asset (max_values: None, max_size: Some(222), added: 2697, mode: MaxEncodedLen) - /// Storage: Assets Account (r:1 w:1) - /// Proof: Assets Account (max_values: None, max_size: Some(146), added: 2621, mode: MaxEncodedLen) /// Storage: System Account (r:1 w:1) /// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen) /// Storage: UnifiedAccounts NativeToEvm (r:1 w:0) /// Proof: UnifiedAccounts NativeToEvm (max_values: None, max_size: Some(68), added: 2543, mode: MaxEncodedLen) pub(crate) fn withdraw_asset() -> Weight { // Proof Size summary in bytes: - // Measured: `688` - // Estimated: `4153` - // Minimum execution time: 116_000_000 picoseconds. - Weight::from_parts(116_000_000, 0) - .saturating_add(Weight::from_parts(0, 4153)) - .saturating_add(T::DbWeight::get().reads(5)) - .saturating_add(T::DbWeight::get().writes(3)) + // Measured: `182` + // Estimated: `3593` + // Minimum execution time: 29_196_000 picoseconds. + Weight::from_parts(29_523_000, 3593) + .saturating_add(T::DbWeight::get().reads(2_u64)) + .saturating_add(T::DbWeight::get().writes(1_u64)) } - /// Storage: XcAssetConfig AssetLocationToId (r:1 w:0) - /// Proof Skipped: XcAssetConfig AssetLocationToId (max_values: None, max_size: None, mode: Measured) - /// Storage: Assets Asset (r:1 w:1) - /// Proof: Assets Asset (max_values: None, max_size: Some(222), added: 2697, mode: MaxEncodedLen) - /// Storage: Assets Account (r:2 w:2) - /// Proof: Assets Account (max_values: None, max_size: Some(146), added: 2621, mode: MaxEncodedLen) + /// Storage: System Account (r:2 w:2) + /// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen) + /// Storage: UnifiedAccounts NativeToEvm (r:1 w:0) + /// Proof: UnifiedAccounts NativeToEvm (max_values: None, max_size: Some(68), added: 2543, mode: MaxEncodedLen) pub(crate) fn transfer_asset() -> Weight { // Proof Size summary in bytes: - // Measured: `622` - // Estimated: `6232` - // Minimum execution time: 107_000_000 picoseconds. - Weight::from_parts(107_000_000, 0) - .saturating_add(Weight::from_parts(0, 6232)) - .saturating_add(T::DbWeight::get().reads(4)) - .saturating_add(T::DbWeight::get().writes(3)) + // Measured: `182` + // Estimated: `6196` + // Minimum execution time: 51_481_000 picoseconds. + Weight::from_parts(52_599_000, 6196) + .saturating_add(T::DbWeight::get().reads(3_u64)) + .saturating_add(T::DbWeight::get().writes(2_u64)) } - /// Storage: XcAssetConfig AssetLocationToId (r:1 w:0) - /// Proof Skipped: XcAssetConfig AssetLocationToId (max_values: None, max_size: None, mode: Measured) - /// Storage: Assets Asset (r:1 w:1) - /// Proof: Assets Asset (max_values: None, max_size: Some(222), added: 2697, mode: MaxEncodedLen) - /// Storage: Assets Account (r:2 w:2) - /// Proof: Assets Account (max_values: None, max_size: Some(146), added: 2621, mode: MaxEncodedLen) + /// Storage: System Account (r:2 w:2) + /// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen) + /// Storage: UnifiedAccounts NativeToEvm (r:1 w:0) + /// Proof: UnifiedAccounts NativeToEvm (max_values: None, max_size: Some(68), added: 2543, mode: MaxEncodedLen) /// Storage: ParachainInfo ParachainId (r:1 w:0) /// Proof: ParachainInfo ParachainId (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen) /// Storage: PolkadotXcm SupportedVersion (r:1 w:0) @@ -110,13 +98,12 @@ impl WeightInfo { /// Proof Skipped: ParachainSystem PendingUpwardMessages (max_values: Some(1), max_size: None, mode: Measured) pub(crate) fn transfer_reserve_asset() -> Weight { // Proof Size summary in bytes: - // Measured: `836` - // Estimated: `6232` - // Minimum execution time: 151_000_000 picoseconds. - Weight::from_parts(151_000_000, 0) - .saturating_add(Weight::from_parts(0, 6232)) - .saturating_add(T::DbWeight::get().reads(10)) - .saturating_add(T::DbWeight::get().writes(5)) + // Measured: `396` + // Estimated: `6196` + // Minimum execution time: 74_937_000 picoseconds. + Weight::from_parts(75_528_000, 6196) + .saturating_add(T::DbWeight::get().reads(9_u64)) + .saturating_add(T::DbWeight::get().writes(4_u64)) } /// Storage: Benchmark Override (r:0 w:0) /// Proof Skipped: Benchmark Override (max_values: None, max_size: None, mode: Measured) @@ -126,32 +113,18 @@ impl WeightInfo { // Estimated: `0` // Minimum execution time: 18_446_744_073_709_551_000 picoseconds. Weight::from_parts(18_446_744_073_709_551_000, 0) - .saturating_add(Weight::from_parts(0, 0)) } - /// Storage: XcAssetConfig AssetLocationToId (r:1 w:0) - /// Proof Skipped: XcAssetConfig AssetLocationToId (max_values: None, max_size: None, mode: Measured) - /// Storage: Assets Asset (r:1 w:1) - /// Proof: Assets Asset (max_values: None, max_size: Some(222), added: 2697, mode: MaxEncodedLen) - /// Storage: Assets Account (r:1 w:1) - /// Proof: Assets Account (max_values: None, max_size: Some(146), added: 2621, mode: MaxEncodedLen) /// Storage: System Account (r:1 w:1) /// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen) pub(crate) fn deposit_asset() -> Weight { // Proof Size summary in bytes: - // Measured: `424` - // Estimated: `3889` - // Minimum execution time: 79_000_000 picoseconds. - Weight::from_parts(79_000_000, 0) - .saturating_add(Weight::from_parts(0, 3889)) - .saturating_add(T::DbWeight::get().reads(4)) - .saturating_add(T::DbWeight::get().writes(3)) + // Measured: `0` + // Estimated: `3593` + // Minimum execution time: 25_946_000 picoseconds. + Weight::from_parts(26_173_000, 3593) + .saturating_add(T::DbWeight::get().reads(1_u64)) + .saturating_add(T::DbWeight::get().writes(1_u64)) } - /// Storage: XcAssetConfig AssetLocationToId (r:1 w:0) - /// Proof Skipped: XcAssetConfig AssetLocationToId (max_values: None, max_size: None, mode: Measured) - /// Storage: Assets Asset (r:1 w:1) - /// Proof: Assets Asset (max_values: None, max_size: Some(222), added: 2697, mode: MaxEncodedLen) - /// Storage: Assets Account (r:1 w:1) - /// Proof: Assets Account (max_values: None, max_size: Some(146), added: 2621, mode: MaxEncodedLen) /// Storage: System Account (r:1 w:1) /// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen) /// Storage: ParachainInfo ParachainId (r:1 w:0) @@ -168,13 +141,12 @@ impl WeightInfo { /// Proof Skipped: ParachainSystem PendingUpwardMessages (max_values: Some(1), max_size: None, mode: Measured) pub(crate) fn deposit_reserve_asset() -> Weight { // Proof Size summary in bytes: - // Measured: `638` - // Estimated: `4103` - // Minimum execution time: 121_000_000 picoseconds. - Weight::from_parts(121_000_000, 0) - .saturating_add(Weight::from_parts(0, 4103)) - .saturating_add(T::DbWeight::get().reads(10)) - .saturating_add(T::DbWeight::get().writes(5)) + // Measured: `214` + // Estimated: `3679` + // Minimum execution time: 51_389_000 picoseconds. + Weight::from_parts(51_915_000, 3679) + .saturating_add(T::DbWeight::get().reads(7_u64)) + .saturating_add(T::DbWeight::get().writes(3_u64)) } /// Storage: Benchmark Override (r:0 w:0) /// Proof Skipped: Benchmark Override (max_values: None, max_size: None, mode: Measured) @@ -184,9 +156,8 @@ impl WeightInfo { // Estimated: `0` // Minimum execution time: 18_446_744_073_709_551_000 picoseconds. Weight::from_parts(18_446_744_073_709_551_000, 0) - .saturating_add(Weight::from_parts(0, 0)) } - + pub(crate) fn reserve_asset_deposited() -> Weight { // This instruction is a no-op for PoV (no storage access) Weight::from_parts(200_000_000 as u64, 0) diff --git a/runtime/shibuya/src/weights/xcm_instruction_benchmarks/generic_benchmarks.rs b/runtime/shibuya/src/weights/xcm_instruction_benchmarks/generic_benchmarks.rs index 4742fba5c1..174dd56875 100644 --- a/runtime/shibuya/src/weights/xcm_instruction_benchmarks/generic_benchmarks.rs +++ b/runtime/shibuya/src/weights/xcm_instruction_benchmarks/generic_benchmarks.rs @@ -16,42 +16,38 @@ // You should have received a copy of the GNU General Public License // along with Astar. If not, see . -//! Autogenerated weights for `astar_xcm_benchmarks::generic` + +//! Autogenerated weights for astar_xcm_benchmarks::generic //! //! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev -//! DATE: 2023-10-16, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! DATE: 2023-10-20, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` //! WORST CASE MAP SIZE: `1000000` -//! HOSTNAME: `Deepanshu`, CPU: `` +//! HOSTNAME: `devserver-01`, CPU: `Intel(R) Xeon(R) E-2236 CPU @ 3.40GHz` //! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("shibuya-dev"), DB CACHE: 1024 // Executed Command: // ./target/release/astar-collator // benchmark // pallet -// --chain -// shibuya-dev +// --chain=shibuya-dev +// --steps=50 +// --repeat=20 +// --pallet=astar_xcm_benchmarks::generic +// --extrinsic=* // --execution=wasm // --wasm-execution=compiled -// --pallet -// astar_xcm_benchmarks::generic -// --extrinsic -// * -// --steps -// 50 -// --repeat -// 20 -// --output -// pallets/transfer-weight.rs +// --heap-pages=4096 +// --output=./benchmark-results/shibuya-dev/xcm_benchmarks_generic_weights.rs +// --template=./scripts/templates/weight-template.hbs #![cfg_attr(rustfmt, rustfmt_skip)] #![allow(unused_parens)] #![allow(unused_imports)] -#![allow(missing_docs)] -use frame_support::{traits::Get, weights::Weight}; +use frame_support::{traits::Get, weights::{Weight, constants::RocksDbWeight}}; use core::marker::PhantomData; -/// Weight functions for `astar_xcm_benchmarks::generic`. +/// Weights for astar_xcm_benchmarks::generic using the Substrate node and recommended hardware. pub struct WeightInfo(PhantomData); impl WeightInfo { /// Storage: ParachainInfo ParachainId (r:1 w:0) @@ -70,19 +66,17 @@ impl WeightInfo { // Proof Size summary in bytes: // Measured: `214` // Estimated: `3679` - // Minimum execution time: 313_000_000 picoseconds. - Weight::from_parts(324_000_000, 0) - .saturating_add(Weight::from_parts(0, 3679)) - .saturating_add(T::DbWeight::get().reads(6)) - .saturating_add(T::DbWeight::get().writes(2)) + // Minimum execution time: 367_936_000 picoseconds. + Weight::from_parts(369_906_000, 3679) + .saturating_add(T::DbWeight::get().reads(6_u64)) + .saturating_add(T::DbWeight::get().writes(2_u64)) } pub(crate) fn buy_execution() -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 42_000_000 picoseconds. - Weight::from_parts(43_000_000, 0) - .saturating_add(Weight::from_parts(0, 0)) + // Minimum execution time: 48_101_000 picoseconds. + Weight::from_parts(48_508_000, 0) } /// Storage: PolkadotXcm Queries (r:1 w:0) /// Proof Skipped: PolkadotXcm Queries (max_values: None, max_size: None, mode: Measured) @@ -90,66 +84,58 @@ impl WeightInfo { // Proof Size summary in bytes: // Measured: `69` // Estimated: `3534` - // Minimum execution time: 12_000_000 picoseconds. - Weight::from_parts(12_000_000, 0) - .saturating_add(Weight::from_parts(0, 3534)) - .saturating_add(T::DbWeight::get().reads(1)) + // Minimum execution time: 11_817_000 picoseconds. + Weight::from_parts(12_036_000, 3534) + .saturating_add(T::DbWeight::get().reads(1_u64)) } pub(crate) fn transact() -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 11_000_000 picoseconds. - Weight::from_parts(12_000_000, 0) - .saturating_add(Weight::from_parts(0, 0)) + // Minimum execution time: 11_443_000 picoseconds. + Weight::from_parts(11_718_000, 0) } pub(crate) fn refund_surplus() -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 4_000_000 picoseconds. - Weight::from_parts(4_000_000, 0) - .saturating_add(Weight::from_parts(0, 0)) + // Minimum execution time: 3_771_000 picoseconds. + Weight::from_parts(3_878_000, 0) } pub(crate) fn set_error_handler() -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 2_000_000 picoseconds. - Weight::from_parts(3_000_000, 0) - .saturating_add(Weight::from_parts(0, 0)) + // Minimum execution time: 2_643_000 picoseconds. + Weight::from_parts(2_790_000, 0) } pub(crate) fn set_appendix() -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 3_000_000 picoseconds. - Weight::from_parts(3_000_000, 0) - .saturating_add(Weight::from_parts(0, 0)) + // Minimum execution time: 2_615_000 picoseconds. + Weight::from_parts(2_686_000, 0) } pub(crate) fn clear_error() -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 3_000_000 picoseconds. - Weight::from_parts(3_000_000, 0) - .saturating_add(Weight::from_parts(0, 0)) + // Minimum execution time: 2_541_000 picoseconds. + Weight::from_parts(2_678_000, 0) } pub(crate) fn descend_origin() -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 3_000_000 picoseconds. - Weight::from_parts(4_000_000, 0) - .saturating_add(Weight::from_parts(0, 0)) + // Minimum execution time: 3_485_000 picoseconds. + Weight::from_parts(3_604_000, 0) } pub(crate) fn clear_origin() -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 2_000_000 picoseconds. - Weight::from_parts(3_000_000, 0) - .saturating_add(Weight::from_parts(0, 0)) + // Minimum execution time: 2_599_000 picoseconds. + Weight::from_parts(2_719_000, 0) } /// Storage: ParachainInfo ParachainId (r:1 w:0) /// Proof: ParachainInfo ParachainId (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen) @@ -167,11 +153,10 @@ impl WeightInfo { // Proof Size summary in bytes: // Measured: `214` // Estimated: `3679` - // Minimum execution time: 26_000_000 picoseconds. - Weight::from_parts(27_000_000, 0) - .saturating_add(Weight::from_parts(0, 3679)) - .saturating_add(T::DbWeight::get().reads(6)) - .saturating_add(T::DbWeight::get().writes(2)) + // Minimum execution time: 26_327_000 picoseconds. + Weight::from_parts(26_810_000, 3679) + .saturating_add(T::DbWeight::get().reads(6_u64)) + .saturating_add(T::DbWeight::get().writes(2_u64)) } /// Storage: PolkadotXcm AssetTraps (r:1 w:1) /// Proof Skipped: PolkadotXcm AssetTraps (max_values: None, max_size: None, mode: Measured) @@ -179,19 +164,17 @@ impl WeightInfo { // Proof Size summary in bytes: // Measured: `126` // Estimated: `3591` - // Minimum execution time: 16_000_000 picoseconds. - Weight::from_parts(17_000_000, 0) - .saturating_add(Weight::from_parts(0, 3591)) - .saturating_add(T::DbWeight::get().reads(1)) - .saturating_add(T::DbWeight::get().writes(1)) + // Minimum execution time: 15_575_000 picoseconds. + Weight::from_parts(15_829_000, 3591) + .saturating_add(T::DbWeight::get().reads(1_u64)) + .saturating_add(T::DbWeight::get().writes(1_u64)) } pub(crate) fn trap() -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 3_000_000 picoseconds. - Weight::from_parts(3_000_000, 0) - .saturating_add(Weight::from_parts(0, 0)) + // Minimum execution time: 2_551_000 picoseconds. + Weight::from_parts(2_648_000, 0) } /// Storage: PolkadotXcm VersionNotifyTargets (r:1 w:1) /// Proof Skipped: PolkadotXcm VersionNotifyTargets (max_values: None, max_size: None, mode: Measured) @@ -209,11 +192,10 @@ impl WeightInfo { // Proof Size summary in bytes: // Measured: `111` // Estimated: `3576` - // Minimum execution time: 29_000_000 picoseconds. - Weight::from_parts(29_000_000, 0) - .saturating_add(Weight::from_parts(0, 3576)) - .saturating_add(T::DbWeight::get().reads(6)) - .saturating_add(T::DbWeight::get().writes(3)) + // Minimum execution time: 26_081_000 picoseconds. + Weight::from_parts(26_533_000, 3576) + .saturating_add(T::DbWeight::get().reads(6_u64)) + .saturating_add(T::DbWeight::get().writes(3_u64)) } /// Storage: PolkadotXcm VersionNotifyTargets (r:0 w:1) /// Proof Skipped: PolkadotXcm VersionNotifyTargets (max_values: None, max_size: None, mode: Measured) @@ -221,10 +203,9 @@ impl WeightInfo { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 5_000_000 picoseconds. - Weight::from_parts(5_000_000, 0) - .saturating_add(Weight::from_parts(0, 0)) - .saturating_add(T::DbWeight::get().writes(1)) + // Minimum execution time: 4_433_000 picoseconds. + Weight::from_parts(4_546_000, 0) + .saturating_add(T::DbWeight::get().writes(1_u64)) } /// Storage: ParachainInfo ParachainId (r:1 w:0) /// Proof: ParachainInfo ParachainId (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen) @@ -242,51 +223,45 @@ impl WeightInfo { // Proof Size summary in bytes: // Measured: `214` // Estimated: `3679` - // Minimum execution time: 339_000_000 picoseconds. - Weight::from_parts(340_000_000, 0) - .saturating_add(Weight::from_parts(0, 3679)) - .saturating_add(T::DbWeight::get().reads(6)) - .saturating_add(T::DbWeight::get().writes(2)) + // Minimum execution time: 415_251_000 picoseconds. + Weight::from_parts(417_527_000, 3679) + .saturating_add(T::DbWeight::get().reads(6_u64)) + .saturating_add(T::DbWeight::get().writes(2_u64)) } pub(crate) fn burn_asset() -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 109_000_000 picoseconds. - Weight::from_parts(110_000_000, 0) - .saturating_add(Weight::from_parts(0, 0)) + // Minimum execution time: 118_820_000 picoseconds. + Weight::from_parts(121_105_000, 0) } pub(crate) fn expect_asset() -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 19_000_000 picoseconds. - Weight::from_parts(20_000_000, 0) - .saturating_add(Weight::from_parts(0, 0)) + // Minimum execution time: 9_352_000 picoseconds. + Weight::from_parts(9_648_000, 0) } pub(crate) fn expect_origin() -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 3_000_000 picoseconds. - Weight::from_parts(3_000_000, 0) - .saturating_add(Weight::from_parts(0, 0)) + // Minimum execution time: 2_700_000 picoseconds. + Weight::from_parts(2_789_000, 0) } pub(crate) fn expect_error() -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 3_000_000 picoseconds. - Weight::from_parts(3_000_000, 0) - .saturating_add(Weight::from_parts(0, 0)) + // Minimum execution time: 2_552_000 picoseconds. + Weight::from_parts(2_654_000, 0) } pub(crate) fn expect_transact_status() -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 3_000_000 picoseconds. - Weight::from_parts(3_000_000, 0) - .saturating_add(Weight::from_parts(0, 0)) + // Minimum execution time: 2_693_000 picoseconds. + Weight::from_parts(2_822_000, 0) } /// Storage: ParachainInfo ParachainId (r:1 w:0) /// Proof: ParachainInfo ParachainId (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen) @@ -304,19 +279,17 @@ impl WeightInfo { // Proof Size summary in bytes: // Measured: `214` // Estimated: `3679` - // Minimum execution time: 33_000_000 picoseconds. - Weight::from_parts(34_000_000, 0) - .saturating_add(Weight::from_parts(0, 3679)) - .saturating_add(T::DbWeight::get().reads(6)) - .saturating_add(T::DbWeight::get().writes(2)) + // Minimum execution time: 31_400_000 picoseconds. + Weight::from_parts(31_951_000, 3679) + .saturating_add(T::DbWeight::get().reads(6_u64)) + .saturating_add(T::DbWeight::get().writes(2_u64)) } pub(crate) fn expect_pallet() -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 9_000_000 picoseconds. - Weight::from_parts(9_000_000, 0) - .saturating_add(Weight::from_parts(0, 0)) + // Minimum execution time: 6_829_000 picoseconds. + Weight::from_parts(6_963_000, 0) } /// Storage: ParachainInfo ParachainId (r:1 w:0) /// Proof: ParachainInfo ParachainId (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen) @@ -334,51 +307,45 @@ impl WeightInfo { // Proof Size summary in bytes: // Measured: `214` // Estimated: `3679` - // Minimum execution time: 26_000_000 picoseconds. - Weight::from_parts(27_000_000, 0) - .saturating_add(Weight::from_parts(0, 3679)) - .saturating_add(T::DbWeight::get().reads(6)) - .saturating_add(T::DbWeight::get().writes(2)) + // Minimum execution time: 26_405_000 picoseconds. + Weight::from_parts(27_466_000, 3679) + .saturating_add(T::DbWeight::get().reads(6_u64)) + .saturating_add(T::DbWeight::get().writes(2_u64)) } pub(crate) fn clear_transact_status() -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 3_000_000 picoseconds. - Weight::from_parts(3_000_000, 0) - .saturating_add(Weight::from_parts(0, 0)) + // Minimum execution time: 2_569_000 picoseconds. + Weight::from_parts(2_691_000, 0) } pub(crate) fn set_topic() -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 3_000_000 picoseconds. - Weight::from_parts(3_000_000, 0) - .saturating_add(Weight::from_parts(0, 0)) + // Minimum execution time: 2_542_000 picoseconds. + Weight::from_parts(2_648_000, 0) } pub(crate) fn clear_topic() -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 2_000_000 picoseconds. - Weight::from_parts(3_000_000, 0) - .saturating_add(Weight::from_parts(0, 0)) + // Minimum execution time: 2_511_000 picoseconds. + Weight::from_parts(2_634_000, 0) } pub(crate) fn set_fees_mode() -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 3_000_000 picoseconds. - Weight::from_parts(3_000_000, 0) - .saturating_add(Weight::from_parts(0, 0)) + // Minimum execution time: 2_519_000 picoseconds. + Weight::from_parts(2_619_000, 0) } pub(crate) fn unpaid_execution() -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 3_000_000 picoseconds. - Weight::from_parts(3_000_000, 0) - .saturating_add(Weight::from_parts(0, 0)) + // Minimum execution time: 2_695_000 picoseconds. + Weight::from_parts(2_828_000, 0) } /// Storage: Benchmark Override (r:0 w:0) /// Proof Skipped: Benchmark Override (max_values: None, max_size: None, mode: Measured) @@ -388,7 +355,6 @@ impl WeightInfo { // Estimated: `0` // Minimum execution time: 18_446_744_073_709_551_000 picoseconds. Weight::from_parts(18_446_744_073_709_551_000, 0) - .saturating_add(Weight::from_parts(0, 0)) } /// Storage: Benchmark Override (r:0 w:0) /// Proof Skipped: Benchmark Override (max_values: None, max_size: None, mode: Measured) @@ -398,7 +364,6 @@ impl WeightInfo { // Estimated: `0` // Minimum execution time: 18_446_744_073_709_551_000 picoseconds. Weight::from_parts(18_446_744_073_709_551_000, 0) - .saturating_add(Weight::from_parts(0, 0)) } /// Storage: Benchmark Override (r:0 w:0) /// Proof Skipped: Benchmark Override (max_values: None, max_size: None, mode: Measured) @@ -408,7 +373,6 @@ impl WeightInfo { // Estimated: `0` // Minimum execution time: 18_446_744_073_709_551_000 picoseconds. Weight::from_parts(18_446_744_073_709_551_000, 0) - .saturating_add(Weight::from_parts(0, 0)) } /// Storage: Benchmark Override (r:0 w:0) /// Proof Skipped: Benchmark Override (max_values: None, max_size: None, mode: Measured) @@ -418,7 +382,6 @@ impl WeightInfo { // Estimated: `0` // Minimum execution time: 18_446_744_073_709_551_000 picoseconds. Weight::from_parts(18_446_744_073_709_551_000, 0) - .saturating_add(Weight::from_parts(0, 0)) } /// Storage: Benchmark Override (r:0 w:0) /// Proof Skipped: Benchmark Override (max_values: None, max_size: None, mode: Measured) @@ -428,7 +391,6 @@ impl WeightInfo { // Estimated: `0` // Minimum execution time: 18_446_744_073_709_551_000 picoseconds. Weight::from_parts(18_446_744_073_709_551_000, 0) - .saturating_add(Weight::from_parts(0, 0)) } /// Storage: Benchmark Override (r:0 w:0) /// Proof Skipped: Benchmark Override (max_values: None, max_size: None, mode: Measured) @@ -438,7 +400,6 @@ impl WeightInfo { // Estimated: `0` // Minimum execution time: 18_446_744_073_709_551_000 picoseconds. Weight::from_parts(18_446_744_073_709_551_000, 0) - .saturating_add(Weight::from_parts(0, 0)) } /// Storage: Benchmark Override (r:0 w:0) /// Proof Skipped: Benchmark Override (max_values: None, max_size: None, mode: Measured) @@ -448,10 +409,5 @@ impl WeightInfo { // Estimated: `0` // Minimum execution time: 18_446_744_073_709_551_000 picoseconds. Weight::from_parts(18_446_744_073_709_551_000, 0) - .saturating_add(Weight::from_parts(0, 0)) } } - -// added here.into() in the worstcase-scenario. -// changed weightlimit to 1 for buy_execution -// what to do for transact? \ No newline at end of file