This repository has been archived by the owner on Nov 15, 2023. It is now read-only.
Expose benchmark component ranges #11397
Labels
J0-enhancement
An additional feature request.
U3-nice_to_have
Issue is worth doing eventually.
Z0-trivial
Writing the issue is of the same difficulty as patching the code.
Problem
The range of a benchmarking component is not written to the weight file.
Any downstream software (like substrate-weight-compare) can therefore not use this information.
Context
A benchmarking component is defined in the form:
Substrate then samples some values in this range and measures the weight at each.
The final weight file does not contain any information about the
0..100
range from above:Solution
One way would be to add attribute macros. Eg:
... or even easier with comments:
The step size of
20
in this example is picked by Substrate.Before implementing the doc solution, it would be wise to double-check that
syn
can parse this.The text was updated successfully, but these errors were encountered: