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.

87 lines
1.7 KiB

  1. Benchmarking
  2. ============
  3. tm-bench
  4. --------
  5. Tendermint blockchain benchmarking tool: https://github.com/tendermint/tools/tree/master/tm-bench
  6. For example, the following:
  7. ::
  8. tm-bench -T 10 -r 1000 localhost:46657
  9. will output:
  10. ::
  11. Stats Avg Stdev Max
  12. Block latency 6.18ms 3.19ms 14ms
  13. Blocks/sec 0.828 0.378 1
  14. Txs/sec 963 493 1811
  15. Quick Start
  16. ^^^^^^^^^^^
  17. Docker
  18. ~~~~~~
  19. ::
  20. docker run -it --rm -v "/tmp:/tendermint" tendermint/tendermint:0.12.1 init
  21. docker run -it --rm -v "/tmp:/tendermint" -p "46657:46657" --name=tm tendermint/tendermint:0.12.1
  22. docker run -it --rm --link=tm tendermint/bench tm:46657
  23. Binaries
  24. ~~~~~~~~
  25. If **Linux**, start with:
  26. ::
  27. curl -L https://s3-us-west-2.amazonaws.com/tendermint/0.12.1/tendermint_linux_amd64.zip && sudo unzip -d /usr/local/bin tendermint_linux_amd64.zip && sudo chmod +x tendermint
  28. if **Mac OS**, start with:
  29. ::
  30. curl -L https://s3-us-west-2.amazonaws.com/tendermint/0.12.1/tendermint_darwin_amd64.zip && sudo unzip -d /usr/local/bin tendermint_darwin_amd64.zip && sudo chmod +x tendermint
  31. then run:
  32. ::
  33. tendermint init
  34. tendermint node --proxy_app=dummy
  35. tm-bench localhost:46657
  36. with the last command being in a seperate window.
  37. Usage
  38. ^^^^^
  39. ::
  40. tm-bench [-c 1] [-T 10] [-r 1000] [endpoints]
  41. Examples:
  42. tm-bench localhost:46657
  43. Flags:
  44. -T int
  45. Exit after the specified amount of time in seconds (default 10)
  46. -c int
  47. Connections to keep open per endpoint (default 1)
  48. -r int
  49. Txs per second to send in a connection (default 1000)
  50. -v Verbose output
  51. Development
  52. ^^^^^^^^^^^
  53. ::
  54. make get_vendor_deps
  55. make test