Automatic weights documentation
-
Review changes -
-
Download -
Patches
-
Plain diff
Parse the weight files to calculate both extrinsic weights and relative weights, and include the results in the documentation #128 (closed).
This requires:
- The pallet weights computed on the reference machine.
- The extrinsic weights computed on the reference machine to get the weight overhead of the execution of one extrinsic.
- The paritydb weights computed on the reference machine to get the weight of read and write in the database.
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:
-
parse weight files. -
compute weights from files. -
add relative weight in % of block max. -
fix overhead benchmark. -
include computed weights in the autogenerated documentation. -
fix missing weights. -
automatic block max extraction from metadata.
Edited by Benjamin Gallois
Merge request reports
Compare and
- version 28a1caf6e7
- version 2756dcf1da
- version 26d6fd10b6
- version 2500d4ed05
- version 24b43399d6
- version 23c32a1e76
- version 22ab7501c1
- version 2112ee6f18
- version 2099bfde6d
- version 198d7f0d31
- version 18c8d99448
- version 1776cbf239
- version 16cbb9938c
- version 153606018a
- version 14baa4a50b
- version 13722e570b
- version 12b328921f
- version 119108f75e
- version 10cf27e889
- version 91457b101
- version 8a787b7fe
- version 70da77060
- version 69cff5f5d
- version 57333846c
- version 4b9da1a76
- version 33b59192c
- version 2f5419851
- version 106350be6
- master (base)
- latest version67b1e8f822 commits,
- version 28a1caf6e722 commits,
- version 2756dcf1da21 commits,
- version 26d6fd10b620 commits,
- version 2500d4ed0519 commits,
- version 24b43399d618 commits,
- version 23c32a1e7617 commits,
- version 22ab7501c116 commits,
- version 2112ee6f1815 commits,
- version 2099bfde6d14 commits,
- version 198d7f0d3113 commits,
- version 18c8d9944812 commits,
- version 1776cbf23911 commits,
- version 16cbb9938c10 commits,
- version 153606018a10 commits,
- version 14baa4a50b10 commits,
- version 13722e570b9 commits,
- version 12b328921f8 commits,
- version 119108f75e6 commits,
- version 10cf27e8896 commits,
- version 91457b1016 commits,
- version 8a787b7fe6 commits,
- version 70da770605 commits,
- version 69cff5f5d4 commits,
- version 57333846c3 commits,
- version 4b9da1a762 commits,
- version 33b59192c2 commits,
- version 2f54198511 commit,
- version 106350be61 commit,
Compare changes
- Side-by-side
- Inline
Files
41Loading