Skip to content

Commit a99df56

Browse files
authored
Merge pull request #1946 from opentensor/benchmark-investigation
Switch Benchmark Runner
2 parents cefa073 + 8db8d1e commit a99df56

File tree

6 files changed

+77
-107
lines changed

6 files changed

+77
-107
lines changed

.github/workflows/run-benchmarks.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ concurrency:
1616

1717
jobs:
1818
validate-benchmarks:
19-
runs-on: [self-hosted, type-ccx33]
19+
runs-on: Benchmarking
2020

2121
env:
2222
SKIP_BENCHMARKS: "0"

pallets/admin-utils/src/lib.rs

Lines changed: 29 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ pub mod pallet {
161161
/// It is only callable by the root account.
162162
/// The extrinsic will call the Aura pallet to change the authorities.
163163
#[pallet::call_index(0)]
164-
#[pallet::weight(Weight::from_parts(3_071_000, 0)
164+
#[pallet::weight(Weight::from_parts(4_629_000, 0)
165165
.saturating_add(<T as frame_system::Config>::DbWeight::get().reads(0_u64))
166166
.saturating_add(<T as frame_system::Config>::DbWeight::get().writes(1_u64)))]
167167
pub fn swap_authorities(
@@ -182,7 +182,7 @@ pub mod pallet {
182182
/// It is only callable by the root account.
183183
/// The extrinsic will call the Subtensor pallet to set the default take.
184184
#[pallet::call_index(1)]
185-
#[pallet::weight(Weight::from_parts(3_590_000, 0)
185+
#[pallet::weight(Weight::from_parts(5_420_000, 0)
186186
.saturating_add(<T as frame_system::Config>::DbWeight::get().reads(0_u64))
187187
.saturating_add(<T as frame_system::Config>::DbWeight::get().writes(1_u64)))]
188188
pub fn sudo_set_default_take(origin: OriginFor<T>, default_take: u16) -> DispatchResult {
@@ -208,7 +208,7 @@ pub mod pallet {
208208
/// It is only callable by the root account or subnet owner.
209209
/// The extrinsic will call the Subtensor pallet to set the serving rate limit.
210210
#[pallet::call_index(3)]
211-
#[pallet::weight(Weight::from_parts(4_470_000, 0)
211+
#[pallet::weight(Weight::from_parts(6_522_000, 0)
212212
.saturating_add(<T as frame_system::Config>::DbWeight::get().reads(0_u64))
213213
.saturating_add(<T as frame_system::Config>::DbWeight::get().writes(1_u64)))]
214214
pub fn sudo_set_serving_rate_limit(
@@ -227,7 +227,7 @@ pub mod pallet {
227227
/// It is only callable by the root account or subnet owner.
228228
/// The extrinsic will call the Subtensor pallet to set the minimum difficulty.
229229
#[pallet::call_index(4)]
230-
#[pallet::weight(Weight::from_parts(12_140_000, 0)
230+
#[pallet::weight(Weight::from_parts(15_230_000, 0)
231231
.saturating_add(<T as frame_system::Config>::DbWeight::get().reads(1_u64))
232232
.saturating_add(<T as frame_system::Config>::DbWeight::get().writes(1_u64)))]
233233
pub fn sudo_set_min_difficulty(
@@ -252,7 +252,7 @@ pub mod pallet {
252252
/// It is only callable by the root account or subnet owner.
253253
/// The extrinsic will call the Subtensor pallet to set the maximum difficulty.
254254
#[pallet::call_index(5)]
255-
#[pallet::weight(Weight::from_parts(12_840_000, 0)
255+
#[pallet::weight(Weight::from_parts(15_700_000, 0)
256256
.saturating_add(<T as frame_system::Config>::DbWeight::get().reads(1_u64))
257257
.saturating_add(<T as frame_system::Config>::DbWeight::get().writes(1_u64)))]
258258
pub fn sudo_set_max_difficulty(
@@ -277,7 +277,7 @@ pub mod pallet {
277277
/// It is only callable by the root account or subnet owner.
278278
/// The extrinsic will call the Subtensor pallet to set the weights version key.
279279
#[pallet::call_index(6)]
280-
#[pallet::weight(Weight::from_parts(12_560_000, 0)
280+
#[pallet::weight(Weight::from_parts(17_460_000, 0)
281281
.saturating_add(<T as frame_system::Config>::DbWeight::get().reads(1_u64))
282282
.saturating_add(<T as frame_system::Config>::DbWeight::get().writes(1_u64)))]
283283
pub fn sudo_set_weights_version_key(
@@ -325,7 +325,7 @@ pub mod pallet {
325325
/// It is only callable by the root account.
326326
/// The extrinsic will call the Subtensor pallet to set the weights set rate limit.
327327
#[pallet::call_index(7)]
328-
#[pallet::weight(Weight::from_parts(12_230_000, 0)
328+
#[pallet::weight(Weight::from_parts(15_060_000, 0)
329329
.saturating_add(<T as frame_system::Config>::DbWeight::get().reads(1_u64))
330330
.saturating_add(<T as frame_system::Config>::DbWeight::get().writes(1_u64)))]
331331
pub fn sudo_set_weights_set_rate_limit(
@@ -353,7 +353,7 @@ pub mod pallet {
353353
/// It is only callable by the root account, not changeable by the subnet owner.
354354
/// The extrinsic will call the Subtensor pallet to set the adjustment interval.
355355
#[pallet::call_index(8)]
356-
#[pallet::weight(Weight::from_parts(12_200_000, 0)
356+
#[pallet::weight(Weight::from_parts(15_100_000, 0)
357357
.saturating_add(<T as frame_system::Config>::DbWeight::get().reads(1_u64))
358358
.saturating_add(<T as frame_system::Config>::DbWeight::get().writes(1_u64)))]
359359
pub fn sudo_set_adjustment_interval(
@@ -405,7 +405,7 @@ pub mod pallet {
405405
/// It is only callable by the root account or subnet owner.
406406
/// The extrinsic will call the Subtensor pallet to set the adjustment beta.
407407
#[pallet::call_index(12)]
408-
#[pallet::weight(Weight::from_parts(12_210_000, 0)
408+
#[pallet::weight(Weight::from_parts(15_170_000, 0)
409409
.saturating_add(<T as frame_system::Config>::DbWeight::get().reads(1_u64))
410410
.saturating_add(<T as frame_system::Config>::DbWeight::get().writes(1_u64)))]
411411
pub fn sudo_set_max_weight_limit(
@@ -430,7 +430,7 @@ pub mod pallet {
430430
/// It is only callable by the root account or subnet owner.
431431
/// The extrinsic will call the Subtensor pallet to set the immunity period.
432432
#[pallet::call_index(13)]
433-
#[pallet::weight(Weight::from_parts(12_330_000, 0)
433+
#[pallet::weight(Weight::from_parts(15_510_000, 0)
434434
.saturating_add(<T as frame_system::Config>::DbWeight::get().reads(1_u64))
435435
.saturating_add(<T as frame_system::Config>::DbWeight::get().writes(1_u64)))]
436436
pub fn sudo_set_immunity_period(
@@ -455,7 +455,7 @@ pub mod pallet {
455455
/// It is only callable by the root account or subnet owner.
456456
/// The extrinsic will call the Subtensor pallet to set the minimum allowed weights.
457457
#[pallet::call_index(14)]
458-
#[pallet::weight(Weight::from_parts(12_200_000, 0)
458+
#[pallet::weight(Weight::from_parts(15_220_000, 0)
459459
.saturating_add(<T as frame_system::Config>::DbWeight::get().reads(1_u64))
460460
.saturating_add(<T as frame_system::Config>::DbWeight::get().writes(1_u64)))]
461461
pub fn sudo_set_min_allowed_weights(
@@ -480,7 +480,7 @@ pub mod pallet {
480480
/// It is only callable by the root account.
481481
/// The extrinsic will call the Subtensor pallet to set the maximum allowed UIDs for a subnet.
482482
#[pallet::call_index(15)]
483-
#[pallet::weight(Weight::from_parts(15_500_000, 0)
483+
#[pallet::weight(Weight::from_parts(18_800_000, 0)
484484
.saturating_add(<T as frame_system::Config>::DbWeight::get().reads(2_u64))
485485
.saturating_add(<T as frame_system::Config>::DbWeight::get().writes(1_u64)))]
486486
pub fn sudo_set_max_allowed_uids(
@@ -508,7 +508,7 @@ pub mod pallet {
508508
/// It is only callable by the root account or subnet owner.
509509
/// The extrinsic will call the Subtensor pallet to set the kappa.
510510
#[pallet::call_index(16)]
511-
#[pallet::weight(Weight::from_parts(12_530_000, 0)
511+
#[pallet::weight(Weight::from_parts(16_740_000, 0)
512512
.saturating_add(<T as frame_system::Config>::DbWeight::get().reads(1_u64))
513513
.saturating_add(<T as frame_system::Config>::DbWeight::get().writes(1_u64)))]
514514
pub fn sudo_set_kappa(origin: OriginFor<T>, netuid: NetUid, kappa: u16) -> DispatchResult {
@@ -527,7 +527,7 @@ pub mod pallet {
527527
/// It is only callable by the root account or subnet owner.
528528
/// The extrinsic will call the Subtensor pallet to set the rho.
529529
#[pallet::call_index(17)]
530-
#[pallet::weight(Weight::from_parts(10_160_000, 0)
530+
#[pallet::weight(Weight::from_parts(12_570_000, 0)
531531
.saturating_add(<T as frame_system::Config>::DbWeight::get().reads(1_u64))
532532
.saturating_add(<T as frame_system::Config>::DbWeight::get().writes(1_u64)))]
533533
pub fn sudo_set_rho(origin: OriginFor<T>, netuid: NetUid, rho: u16) -> DispatchResult {
@@ -546,7 +546,7 @@ pub mod pallet {
546546
/// It is only callable by the root account or subnet owner.
547547
/// The extrinsic will call the Subtensor pallet to set the activity cutoff.
548548
#[pallet::call_index(18)]
549-
#[pallet::weight(Weight::from_parts(14_160_000, 0)
549+
#[pallet::weight(Weight::from_parts(17_510_000, 0)
550550
.saturating_add(<T as frame_system::Config>::DbWeight::get().reads(2_u64))
551551
.saturating_add(<T as frame_system::Config>::DbWeight::get().writes(1_u64)))]
552552
pub fn sudo_set_activity_cutoff(
@@ -578,7 +578,7 @@ pub mod pallet {
578578
/// The extrinsic will call the Subtensor pallet to set the network registration allowed.
579579
#[pallet::call_index(19)]
580580
#[pallet::weight((
581-
Weight::from_parts(4_600_000, 0)
581+
Weight::from_parts(7_343_000, 0)
582582
.saturating_add(<T as frame_system::Config>::DbWeight::get().reads(0))
583583
.saturating_add(<T as frame_system::Config>::DbWeight::get().writes(1)),
584584
DispatchClass::Operational,
@@ -631,7 +631,7 @@ pub mod pallet {
631631
/// It is only callable by the root account.
632632
/// The extrinsic will call the Subtensor pallet to set the target registrations per interval.
633633
#[pallet::call_index(21)]
634-
#[pallet::weight(Weight::from_parts(12_400_000, 0)
634+
#[pallet::weight(Weight::from_parts(15_320_000, 0)
635635
.saturating_add(<T as frame_system::Config>::DbWeight::get().reads(1_u64))
636636
.saturating_add(<T as frame_system::Config>::DbWeight::get().writes(1_u64)))]
637637
pub fn sudo_set_target_registrations_per_interval(
@@ -659,7 +659,7 @@ pub mod pallet {
659659
/// It is only callable by the root account.
660660
/// The extrinsic will call the Subtensor pallet to set the minimum burn.
661661
#[pallet::call_index(22)]
662-
#[pallet::weight(Weight::from_parts(12_590_000, 0)
662+
#[pallet::weight(Weight::from_parts(15_440_000, 0)
663663
.saturating_add(<T as frame_system::Config>::DbWeight::get().reads(1_u64))
664664
.saturating_add(<T as frame_system::Config>::DbWeight::get().writes(1_u64)))]
665665
pub fn sudo_set_min_burn(
@@ -682,7 +682,7 @@ pub mod pallet {
682682
/// It is only callable by the root account or subnet owner.
683683
/// The extrinsic will call the Subtensor pallet to set the maximum burn.
684684
#[pallet::call_index(23)]
685-
#[pallet::weight(Weight::from_parts(12_420_000, 0)
685+
#[pallet::weight(Weight::from_parts(15_940_000, 0)
686686
.saturating_add(<T as frame_system::Config>::DbWeight::get().reads(1_u64))
687687
.saturating_add(<T as frame_system::Config>::DbWeight::get().writes(1_u64)))]
688688
pub fn sudo_set_max_burn(
@@ -705,7 +705,7 @@ pub mod pallet {
705705
/// It is only callable by the root account or subnet owner.
706706
/// The extrinsic will call the Subtensor pallet to set the difficulty.
707707
#[pallet::call_index(24)]
708-
#[pallet::weight(Weight::from_parts(10_520_000, 0)
708+
#[pallet::weight(Weight::from_parts(15_650_000, 0)
709709
.saturating_add(<T as frame_system::Config>::DbWeight::get().reads(1_u64))
710710
.saturating_add(<T as frame_system::Config>::DbWeight::get().writes(1_u64)))]
711711
pub fn sudo_set_difficulty(
@@ -727,7 +727,7 @@ pub mod pallet {
727727
/// It is only callable by the root account.
728728
/// The extrinsic will call the Subtensor pallet to set the maximum allowed validators.
729729
#[pallet::call_index(25)]
730-
#[pallet::weight(Weight::from_parts(13_860_000, 0)
730+
#[pallet::weight(Weight::from_parts(19_300_000, 0)
731731
.saturating_add(<T as frame_system::Config>::DbWeight::get().reads(2_u64))
732732
.saturating_add(<T as frame_system::Config>::DbWeight::get().writes(1_u64)))]
733733
pub fn sudo_set_max_allowed_validators(
@@ -760,7 +760,7 @@ pub mod pallet {
760760
/// It is only callable by the root account or subnet owner.
761761
/// The extrinsic will call the Subtensor pallet to set the bonds moving average.
762762
#[pallet::call_index(26)]
763-
#[pallet::weight(Weight::from_parts(12_450_000, 0)
763+
#[pallet::weight(Weight::from_parts(15_140_000, 0)
764764
.saturating_add(<T as frame_system::Config>::DbWeight::get().reads(1_u64))
765765
.saturating_add(<T as frame_system::Config>::DbWeight::get().writes(1_u64)))]
766766
pub fn sudo_set_bonds_moving_average(
@@ -792,7 +792,7 @@ pub mod pallet {
792792
/// It is only callable by the root account or subnet owner.
793793
/// The extrinsic will call the Subtensor pallet to set the bonds penalty.
794794
#[pallet::call_index(60)]
795-
#[pallet::weight(Weight::from_parts(12_940_000, 0)
795+
#[pallet::weight(Weight::from_parts(16_220_000, 0)
796796
.saturating_add(<T as frame_system::Config>::DbWeight::get().reads(1_u64))
797797
.saturating_add(<T as frame_system::Config>::DbWeight::get().writes(1_u64)))]
798798
pub fn sudo_set_bonds_penalty(
@@ -815,7 +815,7 @@ pub mod pallet {
815815
/// It is only callable by the root account.
816816
/// The extrinsic will call the Subtensor pallet to set the maximum registrations per block.
817817
#[pallet::call_index(27)]
818-
#[pallet::weight(Weight::from_parts(12_180_000, 0)
818+
#[pallet::weight(Weight::from_parts(15_080_000, 0)
819819
.saturating_add(<T as frame_system::Config>::DbWeight::get().reads(1_u64))
820820
.saturating_add(<T as frame_system::Config>::DbWeight::get().writes(1_u64)))]
821821
pub fn sudo_set_max_registrations_per_block(
@@ -883,7 +883,7 @@ pub mod pallet {
883883
/// It is only callable by the root account.
884884
/// The extrinsic will call the Subtensor pallet to set the tempo.
885885
#[pallet::call_index(30)]
886-
#[pallet::weight(Weight::from_parts(12_310_000, 0)
886+
#[pallet::weight(Weight::from_parts(15_180_000, 0)
887887
.saturating_add(<T as frame_system::Config>::DbWeight::get().reads(1_u64))
888888
.saturating_add(<T as frame_system::Config>::DbWeight::get().writes(1_u64)))]
889889
pub fn sudo_set_tempo(origin: OriginFor<T>, netuid: NetUid, tempo: u16) -> DispatchResult {
@@ -1102,7 +1102,7 @@ pub mod pallet {
11021102
/// It is only callable by the root account or subnet owner.
11031103
/// The extrinsic will call the Subtensor pallet to set the value.
11041104
#[pallet::call_index(49)]
1105-
#[pallet::weight(Weight::from_parts(12_180_000, 0)
1105+
#[pallet::weight(Weight::from_parts(15_150_000, 0)
11061106
.saturating_add(<T as frame_system::Config>::DbWeight::get().reads(1_u64))
11071107
.saturating_add(<T as frame_system::Config>::DbWeight::get().writes(1_u64)))]
11081108
pub fn sudo_set_commit_reveal_weights_enabled(
@@ -1296,7 +1296,7 @@ pub mod pallet {
12961296
/// # Weight
12971297
/// Weight is handled by the `#[pallet::weight]` attribute.
12981298
#[pallet::call_index(57)]
1299-
#[pallet::weight(Weight::from_parts(12_360_000, 0)
1299+
#[pallet::weight(Weight::from_parts(19_320_000, 0)
13001300
.saturating_add(<T as frame_system::Config>::DbWeight::get().reads(1_u64))
13011301
.saturating_add(<T as frame_system::Config>::DbWeight::get().writes(1_u64)))]
13021302
pub fn sudo_set_commit_reveal_weights_interval(
@@ -1361,7 +1361,7 @@ pub mod pallet {
13611361
/// No change should be signaled while any change is pending. Returns an error if a change
13621362
/// is already pending.
13631363
#[pallet::call_index(59)]
1364-
#[pallet::weight(Weight::from_parts(6_228_000, 0)
1364+
#[pallet::weight(Weight::from_parts(7_779_000, 0)
13651365
.saturating_add(<T as frame_system::Config>::DbWeight::get().reads(1_u64))
13661366
.saturating_add(<T as frame_system::Config>::DbWeight::get().writes(1_u64)))]
13671367
pub fn schedule_grandpa_change(
@@ -1659,7 +1659,7 @@ pub mod pallet {
16591659
/// Sets the commit-reveal weights version for all subnets
16601660
#[pallet::call_index(71)]
16611661
#[pallet::weight((
1662-
Weight::from_parts(3_940_000, 0)
1662+
Weight::from_parts(7_114_000, 0)
16631663
.saturating_add(<T as frame_system::Config>::DbWeight::get().writes(1))
16641664
.saturating_add(<T as frame_system::Config>::DbWeight::get().reads(0_u64)),
16651665
DispatchClass::Operational,

pallets/commitments/src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ pub mod pallet {
205205
/// Set the commitment for a given netuid
206206
#[pallet::call_index(0)]
207207
#[pallet::weight((
208-
Weight::from_parts(25_070_000, 0)
208+
Weight::from_parts(33_480_000, 0)
209209
.saturating_add(T::DbWeight::get().reads(5_u64))
210210
.saturating_add(T::DbWeight::get().writes(4_u64)),
211211
DispatchClass::Operational,
@@ -343,7 +343,7 @@ pub mod pallet {
343343
/// Sudo-set MaxSpace
344344
#[pallet::call_index(2)]
345345
#[pallet::weight((
346-
Weight::from_parts(1_660_000, 0)
346+
Weight::from_parts(2_856_000, 0)
347347
.saturating_add(T::DbWeight::get().reads(0_u64))
348348
.saturating_add(T::DbWeight::get().writes(1_u64)),
349349
DispatchClass::Operational,

pallets/drand/src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -404,7 +404,7 @@ pub mod pallet {
404404
/// * `origin`: the root user
405405
/// * `config`: the beacon configuration
406406
#[pallet::call_index(1)]
407-
#[pallet::weight(Weight::from_parts(5_450_000, 0)
407+
#[pallet::weight(Weight::from_parts(8_766_000, 0)
408408
.saturating_add(T::DbWeight::get().reads(0_u64))
409409
.saturating_add(T::DbWeight::get().writes(2_u64)))]
410410
pub fn set_beacon_config(
@@ -425,7 +425,7 @@ pub mod pallet {
425425

426426
/// allows the root user to set the oldest stored round
427427
#[pallet::call_index(2)]
428-
#[pallet::weight(Weight::from_parts(3_350_000, 0)
428+
#[pallet::weight(Weight::from_parts(5_370_000, 0)
429429
.saturating_add(T::DbWeight::get().reads(0_u64))
430430
.saturating_add(T::DbWeight::get().writes(1_u64)))]
431431
pub fn set_oldest_stored_round(origin: OriginFor<T>, oldest_round: u64) -> DispatchResult {

0 commit comments

Comments
 (0)