Skip to content
  • Alexander Theißen's avatar
    Pre-Charge max size when contracts access storage (#10691) · dc45201a
    Alexander Theißen authored
    
    
    * 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: default avatarHernando Castano <[email protected]>
    
    * 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: default avatarParity Bot <[email protected]>
    Co-authored-by: default avatarHernando Castano <[email protected]>
    dc45201a