From ac5695907898c5580727f33e82bb1d96505181e5 Mon Sep 17 00:00:00 2001 From: Mara Robin B Date: Sat, 2 Apr 2022 16:46:55 +0200 Subject: [PATCH] [ci] scripted update of block- and extrinsic base weights (#5216) --- polkadot/scripts/run_benches_for_runtime.sh | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/polkadot/scripts/run_benches_for_runtime.sh b/polkadot/scripts/run_benches_for_runtime.sh index 49ea1ecb3b..83f5a3c7a4 100755 --- a/polkadot/scripts/run_benches_for_runtime.sh +++ b/polkadot/scripts/run_benches_for_runtime.sh @@ -37,3 +37,12 @@ while read -r line; do --output="./runtime/${runtime}/src/weights/${pallet/::/_}.rs" done < "${runtime}_pallets" rm "${runtime}_pallets" + +# Benchmark base weights +./target/production/polkadot benchmark-overhead \ + --chain="${runtime}-dev" \ + --execution=wasm \ + --wasm-execution=compiled \ + --weight-path="runtime/${runtime}/constants/src/weights/" \ + --warmup=10 \ + --repeat=100