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.

42 lines
782 B

  1. #! /bin/bash
  2. set -eu
  3. DATACENTER=single
  4. VALSETSIZE=4
  5. BLOCKSIZE=8092
  6. TX_SIZE=200
  7. NTXS=$((BLOCKSIZE*4))
  8. RESULTSDIR=results
  9. CLOUD_PROVIDER=digitalocean
  10. set +u
  11. if [[ "$MACH_PREFIX" == "" ]]; then
  12. MACH_PREFIX=mach
  13. fi
  14. set -u
  15. export TMHEAD=`git rev-parse --abbrev-ref HEAD`
  16. export TM_IMAGE="tendermint/tmbase"
  17. # not a go repo
  18. set +e
  19. go get github.com/tendermint/network_testing
  20. set -e
  21. # install mintnet, netmon
  22. # TODO: specify branch
  23. go get github.com/tendermint/mintnet
  24. go get github.com/tendermint/netmon
  25. cd $GOPATH/src/github.com/tendermint/network_testing
  26. bash experiments/exp_throughput.sh $DATACENTER $VALSETSIZE $BLOCKSIZE $TX_SIZE $NTXS $MACH_PREFIX $RESULTSDIR $CLOUD_PROVIDER
  27. # TODO: publish result!
  28. # cleanup
  29. mintnet destroy --machines $MACH_PREFIX[1-$VALSETSIZE]