Skip to content

Commit

Permalink
asset-registry: regenerated default weights.rs
Browse files Browse the repository at this point in the history
  • Loading branch information
martinfridrich committed Oct 23, 2023
1 parent 776f9cd commit 3c485c4
Showing 1 changed file with 26 additions and 27 deletions.
53 changes: 26 additions & 27 deletions pallets/asset-registry/src/weights.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
//! Autogenerated weights for pallet_asset_registry
//!
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
//! DATE: 2023-09-13, STEPS: 10, REPEAT: 30, LOW RANGE: [], HIGH RANGE: []
//! DATE: 2023-10-23, STEPS: 10, REPEAT: 20, LOW RANGE: [], HIGH RANGE: []
//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 1024
// Executed Command:
Expand All @@ -27,7 +27,7 @@
// pallet
// --chain=dev
// --steps=10
// --repeat=30
// --repeat=20
// --execution=wasm
// --wasm-execution=compiled
// --heap-pages=4096
Expand All @@ -51,36 +51,35 @@ pub trait WeightInfo {
fn update() -> Weight;
fn register_external() -> Weight;
}

/// Weights for pallet_asset_registry using the hydraDX node and recommended hardware.
pub struct HydraWeight<T>(PhantomData<T>);

impl<T: frame_system::Config> WeightInfo for HydraWeight<T> {
// Storage: AssetRegistry Assets (r:1 w:1)
// Proof: AssetRegistry Assets (max_values: None, max_size: Some(125), added: 2600, mode: MaxEncodedLen)
// Proof: AssetRegistry Assets (max_values: None, max_size: Some(133), added: 2608, mode: MaxEncodedLen)
// Storage: AssetRegistry AssetIds (r:1 w:1)
// Proof: AssetRegistry AssetIds (max_values: None, max_size: Some(53), added: 2528, mode: MaxEncodedLen)
// Storage: AssetRegistry LocationAssets (r:1 w:1)
// Proof: AssetRegistry LocationAssets (max_values: None, max_size: Some(622), added: 3097, mode: MaxEncodedLen)
// Storage: AssetRegistry AssetLocations (r:0 w:1)
// Proof: AssetRegistry AssetLocations (max_values: None, max_size: Some(614), added: 3089, mode: MaxEncodedLen)
// Proof: AssetRegistry AssetLocations (max_values: None, max_size: Some(622), added: 3097, mode: MaxEncodedLen)
fn register() -> Weight {
// Minimum execution time: 37_420 nanoseconds.
Weight::from_ref_time(38_232_000 as u64)
// Minimum execution time: 39_013 nanoseconds.
Weight::from_ref_time(39_795_000 as u64)
.saturating_add(T::DbWeight::get().reads(3 as u64))
.saturating_add(T::DbWeight::get().writes(4 as u64))
}
// Storage: AssetRegistry Assets (r:1 w:1)
// Proof: AssetRegistry Assets (max_values: None, max_size: Some(125), added: 2600, mode: MaxEncodedLen)
// Proof: AssetRegistry Assets (max_values: None, max_size: Some(133), added: 2608, mode: MaxEncodedLen)
// Storage: AssetRegistry AssetIds (r:1 w:2)
// Proof: AssetRegistry AssetIds (max_values: None, max_size: Some(53), added: 2528, mode: MaxEncodedLen)
// Storage: AssetRegistry AssetLocations (r:1 w:1)
// Proof: AssetRegistry AssetLocations (max_values: None, max_size: Some(614), added: 3089, mode: MaxEncodedLen)
// Proof: AssetRegistry AssetLocations (max_values: None, max_size: Some(622), added: 3097, mode: MaxEncodedLen)
// Storage: AssetRegistry LocationAssets (r:0 w:1)
// Proof: AssetRegistry LocationAssets (max_values: None, max_size: Some(622), added: 3097, mode: MaxEncodedLen)
fn update() -> Weight {
// Minimum execution time: 45_094 nanoseconds.
Weight::from_ref_time(46_207_000 as u64)
// Minimum execution time: 47_430 nanoseconds.
Weight::from_ref_time(47_760_000 as u64)
.saturating_add(T::DbWeight::get().reads(3 as u64))
.saturating_add(T::DbWeight::get().writes(5 as u64))
}
Expand All @@ -91,43 +90,43 @@ impl<T: frame_system::Config> WeightInfo for HydraWeight<T> {
// Storage: AssetRegistry LocationAssets (r:1 w:1)
// Proof: AssetRegistry LocationAssets (max_values: None, max_size: Some(622), added: 3097, mode: MaxEncodedLen)
// Storage: AssetRegistry AssetLocations (r:0 w:1)
// Proof: AssetRegistry AssetLocations (max_values: None, max_size: Some(614), added: 3089, mode: MaxEncodedLen)
// Proof: AssetRegistry AssetLocations (max_values: None, max_size: Some(622), added: 3097, mode: MaxEncodedLen)
// Storage: AssetRegistry Assets (r:0 w:1)
// Proof: AssetRegistry Assets (max_values: None, max_size: Some(125), added: 2600, mode: MaxEncodedLen)
// Proof: AssetRegistry Assets (max_values: None, max_size: Some(133), added: 2608, mode: MaxEncodedLen)
fn register_external() -> Weight {
// Minimum execution time: 62_277 nanoseconds.
Weight::from_ref_time(63_068_000 as u64)
// Minimum execution time: 63_891 nanoseconds.
Weight::from_ref_time(64_922_000 as u64)
.saturating_add(T::DbWeight::get().reads(4 as u64))
.saturating_add(T::DbWeight::get().writes(6 as u64))
}
}

impl WeightInfo for () {
// Storage: AssetRegistry Assets (r:1 w:1)
// Proof: AssetRegistry Assets (max_values: None, max_size: Some(125), added: 2600, mode: MaxEncodedLen)
// Proof: AssetRegistry Assets (max_values: None, max_size: Some(133), added: 2608, mode: MaxEncodedLen)
// Storage: AssetRegistry AssetIds (r:1 w:1)
// Proof: AssetRegistry AssetIds (max_values: None, max_size: Some(53), added: 2528, mode: MaxEncodedLen)
// Storage: AssetRegistry LocationAssets (r:1 w:1)
// Proof: AssetRegistry LocationAssets (max_values: None, max_size: Some(622), added: 3097, mode: MaxEncodedLen)
// Storage: AssetRegistry AssetLocations (r:0 w:1)
// Proof: AssetRegistry AssetLocations (max_values: None, max_size: Some(614), added: 3089, mode: MaxEncodedLen)
// Proof: AssetRegistry AssetLocations (max_values: None, max_size: Some(622), added: 3097, mode: MaxEncodedLen)
fn register() -> Weight {
// Minimum execution time: 37_420 nanoseconds.
Weight::from_ref_time(38_232_000 as u64)
// Minimum execution time: 39_013 nanoseconds.
Weight::from_ref_time(39_795_000 as u64)
.saturating_add(RocksDbWeight::get().reads(3 as u64))
.saturating_add(RocksDbWeight::get().writes(4 as u64))
}
// Storage: AssetRegistry Assets (r:1 w:1)
// Proof: AssetRegistry Assets (max_values: None, max_size: Some(125), added: 2600, mode: MaxEncodedLen)
// Proof: AssetRegistry Assets (max_values: None, max_size: Some(133), added: 2608, mode: MaxEncodedLen)
// Storage: AssetRegistry AssetIds (r:1 w:2)
// Proof: AssetRegistry AssetIds (max_values: None, max_size: Some(53), added: 2528, mode: MaxEncodedLen)
// Storage: AssetRegistry AssetLocations (r:1 w:1)
// Proof: AssetRegistry AssetLocations (max_values: None, max_size: Some(614), added: 3089, mode: MaxEncodedLen)
// Proof: AssetRegistry AssetLocations (max_values: None, max_size: Some(622), added: 3097, mode: MaxEncodedLen)
// Storage: AssetRegistry LocationAssets (r:0 w:1)
// Proof: AssetRegistry LocationAssets (max_values: None, max_size: Some(622), added: 3097, mode: MaxEncodedLen)
fn update() -> Weight {
// Minimum execution time: 45_094 nanoseconds.
Weight::from_ref_time(46_207_000 as u64)
// Minimum execution time: 47_430 nanoseconds.
Weight::from_ref_time(47_760_000 as u64)
.saturating_add(RocksDbWeight::get().reads(3 as u64))
.saturating_add(RocksDbWeight::get().writes(5 as u64))
}
Expand All @@ -138,12 +137,12 @@ impl WeightInfo for () {
// Storage: AssetRegistry LocationAssets (r:1 w:1)
// Proof: AssetRegistry LocationAssets (max_values: None, max_size: Some(622), added: 3097, mode: MaxEncodedLen)
// Storage: AssetRegistry AssetLocations (r:0 w:1)
// Proof: AssetRegistry AssetLocations (max_values: None, max_size: Some(614), added: 3089, mode: MaxEncodedLen)
// Proof: AssetRegistry AssetLocations (max_values: None, max_size: Some(622), added: 3097, mode: MaxEncodedLen)
// Storage: AssetRegistry Assets (r:0 w:1)
// Proof: AssetRegistry Assets (max_values: None, max_size: Some(125), added: 2600, mode: MaxEncodedLen)
// Proof: AssetRegistry Assets (max_values: None, max_size: Some(133), added: 2608, mode: MaxEncodedLen)
fn register_external() -> Weight {
// Minimum execution time: 62_277 nanoseconds.
Weight::from_ref_time(63_068_000 as u64)
// Minimum execution time: 63_891 nanoseconds.
Weight::from_ref_time(64_922_000 as u64)
.saturating_add(RocksDbWeight::get().reads(4 as u64))
.saturating_add(RocksDbWeight::get().writes(6 as u64))
}
Expand Down

0 comments on commit 3c485c4

Please sign in to comment.