Create benchmark for the `system::set_code` instrisic (#13373)
* Still WIP # Conflicts: # frame/system/src/weights.rs * Still WIP * Add benchmark for system::set_code intrinsic fixes #13192 * Fix format * Add missing benchmark runtime * Fix lint warning * Consume the rest of the block and add test verification after the benchmark * Rewrite set_code function * Try to fix benchmarks and tests * Remove weight tags * Update frame/system/src/tests.rs Co-authored-by:Bastian Köcher <git@kchr.de> * Register ReadRuntimeVersionExt for benches Signed-off-by:
Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> * Fix tests * Fix deprecations * Fix deprecations * ".git/.scripts/commands/bench/bench.sh" pallet dev frame_system * Add update info and remove obsolete complexity comments. * ".git/.scripts/commands/fmt/fmt.sh" * Update frame/system/src/lib.rs Co-authored-by:
Bastian Köcher <git@kchr.de> * Update frame/system/src/lib.rs Co-authored-by:
Bastian Köcher <git@kchr.de> * Update frame/system/src/lib.rs Co-authored-by:
Bastian Köcher <git@kchr.de> * Update frame/system/src/lib.rs Co-authored-by:
Bastian Köcher <git@kchr.de> * Update frame/system/benchmarking/src/lib.rs Co-authored-by:
Bastian Köcher <git@kchr.de> * ".git/.scripts/commands/fmt/fmt.sh" * Update README.md Just trigger CI rebuild * Update README.md Trigger CI --------- Signed-off-by:
Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> Co-authored-by:
Bastian Köcher <git@kchr.de> Co-authored-by:
Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> Co-authored-by: command-bot <>
Showing
- substrate/Cargo.lock 3 additions, 0 deletionssubstrate/Cargo.lock
- substrate/frame/system/Cargo.toml 1 addition, 0 deletionssubstrate/frame/system/Cargo.toml
- substrate/frame/system/benchmarking/Cargo.toml 2 additions, 0 deletionssubstrate/frame/system/benchmarking/Cargo.toml
- substrate/frame/system/benchmarking/res/README.md 5 additions, 0 deletionssubstrate/frame/system/benchmarking/res/README.md
- substrate/frame/system/benchmarking/res/kitchensink_runtime.compact.compressed.wasm 0 additions, 0 deletions...chmarking/res/kitchensink_runtime.compact.compressed.wasm
- substrate/frame/system/benchmarking/src/lib.rs 6 additions, 3 deletionssubstrate/frame/system/benchmarking/src/lib.rs
- substrate/frame/system/benchmarking/src/mock.rs 24 additions, 1 deletionsubstrate/frame/system/benchmarking/src/mock.rs
- substrate/frame/system/src/lib.rs 20 additions, 21 deletionssubstrate/frame/system/src/lib.rs
- substrate/frame/system/src/tests.rs 6 additions, 1 deletionsubstrate/frame/system/src/tests.rs
- substrate/frame/system/src/weights.rs 75 additions, 47 deletionssubstrate/frame/system/src/weights.rs
- substrate/frame/utility/src/tests.rs 6 additions, 2 deletionssubstrate/frame/utility/src/tests.rs
Please register or sign in to comment