github.com/gnolang/gno@v0.0.0-20240520182011-228e9d0192ce/tm2/pkg/iavl/benchmarks/setup/RUN_BENCHMARKS.sh (about) 1 #!/bin/sh 2 3 # This runs benchmarks, by default from develop branch of 4 # github.com/tendermint/classic/iavl 5 # You can customize this by optional command line args 6 # 7 # INSTALL_USER.sh [branch] [repouser] 8 # 9 # set repouser as your username to time your fork 10 11 BRANCH=${1:-develop} 12 REPOUSER=${2:-tendermint} 13 14 export PATH=$PATH:/usr/local/go/bin 15 export PATH=$PATH:$HOME/go/bin 16 export GOPATH=$HOME/go 17 18 go get -u github.com/${REPOUSER}/iavl 19 cd ~/go/src/github.com/${REPOUSER}/iavl 20 git checkout ${BRANCH} 21 22 make get_vendor_deps 23 make bench > results.txt 24