Skip to content

Commit

Permalink
update xcm weights
Browse files Browse the repository at this point in the history
  • Loading branch information
enthusiastmartin committed May 10, 2024
1 parent 1f5ae5c commit e73d49b
Showing 1 changed file with 92 additions and 78 deletions.
170 changes: 92 additions & 78 deletions runtime/basilisk/src/weights/pallet_xcm.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,43 +15,48 @@
// See the License for the specific language governing permissions and
// limitations under the License.


//! Autogenerated weights for `pallet_xcm`
//!
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
//! DATE: 2023-12-06, STEPS: `10`, REPEAT: `30`, LOW RANGE: `[]`, HIGH RANGE: `[]`
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0
//! DATE: 2024-05-10, STEPS: `50`, REPEAT: `20`, 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`
//! WASM-EXECUTION: `Compiled`, CHAIN: `None`, DB CACHE: `1024`
// Executed Command:
// target/release/basilisk
// ./target/release/basilisk
// benchmark
// pallet
// --chain=dev
// --steps=10
// --repeat=30
// --wasm-execution=compiled
// --heap-pages=4096
// --template=.maintain/pallet-weight-template-no-back.hbs
// --pallet=pallet-xcm
// --output=weights-1.1.0/pallet_xcm.rs
// --extrinsic=*
// --pallet
// pallet-xcm
// --extrinsic
// send,execute,teleport_assets,transfer_assets,force_subscribe_version_notify,force_unsubscribe_version_notify,migrate_supported_version,migrate_version_notifiers,already_notified_target,notify_current_targets,notify_target_migration_fail,migrate_version_notify_targets,migrate_and_notify_old_targets,new_query,take_response,force_xcm_version,force_default_xcm_version,force_suspension
// --heap-pages
// 4096
// --steps
// 50
// --repeat
// 20
// --template=scripts/pallet-weight-template.hbs
// --output
// weights.rs

#![cfg_attr(rustfmt, rustfmt_skip)]
#![allow(unused_parens)]
#![allow(unused_imports)]
#![allow(clippy::unnecessary_cast)]
#![allow(missing_docs)]

use frame_support::{
traits::Get,
weights::{constants::RocksDbWeight, Weight},
};
use sp_std::marker::PhantomData;
use frame_support::{traits::Get, weights::{Weight, constants::RocksDbWeight}};
use core::marker::PhantomData;

use pallet_xcm::WeightInfo;
/// Weights for `pallet_xcm`.
pub struct WeightInfo<T>(PhantomData<T>);

/// Weights for `pallet_xcm` using the Basilisk node and recommended hardware.
pub struct BasiliskWeight<T>(PhantomData<T>);

impl<T: frame_system::Config> WeightInfo for BasiliskWeight<T> {
impl<T: frame_system::Config> pallet_xcm::WeightInfo for BasiliskWeight<T> {
/// 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)
Expand All @@ -66,8 +71,8 @@ impl<T: frame_system::Config> WeightInfo for BasiliskWeight<T> {
// Proof Size summary in bytes:
// Measured: `145`
// Estimated: `3610`
// Minimum execution time: 39_075_000 picoseconds.
Weight::from_parts(39_562_000, 3610)
// Minimum execution time: 26_616_000 picoseconds.
Weight::from_parts(27_180_000, 3610)
.saturating_add(T::DbWeight::get().reads(5_u64))
.saturating_add(T::DbWeight::get().writes(2_u64))
}
Expand All @@ -89,39 +94,41 @@ impl<T: frame_system::Config> WeightInfo for BasiliskWeight<T> {
// Minimum execution time: 32_094_000 picoseconds.
Weight::from_parts(32_796_000, 1489).saturating_add(T::DbWeight::get().reads(1_u64))
}

/// Storage: `Benchmark::Override` (r:0 w:0)
/// Proof: `Benchmark::Override` (`max_values`: None, `max_size`: None, mode: `Measured`)
fn transfer_assets() -> Weight {
// 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)
}

fn execute() -> Weight {
// Proof Size summary in bytes:
// Measured: `0`
// Estimated: `0`
// Minimum execution time: 13_914_000 picoseconds.
Weight::from_parts(14_172_000, 0)
// Minimum execution time: 10_975_000 picoseconds.
Weight::from_parts(11_208_000, 0)
}
/// Storage: `PolkadotXcm::SupportedVersion` (r:0 w:1)
/// Proof: `PolkadotXcm::SupportedVersion` (`max_values`: None, `max_size`: None, mode: `Measured`)
fn force_xcm_version() -> Weight {
// Proof Size summary in bytes:
// Measured: `0`
// Estimated: `0`
// Minimum execution time: 14_572_000 picoseconds.
Weight::from_parts(14_969_000, 0).saturating_add(T::DbWeight::get().writes(1_u64))
// Minimum execution time: 10_583_000 picoseconds.
Weight::from_parts(10_942_000, 0)
.saturating_add(T::DbWeight::get().writes(1_u64))
}
/// 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 {
// Proof Size summary in bytes:
// Measured: `0`
// Estimated: `0`
// Minimum execution time: 5_151_000 picoseconds.
Weight::from_parts(5_322_000, 0).saturating_add(T::DbWeight::get().writes(1_u64))
// Minimum execution time: 3_661_000 picoseconds.
Weight::from_parts(3_796_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`)
Expand All @@ -143,8 +150,8 @@ impl<T: frame_system::Config> WeightInfo for BasiliskWeight<T> {
// Proof Size summary in bytes:
// Measured: `145`
// Estimated: `3610`
// Minimum execution time: 45_415_000 picoseconds.
Weight::from_parts(45_936_000, 3610)
// Minimum execution time: 33_604_000 picoseconds.
Weight::from_parts(34_188_000, 3610)
.saturating_add(T::DbWeight::get().reads(7_u64))
.saturating_add(T::DbWeight::get().writes(5_u64))
}
Expand All @@ -166,8 +173,8 @@ impl<T: frame_system::Config> WeightInfo for BasiliskWeight<T> {
// Proof Size summary in bytes:
// Measured: `328`
// Estimated: `3793`
// Minimum execution time: 46_012_000 picoseconds.
Weight::from_parts(46_403_000, 3793)
// Minimum execution time: 34_296_000 picoseconds.
Weight::from_parts(35_148_000, 3793)
.saturating_add(T::DbWeight::get().reads(6_u64))
.saturating_add(T::DbWeight::get().writes(4_u64))
}
Expand All @@ -177,39 +184,41 @@ impl<T: frame_system::Config> WeightInfo for BasiliskWeight<T> {
// Proof Size summary in bytes:
// Measured: `0`
// Estimated: `0`
// Minimum execution time: 5_159_000 picoseconds.
Weight::from_parts(5_314_000, 0).saturating_add(T::DbWeight::get().writes(1_u64))
// Minimum execution time: 3_806_000 picoseconds.
Weight::from_parts(4_009_000, 0)
.saturating_add(T::DbWeight::get().writes(1_u64))
}
/// Storage: `PolkadotXcm::SupportedVersion` (r:4 w:2)
/// Storage: `PolkadotXcm::SupportedVersion` (r:5 w:2)
/// Proof: `PolkadotXcm::SupportedVersion` (`max_values`: None, `max_size`: None, mode: `Measured`)
fn migrate_supported_version() -> Weight {
// Proof Size summary in bytes:
// Measured: `167`
// Estimated: `11057`
// Minimum execution time: 24_185_000 picoseconds.
Weight::from_parts(24_797_000, 11057)
.saturating_add(T::DbWeight::get().reads(4_u64))
// Measured: `125`
// Estimated: `13490`
// Minimum execution time: 24_785_000 picoseconds.
Weight::from_parts(25_370_000, 13490)
.saturating_add(T::DbWeight::get().reads(5_u64))
.saturating_add(T::DbWeight::get().writes(2_u64))
}
/// Storage: `PolkadotXcm::VersionNotifiers` (r:4 w:2)
/// Storage: `PolkadotXcm::VersionNotifiers` (r:5 w:2)
/// Proof: `PolkadotXcm::VersionNotifiers` (`max_values`: None, `max_size`: None, mode: `Measured`)
fn migrate_version_notifiers() -> Weight {
// Proof Size summary in bytes:
// Measured: `171`
// Estimated: `11061`
// Minimum execution time: 24_210_000 picoseconds.
Weight::from_parts(24_818_000, 11061)
.saturating_add(T::DbWeight::get().reads(4_u64))
// Measured: `129`
// Estimated: `13494`
// Minimum execution time: 25_057_000 picoseconds.
Weight::from_parts(25_496_000, 13494)
.saturating_add(T::DbWeight::get().reads(5_u64))
.saturating_add(T::DbWeight::get().writes(2_u64))
}
/// Storage: `PolkadotXcm::VersionNotifyTargets` (r:5 w:0)
/// Storage: `PolkadotXcm::VersionNotifyTargets` (r:6 w:0)
/// Proof: `PolkadotXcm::VersionNotifyTargets` (`max_values`: None, `max_size`: None, mode: `Measured`)
fn already_notified_target() -> Weight {
// Proof Size summary in bytes:
// Measured: `178`
// Estimated: `13543`
// Minimum execution time: 25_280_000 picoseconds.
Weight::from_parts(25_704_000, 13543).saturating_add(T::DbWeight::get().reads(5_u64))
// Estimated: `16018`
// Minimum execution time: 26_777_000 picoseconds.
Weight::from_parts(27_124_000, 16018)
.saturating_add(T::DbWeight::get().reads(6_u64))
}
/// Storage: `PolkadotXcm::VersionNotifyTargets` (r:2 w:1)
/// Proof: `PolkadotXcm::VersionNotifyTargets` (`max_values`: None, `max_size`: None, mode: `Measured`)
Expand All @@ -227,32 +236,33 @@ impl<T: frame_system::Config> WeightInfo for BasiliskWeight<T> {
// Proof Size summary in bytes:
// Measured: `212`
// Estimated: `6152`
// Minimum execution time: 41_585_000 picoseconds.
Weight::from_parts(42_032_000, 6152)
// Minimum execution time: 32_107_000 picoseconds.
Weight::from_parts(32_751_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)
/// Storage: `PolkadotXcm::VersionNotifyTargets` (r:4 w:0)
/// Proof: `PolkadotXcm::VersionNotifyTargets` (`max_values`: None, `max_size`: None, mode: `Measured`)
fn notify_target_migration_fail() -> Weight {
// Proof Size summary in bytes:
// Measured: `172`
// Estimated: `8587`
// Minimum execution time: 13_594_000 picoseconds.
Weight::from_parts(13_919_000, 8587).saturating_add(T::DbWeight::get().reads(3_u64))
// Estimated: `11062`
// Minimum execution time: 16_242_000 picoseconds.
Weight::from_parts(16_464_000, 11062)
.saturating_add(T::DbWeight::get().reads(4_u64))
}
/// Storage: `PolkadotXcm::VersionNotifyTargets` (r:4 w:2)
/// Storage: `PolkadotXcm::VersionNotifyTargets` (r:5 w:2)
/// Proof: `PolkadotXcm::VersionNotifyTargets` (`max_values`: None, `max_size`: None, mode: `Measured`)
fn migrate_version_notify_targets() -> Weight {
// Proof Size summary in bytes:
// Measured: `178`
// Estimated: `11068`
// Minimum execution time: 25_110_000 picoseconds.
Weight::from_parts(25_562_000, 11068)
.saturating_add(T::DbWeight::get().reads(4_u64))
// Measured: `136`
// Estimated: `13501`
// Minimum execution time: 25_699_000 picoseconds.
Weight::from_parts(26_369_000, 13501)
.saturating_add(T::DbWeight::get().reads(5_u64))
.saturating_add(T::DbWeight::get().writes(2_u64))
}
/// Storage: `PolkadotXcm::VersionNotifyTargets` (r:4 w:2)
/// Storage: `PolkadotXcm::VersionNotifyTargets` (r:5 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`)
Expand All @@ -266,31 +276,35 @@ impl<T: frame_system::Config> WeightInfo for BasiliskWeight<T> {
/// 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: 51_873_000 picoseconds.
Weight::from_parts(52_527_000, 11144)
.saturating_add(T::DbWeight::get().reads(9_u64))
// Measured: `212`
// Estimated: `13577`
// Minimum execution time: 43_495_000 picoseconds.
Weight::from_parts(43_962_000, 13577)
.saturating_add(T::DbWeight::get().reads(10_u64))
.saturating_add(T::DbWeight::get().writes(4_u64))
}

/// Storage: `PolkadotXcm::QueryCounter` (r:1 w:1)
/// Proof: `PolkadotXcm::QueryCounter` (`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 new_query() -> Weight {
// Proof Size summary in bytes:
// Measured: `69`
// Estimated: `1554`
// Minimum execution time: 4_930_000 picoseconds.
Weight::from_parts(5_220_000, 1554)
// Minimum execution time: 6_335_000 picoseconds.
Weight::from_parts(6_587_000, 1554)
.saturating_add(T::DbWeight::get().reads(1_u64))
.saturating_add(T::DbWeight::get().writes(2_u64))
}

/// Storage: `PolkadotXcm::Queries` (r:1 w:1)
/// Proof: `PolkadotXcm::Queries` (`max_values`: None, `max_size`: None, mode: `Measured`)
fn take_response() -> Weight {
// Proof Size summary in bytes:
// Measured: `7706`
// Estimated: `11171`
// Minimum execution time: 32_740_000 picoseconds.
Weight::from_parts(33_280_000, 11171)
// Minimum execution time: 34_563_000 picoseconds.
Weight::from_parts(35_052_000, 11171)
.saturating_add(T::DbWeight::get().reads(1_u64))
.saturating_add(T::DbWeight::get().writes(1_u64))
}
}
}

0 comments on commit e73d49b

Please sign in to comment.