Pre-Charge max size when contracts access storage (#10691)
* Fix seal_get_storage * Fix seal_take_storage * Add more benchmarks * cargo run --quiet --release --features=runtime-benchmarks --manifest-path=bin/node/cli/Cargo.toml -- benchmark --chain=dev --steps=50 --repeat=20 --pallet=pallet_contracts --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --output=./frame/contracts/src/weights.rs --template=./.maintain/frame-weight-template.hbs * Fix seal_set_storage * Fix seal_contains_storage and seal_clear_storage * Fix benchmarks * cargo run --quiet --release --features=runtime-benchmarks --manifest-path=bin/node/cli/Cargo.toml -- benchmark --chain=dev --steps=50 --repeat=20 --pallet=pallet_contracts --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --output=./frame/contracts/src/weights.rs --template=./.maintain/frame-weight-template.hbs * Get rid of mem::size_of in benchmarks * Fix up code loading * Apply suggestions from code review Co-authored-by:Hernando Castano <HCastano@users.noreply.github.com> * Fix test to call same function twice * Replaced u32::MAX by SENTINEL const * Fix seal_contains_storage benchmark * cargo run --quiet --profile=production --features=runtime-benchmarks --manifest-path=bin/node/cli/Cargo.toml -- benchmark --chain=dev --steps=50 --repeat=20 --pallet=pallet_contracts --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --output=./frame/contracts/src/weights.rs --template=./.maintain/frame-weight-template.hbs Co-authored-by:
Parity Bot <admin@parity.io> Co-authored-by:
Hernando Castano <HCastano@users.noreply.github.com>
Showing
- substrate/frame/contracts/src/benchmarking/mod.rs 219 additions, 51 deletionssubstrate/frame/contracts/src/benchmarking/mod.rs
- substrate/frame/contracts/src/chain_extension.rs 1 addition, 1 deletionsubstrate/frame/contracts/src/chain_extension.rs
- substrate/frame/contracts/src/exec.rs 11 additions, 11 deletionssubstrate/frame/contracts/src/exec.rs
- substrate/frame/contracts/src/lib.rs 9 additions, 1 deletionsubstrate/frame/contracts/src/lib.rs
- substrate/frame/contracts/src/schedule.rs 15 additions, 3 deletionssubstrate/frame/contracts/src/schedule.rs
- substrate/frame/contracts/src/storage.rs 34 additions, 4 deletionssubstrate/frame/contracts/src/storage.rs
- substrate/frame/contracts/src/tests.rs 1 addition, 1 deletionsubstrate/frame/contracts/src/tests.rs
- substrate/frame/contracts/src/wasm/code_cache.rs 10 additions, 25 deletionssubstrate/frame/contracts/src/wasm/code_cache.rs
- substrate/frame/contracts/src/wasm/mod.rs 8 additions, 17 deletionssubstrate/frame/contracts/src/wasm/mod.rs
- substrate/frame/contracts/src/wasm/runtime.rs 65 additions, 77 deletionssubstrate/frame/contracts/src/wasm/runtime.rs
- substrate/frame/contracts/src/weights.rs 682 additions, 649 deletionssubstrate/frame/contracts/src/weights.rs
Please register or sign in to comment