mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-11 08:21:05 +00:00
add cli benchmarks (#1177)
This commit is contained in:
@@ -0,0 +1,37 @@
|
||||
#!/bin/bash
|
||||
|
||||
steps=50
|
||||
repeat=20
|
||||
chainName=$1
|
||||
|
||||
benhcmarkOutput=./polkadot-parachains/$chainName/src/weights
|
||||
benhcmarkChainName="$chainName-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
|
||||
./artifacts/polkadot-collator benchmark \
|
||||
--chain=$benhcmarkChainName \
|
||||
--execution=wasm \
|
||||
--wasm-execution=compiled \
|
||||
--pallet=$p \
|
||||
--extrinsic='*' \
|
||||
--steps=$steps \
|
||||
--repeat=$repeat \
|
||||
--json \
|
||||
--header=./file_header.txt \
|
||||
--output=$benhcmarkOutput
|
||||
done
|
||||
Reference in New Issue
Block a user