Fix benchmarks! macro for non dispatchable code (#5100)
* Init allowing non dispatchable closure to be benchmarked. * Remove example, add it in timestamp * Fix nits. * Move test to example. * Update frame/example/src/lib.rs Co-Authored-By:Shawn Tabrizi <shawntabrizi@gmail.com> * Update frame/example/src/lib.rs Co-Authored-By:
Shawn Tabrizi <shawntabrizi@gmail.com> * Apply review suggestion: move test to benchmarking crate. * Update frame/benchmarking/src/lib.rs Co-Authored-By:
Bastian Köcher <bkchr@users.noreply.github.com> * Remove unused imports. Co-authored-by:
Shawn Tabrizi <shawntabrizi@gmail.com> Co-authored-by:
Bastian Köcher <bkchr@users.noreply.github.com> Co-authored-by:
Benjamin Kampmann <ben.kampmann@googlemail.com>
Showing
- substrate/Cargo.lock 3 additions, 0 deletionssubstrate/Cargo.lock
- substrate/frame/benchmarking/Cargo.toml 11 additions, 1 deletionsubstrate/frame/benchmarking/Cargo.toml
- substrate/frame/benchmarking/src/lib.rs 123 additions, 123 deletionssubstrate/frame/benchmarking/src/lib.rs
- substrate/frame/benchmarking/src/tests.rs 169 additions, 0 deletionssubstrate/frame/benchmarking/src/tests.rs
- substrate/frame/benchmarking/src/utils.rs 4 additions, 4 deletionssubstrate/frame/benchmarking/src/utils.rs
- substrate/frame/example/Cargo.toml 2 additions, 0 deletionssubstrate/frame/example/Cargo.toml
- substrate/frame/example/src/lib.rs 40 additions, 2 deletionssubstrate/frame/example/src/lib.rs
Please register or sign in to comment