Skip to content

Instantly share code, notes, and snippets.

@kulkarnisourabh
Created December 4, 2017 10:46
Show Gist options
  • Save kulkarnisourabh/2094b50c0d4aed3b0ac514c52870a592 to your computer and use it in GitHub Desktop.
Save kulkarnisourabh/2094b50c0d4aed3b0ac514c52870a592 to your computer and use it in GitHub Desktop.
Load test rails ActionCable websockets
config:
target: wss://test.cable.com/api/cable?token=f4adff3d1cb8fa6da3d678ba1eae330ac606
phases:
- {duration: 50, arrivalRate: 2, rampTo: 20, name: "Warming up"}
- {duration: 50, arrivalRate: 5, name: "max load 5 for 50"}
- pause: 100
- {duration: 100, arrivalRate: 1, name: "max load 1 for 100"}
- pause: 100
ws:
- {rejectUnauthorized: false}
- {handshakeTimeout: 5000}
scenarios:
- engine: ws
flow:
- send:
- {command: "subscribe", identifier: "{\"channel\":\"ConversationChannel\",\"services_city_id\":\"2029343\",\"cable_id\":\"8ac331d6-65ae-408a-beb1\"}"}
- loop:
- send: world
- think: 60
count: 50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment