Files
pezkuwi-subxt/scripts/benchmarks.sh
T
Squirrel ec751f8fca merge of: Add system weights to Statemint (#762) (#918)
* Add system weights to Statemint (#762)

* waiting for weights from bm

* frame_system weights added

* cargo toml fix + fmt

* removed non-existent set_changes_trie_config

Co-authored-by: Ignacio Palacios <ignacio.palacios.santos@gmail.com>
2022-01-21 08:11:01 +00:00

65 lines
1.3 KiB
Bash
Executable File

#!/bin/bash
steps=50
repeat=20
statemineOutput=./polkadot-parachains/statemine/src/weights
statemintOutput=./polkadot-parachains/statemint/src/weights
westmintOutput=./polkadot-parachains/westmint/src/weights
statemineChain=statemine-dev
statemintChain=statemint-dev
westmintChain=westmint-dev
pallets=(
pallet_assets
pallet_balances
pallet_collator_selection
pallet_multisig
pallet_proxy
pallet_session
pallet_timestamp
pallet_utility
pallet_uniques
frame_system
)
for p in ${pallets[@]}
do
./target/release/polkadot-collator benchmark \
--chain=$statemineChain \
--execution=wasm \
--wasm-execution=compiled \
--pallet=$p \
--extrinsic='*' \
--steps=$steps \
--repeat=$repeat \
--raw \
--header=./file_header.txt \
--output=$statemineOutput
./target/release/polkadot-collator benchmark \
--chain=$statemintChain \
--execution=wasm \
--wasm-execution=compiled \
--pallet=$p \
--extrinsic='*' \
--steps=$steps \
--repeat=$repeat \
--raw \
--header=./file_header.txt \
--output=$statemintOutput
./target/release/polkadot-collator benchmark \
--chain=$westmintChain \
--execution=wasm \
--wasm-execution=compiled \
--pallet=$p \
--extrinsic='*' \
--steps=$steps \
--repeat=$repeat \
--raw \
--header=./file_header.txt \
--output=$westmintOutput
done