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

Commit e23d581

Browse files
authored
set xcm weights template (#1643) (#1691)
* xcm benchmarks use a custom template
1 parent 90a3b21 commit e23d581

File tree

1 file changed

+16
-13
lines changed

1 file changed

+16
-13
lines changed

scripts/benchmarks-ci.sh

Lines changed: 16 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -26,19 +26,19 @@ if [[ $runtimeName == "statemint" ]] || [[ $runtimeName == "statemine" ]] || [[
2626
pallet_xcm_benchmarks::fungible
2727
)
2828
elif [[ $runtimeName == "collectives-polkadot" ]]; then
29-
pallets=(
30-
pallet_alliance
31-
pallet_balances
32-
pallet_collator_selection
33-
pallet_collective
34-
pallet_multisig
35-
pallet_proxy
36-
pallet_session
37-
pallet_timestamp
38-
pallet_utility
39-
cumulus_pallet_xcmp_queue
40-
frame_system
41-
)
29+
pallets=(
30+
pallet_alliance
31+
pallet_balances
32+
pallet_collator_selection
33+
pallet_collective
34+
pallet_multisig
35+
pallet_proxy
36+
pallet_session
37+
pallet_timestamp
38+
pallet_utility
39+
cumulus_pallet_xcmp_queue
40+
frame_system
41+
)
4242
else
4343
echo "$runtimeName pallet list not found in benchmarks-ci.sh"
4444
exit 1
@@ -48,10 +48,13 @@ for pallet in ${pallets[@]}
4848
do
4949
# a little hack for xcm benchmarks
5050
output_file="${pallet//::/_}"
51+
extra_args=""
5152
if [[ "$pallet" == *"xcm"* ]]; then
5253
output_file="xcm/$output_file"
54+
extra_args="--template=./templates/xcm-bench-template.hbs"
5355
fi
5456
$artifactsDir/polkadot-parachain benchmark pallet \
57+
$extra_args \
5558
--chain=$benchmarkRuntimeName \
5659
--execution=wasm \
5760
--wasm-execution=compiled \

0 commit comments

Comments
 (0)