github.com/fibonacci-chain/fbc@v0.0.0-20231124064014-c7636198c1e9/libs/iavl/benchmarks/setup/RUN_BENCHMARKS.sh (about)

     1  #!/bin/sh
     2  
     3  # This runs benchmarks, by default from master branch of
     4  # github.com/tendermint/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:-master}
    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 bench > results.txt
    23