We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 16e51a9 commit a17b2aaCopy full SHA for a17b2aa
tests/benchmark.js
@@ -32,6 +32,7 @@ process.on(
32
// Most of the randomness was disabled when tested.
33
// Tested on nodejs 7.8.0, Windows 10, 64 bit.
34
// https://github.com/uWebSockets/uWebSockets/issues/585
35
+ // If replacing the uws client with ws and keeping the uws server, then uws wins at memory used by a large margin. Doesn't win the CPU though.
36
console.log("===== uws (20,000 calls in parallel, over as many reused connections as possible)");
37
allTests = new AllTests(bBenchmarkMode, /*bWebSocketMode*/ true, require("uws"), require("uws").Server, JSONRPC.WebSocketAdapters.uws.WebSocketWrapper, /*bDisableVeryLargePacket*/ true);
38
allTests.websocketServerPort = allTests.httpServerPort + 1;
0 commit comments