-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add weights for pallet-migration on testnet
- Loading branch information
1 parent
1480928
commit 53258aa
Showing
3 changed files
with
84 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,82 @@ | ||
|
||
//! Autogenerated weights for `pallet_migration` | ||
//! | ||
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0 | ||
//! DATE: 2024-08-16, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` | ||
//! WORST CASE MAP SIZE: `1000000` | ||
//! HOSTNAME: `bdl-ref`, CPU: `AMD EPYC 7232P 8-Core Processor` | ||
//! WASM-EXECUTION: `Compiled`, CHAIN: `Some("local-v")`, DB CACHE: 1024 | ||
|
||
// Executed Command: | ||
// ./target/release/mythos-node | ||
// benchmark | ||
// pallet | ||
// --chain | ||
// local-v | ||
// --pallet | ||
// pallet_migration | ||
// --extrinsic | ||
// * | ||
// --wasm-execution | ||
// compiled | ||
// --steps | ||
// 50 | ||
// --repeat | ||
// 20 | ||
// --output | ||
// ./runtime/testnet/src/weights/pallet_migration.rs | ||
|
||
#![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; | ||
|
||
/// Weight functions for `pallet_migration`. | ||
pub struct WeightInfo<T>(PhantomData<T>); | ||
impl<T: frame_system::Config> pallet_migration::WeightInfo for WeightInfo<T> { | ||
/// Storage: `Migration::Migrator` (r:1 w:1) | ||
/// Proof: `Migration::Migrator` (`max_values`: Some(1), `max_size`: Some(20), added: 515, mode: `MaxEncodedLen`) | ||
fn force_set_migrator() -> Weight { | ||
// Proof Size summary in bytes: | ||
// Measured: `3` | ||
// Estimated: `1505` | ||
// Minimum execution time: 10_780_000 picoseconds. | ||
Weight::from_parts(11_620_000, 0) | ||
.saturating_add(Weight::from_parts(0, 1505)) | ||
.saturating_add(T::DbWeight::get().reads(1)) | ||
.saturating_add(T::DbWeight::get().writes(1)) | ||
} | ||
/// Storage: `Migration::Migrator` (r:1 w:0) | ||
/// Proof: `Migration::Migrator` (`max_values`: Some(1), `max_size`: Some(20), added: 515, mode: `MaxEncodedLen`) | ||
/// Storage: `Dmarket::DmarketCollection` (r:1 w:0) | ||
/// Proof: `Dmarket::DmarketCollection` (`max_values`: Some(1), `max_size`: Some(32), added: 527, mode: `MaxEncodedLen`) | ||
/// Storage: `Nfts::Item` (r:1 w:1) | ||
/// Proof: `Nfts::Item` (`max_values`: None, `max_size`: Some(637), added: 3112, mode: `MaxEncodedLen`) | ||
/// Storage: `Nfts::Collection` (r:1 w:0) | ||
/// Proof: `Nfts::Collection` (`max_values`: None, `max_size`: Some(169), added: 2644, mode: `MaxEncodedLen`) | ||
/// Storage: `Nfts::Attribute` (r:1 w:0) | ||
/// Proof: `Nfts::Attribute` (`max_values`: None, `max_size`: Some(495), added: 2970, mode: `MaxEncodedLen`) | ||
/// Storage: `Nfts::CollectionConfigOf` (r:1 w:0) | ||
/// Proof: `Nfts::CollectionConfigOf` (`max_values`: None, `max_size`: Some(142), added: 2617, mode: `MaxEncodedLen`) | ||
/// Storage: `Nfts::ItemConfigOf` (r:1 w:0) | ||
/// Proof: `Nfts::ItemConfigOf` (`max_values`: None, `max_size`: Some(88), added: 2563, mode: `MaxEncodedLen`) | ||
/// Storage: `Nfts::Account` (r:0 w:2) | ||
/// Proof: `Nfts::Account` (`max_values`: None, `max_size`: Some(116), added: 2591, mode: `MaxEncodedLen`) | ||
/// Storage: `Nfts::ItemPriceOf` (r:0 w:1) | ||
/// Proof: `Nfts::ItemPriceOf` (`max_values`: None, `max_size`: Some(117), added: 2592, mode: `MaxEncodedLen`) | ||
/// Storage: `Nfts::PendingSwapOf` (r:0 w:1) | ||
/// Proof: `Nfts::PendingSwapOf` (`max_values`: None, `max_size`: Some(151), added: 2626, mode: `MaxEncodedLen`) | ||
fn set_item_owner() -> Weight { | ||
// Proof Size summary in bytes: | ||
// Measured: `900` | ||
// Estimated: `4102` | ||
// Minimum execution time: 82_700_000 picoseconds. | ||
Weight::from_parts(84_051_000, 0) | ||
.saturating_add(Weight::from_parts(0, 4102)) | ||
.saturating_add(T::DbWeight::get().reads(7)) | ||
.saturating_add(T::DbWeight::get().writes(5)) | ||
} | ||
} |