diff --git a/scripts/benchmark_all.sh b/scripts/benchmark_all.sh index 277c39e74..580e5425e 100755 --- a/scripts/benchmark_all.sh +++ b/scripts/benchmark_all.sh @@ -1,23 +1,23 @@ #!/bin/sh +set -ex # List of pallets you want to benchmark -pallets=("admin-utils", "collective", "commitments", "registry", "subtensor") +pallets=("pallet_subtensor" "pallet_collective" "pallet_commitments" "pallet_registry" "pallet_admin_utils") # Chain spec and output directory -chain_spec="dev" # or your specific chain spec +chain_spec="finney" # or your specific chain spec for pallet in "${pallets[@]}" do echo "Benchmarking $pallet..." - cargo run --profile=production --features=runtime-benchmarks -- benchmark pallet \ + cargo run --profile=production --features=runtime-benchmarks,try-runtime --bin node-subtensor -- benchmark pallet \ --chain $chain_spec \ - --execution=wasm \ --wasm-execution=compiled \ --pallet $pallet \ --extrinsic '*' \ --steps 50 \ - --repeat 20 \ - --output "pallets/$pallet/src/$pallet.rs" \ + --repeat 5 \ + --output "pallets/$pallet/src/weights.rs" \ --template ./.maintain/frame-weight-template.hbs # Adjust this path to your template file done