diff --git a/scripts/run_benches_for_pallets.sh b/scripts/run_benches_for_pallets.sh index b03e00403..8680b5576 100755 --- a/scripts/run_benches_for_pallets.sh +++ b/scripts/run_benches_for_pallets.sh @@ -19,22 +19,22 @@ pallets=( parachain-staking ) -echo "[+] Running all benchmarks for $runtime --chain=$chain" +echo "[+] Running all default weight benchmarks for $runtime --chain=$chain" cargo build $standard_args for pallet in "${pallets[@]}"; do echo "Runtime: $runtime. Pallet: $pallet"; # shellcheck disable=SC2086 - ./target/release/kilt-parachain benchmark \ + ./target/release/kilt-parachain benchmark pallet \ --chain="${chain}" \ - --steps=50 \ - --repeat=20 \ + --steps=1 \ + --repeat=1 \ --pallet="$pallet" \ --extrinsic="*" \ --execution=wasm \ --wasm-execution=compiled \ --heap-pages=4096 \ - --output="./pallets/${pallet}/src/default_weights.rs" \ + --output="./pallets/${pallet/_/-}/src/default_weights.rs" \ --template=".maintain/weight-template.hbs" done diff --git a/scripts/run_benches_for_runtime.sh b/scripts/run_benches_for_runtime.sh index c2d0ca2fc..fd4a34cdd 100755 --- a/scripts/run_benches_for_runtime.sh +++ b/scripts/run_benches_for_runtime.sh @@ -13,42 +13,43 @@ pallets=( ctype delegation did + frame-system + pallet-balances + pallet-collective + pallet-democracy pallet-did-lookup + pallet-indices pallet-inflation + pallet-membership + pallet-preimage + pallet-proxy + pallet-scheduler + pallet-session + pallet-timestamp + pallet-tips + pallet-treasury + pallet-utility + pallet-vesting pallet-web3-names parachain-staking - frame_system - pallet_balances - pallet_collective - pallet_democracy - pallet_indices - pallet_membership - pallet_preimage - pallet_proxy - pallet_scheduler - pallet_session - pallet_timestamp - pallet_tips - pallet_treasury - pallet_utility - pallet_vesting ) -echo "[+] Running all benchmarks for $runtime --chain=$chain" +echo "[+] Running all runtime benchmarks for $runtime --chain=$chain" cargo build $standard_args + for pallet in "${pallets[@]}"; do echo "Runtime: $runtime. Pallet: $pallet"; # shellcheck disable=SC2086 - ./target/release/kilt-parachain benchmark \ + ./target/release/kilt-parachain benchmark pallet \ --chain="${chain}" \ - --steps=50 \ - --repeat=20 \ + --steps=1 \ + --repeat=1 \ --pallet="$pallet" \ --extrinsic="*" \ --execution=wasm \ --wasm-execution=compiled \ --heap-pages=4096 \ - --output="./runtimes/${runtime}/src/weights/${pallet}.rs" \ + --output="./runtimes/${runtime}/src/weights/${pallet/-/_}.rs" \ --template=".maintain/runtime-weight-template.hbs" done