Websocket Benchmark

npm install websocket-benchmark
8 downloads in the last week
26 downloads in the last month


Run concurrent WebSocket clients and measure the roundtrip-time.

npm install -g websocket-benchmark
Usage: node websocket-benchmark -h [host] -n [clients] -c [concurrency] -r [roundtrips] -s [size]

  -h  Host to connect to (e.g. "ws://")  [required]
  -n  Number of clients to create                                  [default: 1000]
  -c  Number of concurrent clients                                 [default: 1]
  -r  Number of roundtrips to the server each client should do     [default: 5]
  -s  Size of the message to send                                  [default: 30]


websocket-benchmark -h 'ws://echo.websocket.org/' -n 1000 -c 10
Starting 1000 clients doing 5 roundtrips to `ws://echo.websocket.org/`.
Min: 882ms
Mean: 905ms
Max: 921ms
npm loves you