Benchmarkt socket.io

前端 未结 3 1351
走了就别回头了
走了就别回头了 2021-02-03 14:42

I want to benchmark my socket.io server. I want to test how many parallel connections and messages the server can handle.

But my socket.io server crash after some minut

相关标签:
3条回答
  • 2021-02-03 15:15

    I didn't benchmark Socket.IO myself, but I know of 2 good resources that might help you, so check them out:

    • http://drewww.github.com/socket.io-benchmarking/
    • http://blog.mixu.net/2011/11/22/performance-benchmarking-socket-io-0-8-7-0-7-11-and-0-6-17-and-nodes-native-tcp/
    0 讨论(0)
  • 2021-02-03 15:25

    You may check Akinji

    It opens concurrent sockets to server and listens given message and print them

    http://github.com/sonsuzdongu/akinji

    python akinji.py -c 100 --host localhost --port 3000 --waitFor 100 --on "some msg"
    
    0 讨论(0)
  • 2021-02-03 15:33

    I benchmarked Socket.IO and SockJS server implementations.

    Here are the results

    Test suite

    Written in Java, supports 3 transports: Socket.IO 0.7+, SockJS 0.2+, raw Websockets. There's no compiled binary, but you can get Eclipse to compile it or just use command-line javac.

    0 讨论(0)
提交回复
热议问题