github.com/gnolang/gno@v0.0.0-20240520182011-228e9d0192ce/tm2/pkg/iavl/benchmarks/README.md (about)

     1  # Running Benchmarks
     2  
     3  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.
     4  
     5  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.
     6  
     7  
     8  ## Setting up the machine
     9  
    10  Put the files on the machine and login (all code assumes you are in this directory locally)
    11  
    12  ```
    13  scp -r setup user@host:
    14  ssh user@host
    15  ```
    16  
    17  Run the install script (once per machine)
    18  
    19  ```
    20  cd setup
    21  chmod +x *
    22  sudo ./INSTALL_ROOT.sh
    23  ```
    24  
    25  ## Running the tests
    26  
    27  Run the benchmarks in a screen:
    28  
    29  ```
    30  screen
    31  ./RUN_BENCHMARKS.sh
    32  ```
    33  
    34  Copy them back from your local machine:
    35  
    36  ```
    37  scp user@host:go/src/github.com/tendermint/classic/iavl/results.txt results.txt
    38  git add results
    39  ```