Skip to content

Commit a17b2aa

Browse files
author
ionut.stan
committed
Clarifications.
1 parent 16e51a9 commit a17b2aa

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

tests/benchmark.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ process.on(
3232
// Most of the randomness was disabled when tested.
3333
// Tested on nodejs 7.8.0, Windows 10, 64 bit.
3434
// 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.
3536
console.log("===== uws (20,000 calls in parallel, over as many reused connections as possible)");
3637
allTests = new AllTests(bBenchmarkMode, /*bWebSocketMode*/ true, require("uws"), require("uws").Server, JSONRPC.WebSocketAdapters.uws.WebSocketWrapper, /*bDisableVeryLargePacket*/ true);
3738
allTests.websocketServerPort = allTests.httpServerPort + 1;

0 commit comments

Comments
 (0)