Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/image-processing/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Socket.io 使用Artirary进行插座io负载测试_Socket.io_Artillery - Fatal编程技术网

Socket.io 使用Artirary进行插座io负载测试

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"

这是我的艺术代码。当我运行此代码时,必须指定一个URL,我已使用以下代码解决了此问题

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"