Automatic weights documentation
Compare changes
- bgallois authored
@@ -2,6 +2,7 @@ use glob::glob;
@@ -16,10 +17,9 @@ fn main() {
@@ -58,8 +58,18 @@ fn read_overhead_weight() -> Weight {
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: