Example of performance test for websocket with k6
-
Clone this repo: https://github.com/loadimpact/k6
-
Install the dependencies:
npm install
-
Create your scripts for test.
-
Run in the command line your script (example):
docker-compose run -v D:/user/k6/scripts:/scripts k6 run scripts/ws.js --vus 300 --duration 60s