Nitrous9 Posted October 21, 2016 Share Posted October 21, 2016 Hello! I'm faced with a problem and looking for a good solution. The problem is how to load test my websocket multiplayer game by simulating n real clients? My game works great when there are just a few clients while developing, but recently I had about a spike of new players join from a school at the same time, and my game did not scale well at all. So I have a scalability problem and I need to fix it, but the question is how do I know when it's fixed? I need a way to on-demand scale up to N number of simulated clients, to test my scalability. Problems with load testing websockets: I can't just open a bunch of browser windows on my computer and connect because my computer doesn't have enough resources to support that many clients. There are traditional web load testing tools like jmeter, but they are designed for opening http connections not websockets There are also websocket load testing tools like thor, but those just open a websocket connection and send dumb messages, and can't act as a real game client. What I need is a way so simulate a real game client that uses the same protocol as the game, and sends messages as a real player would, then be able to scale that up to 10, 20, 50, 100. Has anyone else run into this problem or have any recommendations? Thank you! Quote Link to comment Share on other sites More sharing options...
Gugis Posted October 21, 2016 Share Posted October 21, 2016 Are you using any websocket library? Quote Link to comment Share on other sites More sharing options...
Nitrous9 Posted October 21, 2016 Author Share Posted October 21, 2016 Native browser WebSocket on the client, and ws (https://github.com/websockets/ws) on the server Quote Link to comment Share on other sites More sharing options...
Gugis Posted October 21, 2016 Share Posted October 21, 2016 You can use WebSocket server-side client for node.js (for example this one https://github.com/pgriess/node-websocket-client) and write your own "bots" Quote Link to comment Share on other sites More sharing options...
Nitrous9 Posted October 21, 2016 Author Share Posted October 21, 2016 @Gugis Thanks! Being as lazy as I am I was hoping there would be a tool to simulate an open browser session that use websockets, so I wouldn't have to write any code Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.