Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
support XCM benchmarks for cumulus
  • Loading branch information
joao-paulo-parity committed Jul 19, 2022
commit 3770758389e1794476b6e3d02fba7760d76c061e
18 changes: 16 additions & 2 deletions bench-bot.sh
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,12 @@ bench_pallet_common_args=(
bench_pallet() {
local kind="$1"
local runtime="$2"
local pallet="$3"

local args
case "$repository" in
substrate)
local pallet="$3"

local pallet_prefix="pallet_"

local pallet_id
Expand Down Expand Up @@ -72,6 +73,8 @@ bench_pallet() {
esac
;;
polkadot)
local pallet="$3"

args=(
--features=runtime-benchmarks
"${bench_pallet_common_args[@]}"
Expand Down Expand Up @@ -111,6 +114,9 @@ bench_pallet() {
esac
;;
cumulus)
local chain_type="$3"
local pallet="$4"

args=(
--bin=parachain-template-node
--features=runtime-benchmarks
Expand All @@ -124,7 +130,15 @@ bench_pallet() {
args+=(
--json-file="${ARTIFACTS_DIR}/bench.json"
--header=./file_header.txt
--output="./parachains/runtimes/assets/${runtime}/src/weights"
--output="./parachains/runtimes/$chain_type/$runtime/src/weights"
)
;;
xcm)
args+=(
--template=./xcm/pallet-xcm-benchmarks/template.hbs
--json-file="${ARTIFACTS_DIR}/bench.json"
--header=./file_header.txt
--output="./parachains/runtimes/$chain_type/$runtime/src/weights/xcm"
)
;;
*)
Expand Down