Recovery Pallet benchmarking (#11176)
* Created benchmarks * Added recovery benchmarks * benchmark for `create_recovery` * benchmark for `initiate_recovery` * benchmark for `vouch_recovery` * benchmark for `claim_recovery` * benchmark for `close_recovery` * benchmark for `remove_recovery` * benchmark for `cancel_recovered` * benchmark for `as_recovered` * Some refactoring * Some refactoring * Fix create_recovery benchmark * fix close_recovery benchmark test * fixed issues with failing tests * Update frame/recovery/src/benchmarking.rs Co-authored-by:Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> * removed repetitive code * create weights file * Used weights to annotate extrinsics * Added WeightInfo implementation to mock * Beauty fixes Signed-off-by:
Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> * Update frame/recovery/src/benchmarking.rs Co-authored-by:
Kian Paimani <5588131+kianenigma@users.noreply.github.com> * Update frame/recovery/src/benchmarking.rs Co-authored-by:
Kian Paimani <5588131+kianenigma@users.noreply.github.com> * Set vec to be mut * set delay_period to use non-zero amount * set delay default * Add weights Signed-off-by:
Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> Co-authored-by:
Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> Co-authored-by:
Kian Paimani <5588131+kianenigma@users.noreply.github.com>
Showing
- substrate/Cargo.lock 1 addition, 0 deletionssubstrate/Cargo.lock
- substrate/bin/node/runtime/Cargo.toml 1 addition, 0 deletionssubstrate/bin/node/runtime/Cargo.toml
- substrate/bin/node/runtime/src/lib.rs 2 additions, 0 deletionssubstrate/bin/node/runtime/src/lib.rs
- substrate/frame/recovery/Cargo.toml 8 additions, 0 deletionssubstrate/frame/recovery/Cargo.toml
- substrate/frame/recovery/src/benchmarking.rs 371 additions, 0 deletionssubstrate/frame/recovery/src/benchmarking.rs
- substrate/frame/recovery/src/lib.rs 21 additions, 93 deletionssubstrate/frame/recovery/src/lib.rs
- substrate/frame/recovery/src/mock.rs 4 additions, 1 deletionsubstrate/frame/recovery/src/mock.rs
- substrate/frame/recovery/src/tests.rs 15 additions, 6 deletionssubstrate/frame/recovery/src/tests.rs
- substrate/frame/recovery/src/weights.rs 203 additions, 0 deletionssubstrate/frame/recovery/src/weights.rs
Please register or sign in to comment