File tree Expand file tree Collapse file tree 2 files changed +24
-0
lines changed
Expand file tree Collapse file tree 2 files changed +24
-0
lines changed Original file line number Diff line number Diff line change 1+ #! /bin/sh
2+ set -ex
3+
4+ # List of pallets you want to benchmark
5+ pallets=(" pallet_subtensor" " pallet_collective" " pallet_commitments" " pallet_registry" " pallet_admin_utils" )
6+
7+ # Chain spec and output directory
8+ chain_spec=" finney" # or your specific chain spec
9+
10+ for pallet in " ${pallets[@]} "
11+ do
12+ echo " Benchmarking $pallet ..."
13+ cargo run --profile=production --features=runtime-benchmarks,try-runtime --bin node-subtensor -- benchmark pallet \
14+ --chain $chain_spec \
15+ --wasm-execution=compiled \
16+ --pallet $pallet \
17+ --extrinsic ' *' \
18+ --steps 50 \
19+ --repeat 5 \
20+ --output " pallets/$pallet /src/weights.rs" \
21+ --template ./.maintain/frame-weight-template.hbs # Adjust this path to your template file
22+ done
23+
24+ echo " All pallets have been benchmarked and weights updated."
You can’t perform that action at this time.
0 commit comments