Skip to content

0x0d01/tendermint-benchmark

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Tendermint Benchmark

Install dependency

```sh
cd $GOPATH/src/github.com/oatsaysai/tendermint-benchmark/abci

dep ensure
```

How to run

  1. Run ABCI server

    cd $GOPATH/src/github.com/oatsaysai/tendermint-benchmark
    
    go run abci/server.go
  2. Run tendermint

    tendermint init
    
    tendermint unsafe_reset_all && tendermint node --consensus.create_empty_blocks=false
  3. Run API

    cd $GOPATH/src/github.com/oatsaysai/tendermint-benchmark
    
    go run RESTAPI/main.go

How to send request to API

use loadtest project

# clone from https://github.com/the-hulk-id/loadtest
# Example how to use loadtest
node loadtest.js -d 10 -m -100 -s 0 -a 10.0.1.13,8181,10.0.1.14,8181,10.0.1.15,8181,10.0.1.16,8181,10.0.1.17,8181,10.0.1.18,8181

Add new validator (For testing)

get PubKey from pub_key.data in priv_validator.json

curl -s 'localhost:46657/broadcast_tx_commit?tx="val:PubKey"'

Result

you can get result in result.csv

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Go 100.0%