From fa825fdcf9758dbf80667c5ea6715bf235959cc8 Mon Sep 17 00:00:00 2001
From: Anmol Sethi <hi@nhooyr.io>
Date: Sat, 9 Nov 2019 17:36:09 -0500
Subject: [PATCH] Mention masking algorithm performance in README.md

---
 README.md | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/README.md b/README.md
index ea26237..f6780e0 100644
--- a/README.md
+++ b/README.md
@@ -138,6 +138,9 @@ In terms of performance, the differences mostly depend on your application code.
 reuses message buffers out of the box if you use the wsjson and wspb subpackages.
 As mentioned above, nhooyr.io/websocket also supports concurrent writers.
 
+The WebSocket masking algorithm used by this package is also [1.75x](https://github.com/nhooyr/websocket/releases/tag/v1.7.4) faster
+on average than gorilla/websocket or gobwas/ws while using pure safe Go.
+
 The only performance con to nhooyr.io/websocket is that it uses one extra goroutine to support
 cancellation with context.Context. This costs 2 KB of memory which is cheap compared to
 the benefits.
-- 
GitLab