diff --git a/Cargo.lock b/Cargo.lock index e6b6ea3..8b8616a 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -6063,7 +6063,7 @@ dependencies = [ [[package]] name = "pallet-ajuna-affiliates" version = "0.6.0" -source = "git+https://github.com/ajuna-network/ajuna-pallets.git?branch=cl/multiblock-migration#063fb71ef0095960cf5539a4e89d187534aa88de" +source = "git+https://github.com/ajuna-network/ajuna-pallets.git?branch=cl/multiblock-migration#0ff868400337151e34ce7a1098365d24b874aef7" dependencies = [ "frame-support", "frame-system", @@ -6076,7 +6076,7 @@ dependencies = [ [[package]] name = "pallet-ajuna-awesome-avatars" version = "0.6.0" -source = "git+https://github.com/ajuna-network/ajuna-pallets.git?branch=cl/multiblock-migration#063fb71ef0095960cf5539a4e89d187534aa88de" +source = "git+https://github.com/ajuna-network/ajuna-pallets.git?branch=cl/multiblock-migration#0ff868400337151e34ce7a1098365d24b874aef7" dependencies = [ "frame-benchmarking", "frame-support", @@ -6096,7 +6096,7 @@ dependencies = [ [[package]] name = "pallet-ajuna-awesome-avatars-benchmarking" version = "0.6.0" -source = "git+https://github.com/ajuna-network/ajuna-pallets.git?branch=cl/multiblock-migration#063fb71ef0095960cf5539a4e89d187534aa88de" +source = "git+https://github.com/ajuna-network/ajuna-pallets.git?branch=cl/multiblock-migration#0ff868400337151e34ce7a1098365d24b874aef7" dependencies = [ "frame-benchmarking", "frame-support", @@ -6120,7 +6120,7 @@ dependencies = [ [[package]] name = "pallet-ajuna-nft-transfer" version = "0.6.0" -source = "git+https://github.com/ajuna-network/ajuna-pallets.git?branch=cl/multiblock-migration#063fb71ef0095960cf5539a4e89d187534aa88de" +source = "git+https://github.com/ajuna-network/ajuna-pallets.git?branch=cl/multiblock-migration#0ff868400337151e34ce7a1098365d24b874aef7" dependencies = [ "frame-support", "frame-system", @@ -6133,7 +6133,7 @@ dependencies = [ [[package]] name = "pallet-ajuna-tournament" version = "0.6.0" -source = "git+https://github.com/ajuna-network/ajuna-pallets.git?branch=cl/multiblock-migration#063fb71ef0095960cf5539a4e89d187534aa88de" +source = "git+https://github.com/ajuna-network/ajuna-pallets.git?branch=cl/multiblock-migration#0ff868400337151e34ce7a1098365d24b874aef7" dependencies = [ "frame-support", "frame-system", diff --git a/runtime/bajun/src/lib.rs b/runtime/bajun/src/lib.rs index d395552..766790e 100644 --- a/runtime/bajun/src/lib.rs +++ b/runtime/bajun/src/lib.rs @@ -1031,10 +1031,13 @@ mod benches { // [pallet_treasury, Treasury] // treasury config is broken, needs fixes [pallet_utility, Utility] [pallet_ajuna_awesome_avatars, AwesomeAvatarsBench::] + // Note: We have to update the path to the `WeightInfo` definition after + // running the benchmarks: `pallet_ajuna_awesome_avatars::migration::v6::WeightInfo` + [pallet_ajuna_awesome_avatars_mbm, AwesomeAvatars] [pallet_nfts, Nft] ); // Use this section if you want to benchmark individual pallets - // define_benchmarks!([pallet_migrations, Migrations]); + // define_benchmarks!([pallet_ajuna_awesome_avatars_mbm, AwesomeAvatars]); } #[cfg(feature = "runtime-benchmarks")] diff --git a/runtime/bajun/src/weights/pallet_ajuna_awesome_avatars_mbm.rs b/runtime/bajun/src/weights/pallet_ajuna_awesome_avatars_mbm.rs index 31aa465..3165ec5 100644 --- a/runtime/bajun/src/weights/pallet_ajuna_awesome_avatars_mbm.rs +++ b/runtime/bajun/src/weights/pallet_ajuna_awesome_avatars_mbm.rs @@ -46,19 +46,57 @@ use core::marker::PhantomData; /// Weight functions for `pallet_ajuna_awesome_avatars_mbm`. pub struct WeightInfo(PhantomData); -impl pallet_ajuna_awesome_avatars::migration::v6::weights::WeightInfo for WeightInfo { +impl pallet_ajuna_awesome_avatars::migration::v6::WeightInfo for WeightInfo { /// Storage: `AwesomeAvatars::PlayerSeasonConfigs` (r:2 w:1) /// Proof: `AwesomeAvatars::PlayerSeasonConfigs` (`max_values`: None, `max_size`: Some(54), added: 2529, mode: `MaxEncodedLen`) /// Storage: `AwesomeAvatars::TradeStatsMap` (r:0 w:1) /// Proof: `AwesomeAvatars::TradeStatsMap` (`max_values`: None, `max_size`: Some(42), added: 2517, mode: `MaxEncodedLen`) - fn step() -> Weight { + fn player_season_configs_step() -> Weight { // Proof Size summary in bytes: // Measured: `156` // Estimated: `6048` - // Minimum execution time: 26_500_000 picoseconds. - Weight::from_parts(27_800_000, 0) + // Minimum execution time: 26_000_000 picoseconds. + Weight::from_parts(57_200_000, 0) .saturating_add(Weight::from_parts(0, 6048)) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().writes(2)) } + /// Storage: `AwesomeAvatars::SeasonStats` (r:2 w:1) + /// Proof: `AwesomeAvatars::SeasonStats` (`max_values`: None, `max_size`: Some(54), added: 2529, mode: `MaxEncodedLen`) + /// Storage: `AwesomeAvatars::TradeStatsMap` (r:1 w:1) + /// Proof: `AwesomeAvatars::TradeStatsMap` (`max_values`: None, `max_size`: Some(42), added: 2517, mode: `MaxEncodedLen`) + fn season_stats_step() -> Weight { + // Proof Size summary in bytes: + // Measured: `199` + // Estimated: `6048` + // Minimum execution time: 33_700_000 picoseconds. + Weight::from_parts(35_600_000, 0) + .saturating_add(Weight::from_parts(0, 6048)) + .saturating_add(T::DbWeight::get().reads(3)) + .saturating_add(T::DbWeight::get().writes(2)) + } + /// Storage: `AwesomeAvatars::Avatars` (r:2 w:1) + /// Proof: `AwesomeAvatars::Avatars` (`max_values`: None, `max_size`: Some(177), added: 2652, mode: `MaxEncodedLen`) + fn avatar_step() -> Weight { + // Proof Size summary in bytes: + // Measured: `168` + // Estimated: `6294` + // Minimum execution time: 24_200_000 picoseconds. + Weight::from_parts(27_500_000, 0) + .saturating_add(Weight::from_parts(0, 6294)) + .saturating_add(T::DbWeight::get().reads(2)) + .saturating_add(T::DbWeight::get().writes(1)) + } + /// Storage: `AwesomeAvatars::TradeStatsMap` (r:2 w:1) + /// Proof: `AwesomeAvatars::TradeStatsMap` (`max_values`: None, `max_size`: Some(42), added: 2517, mode: `MaxEncodedLen`) + fn trade_stats_map_cleanup_step() -> Weight { + // Proof Size summary in bytes: + // Measured: `136` + // Estimated: `6024` + // Minimum execution time: 25_900_000 picoseconds. + Weight::from_parts(32_200_000, 0) + .saturating_add(Weight::from_parts(0, 6024)) + .saturating_add(T::DbWeight::get().reads(2)) + .saturating_add(T::DbWeight::get().writes(1)) + } }