mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-17 18:21:02 +00:00
set xcm weights template (#1643)
* xcm benchmarks use a custom template
This commit is contained in:
+16
-13
@@ -26,19 +26,19 @@ if [[ $runtimeName == "statemint" ]] || [[ $runtimeName == "statemine" ]] || [[
|
|||||||
pallet_xcm_benchmarks::fungible
|
pallet_xcm_benchmarks::fungible
|
||||||
)
|
)
|
||||||
elif [[ $runtimeName == "collectives-polkadot" ]]; then
|
elif [[ $runtimeName == "collectives-polkadot" ]]; then
|
||||||
pallets=(
|
pallets=(
|
||||||
pallet_alliance
|
pallet_alliance
|
||||||
pallet_balances
|
pallet_balances
|
||||||
pallet_collator_selection
|
pallet_collator_selection
|
||||||
pallet_collective
|
pallet_collective
|
||||||
pallet_multisig
|
pallet_multisig
|
||||||
pallet_proxy
|
pallet_proxy
|
||||||
pallet_session
|
pallet_session
|
||||||
pallet_timestamp
|
pallet_timestamp
|
||||||
pallet_utility
|
pallet_utility
|
||||||
cumulus_pallet_xcmp_queue
|
cumulus_pallet_xcmp_queue
|
||||||
frame_system
|
frame_system
|
||||||
)
|
)
|
||||||
else
|
else
|
||||||
echo "$runtimeName pallet list not found in benchmarks-ci.sh"
|
echo "$runtimeName pallet list not found in benchmarks-ci.sh"
|
||||||
exit 1
|
exit 1
|
||||||
@@ -48,10 +48,13 @@ for pallet in ${pallets[@]}
|
|||||||
do
|
do
|
||||||
# a little hack for xcm benchmarks
|
# a little hack for xcm benchmarks
|
||||||
output_file="${pallet//::/_}"
|
output_file="${pallet//::/_}"
|
||||||
|
extra_args=""
|
||||||
if [[ "$pallet" == *"xcm"* ]]; then
|
if [[ "$pallet" == *"xcm"* ]]; then
|
||||||
output_file="xcm/$output_file"
|
output_file="xcm/$output_file"
|
||||||
|
extra_args="--template=./templates/xcm-bench-template.hbs"
|
||||||
fi
|
fi
|
||||||
$artifactsDir/polkadot-parachain benchmark pallet \
|
$artifactsDir/polkadot-parachain benchmark pallet \
|
||||||
|
$extra_args \
|
||||||
--chain=$benchmarkRuntimeName \
|
--chain=$benchmarkRuntimeName \
|
||||||
--execution=wasm \
|
--execution=wasm \
|
||||||
--wasm-execution=compiled \
|
--wasm-execution=compiled \
|
||||||
|
|||||||
Reference in New Issue
Block a user