Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/lxzan/wsbench

websocket benchmark tool
https://github.com/lxzan/wsbench

benchmark websocket

Last synced: 3 months ago
JSON representation

websocket benchmark tool

Awesome Lists containing this project

README

        

# wsbench

### install
```bash
go install github.com/lxzan/wsbench@latest
```

### help
```
NAME:
wsbench - testing websocket server iops and latency

USAGE:
wsbench [global options] command [command options] [arguments...]

COMMANDS:
echo
broadcast
version
help, h Shows a list of commands or help for one command

GLOBAL OPTIONS:
--help, -h show help
```

### example

##### Echo
```bash
wsbench echo -c 1000 -n 1000 -p 1000 -u 'ws://127.0.0.1:8000/connect,ws://127.0.0.1:8001/connect'
```

##### Broadcast
```bash
wsbench broadcast -c 1000 -n 1 -p 1000 -i 3 -u 'ws://127.0.0.1:8000/connect,ws://127.0.0.1:8001/connect'
```