Socket.io 使用Artirary进行插座io负载测试
这是我的艺术代码。当我运行此代码时,必须指定一个URL,我已使用以下代码解决了此问题Socket.io 使用Artirary进行插座io负载测试,socket.io,artillery,Socket.io,Artillery,这是我的艺术代码。当我运行此代码时,必须指定一个URL,我已使用以下代码解决了此问题 config: target: "http://192.168.2.161:5000" phases: - duration: 600 arrivalRate: 5 scenarios: - name: "oz_event" flow: - loop: - emit: channel: "oz_event"
config:
target: "http://192.168.2.161:5000"
phases:
- duration: 600
arrivalRate: 5
scenarios:
- name: "oz_event"
flow:
- loop:
- emit:
channel: "oz_event"
data: "hello world!"
namespace: "oz"
- think: 1
count: 50
config:
target: "http://192.168.2.161:5000"
phases:
- duration: 600
arrivalRate: 5
scenarios:
- engine: "socketio"
flow:
- emit:
channel: "oz_event"
data: 'hello'
namespace: "oz"
response:
channel: "oz_response"
data: "hello"