Skip to content

Commit b20a945

Browse files
chore: Update benchmark results, graph, and README
1 parent 6edea9e commit b20a945

5 files changed

Lines changed: 50 additions & 15 deletions

File tree

README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,15 +13,15 @@ Go WebSocket Library Comparison
1313
**Latest Benchmark Results:**
1414

1515
<!-- BENCHMARK_TABLE_START -->
16-
**Last Updated:** Thu, 21 May 2026 06:37:04 UTC
16+
**Last Updated:** Fri, 22 May 2026 06:34:05 UTC
1717

1818
| Library | Version | Throughput (MB/s) | Avg Latency (ms) |
1919
| ----------------------------------------------- | --------------- | ----------------- | ---------------- |
20-
| [coder/websocket](https://github.com/coder/websocket) | v1.8.14 | 238.61 | 32.42 |
21-
| [gobwas/ws](https://github.com/gobwas/ws) | v1.4.0 | 283.28 | 27.36 |
22-
| [gorilla/websocket](https://github.com/gorilla/websocket) | v1.5.3 | 494.30 | 15.68 |
23-
| [lesismal/nbio](https://github.com/lesismal/nbio) | v1.6.9 | 355.70 | 21.77 |
24-
| [lxzan/gws](https://github.com/lxzan/gws) | v1.9.1 | 578.54 | 13.43 |
20+
| [coder/websocket](https://github.com/coder/websocket) | v1.8.14 | 282.83 | 27.45 |
21+
| [gobwas/ws](https://github.com/gobwas/ws) | v1.4.0 | 350.66 | 22.13 |
22+
| [gorilla/websocket](https://github.com/gorilla/websocket) | v1.5.3 | 597.35 | 12.98 |
23+
| [lesismal/nbio](https://github.com/lesismal/nbio) | v1.6.9 | 412.12 | 18.83 |
24+
| [lxzan/gws](https://github.com/lxzan/gws) | v1.9.1 | 672.86 | 11.57 |
2525
<!-- BENCHMARK_TABLE_END -->
2626

2727
**Performance Over Time: Throughput (MB/s):**

benchmark/benchmark_history.json

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13613,5 +13613,40 @@
1361313613
"LatencyMs": 32.422262675738146,
1361413614
"Timestamp": "2026-05-21T06:36:07.782140676Z",
1361513615
"Version": "v1.8.14"
13616+
},
13617+
{
13618+
"LibraryName": "gorilla/websocket",
13619+
"ThroughputMBps": 597.34765625,
13620+
"LatencyMs": 12.98449787798929,
13621+
"Timestamp": "2026-05-22T06:33:08.167993119Z",
13622+
"Version": "v1.5.3"
13623+
},
13624+
{
13625+
"LibraryName": "lxzan/gws",
13626+
"ThroughputMBps": 672.86484375,
13627+
"LatencyMs": 11.574864705137896,
13628+
"Timestamp": "2026-05-22T06:33:08.167993119Z",
13629+
"Version": "v1.9.1"
13630+
},
13631+
{
13632+
"LibraryName": "gobwas/ws",
13633+
"ThroughputMBps": 350.6625,
13634+
"LatencyMs": 22.131365183759314,
13635+
"Timestamp": "2026-05-22T06:33:08.167993119Z",
13636+
"Version": "v1.4.0"
13637+
},
13638+
{
13639+
"LibraryName": "lesismal/nbio",
13640+
"ThroughputMBps": 412.12109375,
13641+
"LatencyMs": 18.832545046112433,
13642+
"Timestamp": "2026-05-22T06:33:08.167993119Z",
13643+
"Version": "v1.6.9"
13644+
},
13645+
{
13646+
"LibraryName": "coder/websocket",
13647+
"ThroughputMBps": 282.834375,
13648+
"LatencyMs": 27.446319069243263,
13649+
"Timestamp": "2026-05-22T06:33:08.167993119Z",
13650+
"Version": "v1.8.14"
1361613651
}
1361713652
]

benchmark_performance.png

1.84 KB
Loading

go.mod

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@ require (
2222
github.com/golang/freetype v0.0.0-20170609003504-e2365dfdc4a0 // indirect
2323
github.com/klauspost/compress v1.18.6 // indirect
2424
github.com/lesismal/llib v1.2.2 // indirect
25-
golang.org/x/crypto v0.51.0 // indirect
26-
golang.org/x/image v0.40.0 // indirect
27-
golang.org/x/sys v0.44.0 // indirect
25+
golang.org/x/crypto v0.52.0 // indirect
26+
golang.org/x/image v0.41.0 // indirect
27+
golang.org/x/sys v0.45.0 // indirect
2828
golang.org/x/text v0.37.0 // indirect
2929
)

go.sum

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -49,10 +49,10 @@ golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACk
4949
golang.org/x/crypto v0.0.0-20191011191535-87dc89f01550/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI=
5050
golang.org/x/crypto v0.0.0-20200622213623-75b288015ac9/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto=
5151
golang.org/x/crypto v0.0.0-20210513122933-cd7d49e622d5/go.mod h1:P+XmwS30IXTQdn5tA2iutPOUgjI07+tq3H3K9MVA1s8=
52-
golang.org/x/crypto v0.51.0 h1:IBPXwPfKxY7cWQZ38ZCIRPI50YLeevDLlLnyC5wRGTI=
53-
golang.org/x/crypto v0.51.0/go.mod h1:8AdwkbraGNABw2kOX6YFPs3WM22XqI4EXEd8g+x7Oc8=
54-
golang.org/x/image v0.40.0 h1:Tw4GyDXMo+daZN1znreBRC3VayR1aLFUyUEOLUdW1a8=
55-
golang.org/x/image v0.40.0/go.mod h1:uIc348UZMSvS5Z65CVZ7iDPaNobNFEPeJ4kbqTOszmA=
52+
golang.org/x/crypto v0.52.0 h1:RMs7fP2rXdep0CftQlK8Uf+kibLm7qkCcradZWYz988=
53+
golang.org/x/crypto v0.52.0/go.mod h1:1QgfPxDqh0T2M/elOJtp9RvuR95kVjir0e6/BvEmGbc=
54+
golang.org/x/image v0.41.0 h1:8wS72eGJMJaBxK6okTzd4WaXumUlTVlb753MlsSvTCo=
55+
golang.org/x/image v0.41.0/go.mod h1:uIc348UZMSvS5Z65CVZ7iDPaNobNFEPeJ4kbqTOszmA=
5656
golang.org/x/mod v0.3.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA=
5757
golang.org/x/net v0.0.0-20190404232315-eb5bcb51f2a3/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg=
5858
golang.org/x/net v0.0.0-20190620200207-3b0461eec859/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s=
@@ -68,8 +68,8 @@ golang.org/x/sys v0.0.0-20201119102817-f84b799fce68/go.mod h1:h1NjWce9XRLGQEsW7w
6868
golang.org/x/sys v0.0.0-20210119212857-b64e53b001e4/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
6969
golang.org/x/sys v0.0.0-20210423082822-04245dca01da/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
7070
golang.org/x/sys v0.6.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
71-
golang.org/x/sys v0.44.0 h1:ildZl3J4uzeKP07r2F++Op7E9B29JRUy+a27EibtBTQ=
72-
golang.org/x/sys v0.44.0/go.mod h1:4GL1E5IUh+htKOUEOaiffhrAeqysfVGipDYzABqnCmw=
71+
golang.org/x/sys v0.45.0 h1:dO4czNzziLiiXplLQgBCEpCvXQ3dnkn0SdaZSYdQ+FY=
72+
golang.org/x/sys v0.45.0/go.mod h1:4GL1E5IUh+htKOUEOaiffhrAeqysfVGipDYzABqnCmw=
7373
golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo=
7474
golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ=
7575
golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ=

0 commit comments

Comments
 (0)