These instructions are mainly for running the benchmarks on an cloud instance that is intended to be thrown away, not on a dev machine. Be careful with the install scripts locally.
This has only been tested on Ubuntu 16.04 and 18.04. It should work on Ubuntu 14.04 as well. It may work on Debian, but has never been tested.
Put the files on the machine and login (all code assumes you are in this directory locally)
scp -r setup user@host:
ssh user@host
Run the install script (once per machine)
cd setup
chmod +x *
sudo ./INSTALL_ROOT.sh
Run the benchmarks in a screen:
screen
./RUN_BENCHMARKS.sh
Copy them back from your local machine:
scp user@host:go/src/github.com/cosmos/iavl/results.txt results.txt
git add results
Run the command below to install leveldb and rocksdb from source then run the benchmarks all the dbs (memdb, goleveldb, rocksdb, badgerdb) except boltdb.
replace:
baabeetaa
with your repo username andfix-bencharks
with your branch.
docker run --rm -it ubuntu:16.04 /bin/bash -c \
"apt-get update && apt-get install -y curl && \
sh <(curl -s https://raw.githubusercontent.com/baabeetaa/iavl/fix-bencharks/benchmarks/setup/INSTALL_ROOT.sh) && \
sh <(curl -s https://raw.githubusercontent.com/baabeetaa/iavl/fix-bencharks/benchmarks/setup/RUN_BENCHMARKS.sh) fix-bencharks baabeetaa && \
cat ~/iavl/results.txt"