Skip to content

Commit

Permalink
working but running into commit reveal issues
Browse files Browse the repository at this point in the history
  • Loading branch information
sam0x17 committed Aug 13, 2024
1 parent 144be21 commit 0323d50
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions scripts/benchmark_all.sh
Original file line number Diff line number Diff line change
@@ -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

Expand Down

0 comments on commit 0323d50

Please sign in to comment.