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.

64 lines
1.7 KiB

8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
  1. # Tendermint blockchain benchmarking tool (tm-bench)
  2. `tm-bench` is a simple benchmarking tool for [Tendermint
  3. core](https://github.com/tendermint/tendermint) nodes.
  4. ```
  5. λ tm-bench -T 10 -r 1000 localhost:46657
  6. Stats Avg Stdev Max
  7. Block latency 6.18ms 3.19ms 14ms
  8. Blocks/sec 0.828 0.378 1
  9. Txs/sec 963 493 1811
  10. ```
  11. * [QuickStart using Docker](#quickstart-using-docker)
  12. * [QuickStart using binaries](#quickstart-using-binaries)
  13. * [Usage](#usage)
  14. ## QuickStart using Docker
  15. ```
  16. docker run -it --rm -v "/tmp:/tendermint" tendermint/tendermint init
  17. docker run -it --rm -v "/tmp:/tendermint" -p "46657:46657" --name=tm tendermint/tendermint
  18. docker run -it --rm --link=tm tendermint/bench tm:46657
  19. ```
  20. ## QuickStart using binaries
  21. Linux:
  22. ```
  23. 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
  24. tendermint init
  25. tendermint node --app_proxy=dummy
  26. tm-bench localhost:46657
  27. ```
  28. Max OS:
  29. ```
  30. 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
  31. tendermint init
  32. tendermint node --app_proxy=dummy
  33. tm-bench localhost:46657
  34. ```
  35. ## Usage
  36. ```
  37. tm-bench [-c 1] [-T 10] [-r 1000] [endpoints]
  38. Examples:
  39. tm-bench localhost:46657
  40. Flags:
  41. -T int
  42. Exit after the specified amount of time in seconds (default 10)
  43. -c int
  44. Connections to keep open per endpoint (default 1)
  45. -r int
  46. Txs per second to send in a connection (default 1000)
  47. -v Verbose output
  48. ```