diff options
author | 2022-10-19 01:13:13 -0700 | |
---|---|---|
committer | 2022-10-19 01:13:13 -0700 | |
commit | 19682b4225d3f18fd9bc318f264ab36d661c5487 (patch) | |
tree | 327c8ee3e0434db0d5cbd30d324072432f75feb2 | |
parent | 536bd72de96dc9ebd9c0228f506cea73b9597ac3 (diff) | |
download | bun-19682b4225d3f18fd9bc318f264ab36d661c5487.tar.gz bun-19682b4225d3f18fd9bc318f264ab36d661c5487.tar.zst bun-19682b4225d3f18fd9bc318f264ab36d661c5487.zip |
Update README.md
-rw-r--r-- | README.md | 9 |
1 files changed, 4 insertions, 5 deletions
@@ -2120,10 +2120,10 @@ Features: It's also fast. For [a chatroom](./bench/websocket-server/) on Linux x64: -| Messages sent per second | Runtime | -| ------------------------ | ------------------------------ | -| ~700,000 | (`Bun.serve`) Bun v0.2.1 (x64) | -| ~100,000 | (`ws`) Node v18.10.0 (x64) | +| Messages sent per second | Runtime | Clients | +| ------------------------ | ------------------------------ | ------- | +| ~700,000 | (`Bun.serve`) Bun v0.2.1 (x64) | 16 | +| ~100,000 | (`ws`) Node v18.10.0 (x64) | 16 | Here is an example that echoes back any message it receives: @@ -2188,7 +2188,6 @@ Bun.serve<User>({ // In a group chat, we want to broadcast to everyone // so we use publish() ws.publish("the-group-chat", `${ws.data.name}: ${message}`); - }, close(ws, code, reason) { |