Skip to content

Commit 0323d50

Browse files
committed
working but running into commit reveal issues
1 parent 144be21 commit 0323d50

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

scripts/benchmark_all.sh

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,23 @@
11
#!/bin/sh
2+
set -ex
23

34
# List of pallets you want to benchmark
4-
pallets=("admin-utils", "collective", "commitments", "registry", "subtensor")
5+
pallets=("pallet_subtensor" "pallet_collective" "pallet_commitments" "pallet_registry" "pallet_admin_utils")
56

67
# Chain spec and output directory
7-
chain_spec="dev" # or your specific chain spec
8+
chain_spec="finney" # or your specific chain spec
89

910
for pallet in "${pallets[@]}"
1011
do
1112
echo "Benchmarking $pallet..."
12-
cargo run --profile=production --features=runtime-benchmarks -- benchmark pallet \
13+
cargo run --profile=production --features=runtime-benchmarks,try-runtime --bin node-subtensor -- benchmark pallet \
1314
--chain $chain_spec \
14-
--execution=wasm \
1515
--wasm-execution=compiled \
1616
--pallet $pallet \
1717
--extrinsic '*' \
1818
--steps 50 \
19-
--repeat 20 \
20-
--output "pallets/$pallet/src/$pallet.rs" \
19+
--repeat 5 \
20+
--output "pallets/$pallet/src/weights.rs" \
2121
--template ./.maintain/frame-weight-template.hbs # Adjust this path to your template file
2222
done
2323

0 commit comments

Comments
 (0)