Skip to content

Commit cfb3571

Browse files
authored
Chore: update runtime weight (#1927)
* benchmark * add pallet_session benchmark Revert "add pallet_session benchmark" This reverts commit 086124e. add benchmark * benchmark again * benchmark 2 * benchmark 3 * use weight in runtime * reset cargo.lock * comment frame_pallet to decrease bench ci time * Update weights.rs * fix ci
1 parent a510dd4 commit cfb3571

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

58 files changed

+3970
-1235
lines changed

pallets/prices/src/weights.rs

Lines changed: 19 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
#![allow(unused_imports)]
1919
#![allow(clippy::all)]
2020

21-
use frame_support::weights::Weight;
21+
use frame_support::{traits::Get, weights::{Weight, constants::RocksDbWeight}};
2222
use sp_std::marker::PhantomData;
2323

2424
/// Weight functions needed for pallet_prices.
@@ -32,25 +32,37 @@ pub trait WeightInfo {
3232
pub struct SubstrateWeight<T>(PhantomData<T>);
3333
impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
3434
fn set_price() -> Weight {
35-
Weight::from_ref_time(10_000 as u64)
35+
Weight::from_ref_time(22_361_000 as u64)
36+
.saturating_add(T::DbWeight::get().reads(1 as u64))
37+
.saturating_add(T::DbWeight::get().writes(1 as u64))
3638
}
3739
fn reset_price() -> Weight {
38-
Weight::from_ref_time(10_000 as u64)
40+
Weight::from_ref_time(21_361_000 as u64)
41+
.saturating_add(T::DbWeight::get().reads(1 as u64))
42+
.saturating_add(T::DbWeight::get().writes(1 as u64))
3943
}
4044
fn set_foreign_asset() -> Weight {
41-
Weight::from_ref_time(10_000 as u64)
45+
Weight::from_ref_time(23_361_000 as u64)
46+
.saturating_add(T::DbWeight::get().reads(1 as u64))
47+
.saturating_add(T::DbWeight::get().writes(1 as u64))
4248
}
4349
}
4450

4551
// For backwards compatibility and tests
4652
impl WeightInfo for () {
4753
fn set_price() -> Weight {
48-
Weight::from_ref_time(10_000 as u64)
54+
Weight::from_ref_time(22_361_000 as u64)
55+
.saturating_add(RocksDbWeight::get().reads(1 as u64))
56+
.saturating_add(RocksDbWeight::get().writes(1 as u64))
4957
}
5058
fn reset_price() -> Weight {
51-
Weight::from_ref_time(10_000 as u64)
59+
Weight::from_ref_time(21_361_000 as u64)
60+
.saturating_add(RocksDbWeight::get().reads(1 as u64))
61+
.saturating_add(RocksDbWeight::get().writes(1 as u64))
5262
}
5363
fn set_foreign_asset() -> Weight {
54-
Weight::from_ref_time(10_000 as u64)
64+
Weight::from_ref_time(23_361_000 as u64)
65+
.saturating_add(RocksDbWeight::get().reads(1 as u64))
66+
.saturating_add(RocksDbWeight::get().writes(1 as u64))
5567
}
5668
}

runtime/heiko/src/lib.rs

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -495,7 +495,7 @@ impl pallet_assets::Config for Runtime {
495495
type ApprovalDeposit = ApprovalDeposit;
496496
type StringLimit = AssetsStringLimit;
497497
type Freezer = ();
498-
type WeightInfo = pallet_assets::weights::SubstrateWeight<Runtime>;
498+
type WeightInfo = weights::pallet_assets::WeightInfo<Runtime>;
499499
type Extra = ();
500500
type RemoveItemsLimit = frame_support::traits::ConstU32<1000>;
501501
#[cfg(feature = "runtime-benchmarks")]
@@ -730,7 +730,7 @@ impl pallet_collator_selection::Config for Runtime {
730730
type ValidatorId = <Self as frame_system::Config>::AccountId;
731731
type ValidatorIdOf = pallet_collator_selection::IdentityCollator;
732732
type ValidatorRegistration = Session;
733-
type WeightInfo = ();
733+
type WeightInfo = weights::pallet_collator_selection::WeightInfo<Runtime>;
734734
}
735735

736736
parameter_types! {
@@ -1043,7 +1043,7 @@ impl pallet_proxy::Config for Runtime {
10431043
type ProxyDepositBase = ProxyDepositBase;
10441044
type ProxyDepositFactor = ProxyDepositFactor;
10451045
type MaxProxies = MaxProxies;
1046-
type WeightInfo = pallet_proxy::weights::SubstrateWeight<Runtime>;
1046+
type WeightInfo = weights::pallet_proxy::WeightInfo<Runtime>;
10471047
type MaxPending = MaxPending;
10481048
type CallHasher = BlakeTwo256;
10491049
type AnnouncementDepositBase = AnnouncementDepositBase;
@@ -1426,7 +1426,7 @@ impl pallet_multisig::Config for Runtime {
14261426
type DepositBase = DepositBase;
14271427
type DepositFactor = DepositFactor;
14281428
type MaxSignatories = MaxSignatories;
1429-
type WeightInfo = pallet_multisig::weights::SubstrateWeight<Runtime>;
1429+
type WeightInfo = weights::pallet_multisig::WeightInfo<Runtime>;
14301430
}
14311431

14321432
parameter_types! {
@@ -1515,7 +1515,7 @@ impl pallet_democracy::Config for Runtime {
15151515
type Scheduler = Scheduler;
15161516
type PalletsOrigin = OriginCaller;
15171517
type MaxVotes = MaxVotes;
1518-
type WeightInfo = pallet_democracy::weights::SubstrateWeight<Runtime>;
1518+
type WeightInfo = weights::pallet_democracy::WeightInfo<Runtime>;
15191519
type MaxProposals = MaxProposals;
15201520
type VoteLockingPeriod = EnactmentPeriod;
15211521
type Preimages = Preimage;
@@ -1538,7 +1538,7 @@ impl pallet_collective::Config<GeneralCouncilCollective> for Runtime {
15381538
type MaxProposals = GeneralCouncilMaxProposals;
15391539
type MaxMembers = GeneralCouncilMaxMembers;
15401540
type DefaultVote = pallet_collective::PrimeDefaultVote;
1541-
type WeightInfo = pallet_collective::weights::SubstrateWeight<Runtime>;
1541+
type WeightInfo = weights::pallet_collective::WeightInfo<Runtime>;
15421542
}
15431543

15441544
type GeneralCouncilMembershipInstance = pallet_membership::Instance1;
@@ -1570,7 +1570,7 @@ impl pallet_collective::Config<TechnicalCollective> for Runtime {
15701570
type MaxProposals = TechnicalMaxProposals;
15711571
type MaxMembers = TechnicalMaxMembers;
15721572
type DefaultVote = pallet_collective::PrimeDefaultVote;
1573-
type WeightInfo = pallet_collective::weights::SubstrateWeight<Runtime>;
1573+
type WeightInfo = weights::pallet_collective::WeightInfo<Runtime>;
15741574
}
15751575

15761576
type TechnicalCommitteeMembershipInstance = pallet_membership::Instance2;
@@ -1616,7 +1616,7 @@ impl pallet_scheduler::Config for Runtime {
16161616
type ScheduleOrigin = EnsureRootOrMoreThanHalfGeneralCouncil;
16171617
type MaxScheduledPerBlock = MaxScheduledPerBlock;
16181618
type OriginPrivilegeCmp = EqualPrivilegeOnly;
1619-
type WeightInfo = pallet_scheduler::weights::SubstrateWeight<Runtime>;
1619+
type WeightInfo = weights::pallet_scheduler::WeightInfo<Runtime>;
16201620
type Preimages = Preimage;
16211621
}
16221622

runtime/heiko/src/weights/cumulus_pallet_xcmp_queue.rs

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
//! Autogenerated weights for `cumulus_pallet_xcmp_queue`
33
//!
44
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
5-
//! DATE: 2022-10-20, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]`
5+
//! DATE: 2023-03-23, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]`
66
//! HOSTNAME: `ip-172-88-3-164`, CPU: `Intel(R) Xeon(R) Platinum 8124M CPU @ 3.00GHz`
77
//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("heiko-dev"), DB CACHE: 1024
88
@@ -31,14 +31,16 @@ pub struct WeightInfo<T>(PhantomData<T>);
3131
impl<T: frame_system::Config> cumulus_pallet_xcmp_queue::WeightInfo for WeightInfo<T> {
3232
// Storage: XcmpQueue QueueConfig (r:1 w:1)
3333
fn set_config_with_u32() -> Weight {
34-
Weight::from_ref_time(10_012_000 as u64)
35-
.saturating_add(T::DbWeight::get().reads(1 as u64))
36-
.saturating_add(T::DbWeight::get().writes(1 as u64))
34+
// Minimum execution time: 11_820 nanoseconds.
35+
Weight::from_ref_time(12_248_000)
36+
.saturating_add(T::DbWeight::get().reads(1))
37+
.saturating_add(T::DbWeight::get().writes(1))
3738
}
3839
// Storage: XcmpQueue QueueConfig (r:1 w:1)
3940
fn set_config_with_weight() -> Weight {
40-
Weight::from_ref_time(10_079_000 as u64)
41-
.saturating_add(T::DbWeight::get().reads(1 as u64))
42-
.saturating_add(T::DbWeight::get().writes(1 as u64))
41+
// Minimum execution time: 12_102 nanoseconds.
42+
Weight::from_ref_time(12_272_000)
43+
.saturating_add(T::DbWeight::get().reads(1))
44+
.saturating_add(T::DbWeight::get().writes(1))
4345
}
4446
}

runtime/heiko/src/weights/frame_system.rs

Lines changed: 30 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
//! Autogenerated weights for `frame_system`
33
//!
44
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
5-
//! DATE: 2022-10-20, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]`
5+
//! DATE: 2023-03-23, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]`
66
//! HOSTNAME: `ip-172-88-3-164`, CPU: `Intel(R) Xeon(R) Platinum 8124M CPU @ 3.00GHz`
77
//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("heiko-dev"), DB CACHE: 1024
88
@@ -31,45 +31,51 @@ pub struct WeightInfo<T>(PhantomData<T>);
3131
impl<T: frame_system::Config> frame_system::WeightInfo for WeightInfo<T> {
3232
/// The range of component `b` is `[0, 3932160]`.
3333
fn remark(b: u32, ) -> Weight {
34-
Weight::from_ref_time(3_703_000 as u64)
34+
// Minimum execution time: 6_842 nanoseconds.
35+
Weight::from_ref_time(4_467_938)
3536
// Standard Error: 0
36-
.saturating_add(Weight::from_ref_time(1_000 as u64).saturating_mul(b as u64))
37+
.saturating_add(Weight::from_ref_time(534).saturating_mul(b.into()))
3738
}
3839
/// The range of component `b` is `[0, 3932160]`.
3940
fn remark_with_event(b: u32, ) -> Weight {
40-
Weight::from_ref_time(0 as u64)
41-
// Standard Error: 0
42-
.saturating_add(Weight::from_ref_time(2_000 as u64).saturating_mul(b as u64))
41+
// Minimum execution time: 22_622 nanoseconds.
42+
Weight::from_ref_time(19_476_218)
43+
// Standard Error: 1
44+
.saturating_add(Weight::from_ref_time(2_294).saturating_mul(b.into()))
4345
}
4446
// Storage: System Digest (r:1 w:1)
4547
// Storage: unknown [0x3a686561707061676573] (r:0 w:1)
4648
fn set_heap_pages() -> Weight {
47-
Weight::from_ref_time(9_860_000 as u64)
48-
.saturating_add(T::DbWeight::get().reads(1 as u64))
49-
.saturating_add(T::DbWeight::get().writes(2 as u64))
49+
// Minimum execution time: 14_493 nanoseconds.
50+
Weight::from_ref_time(14_783_000)
51+
.saturating_add(T::DbWeight::get().reads(1))
52+
.saturating_add(T::DbWeight::get().writes(2))
5053
}
5154
// Storage: Skipped Metadata (r:0 w:0)
52-
/// The range of component `i` is `[1, 1000]`.
55+
/// The range of component `i` is `[0, 1000]`.
5356
fn set_storage(i: u32, ) -> Weight {
54-
Weight::from_ref_time(0 as u64)
55-
// Standard Error: 1_000
56-
.saturating_add(Weight::from_ref_time(1_021_000 as u64).saturating_mul(i as u64))
57-
.saturating_add(T::DbWeight::get().writes((1 as u64).saturating_mul(i as u64)))
57+
// Minimum execution time: 6_691 nanoseconds.
58+
Weight::from_ref_time(6_790_000)
59+
// Standard Error: 2_840
60+
.saturating_add(Weight::from_ref_time(1_092_534).saturating_mul(i.into()))
61+
.saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(i.into())))
5862
}
5963
// Storage: Skipped Metadata (r:0 w:0)
60-
/// The range of component `i` is `[1, 1000]`.
64+
/// The range of component `i` is `[0, 1000]`.
6165
fn kill_storage(i: u32, ) -> Weight {
62-
Weight::from_ref_time(0 as u64)
63-
// Standard Error: 2_000
64-
.saturating_add(Weight::from_ref_time(799_000 as u64).saturating_mul(i as u64))
65-
.saturating_add(T::DbWeight::get().writes((1 as u64).saturating_mul(i as u64)))
66+
// Minimum execution time: 6_843 nanoseconds.
67+
Weight::from_ref_time(6_880_000)
68+
// Standard Error: 898
69+
.saturating_add(Weight::from_ref_time(751_055).saturating_mul(i.into()))
70+
.saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(i.into())))
6671
}
6772
// Storage: Skipped Metadata (r:0 w:0)
68-
/// The range of component `p` is `[1, 1000]`.
73+
/// The range of component `p` is `[0, 1000]`.
6974
fn kill_prefix(p: u32, ) -> Weight {
70-
Weight::from_ref_time(0 as u64)
71-
// Standard Error: 2_000
72-
.saturating_add(Weight::from_ref_time(1_572_000 as u64).saturating_mul(p as u64))
73-
.saturating_add(T::DbWeight::get().writes((1 as u64).saturating_mul(p as u64)))
75+
// Minimum execution time: 9_746 nanoseconds.
76+
Weight::from_ref_time(9_918_000)
77+
// Standard Error: 1_372
78+
.saturating_add(Weight::from_ref_time(1_453_284).saturating_mul(p.into()))
79+
.saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(p.into())))
7480
}
7581
}

runtime/heiko/src/weights/mod.rs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,11 @@
11
pub mod frame_system;
2+
pub mod pallet_assets;
3+
pub mod pallet_collator_selection;
4+
pub mod pallet_collective;
5+
pub mod pallet_democracy;
6+
pub mod pallet_multisig;
7+
pub mod pallet_proxy;
8+
pub mod pallet_scheduler;
29
pub mod pallet_amm;
310
pub mod pallet_asset_registry;
411
pub mod pallet_balances;

runtime/heiko/src/weights/pallet_amm.rs

Lines changed: 19 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
//! Autogenerated weights for `pallet_amm`
33
//!
44
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
5-
//! DATE: 2022-10-20, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]`
5+
//! DATE: 2023-03-23, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]`
66
//! HOSTNAME: `ip-172-88-3-164`, CPU: `Intel(R) Xeon(R) Platinum 8124M CPU @ 3.00GHz`
77
//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("heiko-dev"), DB CACHE: 1024
88
@@ -34,37 +34,42 @@ impl<T: frame_system::Config> pallet_amm::WeightInfo for WeightInfo<T> {
3434
// Storage: Assets Asset (r:3 w:3)
3535
// Storage: Assets Account (r:5 w:5)
3636
fn add_liquidity() -> Weight {
37-
Weight::from_ref_time(161_720_000 as u64)
38-
.saturating_add(T::DbWeight::get().reads(10 as u64))
39-
.saturating_add(T::DbWeight::get().writes(9 as u64))
37+
// Minimum execution time: 172_184 nanoseconds.
38+
Weight::from_ref_time(173_791_000)
39+
.saturating_add(T::DbWeight::get().reads(10))
40+
.saturating_add(T::DbWeight::get().writes(9))
4041
}
4142
// Storage: AMM Pools (r:1 w:1)
4243
// Storage: AMM ProtocolFee (r:1 w:0)
4344
// Storage: Assets Asset (r:3 w:3)
4445
// Storage: Assets Account (r:5 w:5)
4546
fn remove_liquidity() -> Weight {
46-
Weight::from_ref_time(174_864_000 as u64)
47-
.saturating_add(T::DbWeight::get().reads(10 as u64))
48-
.saturating_add(T::DbWeight::get().writes(9 as u64))
47+
// Minimum execution time: 188_419 nanoseconds.
48+
Weight::from_ref_time(190_666_000)
49+
.saturating_add(T::DbWeight::get().reads(10))
50+
.saturating_add(T::DbWeight::get().writes(9))
4951
}
5052
// Storage: AMM Pools (r:1 w:1)
5153
// Storage: Assets Asset (r:3 w:3)
5254
// Storage: Assets Account (r:6 w:6)
5355
// Storage: System Account (r:2 w:2)
5456
// Storage: AMM ProtocolFee (r:1 w:0)
5557
fn create_pool() -> Weight {
56-
Weight::from_ref_time(217_145_000 as u64)
57-
.saturating_add(T::DbWeight::get().reads(13 as u64))
58-
.saturating_add(T::DbWeight::get().writes(12 as u64))
58+
// Minimum execution time: 214_658 nanoseconds.
59+
Weight::from_ref_time(216_739_000)
60+
.saturating_add(T::DbWeight::get().reads(13))
61+
.saturating_add(T::DbWeight::get().writes(12))
5962
}
6063
// Storage: AMM ProtocolFee (r:0 w:1)
6164
fn update_protocol_fee() -> Weight {
62-
Weight::from_ref_time(22_954_000 as u64)
63-
.saturating_add(T::DbWeight::get().writes(1 as u64))
65+
// Minimum execution time: 24_939 nanoseconds.
66+
Weight::from_ref_time(25_267_000)
67+
.saturating_add(T::DbWeight::get().writes(1))
6468
}
6569
// Storage: AMM ProtocolFeeReceiver (r:0 w:1)
6670
fn update_protocol_fee_receiver() -> Weight {
67-
Weight::from_ref_time(24_118_000 as u64)
68-
.saturating_add(T::DbWeight::get().writes(1 as u64))
71+
// Minimum execution time: 25_759 nanoseconds.
72+
Weight::from_ref_time(26_507_000)
73+
.saturating_add(T::DbWeight::get().writes(1))
6974
}
7075
}

runtime/heiko/src/weights/pallet_asset_registry.rs

Lines changed: 21 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
//! Autogenerated weights for `pallet_asset_registry`
33
//!
44
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
5-
//! DATE: 2022-10-20, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]`
5+
//! DATE: 2023-03-23, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]`
66
//! HOSTNAME: `ip-172-88-3-164`, CPU: `Intel(R) Xeon(R) Platinum 8124M CPU @ 3.00GHz`
77
//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("heiko-dev"), DB CACHE: 1024
88
@@ -32,41 +32,46 @@ impl<T: frame_system::Config> pallet_asset_registry::WeightInfo for WeightInfo<T
3232
// Storage: AssetRegistry AssetIdType (r:1 w:1)
3333
// Storage: AssetRegistry AssetTypeId (r:0 w:1)
3434
fn register_asset() -> Weight {
35-
Weight::from_ref_time(30_282_000 as u64)
36-
.saturating_add(T::DbWeight::get().reads(1 as u64))
37-
.saturating_add(T::DbWeight::get().writes(2 as u64))
35+
// Minimum execution time: 33_621 nanoseconds.
36+
Weight::from_ref_time(34_077_000)
37+
.saturating_add(T::DbWeight::get().reads(1))
38+
.saturating_add(T::DbWeight::get().writes(2))
3839
}
3940
// Storage: AssetRegistry AssetTypeId (r:1 w:0)
4041
// Storage: AssetRegistry SupportedFeePaymentAssets (r:1 w:1)
4142
// Storage: AssetRegistry AssetTypeUnitsPerSecond (r:0 w:1)
4243
fn update_asset_units_per_second() -> Weight {
43-
Weight::from_ref_time(37_353_000 as u64)
44-
.saturating_add(T::DbWeight::get().reads(2 as u64))
45-
.saturating_add(T::DbWeight::get().writes(2 as u64))
44+
// Minimum execution time: 40_651 nanoseconds.
45+
Weight::from_ref_time(40_972_000)
46+
.saturating_add(T::DbWeight::get().reads(2))
47+
.saturating_add(T::DbWeight::get().writes(2))
4648
}
4749
// Storage: AssetRegistry SupportedFeePaymentAssets (r:1 w:1)
4850
// Storage: AssetRegistry AssetIdType (r:1 w:1)
4951
// Storage: AssetRegistry AssetTypeUnitsPerSecond (r:1 w:2)
5052
// Storage: AssetRegistry AssetTypeId (r:0 w:2)
5153
fn update_asset_type() -> Weight {
52-
Weight::from_ref_time(51_300_000 as u64)
53-
.saturating_add(T::DbWeight::get().reads(3 as u64))
54-
.saturating_add(T::DbWeight::get().writes(6 as u64))
54+
// Minimum execution time: 52_289 nanoseconds.
55+
Weight::from_ref_time(53_014_000)
56+
.saturating_add(T::DbWeight::get().reads(3))
57+
.saturating_add(T::DbWeight::get().writes(6))
5558
}
5659
// Storage: AssetRegistry SupportedFeePaymentAssets (r:1 w:1)
5760
// Storage: AssetRegistry AssetTypeUnitsPerSecond (r:0 w:1)
5861
fn remove_fee_payment_asset() -> Weight {
59-
Weight::from_ref_time(31_517_000 as u64)
60-
.saturating_add(T::DbWeight::get().reads(1 as u64))
61-
.saturating_add(T::DbWeight::get().writes(2 as u64))
62+
// Minimum execution time: 34_741 nanoseconds.
63+
Weight::from_ref_time(35_328_000)
64+
.saturating_add(T::DbWeight::get().reads(1))
65+
.saturating_add(T::DbWeight::get().writes(2))
6266
}
6367
// Storage: AssetRegistry SupportedFeePaymentAssets (r:1 w:1)
6468
// Storage: AssetRegistry AssetIdType (r:1 w:1)
6569
// Storage: AssetRegistry AssetTypeUnitsPerSecond (r:0 w:1)
6670
// Storage: AssetRegistry AssetTypeId (r:0 w:1)
6771
fn deregister_asset() -> Weight {
68-
Weight::from_ref_time(40_159_000 as u64)
69-
.saturating_add(T::DbWeight::get().reads(2 as u64))
70-
.saturating_add(T::DbWeight::get().writes(4 as u64))
72+
// Minimum execution time: 41_282 nanoseconds.
73+
Weight::from_ref_time(41_717_000)
74+
.saturating_add(T::DbWeight::get().reads(2))
75+
.saturating_add(T::DbWeight::get().writes(4))
7176
}
7277
}

0 commit comments

Comments
 (0)