Browse Source

tests: add throughput benchmark using mintnet and netmon

pull/259/head
Ethan Buchman 9 years ago
parent
commit
6643e4969f
9 changed files with 39 additions and 8 deletions
  1. +1
    -1
      DOCKER/Dockerfile
  2. +4
    -1
      circle.yml
  3. +0
    -0
      test/app/clean.sh
  4. +0
    -0
      test/app/counter_test.sh
  5. +0
    -0
      test/app/dummy_test.sh
  6. +2
    -2
      test/app/test.sh
  7. +23
    -0
      test/net/test.sh
  8. +2
    -4
      test/run_test.sh
  9. +7
    -0
      test/test.sh

+ 1
- 1
DOCKER/Dockerfile View File

@ -1,5 +1,5 @@
# Pull base image.
FROM golang:1.4
FROM golang:1.6
ENV USER tmuser
ENV DATA_ROOT /data/tendermint


+ 4
- 1
circle.yml View File

@ -2,11 +2,14 @@ machine:
environment:
GOPATH: /home/ubuntu/.go_workspace
REPO: $GOPATH/src/github.com/$CIRCLE_PROJECT_USERNAME/$CIRCLE_PROJECT_REPONAME
DOCKER_VERSION: 1.10.0
DOCKER_MACHINE_VERSION: 0.6.0
hosts:
circlehost: 127.0.0.1
localhost: 127.0.0.1
pre:
- curl -sSL https://s3.amazonaws.com/circle-downloads/install-circleci-docker.sh | bash -s -- 1.10.0
- curl -sSL https://s3.amazonaws.com/circle-downloads/install-circleci-docker.sh | bash -s -- $DOCKER_VERSION
- curl -sSL -o /usr/bin/docker-machine https://github.com/docker/machine/releases/download/v$DOCKER_MACHINE_VERSION/docker-machine-linux-x86_64; sudo chmod 0755 /usr/bin/docker-machine
services:
- docker


test/broadcast_tx/clean.sh → test/app/clean.sh View File


test/broadcast_tx/counter_test.sh → test/app/counter_test.sh View File


test/broadcast_tx/dummy_test.sh → test/app/dummy_test.sh View File


test/broadcast_tx/test.sh → test/app/test.sh View File


+ 23
- 0
test/net/test.sh View File

@ -0,0 +1,23 @@
#! /bin/bash
set -eu
DATACENTER=single
VALSETSIZE=4
BLOCKSIZE=8092
TX_SIZE=200
NTXS=$((BLOCKSIZE*4))
MACH_PREFIX=mach
RESULTSDIR=results
CLOUD_PROVIDER=digitalocean
export TMHEAD=`git rev-parse --abbrev-ref HEAD`
export TM_IMAGE="tendermint/tmbase"
# not a go repo
set +e
go get github.com/tendermint/network_testing
set -e
cd $GOPATH/src/github.com/tendermint/network_testing
bash experiments/exp_throughput.sh $DATACENTER $VALSETSIZE $BLOCKSIZE $TX_SIZE $NTXS $MACH_PREFIX $RESULTSDIR $CLOUD_PROVIDER
# TODO echo result!

+ 2
- 4
test/run_test.sh View File

@ -9,14 +9,12 @@ echo "Current branch: $BRANCH"
# go test --race github.com/tendermint/tendermint/...
make test_race
# run the broadcast_tx tests
bash test/broadcast_tx/test.sh
# run the app tests
bash test/app/test.sh
if [[ "$BRANCH" == "master" || "$BRANCH" == "staging" ]]; then
echo ""
echo "* branch $BRANCH; testing libs"
# checkout every github.com/tendermint dir and run its tests
bash test/test_libs.sh
# TODO: mintnet/netmon
fi

+ 7
- 0
test/test.sh View File

@ -21,3 +21,10 @@ docker run -t tester bash test/run_test.sh
echo ""
echo "* running basic peer tests"
bash test/p2p/test.sh tester
BRANCH=`git rev-parse --abbrev-ref HEAD`
if [[ "$BRANCH" == "master" || "$BRANCH" == "staging" ]]; then
echo ""
echo "* branch $BRANCH; running mintnet/netmon throughput benchmark"
bash tests/net/test.sh
fi

Loading…
Cancel
Save