Skip to content
This repository was archived by the owner on Nov 15, 2023. It is now read-only.
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
Prev Previous commit
Next Next commit
Update run_all_benchmarks.sh
  • Loading branch information
shawntabrizi committed May 21, 2022
commit c73fa7831fbc90915bfcb1ee410bcd9078e8f706
9 changes: 6 additions & 3 deletions scripts/run_all_benchmarks.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,10 @@ set -e

echo "[+] Running all benchmarks for Substrate"

# cargo +nightly build --profile production --locked --features=runtime-benchmarks
if [ $1 = "skip-build" ]
then
cargo +nightly build --profile production --locked --features=runtime-benchmarks
fi

./target/production/substrate benchmark pallet \
--chain=dev \
Expand All @@ -25,8 +28,8 @@ while read -r line; do
# '!' has the side effect of bypassing errexit / set -e
! ./target/production/substrate benchmark pallet \
--chain=dev \
--steps=1 \
--repeat=1 \
--steps=50 \
--repeat=20 \
--pallet="$pallet" \
--extrinsic="*" \
--execution=wasm \
Expand Down