Skip to content

Instantly share code, notes, and snippets.

@alexvanin
Created March 19, 2019 14:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save alexvanin/58c52d029577fd1137e636ade5db3238 to your computer and use it in GitHub Desktop.
Save alexvanin/58c52d029577fd1137e636ade5db3238 to your computer and use it in GitHub Desktop.
rpc-raw-generator$ cp ../neo-bench/scripts/raw.txs ./raw
rpc-raw-generator$ make up
Stop container
Error response from daemon: No such container: neo-raw-generator
Error: No such container: neo-raw-generator
enter inside container:
/var/test # rpc-generator --help
Usage of rpc-generator:
-c int
number of simultaneous connections (default 1)
-f string
file with raw transactions (default "./raw.txs")
-t int
total amount of transactions (default 100)
-url string
connection url (default "http://127.0.0.1:30334/")
/var/test # rpc-generator -c 1 -t 10 -f ./raw.txs
2019/03/19 13:59:30 Sending 10 transactions (10 tx in 1 connections) to http://127.0.0.1:30334/
2019/03/19 13:59:30 connection 1 ) time: 111.846733ms
2019/03/19 13:59:30 ---
2019/03/19 13:59:30 Total time: 111.97198ms Approximate TPS: 89.30805724789363
2019/03/19 13:59:30 For accurate TPS values use external connection sniffers, e.g. Wireshark
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment