Created
October 29, 2022 10:48
-
-
Save omerkaya1/bc79de8d21c8e02bdc2f1c071c5185f9 to your computer and use it in GitHub Desktop.
Artillery config file (load testing WebSocket)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
config: | |
environments: | |
local: | |
target: "http://localhost:8000" | |
phases: | |
- duration: 10 | |
arrivalRate: 1 | |
arrivalCount: 200 | |
maxVusers: 50 | |
name: "Warm up" | |
- duration: 20 | |
arrivalRate: 3 | |
arrivalCount: 500 | |
maxVusers: 100 | |
name: "Medium load" | |
- duration: 30 | |
arrivalRate: 5 | |
arrivalCount: 1500 | |
maxVusers: 200 | |
name: "Max load" | |
scenarios: | |
- engine: ws | |
name: Opened session for a single user | |
flow: | |
- connect: "{{ target }}/ws" | |
- send: '{"id": 160, "type": "GetServerTime"}' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment