Skip to content
This repository has been archived by the owner on Mar 19, 2018. It is now read-only.

UNMAINTAINED. Run concurrent WebSocket clients and measure the roundtrip-time.

License

Notifications You must be signed in to change notification settings

cargomedia/websocket-benchmark

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 

Repository files navigation

UNMAINTAINED

This project is not maintained anymore. If you want to take over contact us at tech@cargomedia.ch.

websocket-benchmark

Run concurrent WebSocket clients and measure the roundtrip-time.

The server is expected to copy every message it receives back to the client!

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

About

UNMAINTAINED. Run concurrent WebSocket clients and measure the roundtrip-time.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published