You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
Ethan Buchman 1c1fbcd70f update tm-bench glide to develop 8 years ago
..
Dockerfile [tm-bench] add Dockerfile 8 years ago
Dockerfile.dev [tm-bench] initial commit 8 years ago
LICENSE [tm-bench] initial commit 8 years ago
Makefile [tm-bench] add Dockerfile 8 years ago
README.md [tm-bench] add missing flag in README 8 years ago
glide.lock update tm-bench glide to develop 8 years ago
glide.yaml update tm-bench glide to develop 8 years ago
main.go [tm-bench] remove .pre prefix from version 8 years ago
transacter.go [tm-bench] use plain ws connection instead of go-rpc (Refs #9, Fixes #14) 8 years ago

README.md

Tendermint blockchain benchmarking tool (tm-bench)

tm-bench is a simple benchmarking tool for Tendermint core nodes.

λ tm-bench -T 10 -r 1000 localhost:46657
Stats             Avg        Stdev      Max
Block latency     6.18ms     3.19ms     14ms
Blocks/sec        0.828      0.378      1
Txs/sec           963        493        1811

QuickStart using Docker

docker run -it --rm -v "/tmp:/tendermint" tendermint/tendermint init
docker run -it --rm -v "/tmp:/tendermint" -p "46657:46657" --name=tm tendermint/tendermint

docker run -it --rm --link=tm tendermint/bench tm:46657

QuickStart using binaries

Linux:

curl -L https://s3-us-west-2.amazonaws.com/tendermint/0.8.0/tendermint_linux_amd64.zip && sudo unzip -d /usr/local/bin tendermint_linux_amd64.zip && sudo chmod +x tendermint
tendermint init
tendermint node --app_proxy=dummy

tm-bench localhost:46657

Max OS:

curl -L https://s3-us-west-2.amazonaws.com/tendermint/0.8.0/tendermint_darwin_amd64.zip && sudo unzip -d /usr/local/bin tendermint_darwin_amd64.zip && sudo chmod +x tendermint
tendermint init
tendermint node --app_proxy=dummy

tm-bench localhost:46657

Usage

tm-bench [-c 1] [-T 10] [-r 1000] [endpoints]

Examples:
        tm-bench localhost:46657
Flags:
  -T int
        Exit after the specified amount of time in seconds (default 10)
  -c int
        Connections to keep open per endpoint (default 1)
  -r int
        Txs per second to send in a connection (default 1000)
  -v    Verbose output