1818//! Autogenerated weights for {{ pallet }}
1919//!
2020//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION {{ version }}
21- //! DATE: {{ date }} , STEPS: `{{ cmd.steps }} `, REPEAT: {{ cmd.repeat }} , LOW RANGE: `{{ cmd.lowest_range_values }} `, HIGH RANGE: `{{ cmd.highest_range_values }} `
21+ //! DATE: {{ date }} , STEPS: `{{ cmd.steps }} `, REPEAT: `{{ cmd.repeat }} `, LOW RANGE: `{{ cmd.lowest_range_values }} `, HIGH RANGE: `{{ cmd.highest_range_values }} `
22+ //! WORST CASE MAP SIZE: `{{ cmd.worst_case_map_values }} `
23+ //! HOSTNAME: `{{ hostname }} `, CPU: `{{ cpuname }} `
2224//! EXECUTION: {{ cmd.execution }} , WASM-EXECUTION: {{ cmd.wasm_execution }} , CHAIN: {{ cmd.chain }} , DB CACHE: {{ cmd.db_cache }}
2325
2426// Executed Command:
2729{{ /each }}
2830
2931#![cfg_attr(rustfmt, rustfmt_skip)]
30- #![allow(
31- rustdoc::all,
32- missing_docs,
33- unused_parens,
34- unused_imports
35- )]
32+ #![allow(unused_parens)]
33+ #![allow(unused_imports)]
34+ #![allow(missing_docs)]
3635
3736use frame_support::{traits::Get, weights::{Weight, constants::RocksDbWeight}};
38- use sp_std ::marker::PhantomData;
37+ use core ::marker::PhantomData;
3938
4039/// Weight functions needed for {{ pallet }} .
4140pub trait WeightInfo {
@@ -57,29 +56,39 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
5756{{ /if }}
5857 {{ #each benchmarks as |benchmark |}}
5958 {{ #each benchmark.comments as |comment |}}
60- // {{ comment }}
59+ /// {{ comment }}
60+ {{ /each }}
61+ {{ #each benchmark.component_ranges as |range |}}
62+ /// The range of component `{{ range.name }} ` is `[{{ range.min }} , {{ range.max }} ]`.
6163 {{ /each }}
6264 fn {{ benchmark.name ~}}
6365 (
6466 {{ ~#each benchmark.components as |c | ~}}
6567 {{ ~#if (not c.is_used )}} _{{ /if }} {{ c.name }} : u32, {{ /each ~}}
6668 ) -> Weight {
67- Weight::from_ref_time({{ underscore benchmark.base_weight }} as u64)
69+ // Proof Size summary in bytes:
70+ // Measured: `{{ benchmark.base_recorded_proof_size }} {{ #each benchmark.component_recorded_proof_size as |cp |}} + {{ cp.name }} * ({{ cp.slope }} ±{{ underscore cp.error }} ){{ /each }} `
71+ // Estimated: `{{ benchmark.base_calculated_proof_size }} {{ #each benchmark.component_calculated_proof_size as |cp |}} + {{ cp.name }} * ({{ cp.slope }} ±{{ underscore cp.error }} ){{ /each }} `
72+ // Minimum execution time: {{ underscore benchmark.min_execution_time }} _000 picoseconds.
73+ Weight::from_parts({{ underscore benchmark.base_weight }} , {{ benchmark.base_calculated_proof_size }} )
6874 {{ #each benchmark.component_weight as |cw |}}
6975 // Standard Error: {{ underscore cw.error }}
70- .saturating_add(Weight::from_ref_time ({{ underscore cw.slope }} as u64 ).saturating_mul({{ cw.name }} as u64 ))
76+ .saturating_add(Weight::from_parts ({{ underscore cw.slope }} , 0 ).saturating_mul({{ cw.name }} .into() ))
7177 {{ /each }}
7278 {{ #if (ne benchmark.base_reads " 0" )}}
73- .saturating_add(T::DbWeight::get().reads({{ benchmark.base_reads }} as u64 ))
79+ .saturating_add(T::DbWeight::get().reads({{ benchmark.base_reads }} _u64 ))
7480 {{ /if }}
7581 {{ #each benchmark.component_reads as |cr |}}
76- .saturating_add(T::DbWeight::get().reads(({{ cr.slope }} as u64 ).saturating_mul({{ cr.name }} as u64 )))
82+ .saturating_add(T::DbWeight::get().reads(({{ cr.slope }} _u64 ).saturating_mul({{ cr.name }} .into() )))
7783 {{ /each }}
7884 {{ #if (ne benchmark.base_writes " 0" )}}
79- .saturating_add(T::DbWeight::get().writes({{ benchmark.base_writes }} as u64 ))
85+ .saturating_add(T::DbWeight::get().writes({{ benchmark.base_writes }} _u64 ))
8086 {{ /if }}
8187 {{ #each benchmark.component_writes as |cw |}}
82- .saturating_add(T::DbWeight::get().writes(({{ cw.slope }} as u64).saturating_mul({{ cw.name }} as u64)))
88+ .saturating_add(T::DbWeight::get().writes(({{ cw.slope }} _u64).saturating_mul({{ cw.name }} .into())))
89+ {{ /each }}
90+ {{ #each benchmark.component_calculated_proof_size as |cp |}}
91+ .saturating_add(Weight::from_parts(0, {{ cp.slope }} ).saturating_mul({{ cp.name }} .into()))
8392 {{ /each }}
8493 }
8594 {{ /each }}
@@ -89,29 +98,39 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
8998impl WeightInfo for () {
9099 {{ #each benchmarks as |benchmark |}}
91100 {{ #each benchmark.comments as |comment |}}
92- // {{ comment }}
101+ /// {{ comment }}
102+ {{ /each }}
103+ {{ #each benchmark.component_ranges as |range |}}
104+ /// The range of component `{{ range.name }} ` is `[{{ range.min }} , {{ range.max }} ]`.
93105 {{ /each }}
94106 fn {{ benchmark.name ~}}
95107 (
96108 {{ ~#each benchmark.components as |c | ~}}
97109 {{ ~#if (not c.is_used )}} _{{ /if }} {{ c.name }} : u32, {{ /each ~}}
98110 ) -> Weight {
99- Weight::from_ref_time({{ underscore benchmark.base_weight }} as u64)
111+ // Proof Size summary in bytes:
112+ // Measured: `{{ benchmark.base_recorded_proof_size }} {{ #each benchmark.component_recorded_proof_size as |cp |}} + {{ cp.name }} * ({{ cp.slope }} ±{{ underscore cp.error }} ){{ /each }} `
113+ // Estimated: `{{ benchmark.base_calculated_proof_size }} {{ #each benchmark.component_calculated_proof_size as |cp |}} + {{ cp.name }} * ({{ cp.slope }} ±{{ underscore cp.error }} ){{ /each }} `
114+ // Minimum execution time: {{ underscore benchmark.min_execution_time }} _000 picoseconds.
115+ Weight::from_parts({{ underscore benchmark.base_weight }} , {{ benchmark.base_calculated_proof_size }} )
100116 {{ #each benchmark.component_weight as |cw |}}
101117 // Standard Error: {{ underscore cw.error }}
102- .saturating_add(Weight::from_ref_time ({{ underscore cw.slope }} as u64 ).saturating_mul({{ cw.name }} as u64 ))
118+ .saturating_add(Weight::from_parts ({{ underscore cw.slope }} , 0 ).saturating_mul({{ cw.name }} .into() ))
103119 {{ /each }}
104120 {{ #if (ne benchmark.base_reads " 0" )}}
105- .saturating_add(RocksDbWeight::get().reads({{ benchmark.base_reads }} as u64 ))
121+ .saturating_add(RocksDbWeight::get().reads({{ benchmark.base_reads }} _u64 ))
106122 {{ /if }}
107123 {{ #each benchmark.component_reads as |cr |}}
108- .saturating_add(RocksDbWeight::get().reads(({{ cr.slope }} as u64 ).saturating_mul({{ cr.name }} as u64 )))
124+ .saturating_add(RocksDbWeight::get().reads(({{ cr.slope }} _u64 ).saturating_mul({{ cr.name }} .into() )))
109125 {{ /each }}
110126 {{ #if (ne benchmark.base_writes " 0" )}}
111- .saturating_add(RocksDbWeight::get().writes({{ benchmark.base_writes }} as u64 ))
127+ .saturating_add(RocksDbWeight::get().writes({{ benchmark.base_writes }} _u64 ))
112128 {{ /if }}
113129 {{ #each benchmark.component_writes as |cw |}}
114- .saturating_add(RocksDbWeight::get().writes(({{ cw.slope }} as u64).saturating_mul({{ cw.name }} as u64)))
130+ .saturating_add(RocksDbWeight::get().writes(({{ cw.slope }} _u64).saturating_mul({{ cw.name }} .into())))
131+ {{ /each }}
132+ {{ #each benchmark.component_calculated_proof_size as |cp |}}
133+ .saturating_add(Weight::from_parts(0, {{ cp.slope }} ).saturating_mul({{ cp.name }} .into()))
115134 {{ /each }}
116135 }
117136 {{ /each }}
0 commit comments