Automatic weights documentation
Compare changes
Files
2- bgallois authored
@@ -17,45 +17,65 @@ pub struct WeightInfo {
@@ -102,3 +122,14 @@ fn process(
Parse the weight files to calculate both extrinsic weights and relative weights, and include the results in the documentation #128 (closed).
This requires:
Include in the docs:
The relative weight for all extrinsics available as:
\frac{weight_{extrinsic_base} + weight_{extrinsic}}{weight_{block}}*100
- In the case where the extrinsic has a complexity parameter, the weight is calculated as the worst-case scenario, i.e., the maximal value set during benchmarking.
- In the case where no weight is available, the value is set to -1% and translated to "No weight available" in the doc.
To-do list: