#!/bin/bash

cat <<'EOF' > ~/.goenv
export GOROOT=/usr/local/go
export GOPATH=$HOME/go
export PATH=$GOPATH/bin:$GOROOT/bin:$PATH
EOF

. ~/.goenv

mkdir -p $GOPATH/src/github.com/tendermint
MERKLE=$GOPATH/src/github.com/tendermint/go-merkle
git clone https://github.com/ethanfrey/go-merkle.git $MERKLE
cd $MERKLE
git checkout benchmarking

#!/bin/bash

# This runs benchmarks, by default from develop branch of
# github.com/tendermint/go-merkle
# You can customize this by optional command line args
#
# INSTALL_USER.sh [branch] [repouser]
#
# set repouser as your username to time your fork

BRANCH=${1:-develop}
REPOUSER=${2:-tendermint}

cat <<'EOF' > ~/.goenv
export GOROOT=/usr/local/go
export GOPATH=$HOME/go
export PATH=$GOPATH/bin:$GOROOT/bin:$PATH
EOF

. ~/.goenv

mkdir -p $GOPATH/src/github.com/tendermint
MERKLE=$GOPATH/src/github.com/tendermint/go-merkle
git clone https://github.com/${REPOUSER}/go-merkle.git $MERKLE
cd $MERKLE
git checkout ${BRANCH}

Make branch/repo for benchmarks configurable
Make branch/repo for benchmarks configurable
