paritytech / command-bot

Apache License 2.0
12 stars 5 forks source link

bench all networks by pallet name #262

Closed mordamax closed 5 months ago

mordamax commented 6 months ago

Ref: https://github.com/paritytech/polkadot-sdk/pull/3001#issuecomment-1902130472

bot bench cumulus-collectives --pallet=pallet_balances
bot bench cumulus-bridge-hubs --runtime=bridge-hub-rococo --pallet=pallet_balances
bot bench cumulus-bridge-hubs --runtime=bridge-hub-westend --pallet=pallet_balances
bot bench cumulus-assets --runtime=asset-hub-westend --pallet=pallet_balances
bot bench cumulus-assets --runtime=asset-hub-rococo --pallet=pallet_balances
bot bench cumulus-coretime --runtime=coretime-rococo --pallet=pallet_balances
bot bench cumulus-coretime --runtime=coretime-westend --pallet=pallet_balances
bot bench polkadot-pallet --runtime=westend --pallet=pallet_balances

it could probably automatically detect where everywhere the is a pallet_balances*.rs weight file and then recommend a command, otherwise looking for them all manually is slightly annoying 😅

mordamax commented 5 months ago

a new command is bot bench-all pallet --pallet="pallet_name"