aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com> 2022-10-19 01:13:13 -0700
committerGravatar Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com> 2022-10-19 01:13:13 -0700
commit19682b4225d3f18fd9bc318f264ab36d661c5487 (patch)
tree327c8ee3e0434db0d5cbd30d324072432f75feb2
parent536bd72de96dc9ebd9c0228f506cea73b9597ac3 (diff)
downloadbun-19682b4225d3f18fd9bc318f264ab36d661c5487.tar.gz
bun-19682b4225d3f18fd9bc318f264ab36d661c5487.tar.zst
bun-19682b4225d3f18fd9bc318f264ab36d661c5487.zip
Update README.md
-rw-r--r--README.md9
1 files changed, 4 insertions, 5 deletions
diff --git a/README.md b/README.md
index c8c83a869..37e79648a 100644
--- a/README.md
+++ b/README.md
@@ -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) {