Reputation: 1810
I have recently been working on a nodejs app which uses open socket connections for all of its communication. The index is served up through nginx. I want to benchmark the ability of the server to handle a high amount of load which means I would end up testing my application's ability to manage open sockets, and not its ability to serve up the index file.
Does anyone know of a reliable way to do this?
Upvotes: 4
Views: 2219
Reputation: 46
You can try wsbench as solution, but you don't necessarily use wsbench for all transports.
For example:
node wsbench -c 100 -r 10 ws://example.com:8080/socket.io/websocket
Upvotes: 3