How to do the stress test of Websocket server?

has any god done a stress test on the Websocket server on the Linux system, and what tools are available? Like the apachebench tool, it seems that you cannot be used to test the Websocket server.

Mar.04,2021

you can use this npm package to test websocket-bench


because I use the websocket framework based on workerman , I found a post in the Q & A community of workerman , which you can refer to. Link

there are other ways:
(2) is to write a js file that contains the code to connect to the WS server. If you want to test several protocols, you can write your own code for several protocols, and then connect to the test.

if you want stress testing or high concurrency, you can achieve the effect of stress testing by running multiple examples at the same time.

Menu