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

Commit

Permalink
set xcm weights template (#1643)
Browse files Browse the repository at this point in the history
* xcm benchmarks use a custom template
  • Loading branch information
gilescope authored Sep 20, 2022
1 parent b180dbb commit 0432ccb
Showing 1 changed file with 16 additions and 13 deletions.
29 changes: 16 additions & 13 deletions scripts/benchmarks-ci.sh
Original file line number Diff line number Diff line change
Expand Up @@ -26,19 +26,19 @@ if [[ $runtimeName == "statemint" ]] || [[ $runtimeName == "statemine" ]] || [[
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
)
else
echo "$runtimeName pallet list not found in benchmarks-ci.sh"
exit 1
Expand All @@ -48,10 +48,13 @@ for pallet in ${pallets[@]}
do
# a little hack for xcm benchmarks
output_file="${pallet//::/_}"
extra_args=""
if [[ "$pallet" == *"xcm"* ]]; then
output_file="xcm/$output_file"
extra_args="--template=./templates/xcm-bench-template.hbs"
fi
$artifactsDir/polkadot-parachain benchmark pallet \
$extra_args \
--chain=$benchmarkRuntimeName \
--execution=wasm \
--wasm-execution=compiled \
Expand Down

0 comments on commit 0432ccb

Please sign in to comment.