mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-22 21:58:00 +00:00
e403b268d4
* Fixup after dir re-org * Update scripts/benchmarks-ci.sh Co-authored-by: Chevdor <chevdor@users.noreply.github.com> * Update scripts/benchmarks-ci.sh Co-authored-by: Chevdor <chevdor@users.noreply.github.com> * Update scripts/benchmarks-ci.sh Co-authored-by: Chevdor <chevdor@users.noreply.github.com> * fix typo Co-authored-by: Chevdor <chevdor@users.noreply.github.com>
66 lines
1.5 KiB
Bash
Executable File
66 lines
1.5 KiB
Bash
Executable File
#!/bin/bash
|
|
|
|
steps=50
|
|
repeat=20
|
|
|
|
statemineOutput=./parachains/runtimes/assets/statemine/src/weights
|
|
statemintOutput=./parachains/runtimes/assets/statemint/src/weights
|
|
westmintOutput=./parachains/runtimes/assets/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
|
|
cumulus_pallet_xcmp_queue
|
|
frame_system
|
|
)
|
|
|
|
for p in ${pallets[@]}
|
|
do
|
|
./target/production/polkadot-parachain benchmark pallet \
|
|
--chain=$statemineChain \
|
|
--execution=wasm \
|
|
--wasm-execution=compiled \
|
|
--pallet=$p \
|
|
--extrinsic='*' \
|
|
--steps=$steps \
|
|
--repeat=$repeat \
|
|
--json-file=./bench-statemine.json \
|
|
--header=./file_header.txt \
|
|
--output=$statemineOutput
|
|
|
|
./target/production/polkadot-parachain benchmark pallet \
|
|
--chain=$statemintChain \
|
|
--execution=wasm \
|
|
--wasm-execution=compiled \
|
|
--pallet=$p \
|
|
--extrinsic='*' \
|
|
--steps=$steps \
|
|
--repeat=$repeat \
|
|
--json-file=./bench-statemint.json \
|
|
--header=./file_header.txt \
|
|
--output=$statemintOutput
|
|
|
|
./target/production/polkadot-parachain benchmark pallet \
|
|
--chain=$westmintChain \
|
|
--execution=wasm \
|
|
--wasm-execution=compiled \
|
|
--pallet=$p \
|
|
--extrinsic='*' \
|
|
--steps=$steps \
|
|
--repeat=$repeat \
|
|
--json-file=./bench-westmint.json \
|
|
--header=./file_header.txt \
|
|
--output=$westmintOutput
|
|
done
|