git.delta.rocks / unique-network / refs/commits / 6a928c9608ab

difftreelog

build(pallet-maintenance) run benchmark

Igor Kozyrev2023-02-22parent: #159d4fc.patch.diff
in: master

1 file changed

modifiedpallets/maintenance/src/weights.rsdiffbeforeafterboth
44impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {44impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
45 // Storage: Maintenance Enabled (r:0 w:1)45 // Storage: Maintenance Enabled (r:0 w:1)
46 fn enable() -> Weight {46 fn enable() -> Weight {
47 Weight::from_ref_time(10_860_000 as u64)47 Weight::from_ref_time(12_866_000 as u64)
48 .saturating_add(T::DbWeight::get().writes(1 as u64))48 .saturating_add(T::DbWeight::get().writes(1 as u64))
49 }49 }
50 // Storage: Maintenance Enabled (r:0 w:1)50 // Storage: Maintenance Enabled (r:0 w:1)
51 fn disable() -> Weight {51 fn disable() -> Weight {
52 Weight::from_ref_time(10_871_000 as u64)52 Weight::from_ref_time(12_777_000 as u64)
53 .saturating_add(T::DbWeight::get().writes(1 as u64))53 .saturating_add(T::DbWeight::get().writes(1 as u64))
54 }54 }
55 // Storage: Preimage StatusFor (r:1 w:0)55 // Storage: Preimage StatusFor (r:1 w:0)
56 // Storage: Preimage PreimageFor (r:1 w:0)56 // Storage: Preimage PreimageFor (r:1 w:0)
57 fn execute_preimage() -> Weight {57 fn execute_preimage() -> Weight {
58 Weight::from_ref_time(10_068_000 as u64)58 Weight::from_ref_time(12_228_000 as u64)
59 .saturating_add(T::DbWeight::get().reads(2 as u64))59 .saturating_add(T::DbWeight::get().reads(2 as u64))
60 }60 }
61}61}
64impl WeightInfo for () {64impl WeightInfo for () {
65 // Storage: Maintenance Enabled (r:0 w:1)65 // Storage: Maintenance Enabled (r:0 w:1)
66 fn enable() -> Weight {66 fn enable() -> Weight {
67 Weight::from_ref_time(10_860_000 as u64)67 Weight::from_ref_time(12_866_000 as u64)
68 .saturating_add(RocksDbWeight::get().writes(1 as u64))68 .saturating_add(RocksDbWeight::get().writes(1 as u64))
69 }69 }
70 // Storage: Maintenance Enabled (r:0 w:1)70 // Storage: Maintenance Enabled (r:0 w:1)
71 fn disable() -> Weight {71 fn disable() -> Weight {
72 Weight::from_ref_time(10_871_000 as u64)72 Weight::from_ref_time(12_777_000 as u64)
73 .saturating_add(RocksDbWeight::get().writes(1 as u64))73 .saturating_add(RocksDbWeight::get().writes(1 as u64))
74 }74 }
75 // Storage: Preimage StatusFor (r:1 w:0)75 // Storage: Preimage StatusFor (r:1 w:0)
76 // Storage: Preimage PreimageFor (r:1 w:0)76 // Storage: Preimage PreimageFor (r:1 w:0)
77 fn execute_preimage() -> Weight {77 fn execute_preimage() -> Weight {
78 Weight::from_ref_time(10_068_000 as u64)78 Weight::from_ref_time(12_228_000 as u64)
79 .saturating_add(RocksDbWeight::get().reads(2 as u64))79 .saturating_add(RocksDbWeight::get().reads(2 as u64))
80 }80 }
81}81}