generate-weights.sh 943 B

123456789101112131415161718
  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"