Skip to content

Commit 44fc68a

Browse files
auto-update benchmark weights
1 parent 5d387f5 commit 44fc68a

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

pallets/admin-utils/src/lib.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -659,8 +659,8 @@ pub mod pallet {
659659
/// It is only callable by root and subnet owner.
660660
/// The extrinsic will call the Subtensor pallet to set the minimum burn.
661661
#[pallet::call_index(22)]
662-
#[pallet::weight(Weight::from_parts(15_440_000, 0)
663-
.saturating_add(<T as frame_system::Config>::DbWeight::get().reads(1_u64))
662+
#[pallet::weight(Weight::from_parts(18_870_000, 0)
663+
.saturating_add(<T as frame_system::Config>::DbWeight::get().reads(2_u64))
664664
.saturating_add(<T as frame_system::Config>::DbWeight::get().writes(1_u64)))]
665665
pub fn sudo_set_min_burn(
666666
origin: OriginFor<T>,
@@ -691,7 +691,7 @@ pub mod pallet {
691691
/// The extrinsic will call the Subtensor pallet to set the maximum burn.
692692
#[pallet::call_index(23)]
693693
#[pallet::weight(Weight::from_parts(15_940_000, 0)
694-
.saturating_add(<T as frame_system::Config>::DbWeight::get().reads(1_u64))
694+
.saturating_add(<T as frame_system::Config>::DbWeight::get().reads(2_u64))
695695
.saturating_add(<T as frame_system::Config>::DbWeight::get().writes(1_u64)))]
696696
pub fn sudo_set_max_burn(
697697
origin: OriginFor<T>,

pallets/subtensor/src/macros/dispatches.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -120,9 +120,9 @@ mod dispatches {
120120
/// - On failure for each failed item in the batch.
121121
///
122122
#[pallet::call_index(80)]
123-
#[pallet::weight((Weight::from_parts(95_160_000, 0)
124-
.saturating_add(T::DbWeight::get().reads(14))
125-
.saturating_add(T::DbWeight::get().writes(2)), DispatchClass::Normal, Pays::No))]
123+
#[pallet::weight((Weight::from_parts(18_570_000, 0)
124+
.saturating_add(T::DbWeight::get().reads(1_u64))
125+
.saturating_add(T::DbWeight::get().writes(0_u64)), DispatchClass::Normal, Pays::No))]
126126
pub fn batch_set_weights(
127127
origin: OriginFor<T>,
128128
netuids: Vec<Compact<NetUid>>,

0 commit comments

Comments
 (0)