mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-23 07:18: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>
39 lines
708 B
Bash
Executable File
39 lines
708 B
Bash
Executable File
#!/bin/bash
|
|
|
|
steps=50
|
|
repeat=20
|
|
category=$1
|
|
runtimeName=$2
|
|
|
|
benchmarkOutput=./parachains/runtimes/$category/$runtimeName/src/weights
|
|
benchmarkRuntimeName="$runtimeName-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-parachain benchmark pallet \
|
|
--chain=$benchmarkRuntimeName \
|
|
--execution=wasm \
|
|
--wasm-execution=compiled \
|
|
--pallet=$p \
|
|
--extrinsic='*' \
|
|
--steps=$steps \
|
|
--repeat=$repeat \
|
|
--json \
|
|
--header=./file_header.txt \
|
|
--output=$benchmarkOutput
|
|
done
|