Skip to content
This repository has been archived by the owner on Nov 15, 2023. It is now read-only.

set xcm weights template #1643

Merged
merged 2 commits into from
Sep 20, 2022
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
51 changes: 38 additions & 13 deletions scripts/benchmarks-ci.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,28 +22,53 @@ if [[ $runtimeName == "statemint" ]] || [[ $runtimeName == "statemine" ]] || [[
pallet_uniques
cumulus_pallet_xcmp_queue
frame_system
)
xcm_pallets=(
pallet_xcm_benchmarks::generic
pallet_xcm_benchmarks::fungible
)
elif [[ $runtimeName == "collectives-polkadot" ]]; then
pallets=(
pallet_alliance
pallet_balances
pallet_collator_selection
pallet_collective
pallet_multisig
pallet_proxy
pallet_session
pallet_timestamp
pallet_utility
cumulus_pallet_xcmp_queue
frame_system
)
pallets=(
pallet_alliance
pallet_balances
pallet_collator_selection
pallet_collective
pallet_multisig
pallet_proxy
pallet_session
pallet_timestamp
pallet_utility
cumulus_pallet_xcmp_queue
frame_system
)
xcm_pallets=(
)
else
echo "$runtimeName pallet list not found in benchmarks-ci.sh"
exit 1
fi

for pallet in ${xcm_pallets[@]}
do
# a little hack for xcm benchmarks
output_file="${pallet//::/_}"
if [[ "$pallet" == *"xcm"* ]]; then
output_file="xcm/$output_file"
fi
gilescope marked this conversation as resolved.
Show resolved Hide resolved
$artifactsDir/polkadot-parachain benchmark pallet \
--template=./templates/xcm-bench-template.hbs \
--chain=$benchmarkRuntimeName \
--execution=wasm \
--wasm-execution=compiled \
--pallet=$pallet \
--extrinsic='*' \
--steps=$steps \
--repeat=$repeat \
--json \
--header=./file_header.txt \
--output="${benchmarkOutput}/${output_file}.rs" >> $artifactsDir/${pallet}_benchmark.json
done

for pallet in ${pallets[@]}
do
# a little hack for xcm benchmarks
Expand Down