aboutsummaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
Diffstat (limited to 'README.md')
-rw-r--r--README.md7
1 files changed, 7 insertions, 0 deletions
diff --git a/README.md b/README.md
index 6cb749d3f..1995335d4 100644
--- a/README.md
+++ b/README.md
@@ -2118,6 +2118,13 @@ Features:
- HTTPS
- Pubsub / broadcast support with MQTT-like topics
+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) |
+
Here is an example that echoes back any message it receives:
```ts