Add weight for decoding the call to benchmarks (#9781)
* First two bechmarks converted * Add decoding weight to benchmarks. * Update frame/democracy/src/benchmarking.rs * Adapt to new Call-ing convention * Resolve conflicts and change more calls * Remove error impl for codec and use plain `expect` for error handling instead * Compile fix * Spaces to tabs * Update frame/democracy/src/benchmarking.rs Co-authored-by:Kian Paimani <5588131+kianenigma@users.noreply.github.com> * Add origin-type specifier to benchmarks macro * formatting * Update frame/benchmarking/src/lib.rs Co-authored-by:
Kian Paimani <5588131+kianenigma@users.noreply.github.com> * Change manual to automatic benchmark syntax * Formatting * Revert "Change manual to automatic benchmark syntax" This reverts commit ea5b5d906b318b6525c1e6d2bd05c5011595c21a. Because tests are lost and cleanup code in the verify function is not run on failing calls. Co-authored-by:
Guillaume Thiolliere <gui.thiolliere@gmail.com> Co-authored-by:
Kian Paimani <5588131+kianenigma@users.noreply.github.com>
Showing
- substrate/frame/benchmarking/src/lib.rs 25 additions, 8 deletionssubstrate/frame/benchmarking/src/lib.rs
- substrate/frame/benchmarking/src/utils.rs 0 additions, 1 deletionsubstrate/frame/benchmarking/src/utils.rs
- substrate/frame/democracy/src/benchmarking.rs 14 additions, 24 deletionssubstrate/frame/democracy/src/benchmarking.rs
- substrate/frame/election-provider-multi-phase/src/benchmarking.rs 0 additions, 1 deletion...e/frame/election-provider-multi-phase/src/benchmarking.rs
- substrate/frame/elections-phragmen/src/benchmarking.rs 13 additions, 2 deletionssubstrate/frame/elections-phragmen/src/benchmarking.rs
- substrate/frame/gilt/src/benchmarking.rs 5 additions, 10 deletionssubstrate/frame/gilt/src/benchmarking.rs
- substrate/frame/im-online/src/benchmarking.rs 5 additions, 3 deletionssubstrate/frame/im-online/src/benchmarking.rs
- substrate/frame/lottery/src/benchmarking.rs 4 additions, 9 deletionssubstrate/frame/lottery/src/benchmarking.rs
- substrate/frame/staking/src/benchmarking.rs 9 additions, 2 deletionssubstrate/frame/staking/src/benchmarking.rs
Please register or sign in to comment