Fix V2 PoV benchmarking (#13485)
* Bump default 'additional_trie_layers' to two The default here only works for extremely small runtimes, which have no more than 16 storage prefices. This is changed to a "sane" default of 2, which is save for runtimes with up to 4096 storage prefices (eg StorageValue). Signed-off-by:Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> * Update tests and test weights Signed-off-by:
Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> * Fix PoV weights Signed-off-by:
Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> * ".git/.scripts/commands/bench/bench.sh" pallet dev pallet_balances * ".git/.scripts/commands/bench/bench.sh" pallet dev pallet_message_queue * ".git/.scripts/commands/bench/bench.sh" pallet dev pallet_glutton * ".git/.scripts/commands/bench/bench.sh" pallet dev pallet_glutton * Fix sanity check >0 would also do as a check, but let's try this. Signed-off-by:
Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> --------- Signed-off-by:
Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> Co-authored-by: command-bot <>
Showing
- substrate/frame/balances/src/weights.rs 77 additions, 62 deletionssubstrate/frame/balances/src/weights.rs
- substrate/frame/benchmarking/pov/src/benchmarking.rs 11 additions, 0 deletionssubstrate/frame/benchmarking/pov/src/benchmarking.rs
- substrate/frame/benchmarking/pov/src/weights.rs 285 additions, 223 deletionssubstrate/frame/benchmarking/pov/src/weights.rs
- substrate/frame/glutton/src/tests.rs 1 addition, 1 deletionsubstrate/frame/glutton/src/tests.rs
- substrate/frame/glutton/src/weights.rs 92 additions, 92 deletionssubstrate/frame/glutton/src/weights.rs
- substrate/frame/message-queue/src/weights.rs 97 additions, 97 deletionssubstrate/frame/message-queue/src/weights.rs
- substrate/frame/support/procedural/src/benchmark.rs 12 additions, 1 deletionsubstrate/frame/support/procedural/src/benchmark.rs
- substrate/utils/frame/benchmarking-cli/src/pallet/mod.rs 1 addition, 1 deletionsubstrate/utils/frame/benchmarking-cli/src/pallet/mod.rs
Please register or sign in to comment