Skip to content

Commit

Permalink
Merge branch 'main' into feat/collect-for-foreign-investment
Browse files Browse the repository at this point in the history
  • Loading branch information
NunoAlexandre authored Sep 21, 2023
2 parents bd35c20 + 70d5828 commit 9a59fa3
Showing 1 changed file with 14 additions and 4 deletions.
18 changes: 14 additions & 4 deletions scripts/check_benchmarks.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
set -eu

runtime=$1
pallet_input=${2:-}

run_benchmark() {
pallet=$1
Expand Down Expand Up @@ -40,7 +41,16 @@ all_pallets=$(
./target/release/centrifuge-chain benchmark pallet --list --chain="${chain}" | tail -n+2 | cut -d',' -f1 | sort | uniq
)

for pallet in $all_pallets
do
run_benchmark $pallet
done
if [ -n "$pallet_input" ];
then
echo "Only benchmarking a single pallet: $pallet_input"
run_benchmark $pallet_input
else
echo "Benchmarking all pallets"
for pallet in $all_pallets
do
run_benchmark $pallet
done
fi


0 comments on commit 9a59fa3

Please sign in to comment.