generate-weights.sh 1.2 KB

1234567891011121314151617181920212223
  1. #!/usr/bin/env bash
  2. # Executes and replaces all benchmarks with the new weights
  3. echo "Benchmarking proposals_discussion..."
  4. ./target/release/joystream-node benchmark --pallet=proposals_discussion --extrinsic=* --chain=dev --steps=50 --repeat=20 --execution=wasm --output=. > /dev/null
  5. mv proposals_discussion.rs runtime/src/weights/
  6. echo "proposals_discussion benchmarked"
  7. echo "Benchmarking proposals_engine..."
  8. ./target/release/joystream-node benchmark --pallet=proposals_engine --extrinsic=* --chain=dev --steps=50 --repeat=20 --execution=wasm --output=. > /dev/null
  9. mv proposals_engine.rs runtime/src/weights/
  10. echo "proposals_engine benchmarked"
  11. echo "Benchmarking pallet_constitution..."
  12. ./target/release/joystream-node benchmark --pallet=pallet_constitution --extrinsic=* --chain=dev --steps=50 --repeat=20 --execution=wasm --output=. > /dev/null
  13. mv pallet_constitution.rs runtime/src/weights/
  14. echo "pallet_constitution benchmarked"
  15. echo "Benchmarking working_group..."
  16. ./target/release/joystream-node benchmark --pallet=working_group --extrinsic=* --chain=dev --steps=50 --repeat=20 --execution=wasm --output=. > /dev/null
  17. mv working_group.rs runtime/src/weights/
  18. echo "working_group benchmarked"