mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-23 10:48:00 +00:00
8cf65b2e3c
we should be using production profile for benchmarks. --raw does not exist: https://github.com/paritytech/substrate/pull/10771
65 lines
1.3 KiB
Bash
Executable File
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/production/polkadot-collator benchmark \
|
|
--chain=$statemineChain \
|
|
--execution=wasm \
|
|
--wasm-execution=compiled \
|
|
--pallet=$p \
|
|
--extrinsic='*' \
|
|
--steps=$steps \
|
|
--repeat=$repeat \
|
|
--json \
|
|
--header=./file_header.txt \
|
|
--output=$statemineOutput
|
|
|
|
./target/production/polkadot-collator benchmark \
|
|
--chain=$statemintChain \
|
|
--execution=wasm \
|
|
--wasm-execution=compiled \
|
|
--pallet=$p \
|
|
--extrinsic='*' \
|
|
--steps=$steps \
|
|
--repeat=$repeat \
|
|
--json \
|
|
--header=./file_header.txt \
|
|
--output=$statemintOutput
|
|
|
|
./target/production/polkadot-collator benchmark \
|
|
--chain=$westmintChain \
|
|
--execution=wasm \
|
|
--wasm-execution=compiled \
|
|
--pallet=$p \
|
|
--extrinsic='*' \
|
|
--steps=$steps \
|
|
--repeat=$repeat \
|
|
--json \
|
|
--header=./file_header.txt \
|
|
--output=$westmintOutput
|
|
done
|