Files
pezkuwi-subxt/bridges/scripts/update-weights.sh
T
Branislav Kontur fcc1574aac Merge commit 'd2b7ee2575c5132ef050e2523955382e1fae00ec' as 'bridges'
(git subtree add --prefix=bridges bridges master --squash)
2022-12-01 23:13:25 +01:00

56 lines
1.6 KiB
Bash
Executable File

#!/bin/sh
#
# Runtime benchmarks for the `pallet-bridge-messages` and `pallet-bridge-grandpa` pallets.
#
# Run this script from root of the repo.
set -eux
time cargo run --release -p millau-bridge-node --features=runtime-benchmarks -- benchmark pallet \
--chain=dev \
--steps=50 \
--repeat=20 \
--pallet=pallet_bridge_messages \
--extrinsic=* \
--execution=wasm \
--wasm-execution=Compiled \
--heap-pages=4096 \
--output=./modules/messages/src/weights.rs \
--template=./.maintain/millau-weight-template.hbs
time cargo run --release -p millau-bridge-node --features=runtime-benchmarks -- benchmark pallet \
--chain=dev \
--steps=50 \
--repeat=20 \
--pallet=pallet_bridge_grandpa \
--extrinsic=* \
--execution=wasm \
--wasm-execution=Compiled \
--heap-pages=4096 \
--output=./modules/grandpa/src/weights.rs \
--template=./.maintain/millau-weight-template.hbs
time cargo run --release -p millau-bridge-node --features=runtime-benchmarks -- benchmark pallet \
--chain=dev \
--steps=50 \
--repeat=20 \
--pallet=pallet_bridge_parachains \
--extrinsic=* \
--execution=wasm \
--wasm-execution=Compiled \
--heap-pages=4096 \
--output=./modules/parachains/src/weights.rs \
--template=./.maintain/millau-weight-template.hbs
time cargo run --release -p millau-bridge-node --features=runtime-benchmarks -- benchmark pallet \
--chain=dev \
--steps=50 \
--repeat=20 \
--pallet=pallet_bridge_relayers \
--extrinsic=* \
--execution=wasm \
--wasm-execution=Compiled \
--heap-pages=4096 \
--output=./modules/relayers/src/weights.rs \
--template=./.maintain/millau-weight-template.hbs