This repository was archived by the owner on Nov 15, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +4
-3
lines changed
utils/frame/benchmarking-cli/src/pallet Expand file tree Collapse file tree 3 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -64,7 +64,7 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
6464 {{ ~#each benchmark.components as |c | ~}}
6565 {{ ~#if (not c.is_used )}} _{{ /if }} {{ c.name }} : u32, {{ /each ~}}
6666 ) -> Weight {
67- // Minimum execution time: {{ underscore cw .min_execution_time}}
67+ // Minimum execution time: {{ underscore benchmark .min_execution_time}} nanoseconds.
6868 Weight::from_ref_time({{ underscore benchmark.base_weight }} as u64)
6969 {{ #each benchmark.component_weight as |cw |}}
7070 // Standard Error: {{ underscore cw.error }}
@@ -100,7 +100,7 @@ impl WeightInfo for () {
100100 {{ ~#each benchmark.components as |c | ~}}
101101 {{ ~#if (not c.is_used )}} _{{ /if }} {{ c.name }} : u32, {{ /each ~}}
102102 ) -> Weight {
103- // Minimum execution time: {{ underscore cw .min_execution_time}}
103+ // Minimum execution time: {{ underscore benchmark .min_execution_time}} nanoseconds.
104104 Weight::from_ref_time({{ underscore benchmark.base_weight }} as u64)
105105 {{ #each benchmark.component_weight as |cw |}}
106106 // Standard Error: {{ underscore cw.error }}
Original file line number Diff line number Diff line change @@ -33,7 +33,7 @@ impl<T: frame_system::Config> {{pallet}}::WeightInfo for WeightInfo<T> {
3333 {{ ~#each benchmark.components as |c | ~}}
3434 {{ ~#if (not c.is_used )}} _{{ /if }} {{ c.name }} : u32, {{ /each ~}}
3535 ) -> Weight {
36- // Minimum execution time: {{ underscore cw .min_execution_time}}
36+ // Minimum execution time: {{ underscore benchmark .min_execution_time}} nanoseconds.
3737 Weight::from_ref_time({{ underscore benchmark.base_weight }} as u64)
3838 {{ #each benchmark.component_weight as |cw |}}
3939 // Standard Error: {{ underscore cw.error }}
Original file line number Diff line number Diff line change @@ -69,6 +69,7 @@ struct BenchmarkData {
6969 component_writes : Vec < ComponentSlope > ,
7070 component_ranges : Vec < ComponentRange > ,
7171 comments : Vec < String > ,
72+ #[ serde( serialize_with = "string_serialize" ) ]
7273 min_execution_time : u128 ,
7374}
7475
You can’t perform that action at this time.
0 commit comments