How can I get performance tests for using socket.io in a Nodejs application

I recently worked on a nodejs application that uses open socket connections for all of its communication. The index is supplied via nginx. I want to evaluate the ability of the server to handle a large amount of load, which means that I will eventually test the ability of my application to manage open sockets, and not its ability to serve the index file.

Does anyone know a reliable way to do this?

+4
source share
1 answer

You can try wsbench as a solution, but you do not necessarily use wsbench for all transports.

For instance:

node wsbench -c 100 -r 10 ws://example.com:8080/socket.io/websocket 
+2
source

Source: https://habr.com/ru/post/1342902/


All Articles