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.

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b36a98-2c013.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b36a98-2c013.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?