Coder Social home page Coder Social logo

wsab's Introduction

wsab

websocket 压测工具

参数

  • -n : 总请求数
  • -c : 并发请求数
  • -url : ws或者wss地址

使用样例

  • [root@xxxx ~]# wsab -n 20 -c 20 -url ws://127.0.0.1:7777/ws

返回结果

  • total request : 20 (总请求数量)
  • spend time : 0.005833 s (总花费时间)
  • qps : 3428.77 [#/sec] (qps)
  • per request min time : 2.303 ms (单个请求所用最小时间)
  • per request max time : 3.602 ms (单个请求所用最大时间)
  • connect success: 20 (websocket连接成功数)
  • connect fail: 0 (websocket连接失败数)
  • send message success: 20 (发送数据包成功数)
  • send message fail: 0 (发送数据包失败数)
  • accept message success: 20 (接收数据包成功数)
  • accept message fail: 0 (接收数据包失败数)

wsab's People

Contributors

braveheart7854 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.