Contracts: Only exec parsed code in benchmarks (#3915)
[Weights compare](https://weights.tasty.limo/compare?unit=weight&ignore_errors=true&threshold=10&method=asymptotic&repo=polkadot-sdk&old=master&new=pg%2Fbench_tweaks&path_pattern=substrate%2Fframe%2F**%2Fsrc%2Fweights.rs%2Cpolkadot%2Fruntime%2F*%2Fsrc%2Fweights%2F**%2F*.rs%2Cpolkadot%2Fbridges%2Fmodules%2F*%2Fsrc%2Fweights.rs%2Ccumulus%2F**%2Fweights%2F*.rs%2Ccumulus%2F**%2Fweights%2Fxcm%2F*.rs%2Ccumulus%2F**%2Fsrc%2Fweights.rs) Note: Raw weights change does not mean much here, as this PR reduce the scope of what is benchmarked, they are therefore decreased by a good margin. One should instead print the Schedule using cargo test --features runtime-benchmarks bench_print_schedule -- --nocapture or following the instructions from the [README](https://github.com/paritytech/polkadot-sdk/tree/pg/bench_tweaks/substrate/frame/contracts#schedule) for looking at the Schedule of a specific runtime --------- Co-authored-by: command-bot <>
parent
92e14255
Showing
- prdoc/pr_3915.prdoc 14 additions, 0 deletionsprdoc/pr_3915.prdoc
- substrate/frame/contracts/fixtures/contracts/return_with_data.rs 4 additions, 0 deletions...te/frame/contracts/fixtures/contracts/return_with_data.rs
- substrate/frame/contracts/src/benchmarking/call_builder.rs 170 additions, 0 deletionssubstrate/frame/contracts/src/benchmarking/call_builder.rs
- substrate/frame/contracts/src/benchmarking/mod.rs 334 additions, 338 deletionssubstrate/frame/contracts/src/benchmarking/mod.rs
- substrate/frame/contracts/src/exec.rs 24 additions, 0 deletionssubstrate/frame/contracts/src/exec.rs
- substrate/frame/contracts/src/wasm/mod.rs 73 additions, 25 deletionssubstrate/frame/contracts/src/wasm/mod.rs
- substrate/frame/contracts/src/weights.rs 1088 additions, 2608 deletionssubstrate/frame/contracts/src/weights.rs
Please register or sign in to comment