websocket-benchmark

0.0.2 • Public • Published

websocket-benchmark

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]

Options:
  -h  Host to connect to (e.g. "ws://10.10.10.10/echo/websocket")  [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]

Example

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

Readme

Keywords

Package Sidebar

Install

npm i websocket-benchmark

Weekly Downloads

2

Version

0.0.2

License

BSD

Last publish

Collaborators

  • njam