From 93de13adbd0e00f386b25024c2052a13ae8f3b3e Mon Sep 17 00:00:00 2001 From: Squirrel Date: Tue, 20 Sep 2022 14:39:06 +0100 Subject: [PATCH] set xcm weights template (#1643) * xcm benchmarks use a custom template --- scripts/benchmarks-ci.sh | 29 ++++++++++++++++------------- 1 file changed, 16 insertions(+), 13 deletions(-) diff --git a/scripts/benchmarks-ci.sh b/scripts/benchmarks-ci.sh index 6ac63e9ab34..72e1e2fbf5c 100755 --- a/scripts/benchmarks-ci.sh +++ b/scripts/benchmarks-ci.sh @@ -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 @@ -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 \