Websocket control server (hybi-17) node.js (0.6.7)

I am developing a webscoket server using node.js, and as I finish my main api, I want to start testing my server and testing for memory leak. The only comparison tool I have found so far is wsbench , but the project is deprecated and uses discounted api calls. I found some other obsolete messages in response or solutions that will not work on the platform (I use OS X). I'm really looking for some more modern solutions to this problem, not things from a year ago.

+4
source share
2 answers

I think you're looking for an Autobahn WebSockets Test Test Test Suite . It is very modern and comprehensive, and the suite is implemented using python, so it should be quite portable.

First of all, this concerns verifying the correct implementation of the client and server, but the entire section 9 (more than 50 separate tests) is associated with performance and load testing.

+5
source

The Autobahn Kit is a great place to start. His 9.x tests provide good performance coverage for different message sizes, fragment sizes, tcp packet sizes, and round-trip times for both client and server implementations. Keep in mind that Autobahn is written in python and, as such, has a reduced ability to provide accurate metrics as your implementation approaches the speed of the test client / server itself.

To provide better performance indicators for implications written in faster languages ​​than Python, I am working on the implementation of many Autobahn 9.x tests using my C ++ WebSocket ++ library . WebSocket ++ also includes a common stress testing client that allows server authors to check what happens to their servers with thousands of connections.

Both Autobahn and WebSocket ++ fully support the final RFC6455 WebSocket specification, released in November 2011. WebSockets is a relatively new technology, and testing tools for them are not yet fully mature. If you have any questions or feedback about WebSocket performance testing, feel free to contact me personally or post to the Github project.

Disclaimer: I am the author of WebSocket ++ and a member of the Autobahn test suite.

+8
source

Source: https://habr.com/ru/post/1391293/


All Articles