Skip to content

Commit

Permalink
Add benchmarks for runtime 2900 (#2744)
Browse files Browse the repository at this point in the history
* Add benchmarks for runtime 2900

* Benchmarks secound run

for commit 36e17c7

* update rust tests accounting for new benches

* Enable Relay Data Verifier Precompile  in Moonriver and Moonbeam (#2729)

* add relay-storage-roots pallet to moonriver and moonbeam

* add tests

* Add relay-verifier precompile to moonriver and moonbeam runtimes

* add pallet precompile-benchmarks to moonriver and moonbeam

* set MaxStorageRoots to 30

* fix coverage

* Update owner of s3 upload action (#2741)

* Update owner of s3 upload action

* Using v1.0.0 instead of master

---------

Co-authored-by: timbrinded <79199034+timbrinded@users.noreply.github.com>

* add codeowners (#2740)

* add codeowners

* add github tools scripts to codeowners

github tools are used with github actions

---------

Co-authored-by: timbrinded <79199034+timbrinded@users.noreply.github.com>

* Improve release related content (#2743)

* add Moonkit to the diff in the release page body

* fix docker image tag in client release issu body

* Add Storage Cleaner Precompile (#2725)

* Add precompile to moonbase runtime

* bump precompile-utils version to avoid conflict

* update precompile

* add typescript tests

* update frontier pin

* Fix typescirpt test

* Update callable for precompile

Co-authored-by: Éloïs <c@elo.tf>

* fix format

---------

Co-authored-by: Éloïs <c@elo.tf>

* Fix benchmarks (#2733)

* fix pallet_treasury benchmarks

* fix parachain-staking benchmarks

* update frontier (#2738)

* Fix benchmarks (#2746)

* fix pallet_identity benchmarks

* removed unused moonbeam_xcm_benchmarks::weights::generic benchmarks

* update benchmarks (take 3)

* fix rust tests

* update limits for rewards limits

* increase refTime limt for block rewards distribution

---------

Co-authored-by: Ahmad Kaouk <56095276+ahmadkaouk@users.noreply.github.com>
Co-authored-by: Mario Sánchez García <66425016+mario-sangar@users.noreply.github.com>
Co-authored-by: timbrinded <79199034+timbrinded@users.noreply.github.com>
Co-authored-by: Éloïs <c@elo.tf>
Co-authored-by: Rodrigo Quelhas <22591718+RomarQ@users.noreply.github.com>
  • Loading branch information
6 people committed Apr 11, 2024
1 parent b98a11a commit 7423298
Show file tree
Hide file tree
Showing 33 changed files with 2,036 additions and 2,278 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

96 changes: 50 additions & 46 deletions runtime/common/src/weights/cumulus_pallet_xcmp_queue.rs
Expand Up @@ -13,13 +13,14 @@

// You should have received a copy of the GNU General Public License
// along with Moonbeam. If not, see <http://www.gnu.org/licenses/>.

//! Autogenerated weights for `cumulus_pallet_xcmp_queue`
//!
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
//! DATE: 2024-02-22, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0
//! DATE: 2024-04-10, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
//! WORST CASE MAP SIZE: `1000000`
//! HOSTNAME: `ip-10-0-0-176`, CPU: `Intel(R) Xeon(R) Platinum 8375C CPU @ 2.90GHz`
//! WASM-EXECUTION: `Compiled`, CHAIN: `Some("moonbase-dev")`, DB CACHE: 1024
//! WASM-EXECUTION: Compiled, CHAIN: Some("moonbase-dev"), DB CACHE: 1024

// Executed Command:
// ./target/production/moonbeam
Expand All @@ -32,17 +33,17 @@
// --extrinsic=*
// --wasm-execution=compiled
// --header=./file_header.txt
// --template=./benchmarking/frame-weight-template.hbs
// --output=./runtime/common/src/weights/

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

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

/// Weight functions for `cumulus_pallet_xcmp_queue`.
/// Weights for `cumulus_pallet_xcmp_queue`.
pub struct WeightInfo<T>(PhantomData<T>);
impl<T: frame_system::Config> cumulus_pallet_xcmp_queue::WeightInfo for WeightInfo<T> {
/// Storage: `XcmpQueue::QueueConfig` (r:1 w:1)
Expand All @@ -51,11 +52,10 @@ impl<T: frame_system::Config> cumulus_pallet_xcmp_queue::WeightInfo for WeightIn
// Proof Size summary in bytes:
// Measured: `142`
// Estimated: `1627`
// Minimum execution time: 4_825_000 picoseconds.
Weight::from_parts(5_093_000, 0)
.saturating_add(Weight::from_parts(0, 1627))
.saturating_add(T::DbWeight::get().reads(1))
.saturating_add(T::DbWeight::get().writes(1))
// Minimum execution time: 4_599_000 picoseconds.
Weight::from_parts(4_823_000, 1627)
.saturating_add(T::DbWeight::get().reads(1_u64))
.saturating_add(T::DbWeight::get().writes(1_u64))
}
/// Storage: `XcmpQueue::QueueConfig` (r:1 w:0)
/// Proof: `XcmpQueue::QueueConfig` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
Expand All @@ -66,48 +66,44 @@ impl<T: frame_system::Config> cumulus_pallet_xcmp_queue::WeightInfo for WeightIn
/// Storage: `XcmpQueue::InboundXcmpSuspended` (r:1 w:0)
/// Proof: `XcmpQueue::InboundXcmpSuspended` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
/// Storage: `MessageQueue::Pages` (r:0 w:1)
/// Proof: `MessageQueue::Pages` (`max_values`: None, `max_size`: Some(65585), added: 68060, mode: `MaxEncodedLen`)
/// Proof: `MessageQueue::Pages` (`max_values`: None, `max_size`: Some(134193), added: 136668, mode: `MaxEncodedLen`)
fn enqueue_xcmp_message() -> Weight {
// Proof Size summary in bytes:
// Measured: `148`
// Estimated: `3517`
// Minimum execution time: 11_000_000 picoseconds.
Weight::from_parts(12_000_000, 0)
.saturating_add(Weight::from_parts(0, 3517))
.saturating_add(T::DbWeight::get().reads(4))
.saturating_add(T::DbWeight::get().writes(3))
// Minimum execution time: 11_813_000 picoseconds.
Weight::from_parts(12_241_000, 3517)
.saturating_add(T::DbWeight::get().reads(4_u64))
.saturating_add(T::DbWeight::get().writes(3_u64))
}
/// Storage: `XcmpQueue::OutboundXcmpStatus` (r:1 w:1)
/// Proof: `XcmpQueue::OutboundXcmpStatus` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
fn suspend_channel() -> Weight {
// Proof Size summary in bytes:
// Measured: `142`
// Estimated: `1627`
// Minimum execution time: 4_831_000 picoseconds.
Weight::from_parts(4_988_000, 0)
.saturating_add(Weight::from_parts(0, 1627))
.saturating_add(T::DbWeight::get().reads(1))
.saturating_add(T::DbWeight::get().writes(1))
// Minimum execution time: 2_901_000 picoseconds.
Weight::from_parts(3_040_000, 1627)
.saturating_add(T::DbWeight::get().reads(1_u64))
.saturating_add(T::DbWeight::get().writes(1_u64))
}
/// Storage: `XcmpQueue::OutboundXcmpStatus` (r:1 w:1)
/// Proof: `XcmpQueue::OutboundXcmpStatus` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
fn resume_channel() -> Weight {
// Proof Size summary in bytes:
// Measured: `177`
// Estimated: `1662`
// Minimum execution time: 3_000_000 picoseconds.
Weight::from_parts(4_000_000, 0)
.saturating_add(Weight::from_parts(0, 1662))
.saturating_add(T::DbWeight::get().reads(1))
.saturating_add(T::DbWeight::get().writes(1))
// Minimum execution time: 3_742_000 picoseconds.
Weight::from_parts(3_848_000, 1662)
.saturating_add(T::DbWeight::get().reads(1_u64))
.saturating_add(T::DbWeight::get().writes(1_u64))
}
fn take_first_concatenated_xcm() -> 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: 7_580_000 picoseconds.
Weight::from_parts(7_910_000, 0)
}
/// Storage: UNKNOWN KEY `0x7b3237373ffdfeb1cab4222e3b520d6b345d8e88afa015075c945637c07e8f20` (r:1 w:1)
/// Proof: UNKNOWN KEY `0x7b3237373ffdfeb1cab4222e3b520d6b345d8e88afa015075c945637c07e8f20` (r:1 w:1)
Expand All @@ -122,29 +118,37 @@ impl<T: frame_system::Config> cumulus_pallet_xcmp_queue::WeightInfo for WeightIn
/// Storage: `XcmpQueue::InboundXcmpSuspended` (r:1 w:0)
/// Proof: `XcmpQueue::InboundXcmpSuspended` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
/// Storage: `MessageQueue::Pages` (r:0 w:1)
/// Proof: `MessageQueue::Pages` (`max_values`: None, `max_size`: Some(65585), added: 68060, mode: `MaxEncodedLen`)
/// Proof: `MessageQueue::Pages` (`max_values`: None, `max_size`: Some(134193), added: 136668, mode: `MaxEncodedLen`)
fn on_idle_good_msg() -> Weight {
// Proof Size summary in bytes:
// Measured: `65777`
// Estimated: `69242`
// Minimum execution time: 44_000_000 picoseconds.
Weight::from_parts(45_000_000, 0)
.saturating_add(Weight::from_parts(0, 69242))
.saturating_add(T::DbWeight::get().reads(6))
.saturating_add(T::DbWeight::get().writes(5))
// Measured: `134385`
// Estimated: `137850`
// Minimum execution time: 190_319_000 picoseconds.
Weight::from_parts(193_537_000, 137850)
.saturating_add(T::DbWeight::get().reads(6_u64))
.saturating_add(T::DbWeight::get().writes(5_u64))
}
/// Storage: UNKNOWN KEY `0x7b3237373ffdfeb1cab4222e3b520d6b345d8e88afa015075c945637c07e8f20` (r:1 w:1)
/// Proof: UNKNOWN KEY `0x7b3237373ffdfeb1cab4222e3b520d6b345d8e88afa015075c945637c07e8f20` (r:1 w:1)
/// Storage: UNKNOWN KEY `0x7b3237373ffdfeb1cab4222e3b520d6bedc49980ba3aa32b0a189290fd036649` (r:1 w:1)
/// Proof: UNKNOWN KEY `0x7b3237373ffdfeb1cab4222e3b520d6bedc49980ba3aa32b0a189290fd036649` (r:1 w:1)
/// Storage: `MessageQueue::BookStateFor` (r:1 w:1)
/// Proof: `MessageQueue::BookStateFor` (`max_values`: None, `max_size`: Some(52), added: 2527, mode: `MaxEncodedLen`)
/// Storage: `MessageQueue::ServiceHead` (r:1 w:1)
/// Proof: `MessageQueue::ServiceHead` (`max_values`: Some(1), `max_size`: Some(5), added: 500, mode: `MaxEncodedLen`)
/// Storage: `XcmpQueue::QueueConfig` (r:1 w:0)
/// Proof: `XcmpQueue::QueueConfig` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
/// Storage: `XcmpQueue::InboundXcmpSuspended` (r:1 w:0)
/// Proof: `XcmpQueue::InboundXcmpSuspended` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
/// Storage: `MessageQueue::Pages` (r:0 w:1)
/// Proof: `MessageQueue::Pages` (`max_values`: None, `max_size`: Some(134193), added: 136668, mode: `MaxEncodedLen`)
fn on_idle_large_msg() -> Weight {
// Proof Size summary in bytes:
// Measured: `65776`
// Estimated: `69241`
// Minimum execution time: 28_000_000 picoseconds.
Weight::from_parts(30_000_000, 0)
.saturating_add(Weight::from_parts(0, 69241))
.saturating_add(T::DbWeight::get().reads(2))
.saturating_add(T::DbWeight::get().writes(2))
// Measured: `65782`
// Estimated: `69247`
// Minimum execution time: 103_908_000 picoseconds.
Weight::from_parts(105_455_000, 69247)
.saturating_add(T::DbWeight::get().reads(6_u64))
.saturating_add(T::DbWeight::get().writes(5_u64))
}
}
146 changes: 71 additions & 75 deletions runtime/common/src/weights/pallet_asset_manager.rs
Expand Up @@ -13,16 +13,17 @@

// You should have received a copy of the GNU General Public License
// along with Moonbeam. If not, see <http://www.gnu.org/licenses/>.

//! Autogenerated weights for `pallet_asset_manager`
//!
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
//! DATE: 2023-11-01, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0
//! DATE: 2024-04-10, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
//! WORST CASE MAP SIZE: `1000000`
//! HOSTNAME: `ip-10-0-0-176`, CPU: `Intel(R) Xeon(R) Platinum 8375C CPU @ 2.90GHz`
//! EXECUTION: None, WASM-EXECUTION: Compiled, CHAIN: Some("moonbase-dev"), DB CACHE: 1024
//! WASM-EXECUTION: Compiled, CHAIN: Some("moonbase-dev"), DB CACHE: 1024

// Executed Command:
// ./target/release/moonbeam
// ./target/production/moonbeam
// benchmark
// pallet
// --chain=moonbase-dev
Expand All @@ -32,117 +33,112 @@
// --extrinsic=*
// --wasm-execution=compiled
// --header=./file_header.txt
// --template=./benchmarking/frame-weight-template.hbs
// --output=./runtime/common/src/weights/

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

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

/// Weight functions for `pallet_asset_manager`.
/// Weights for `pallet_asset_manager`.
pub struct WeightInfo<T>(PhantomData<T>);
impl<T: frame_system::Config> pallet_asset_manager::WeightInfo for WeightInfo<T> {
/// Storage: AssetManager AssetIdType (r:1 w:1)
/// Proof Skipped: AssetManager AssetIdType (max_values: None, max_size: None, mode: Measured)
/// Storage: Assets Asset (r:1 w:1)
/// Proof: Assets Asset (max_values: None, max_size: Some(174), added: 2649, mode: MaxEncodedLen)
/// Storage: Assets Metadata (r:1 w:1)
/// Proof: Assets Metadata (max_values: None, max_size: Some(152), added: 2627, mode: MaxEncodedLen)
/// Storage: AssetManager AssetTypeId (r:0 w:1)
/// Proof Skipped: AssetManager AssetTypeId (max_values: None, max_size: None, mode: Measured)
/// Storage: `AssetManager::AssetIdType` (r:1 w:1)
/// Proof: `AssetManager::AssetIdType` (`max_values`: None, `max_size`: None, mode: `Measured`)
/// Storage: `Assets::Asset` (r:1 w:1)
/// Proof: `Assets::Asset` (`max_values`: None, `max_size`: Some(174), added: 2649, mode: `MaxEncodedLen`)
/// Storage: `Assets::Metadata` (r:1 w:1)
/// Proof: `Assets::Metadata` (`max_values`: None, `max_size`: Some(152), added: 2627, mode: `MaxEncodedLen`)
/// Storage: `AssetManager::AssetTypeId` (r:0 w:1)
/// Proof: `AssetManager::AssetTypeId` (`max_values`: None, `max_size`: None, mode: `Measured`)
fn register_foreign_asset() -> Weight {
// Proof Size summary in bytes:
// Measured: `82`
// Estimated: `3639`
// Minimum execution time: 18_671_000 picoseconds.
Weight::from_parts(19_426_000, 0)
.saturating_add(Weight::from_parts(0, 3639))
.saturating_add(T::DbWeight::get().reads(3))
.saturating_add(T::DbWeight::get().writes(4))
// Minimum execution time: 29_830_000 picoseconds.
Weight::from_parts(30_736_000, 3639)
.saturating_add(T::DbWeight::get().reads(3_u64))
.saturating_add(T::DbWeight::get().writes(4_u64))
}
/// Storage: AssetManager AssetTypeId (r:1 w:0)
/// Proof Skipped: AssetManager AssetTypeId (max_values: None, max_size: None, mode: Measured)
/// Storage: AssetManager SupportedFeePaymentAssets (r:1 w:1)
/// Proof Skipped: AssetManager SupportedFeePaymentAssets (max_values: Some(1), max_size: None, mode: Measured)
/// Storage: AssetManager AssetTypeUnitsPerSecond (r:0 w:1)
/// Proof Skipped: AssetManager AssetTypeUnitsPerSecond (max_values: None, max_size: None, mode: Measured)
/// Storage: `AssetManager::AssetTypeId` (r:1 w:0)
/// Proof: `AssetManager::AssetTypeId` (`max_values`: None, `max_size`: None, mode: `Measured`)
/// Storage: `AssetManager::SupportedFeePaymentAssets` (r:1 w:1)
/// Proof: `AssetManager::SupportedFeePaymentAssets` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
/// Storage: `AssetManager::AssetTypeUnitsPerSecond` (r:0 w:1)
/// Proof: `AssetManager::AssetTypeUnitsPerSecond` (`max_values`: None, `max_size`: None, mode: `Measured`)
/// The range of component `x` is `[5, 100]`.
fn set_asset_units_per_second(x: u32, ) -> Weight {
// Proof Size summary in bytes:
// Measured: `611 + x * (9 ±0)`
// Estimated: `4000 + x * (10 ±0)`
// Minimum execution time: 13_680_000 picoseconds.
Weight::from_parts(15_643_701, 0)
.saturating_add(Weight::from_parts(0, 4000))
// Standard Error: 2_622
.saturating_add(Weight::from_parts(274_621, 0).saturating_mul(x.into()))
.saturating_add(T::DbWeight::get().reads(2))
.saturating_add(T::DbWeight::get().writes(2))
// Minimum execution time: 19_988_000 picoseconds.
Weight::from_parts(19_458_970, 4000)
// Standard Error: 2_974
.saturating_add(Weight::from_parts(773_359, 0).saturating_mul(x.into()))
.saturating_add(T::DbWeight::get().reads(2_u64))
.saturating_add(T::DbWeight::get().writes(2_u64))
.saturating_add(Weight::from_parts(0, 10).saturating_mul(x.into()))
}
/// Storage: AssetManager SupportedFeePaymentAssets (r:1 w:1)
/// Proof Skipped: AssetManager SupportedFeePaymentAssets (max_values: Some(1), max_size: None, mode: Measured)
/// Storage: AssetManager AssetIdType (r:1 w:1)
/// Proof Skipped: AssetManager AssetIdType (max_values: None, max_size: None, mode: Measured)
/// Storage: AssetManager AssetTypeUnitsPerSecond (r:1 w:2)
/// Proof Skipped: AssetManager AssetTypeUnitsPerSecond (max_values: None, max_size: None, mode: Measured)
/// Storage: AssetManager AssetTypeId (r:0 w:2)
/// Proof Skipped: AssetManager AssetTypeId (max_values: None, max_size: None, mode: Measured)
/// Storage: `AssetManager::SupportedFeePaymentAssets` (r:1 w:1)
/// Proof: `AssetManager::SupportedFeePaymentAssets` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
/// Storage: `AssetManager::AssetIdType` (r:1 w:1)
/// Proof: `AssetManager::AssetIdType` (`max_values`: None, `max_size`: None, mode: `Measured`)
/// Storage: `AssetManager::AssetTypeUnitsPerSecond` (r:1 w:2)
/// Proof: `AssetManager::AssetTypeUnitsPerSecond` (`max_values`: None, `max_size`: None, mode: `Measured`)
/// Storage: `AssetManager::AssetTypeId` (r:0 w:2)
/// Proof: `AssetManager::AssetTypeId` (`max_values`: None, `max_size`: None, mode: `Measured`)
/// The range of component `x` is `[5, 100]`.
fn change_existing_asset_type(x: u32, ) -> Weight {
// Proof Size summary in bytes:
// Measured: `926 + x * (13 ±0)`
// Estimated: `4309 + x * (15 ±0)`
// Minimum execution time: 19_784_000 picoseconds.
Weight::from_parts(23_095_890, 0)
.saturating_add(Weight::from_parts(0, 4309))
// Standard Error: 4_344
.saturating_add(Weight::from_parts(320_669, 0).saturating_mul(x.into()))
.saturating_add(T::DbWeight::get().reads(3))
.saturating_add(T::DbWeight::get().writes(6))
// Minimum execution time: 30_076_000 picoseconds.
Weight::from_parts(30_892_465, 4309)
// Standard Error: 4_039
.saturating_add(Weight::from_parts(852_893, 0).saturating_mul(x.into()))
.saturating_add(T::DbWeight::get().reads(3_u64))
.saturating_add(T::DbWeight::get().writes(6_u64))
.saturating_add(Weight::from_parts(0, 15).saturating_mul(x.into()))
}
/// Storage: AssetManager SupportedFeePaymentAssets (r:1 w:1)
/// Proof Skipped: AssetManager SupportedFeePaymentAssets (max_values: Some(1), max_size: None, mode: Measured)
/// Storage: AssetManager AssetTypeUnitsPerSecond (r:0 w:1)
/// Proof Skipped: AssetManager AssetTypeUnitsPerSecond (max_values: None, max_size: None, mode: Measured)
/// Storage: `AssetManager::SupportedFeePaymentAssets` (r:1 w:1)
/// Proof: `AssetManager::SupportedFeePaymentAssets` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
/// Storage: `AssetManager::AssetTypeUnitsPerSecond` (r:0 w:1)
/// Proof: `AssetManager::AssetTypeUnitsPerSecond` (`max_values`: None, `max_size`: None, mode: `Measured`)
/// The range of component `x` is `[5, 100]`.
fn remove_supported_asset(x: u32, ) -> Weight {
// Proof Size summary in bytes:
// Measured: `196 + x * (5 ±0)`
// Estimated: `1678 + x * (5 ±0)`
// Minimum execution time: 10_369_000 picoseconds.
Weight::from_parts(11_485_853, 0)
.saturating_add(Weight::from_parts(0, 1678))
// Standard Error: 2_255
.saturating_add(Weight::from_parts(259_454, 0).saturating_mul(x.into()))
.saturating_add(T::DbWeight::get().reads(1))
.saturating_add(T::DbWeight::get().writes(2))
// Minimum execution time: 15_396_000 picoseconds.
Weight::from_parts(13_998_856, 1678)
// Standard Error: 2_734
.saturating_add(Weight::from_parts(706_945, 0).saturating_mul(x.into()))
.saturating_add(T::DbWeight::get().reads(1_u64))
.saturating_add(T::DbWeight::get().writes(2_u64))
.saturating_add(Weight::from_parts(0, 5).saturating_mul(x.into()))
}
/// Storage: AssetManager SupportedFeePaymentAssets (r:1 w:1)
/// Proof Skipped: AssetManager SupportedFeePaymentAssets (max_values: Some(1), max_size: None, mode: Measured)
/// Storage: AssetManager AssetIdType (r:1 w:1)
/// Proof Skipped: AssetManager AssetIdType (max_values: None, max_size: None, mode: Measured)
/// Storage: AssetManager AssetTypeUnitsPerSecond (r:0 w:1)
/// Proof Skipped: AssetManager AssetTypeUnitsPerSecond (max_values: None, max_size: None, mode: Measured)
/// Storage: AssetManager AssetTypeId (r:0 w:1)
/// Proof Skipped: AssetManager AssetTypeId (max_values: None, max_size: None, mode: Measured)
/// Storage: `AssetManager::SupportedFeePaymentAssets` (r:1 w:1)
/// Proof: `AssetManager::SupportedFeePaymentAssets` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
/// Storage: `AssetManager::AssetIdType` (r:1 w:1)
/// Proof: `AssetManager::AssetIdType` (`max_values`: None, `max_size`: None, mode: `Measured`)
/// Storage: `AssetManager::AssetTypeUnitsPerSecond` (r:0 w:1)
/// Proof: `AssetManager::AssetTypeUnitsPerSecond` (`max_values`: None, `max_size`: None, mode: `Measured`)
/// Storage: `AssetManager::AssetTypeId` (r:0 w:1)
/// Proof: `AssetManager::AssetTypeId` (`max_values`: None, `max_size`: None, mode: `Measured`)
/// The range of component `x` is `[5, 100]`.
fn remove_existing_asset_type(x: u32, ) -> Weight {
// Proof Size summary in bytes:
// Measured: `482 + x * (10 ±0)`
// Estimated: `3955 + x * (10 ±0)`
// Minimum execution time: 15_040_000 picoseconds.
Weight::from_parts(17_158_622, 0)
.saturating_add(Weight::from_parts(0, 3955))
// Standard Error: 2_614
.saturating_add(Weight::from_parts(275_195, 0).saturating_mul(x.into()))
.saturating_add(T::DbWeight::get().reads(2))
.saturating_add(T::DbWeight::get().writes(4))
// Minimum execution time: 21_743_000 picoseconds.
Weight::from_parts(21_130_966, 3955)
// Standard Error: 3_157
.saturating_add(Weight::from_parts(727_255, 0).saturating_mul(x.into()))
.saturating_add(T::DbWeight::get().reads(2_u64))
.saturating_add(T::DbWeight::get().writes(4_u64))
.saturating_add(Weight::from_parts(0, 10).saturating_mul(x.into()))
}
}

0 comments on commit 7423298

Please sign in to comment.