Subhasis Jena
Subhasis Jena

Reputation: 1

Websocket load test - How to test using external sdk(js file) in Locust/jmeter/nodejs

Websocket load test - How to test using external sdk(js file) in Locust/jmeter/nodejs?

Any suggestions? I am new to this . Want to check for 50K load

Upvotes: 0

Views: 210

Answers (1)

Dmitri T
Dmitri T

Reputation: 168092

  1. You cannot load test a .js file

    If the .js file provides implementation of a WebSocket server - you need to deploy/launch it somewhere and load test the deployment

  2. JMeter doesn't support WebSocket protocol out of the box, you will need to install i.e. JMeter WebSocket Samplers, see JMeter WebSocket Samplers - A Practical Guide article if you need more comprehensive instructions

  3. Locust doesn't support anything but HTTP protocol so you will need to use the plugin as well

  4. Node.js is simply a JavaScript runtime, you either need to write the load tests from scratch or use an existing library like wsbench

Upvotes: 1

Related Questions