Skip to content

Commit fad2517

Browse files
committed
Fix subtensor benchmarks
1 parent 4c225fb commit fad2517

1 file changed

Lines changed: 70 additions & 70 deletions

File tree

pallets/subtensor/src/weights.rs

Lines changed: 70 additions & 70 deletions
Original file line numberDiff line numberDiff line change
@@ -192,8 +192,8 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
192192
// Estimated: `13600`
193193
// Minimum execution time: 348_026_000 picoseconds.
194194
Weight::from_parts(354_034_000, 13600)
195-
.saturating_add(T::DbWeight::get().reads(46_u64))
196-
.saturating_add(T::DbWeight::get().writes(38_u64))
195+
.saturating_add(T::DbWeight::get().reads(47_u64))
196+
.saturating_add(T::DbWeight::get().writes(39_u64))
197197
}
198198
/// Storage: `SubtensorModule::CommitRevealWeightsEnabled` (r:1 w:0)
199199
/// Proof: `SubtensorModule::CommitRevealWeightsEnabled` (`max_values`: None, `max_size`: None, mode: `Measured`)
@@ -296,10 +296,10 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
296296
// Proof Size summary in bytes:
297297
// Measured: `2307`
298298
// Estimated: `8556`
299-
// Minimum execution time: 338_691_000 picoseconds.
300-
Weight::from_parts(346_814_000, 8556)
301-
.saturating_add(T::DbWeight::get().reads(27_u64))
302-
.saturating_add(T::DbWeight::get().writes(15_u64))
299+
// Minimum execution time: 399_660_000 picoseconds.
300+
Weight::from_parts(399_660_000, 8556)
301+
.saturating_add(T::DbWeight::get().reads(28_u64))
302+
.saturating_add(T::DbWeight::get().writes(16_u64))
303303
}
304304
/// Storage: `SubtensorModule::IsNetworkMember` (r:2 w:0)
305305
/// Proof: `SubtensorModule::IsNetworkMember` (`max_values`: None, `max_size`: None, mode: `Measured`)
@@ -427,10 +427,10 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
427427
// Proof Size summary in bytes:
428428
// Measured: `1639`
429429
// Estimated: `13600`
430-
// Minimum execution time: 341_145_000 picoseconds.
431-
Weight::from_parts(345_863_000, 13600)
432-
.saturating_add(T::DbWeight::get().reads(46_u64))
433-
.saturating_add(T::DbWeight::get().writes(38_u64))
430+
// Minimum execution time: 385_433_000 picoseconds.
431+
Weight::from_parts(385_433_000, 13600)
432+
.saturating_add(T::DbWeight::get().reads(47_u64))
433+
.saturating_add(T::DbWeight::get().writes(39_u64))
434434
}
435435
/// Storage: `SubtensorModule::NetworksAdded` (r:1 w:0)
436436
/// Proof: `SubtensorModule::NetworksAdded` (`max_values`: None, `max_size`: None, mode: `Measured`)
@@ -611,8 +611,8 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
611611
// Estimated: `10091`
612612
// Minimum execution time: 289_917_000 picoseconds.
613613
Weight::from_parts(293_954_000, 10091)
614-
.saturating_add(T::DbWeight::get().reads(45_u64))
615-
.saturating_add(T::DbWeight::get().writes(49_u64))
614+
.saturating_add(T::DbWeight::get().reads(41_u64))
615+
.saturating_add(T::DbWeight::get().writes(46_u64))
616616
}
617617
/// Storage: `SubtensorModule::NetworksAdded` (r:1 w:0)
618618
/// Proof: `SubtensorModule::NetworksAdded` (`max_values`: None, `max_size`: None, mode: `Measured`)
@@ -1032,10 +1032,10 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
10321032
// Proof Size summary in bytes:
10331033
// Measured: `2307`
10341034
// Estimated: `8556`
1035-
// Minimum execution time: 376_539_000 picoseconds.
1036-
Weight::from_parts(383_750_000, 8556)
1037-
.saturating_add(T::DbWeight::get().reads(27_u64))
1038-
.saturating_add(T::DbWeight::get().writes(15_u64))
1035+
// Minimum execution time: 444_193_000 picoseconds.
1036+
Weight::from_parts(444_193_000, 8556)
1037+
.saturating_add(T::DbWeight::get().reads(28_u64))
1038+
.saturating_add(T::DbWeight::get().writes(16_u64))
10391039
}
10401040
/// Storage: `SubtensorModule::Alpha` (r:2 w:0)
10411041
/// Proof: `SubtensorModule::Alpha` (`max_values`: None, `max_size`: None, mode: `Measured`)
@@ -1130,8 +1130,8 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
11301130
// Estimated: `10626`
11311131
// Minimum execution time: 387_646_000 picoseconds.
11321132
Weight::from_parts(403_169_000, 10626)
1133-
.saturating_add(T::DbWeight::get().reads(30_u64))
1134-
.saturating_add(T::DbWeight::get().writes(13_u64))
1133+
.saturating_add(T::DbWeight::get().reads(31_u64))
1134+
.saturating_add(T::DbWeight::get().writes(14_u64))
11351135
}
11361136
/// Storage: `SubtensorModule::Alpha` (r:2 w:0)
11371137
/// Proof: `SubtensorModule::Alpha` (`max_values`: None, `max_size`: None, mode: `Measured`)
@@ -1191,8 +1191,8 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
11911191
// Estimated: `8556`
11921192
// Minimum execution time: 461_377_000 picoseconds.
11931193
Weight::from_parts(477_951_000, 8556)
1194-
.saturating_add(T::DbWeight::get().reads(40_u64))
1195-
.saturating_add(T::DbWeight::get().writes(22_u64))
1194+
.saturating_add(T::DbWeight::get().reads(42_u64))
1195+
.saturating_add(T::DbWeight::get().writes(23_u64))
11961196
}
11971197
/// Storage: `SubtensorModule::Alpha` (r:2 w:0)
11981198
/// Proof: `SubtensorModule::Alpha` (`max_values`: None, `max_size`: None, mode: `Measured`)
@@ -1291,8 +1291,8 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
12911291
// Estimated: `8556`
12921292
// Minimum execution time: 402_808_000 picoseconds.
12931293
Weight::from_parts(420_035_000, 8556)
1294-
.saturating_add(T::DbWeight::get().reads(40_u64))
1295-
.saturating_add(T::DbWeight::get().writes(22_u64))
1294+
.saturating_add(T::DbWeight::get().reads(42_u64))
1295+
.saturating_add(T::DbWeight::get().writes(23_u64))
12961296
}
12971297
/// Storage: `SubtensorModule::NetworksAdded` (r:1 w:0)
12981298
/// Proof: `SubtensorModule::NetworksAdded` (`max_values`: None, `max_size`: None, mode: `Measured`)
@@ -1526,8 +1526,8 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
15261526
// Estimated: `9975`
15271527
// Minimum execution time: 279_983_000 picoseconds.
15281528
Weight::from_parts(284_690_000, 9975)
1529-
.saturating_add(T::DbWeight::get().reads(44_u64))
1530-
.saturating_add(T::DbWeight::get().writes(48_u64))
1529+
.saturating_add(T::DbWeight::get().reads(40_u64))
1530+
.saturating_add(T::DbWeight::get().writes(45_u64))
15311531
}
15321532
/// Storage: `SubtensorModule::IsNetworkMember` (r:2 w:0)
15331533
/// Proof: `SubtensorModule::IsNetworkMember` (`max_values`: None, `max_size`: None, mode: `Measured`)
@@ -1640,7 +1640,7 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
16401640
// Estimated: `28766`
16411641
// Minimum execution time: 1_148_985_000 picoseconds.
16421642
Weight::from_parts(1_154_584_000, 28766)
1643-
.saturating_add(T::DbWeight::get().reads(159_u64))
1643+
.saturating_add(T::DbWeight::get().reads(161_u64))
16441644
.saturating_add(T::DbWeight::get().writes(95_u64))
16451645
}
16461646
/// Storage: `SubtensorModule::Owner` (r:1 w:1)
@@ -1738,8 +1738,8 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
17381738
// Estimated: `10787`
17391739
// Minimum execution time: 414_015_000 picoseconds.
17401740
Weight::from_parts(427_445_000, 10787)
1741-
.saturating_add(T::DbWeight::get().reads(44_u64))
1742-
.saturating_add(T::DbWeight::get().writes(24_u64))
1741+
.saturating_add(T::DbWeight::get().reads(47_u64))
1742+
.saturating_add(T::DbWeight::get().writes(26_u64))
17431743
}
17441744
/// Storage: `SubtensorModule::Alpha` (r:1 w:0)
17451745
/// Proof: `SubtensorModule::Alpha` (`max_values`: None, `max_size`: None, mode: `Measured`)
@@ -1797,8 +1797,8 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
17971797
// Estimated: `10626`
17981798
// Minimum execution time: 412_223_000 picoseconds.
17991799
Weight::from_parts(430_190_000, 10626)
1800-
.saturating_add(T::DbWeight::get().reads(30_u64))
1801-
.saturating_add(T::DbWeight::get().writes(13_u64))
1800+
.saturating_add(T::DbWeight::get().reads(31_u64))
1801+
.saturating_add(T::DbWeight::get().writes(14_u64))
18021802
}
18031803
/// Storage: `Crowdloan::CurrentCrowdloanId` (r:1 w:0)
18041804
/// Proof: `Crowdloan::CurrentCrowdloanId` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
@@ -1947,9 +1947,9 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
19471947
Weight::from_parts(286_320_370, 10400)
19481948
// Standard Error: 33_372
19491949
.saturating_add(Weight::from_parts(47_145_967, 0).saturating_mul(k.into()))
1950-
.saturating_add(T::DbWeight::get().reads(54_u64))
1950+
.saturating_add(T::DbWeight::get().reads(50_u64))
19511951
.saturating_add(T::DbWeight::get().reads((2_u64).saturating_mul(k.into())))
1952-
.saturating_add(T::DbWeight::get().writes(54_u64))
1952+
.saturating_add(T::DbWeight::get().writes(51_u64))
19531953
.saturating_add(T::DbWeight::get().writes((2_u64).saturating_mul(k.into())))
19541954
.saturating_add(Weight::from_parts(0, 2579).saturating_mul(k.into()))
19551955
}
@@ -2177,10 +2177,10 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
21772177
// Proof Size summary in bytes:
21782178
// Measured: `2365`
21792179
// Estimated: `8556`
2180-
// Minimum execution time: 471_702_000 picoseconds.
2181-
Weight::from_parts(484_481_000, 8556)
2182-
.saturating_add(T::DbWeight::get().reads(30_u64))
2183-
.saturating_add(T::DbWeight::get().writes(16_u64))
2180+
// Minimum execution time: 534_433_000 picoseconds.
2181+
Weight::from_parts(534_433_000, 8556)
2182+
.saturating_add(T::DbWeight::get().reads(31_u64))
2183+
.saturating_add(T::DbWeight::get().writes(17_u64))
21842184
}
21852185
/// Storage: `SubtensorModule::PendingChildKeyCooldown` (r:0 w:1)
21862186
/// Proof: `SubtensorModule::PendingChildKeyCooldown` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
@@ -2310,8 +2310,8 @@ impl WeightInfo for () {
23102310
// Estimated: `13600`
23112311
// Minimum execution time: 348_026_000 picoseconds.
23122312
Weight::from_parts(354_034_000, 13600)
2313-
.saturating_add(RocksDbWeight::get().reads(46_u64))
2314-
.saturating_add(RocksDbWeight::get().writes(38_u64))
2313+
.saturating_add(RocksDbWeight::get().reads(47_u64))
2314+
.saturating_add(RocksDbWeight::get().writes(39_u64))
23152315
}
23162316
/// Storage: `SubtensorModule::CommitRevealWeightsEnabled` (r:1 w:0)
23172317
/// Proof: `SubtensorModule::CommitRevealWeightsEnabled` (`max_values`: None, `max_size`: None, mode: `Measured`)
@@ -2414,10 +2414,10 @@ impl WeightInfo for () {
24142414
// Proof Size summary in bytes:
24152415
// Measured: `2307`
24162416
// Estimated: `8556`
2417-
// Minimum execution time: 338_691_000 picoseconds.
2418-
Weight::from_parts(346_814_000, 8556)
2419-
.saturating_add(RocksDbWeight::get().reads(27_u64))
2420-
.saturating_add(RocksDbWeight::get().writes(15_u64))
2417+
// Minimum execution time: 399_660_000 picoseconds.
2418+
Weight::from_parts(399_660_000, 8556)
2419+
.saturating_add(RocksDbWeight::get().reads(28_u64))
2420+
.saturating_add(RocksDbWeight::get().writes(16_u64))
24212421
}
24222422
/// Storage: `SubtensorModule::IsNetworkMember` (r:2 w:0)
24232423
/// Proof: `SubtensorModule::IsNetworkMember` (`max_values`: None, `max_size`: None, mode: `Measured`)
@@ -2545,10 +2545,10 @@ impl WeightInfo for () {
25452545
// Proof Size summary in bytes:
25462546
// Measured: `1639`
25472547
// Estimated: `13600`
2548-
// Minimum execution time: 341_145_000 picoseconds.
2549-
Weight::from_parts(345_863_000, 13600)
2550-
.saturating_add(RocksDbWeight::get().reads(46_u64))
2551-
.saturating_add(RocksDbWeight::get().writes(38_u64))
2548+
// Minimum execution time: 385_433_000 picoseconds.
2549+
Weight::from_parts(385_433_000, 13600)
2550+
.saturating_add(RocksDbWeight::get().reads(47_u64))
2551+
.saturating_add(RocksDbWeight::get().writes(39_u64))
25522552
}
25532553
/// Storage: `SubtensorModule::NetworksAdded` (r:1 w:0)
25542554
/// Proof: `SubtensorModule::NetworksAdded` (`max_values`: None, `max_size`: None, mode: `Measured`)
@@ -2729,8 +2729,8 @@ impl WeightInfo for () {
27292729
// Estimated: `10091`
27302730
// Minimum execution time: 289_917_000 picoseconds.
27312731
Weight::from_parts(293_954_000, 10091)
2732-
.saturating_add(RocksDbWeight::get().reads(45_u64))
2733-
.saturating_add(RocksDbWeight::get().writes(49_u64))
2732+
.saturating_add(RocksDbWeight::get().reads(41_u64))
2733+
.saturating_add(RocksDbWeight::get().writes(46_u64))
27342734
}
27352735
/// Storage: `SubtensorModule::NetworksAdded` (r:1 w:0)
27362736
/// Proof: `SubtensorModule::NetworksAdded` (`max_values`: None, `max_size`: None, mode: `Measured`)
@@ -3150,10 +3150,10 @@ impl WeightInfo for () {
31503150
// Proof Size summary in bytes:
31513151
// Measured: `2307`
31523152
// Estimated: `8556`
3153-
// Minimum execution time: 376_539_000 picoseconds.
3154-
Weight::from_parts(383_750_000, 8556)
3155-
.saturating_add(RocksDbWeight::get().reads(27_u64))
3156-
.saturating_add(RocksDbWeight::get().writes(15_u64))
3153+
// Minimum execution time: 444_193_000 picoseconds.
3154+
Weight::from_parts(444_193_000, 8556)
3155+
.saturating_add(RocksDbWeight::get().reads(28_u64))
3156+
.saturating_add(RocksDbWeight::get().writes(16_u64))
31573157
}
31583158
/// Storage: `SubtensorModule::Alpha` (r:2 w:0)
31593159
/// Proof: `SubtensorModule::Alpha` (`max_values`: None, `max_size`: None, mode: `Measured`)
@@ -3248,8 +3248,8 @@ impl WeightInfo for () {
32483248
// Estimated: `10626`
32493249
// Minimum execution time: 387_646_000 picoseconds.
32503250
Weight::from_parts(403_169_000, 10626)
3251-
.saturating_add(RocksDbWeight::get().reads(30_u64))
3252-
.saturating_add(RocksDbWeight::get().writes(13_u64))
3251+
.saturating_add(RocksDbWeight::get().reads(31_u64))
3252+
.saturating_add(RocksDbWeight::get().writes(14_u64))
32533253
}
32543254
/// Storage: `SubtensorModule::Alpha` (r:2 w:0)
32553255
/// Proof: `SubtensorModule::Alpha` (`max_values`: None, `max_size`: None, mode: `Measured`)
@@ -3309,8 +3309,8 @@ impl WeightInfo for () {
33093309
// Estimated: `8556`
33103310
// Minimum execution time: 461_377_000 picoseconds.
33113311
Weight::from_parts(477_951_000, 8556)
3312-
.saturating_add(RocksDbWeight::get().reads(40_u64))
3313-
.saturating_add(RocksDbWeight::get().writes(22_u64))
3312+
.saturating_add(RocksDbWeight::get().reads(42_u64))
3313+
.saturating_add(RocksDbWeight::get().writes(23_u64))
33143314
}
33153315
/// Storage: `SubtensorModule::Alpha` (r:2 w:0)
33163316
/// Proof: `SubtensorModule::Alpha` (`max_values`: None, `max_size`: None, mode: `Measured`)
@@ -3409,8 +3409,8 @@ impl WeightInfo for () {
34093409
// Estimated: `8556`
34103410
// Minimum execution time: 402_808_000 picoseconds.
34113411
Weight::from_parts(420_035_000, 8556)
3412-
.saturating_add(RocksDbWeight::get().reads(40_u64))
3413-
.saturating_add(RocksDbWeight::get().writes(22_u64))
3412+
.saturating_add(RocksDbWeight::get().reads(42_u64))
3413+
.saturating_add(RocksDbWeight::get().writes(23_u64))
34143414
}
34153415
/// Storage: `SubtensorModule::NetworksAdded` (r:1 w:0)
34163416
/// Proof: `SubtensorModule::NetworksAdded` (`max_values`: None, `max_size`: None, mode: `Measured`)
@@ -3644,8 +3644,8 @@ impl WeightInfo for () {
36443644
// Estimated: `9975`
36453645
// Minimum execution time: 279_983_000 picoseconds.
36463646
Weight::from_parts(284_690_000, 9975)
3647-
.saturating_add(RocksDbWeight::get().reads(44_u64))
3648-
.saturating_add(RocksDbWeight::get().writes(48_u64))
3647+
.saturating_add(RocksDbWeight::get().reads(40_u64))
3648+
.saturating_add(RocksDbWeight::get().writes(45_u64))
36493649
}
36503650
/// Storage: `SubtensorModule::IsNetworkMember` (r:2 w:0)
36513651
/// Proof: `SubtensorModule::IsNetworkMember` (`max_values`: None, `max_size`: None, mode: `Measured`)
@@ -3758,7 +3758,7 @@ impl WeightInfo for () {
37583758
// Estimated: `28766`
37593759
// Minimum execution time: 1_148_985_000 picoseconds.
37603760
Weight::from_parts(1_154_584_000, 28766)
3761-
.saturating_add(RocksDbWeight::get().reads(159_u64))
3761+
.saturating_add(RocksDbWeight::get().reads(161_u64))
37623762
.saturating_add(RocksDbWeight::get().writes(95_u64))
37633763
}
37643764
/// Storage: `SubtensorModule::Owner` (r:1 w:1)
@@ -3856,8 +3856,8 @@ impl WeightInfo for () {
38563856
// Estimated: `10787`
38573857
// Minimum execution time: 414_015_000 picoseconds.
38583858
Weight::from_parts(427_445_000, 10787)
3859-
.saturating_add(RocksDbWeight::get().reads(44_u64))
3860-
.saturating_add(RocksDbWeight::get().writes(24_u64))
3859+
.saturating_add(RocksDbWeight::get().reads(47_u64))
3860+
.saturating_add(RocksDbWeight::get().writes(26_u64))
38613861
}
38623862
/// Storage: `SubtensorModule::Alpha` (r:1 w:0)
38633863
/// Proof: `SubtensorModule::Alpha` (`max_values`: None, `max_size`: None, mode: `Measured`)
@@ -3915,8 +3915,8 @@ impl WeightInfo for () {
39153915
// Estimated: `10626`
39163916
// Minimum execution time: 412_223_000 picoseconds.
39173917
Weight::from_parts(430_190_000, 10626)
3918-
.saturating_add(RocksDbWeight::get().reads(30_u64))
3919-
.saturating_add(RocksDbWeight::get().writes(13_u64))
3918+
.saturating_add(RocksDbWeight::get().reads(31_u64))
3919+
.saturating_add(RocksDbWeight::get().writes(14_u64))
39203920
}
39213921
/// Storage: `Crowdloan::CurrentCrowdloanId` (r:1 w:0)
39223922
/// Proof: `Crowdloan::CurrentCrowdloanId` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
@@ -4065,9 +4065,9 @@ impl WeightInfo for () {
40654065
Weight::from_parts(286_320_370, 10400)
40664066
// Standard Error: 33_372
40674067
.saturating_add(Weight::from_parts(47_145_967, 0).saturating_mul(k.into()))
4068-
.saturating_add(RocksDbWeight::get().reads(54_u64))
4068+
.saturating_add(RocksDbWeight::get().reads(50_u64))
40694069
.saturating_add(RocksDbWeight::get().reads((2_u64).saturating_mul(k.into())))
4070-
.saturating_add(RocksDbWeight::get().writes(54_u64))
4070+
.saturating_add(RocksDbWeight::get().writes(51_u64))
40714071
.saturating_add(RocksDbWeight::get().writes((2_u64).saturating_mul(k.into())))
40724072
.saturating_add(Weight::from_parts(0, 2579).saturating_mul(k.into()))
40734073
}
@@ -4295,10 +4295,10 @@ impl WeightInfo for () {
42954295
// Proof Size summary in bytes:
42964296
// Measured: `2365`
42974297
// Estimated: `8556`
4298-
// Minimum execution time: 471_702_000 picoseconds.
4299-
Weight::from_parts(484_481_000, 8556)
4300-
.saturating_add(RocksDbWeight::get().reads(30_u64))
4301-
.saturating_add(RocksDbWeight::get().writes(16_u64))
4298+
// Minimum execution time: 534_433_000 picoseconds.
4299+
Weight::from_parts(534_433_000, 8556)
4300+
.saturating_add(RocksDbWeight::get().reads(31_u64))
4301+
.saturating_add(RocksDbWeight::get().writes(17_u64))
43024302
}
43034303
/// Storage: `SubtensorModule::PendingChildKeyCooldown` (r:0 w:1)
43044304
/// Proof: `SubtensorModule::PendingChildKeyCooldown` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)

0 commit comments

Comments
 (0)