You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

29 lines
734 B

  1. #! /bin/bash
  2. set -eu
  3. # start a testnet and benchmark throughput using mintnet+netmon via the network_testing repo
  4. DATACENTER=single
  5. VALSETSIZE=4
  6. BLOCKSIZE=8092
  7. TX_SIZE=200
  8. NTXS=$((BLOCKSIZE*4))
  9. RESULTSDIR=results
  10. CLOUD_PROVIDER=digitalocean
  11. set +u
  12. if [[ "$MACH_PREFIX" == "" ]]; then
  13. MACH_PREFIX=mach
  14. fi
  15. set -u
  16. cd "$GOPATH/src/github.com/tendermint/network_testing"
  17. echo "... running network test $(pwd)"
  18. TMHEAD=$(git rev-parse --abbrev-ref HEAD) TM_IMAGE="tendermint/tendermint" bash experiments/exp_throughput.sh $DATACENTER $VALSETSIZE $BLOCKSIZE $TX_SIZE $NTXS $MACH_PREFIX $RESULTSDIR $CLOUD_PROVIDER
  19. # TODO: publish result!
  20. # cleanup
  21. echo "... destroying machines"
  22. mintnet destroy --machines $MACH_PREFIX[1-$VALSETSIZE]