Closed yigit433 closed 3 months ago
V8 needs some time to warm up, if you move uws.js to last test it will now be the fastest time. Or just test each individually, not in 1 run
You will see ws and uws are same result because you are limited by the slow ws client test. Socket.io is slower tho
You are making the most common, classic benchmarking mistake written about here: https://github.com/uNetworking/uWebSockets/tree/master/benchmarks#common-benchmarking-mistakes
TLDR; Do not "benchmark" uWS using a scripted Node.js client - this is benchmarking nothing but your client. Also, you don't track CPU-time so your results are meaningless.
Hello, as you can see in the screenshot I sent as a result of the tests I made, the fastest one is the ws module. I used the libraries I used in the test in their most basic form. Maybe there is a deficiency in the configuration, what is your solution for this problem?
index.js
ws.js
uwebsockets.js
socketio.js