V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
helloworld12
V2EX  ›  问与答

websocket 压测问题

  •  
  •   helloworld12 · Jan 3, 2018 · 2419 views
    This topic created in 3042 days ago, the information mentioned may be changed or developed.

    想要 压测 websocket 网上搜了下, 发现了 https://github.com/M6Web/websocket-bench

    看了 websocket-bench 的文档里面有支持的服务器类型

     -t, --type <type>        Type of websocket server to bench(socket.io, engine.io, faye, primus, wamp). Default to socket.io
     -p, --transport <type>   Type of transport to websocket(engine.io, websockets, browserchannel, sockjs, socket.io). Default to websockets (Just for Primus)
    

    服务端我用的是https://github.com/gorilla/websocket 好像不在支持的服务器里面?

    但是,他支持的协议里面有包括 websockets 啊

    socket.io engine.io ... 应该是在 websocket 协议上的协议吧? 就是说,websocket-bench 不支持 websocket 本身?

    4 replies    2018-01-04 19:29:39 +08:00
    helloworld12
        1
    helloworld12  
    OP
       Jan 3, 2018
    not answer?
    helloworld12
        2
    helloworld12  
    OP
       Jan 3, 2018
    native websocket 压测大家都碰不到吗。。。。我现在都直接用 go 写压测程序了。。。蛋疼
    owt5008137
        3
    owt5008137  
       Jan 4, 2018 via Android
    有测试结果报告么?
    helloworld12
        4
    helloworld12  
    OP
       Jan 4, 2018
    @owt5008137 自己写,当然没有咯
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2364 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 40ms · UTC 10:32 · PVG 18:32 · LAX 03:32 · JFK 06:32
    ♥ Do have faith in what you're doing.