Skip to content

Commit fddb348

Browse files
chore: Update benchmark results, graph, and README
1 parent 196f92f commit fddb348

5 files changed

Lines changed: 44 additions & 9 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, 18 Jun 2026 07:18:36 UTC
16+
**Last Updated:** Fri, 19 Jun 2026 08:17:39 UTC
1717

1818
| Library | Version | Throughput (MB/s) | Avg Latency (ms) |
1919
| ----------------------------------------------- | --------------- | ----------------- | ---------------- |
20-
| [coder/websocket](https://github.com/coder/websocket) | v1.8.15 | 436.50 | 17.82 |
21-
| [gobwas/ws](https://github.com/gobwas/ws) | v1.4.0 | 452.41 | 17.18 |
22-
| [gorilla/websocket](https://github.com/gorilla/websocket) | v1.5.3 | 803.56 | 9.67 |
23-
| [lesismal/nbio](https://github.com/lesismal/nbio) | v1.6.9 | 565.92 | 13.73 |
24-
| [lxzan/gws](https://github.com/lxzan/gws) | v1.9.1 | 978.13 | 7.96 |
20+
| [coder/websocket](https://github.com/coder/websocket) | v1.8.15 | 263.30 | 29.42 |
21+
| [gobwas/ws](https://github.com/gobwas/ws) | v1.4.0 | 291.30 | 26.47 |
22+
| [gorilla/websocket](https://github.com/gorilla/websocket) | v1.5.3 | 480.82 | 16.12 |
23+
| [lesismal/nbio](https://github.com/lesismal/nbio) | v1.6.9 | 355.66 | 21.78 |
24+
| [lxzan/gws](https://github.com/lxzan/gws) | v1.9.1 | 583.59 | 13.31 |
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
@@ -14593,5 +14593,40 @@
1459314593
"LatencyMs": 17.824494332551183,
1459414594
"Timestamp": "2026-06-18T07:17:40.277778959Z",
1459514595
"Version": "v1.8.15"
14596+
},
14597+
{
14598+
"LibraryName": "gorilla/websocket",
14599+
"ThroughputMBps": 480.815625,
14600+
"LatencyMs": 16.116868472192433,
14601+
"Timestamp": "2026-06-19T08:16:41.862066617Z",
14602+
"Version": "v1.5.3"
14603+
},
14604+
{
14605+
"LibraryName": "lxzan/gws",
14606+
"ThroughputMBps": 583.5921875,
14607+
"LatencyMs": 13.31332614009676,
14608+
"Timestamp": "2026-06-19T08:16:41.862066617Z",
14609+
"Version": "v1.9.1"
14610+
},
14611+
{
14612+
"LibraryName": "gobwas/ws",
14613+
"ThroughputMBps": 291.3,
14614+
"LatencyMs": 26.471069880707176,
14615+
"Timestamp": "2026-06-19T08:16:41.862066617Z",
14616+
"Version": "v1.4.0"
14617+
},
14618+
{
14619+
"LibraryName": "lesismal/nbio",
14620+
"ThroughputMBps": 355.659375,
14621+
"LatencyMs": 21.781049283461176,
14622+
"Timestamp": "2026-06-19T08:16:41.862066617Z",
14623+
"Version": "v1.6.9"
14624+
},
14625+
{
14626+
"LibraryName": "coder/websocket",
14627+
"ThroughputMBps": 263.30390625,
14628+
"LatencyMs": 29.419607808230154,
14629+
"Timestamp": "2026-06-19T08:16:41.862066617Z",
14630+
"Version": "v1.8.15"
1459614631
}
1459714632
]

benchmark_performance.png

754 Bytes
Loading

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ require (
2323
github.com/klauspost/compress v1.18.6 // indirect
2424
github.com/lesismal/llib v1.2.2 // indirect
2525
golang.org/x/crypto v0.53.0 // indirect
26-
golang.org/x/image v0.42.0 // indirect
26+
golang.org/x/image v0.43.0 // indirect
2727
golang.org/x/sys v0.46.0 // indirect
2828
golang.org/x/text v0.38.0 // indirect
2929
)

go.sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,8 @@ golang.org/x/crypto v0.0.0-20200622213623-75b288015ac9/go.mod h1:LzIPMQfyMNhhGPh
5151
golang.org/x/crypto v0.0.0-20210513122933-cd7d49e622d5/go.mod h1:P+XmwS30IXTQdn5tA2iutPOUgjI07+tq3H3K9MVA1s8=
5252
golang.org/x/crypto v0.53.0 h1:QZ4Muo8THX6CizN2vPPd5fBGHyogrdK9fG4wLPFUsto=
5353
golang.org/x/crypto v0.53.0/go.mod h1:DNLU434OwVakk9PzuwV8w62mAJpRJL3vsgcfp4Qnsio=
54-
golang.org/x/image v0.42.0 h1:1gSs6ehNWXLbkHBIPcWztk3D/6aIA/8hauiAYtlodVY=
55-
golang.org/x/image v0.42.0/go.mod h1:rrpelvGFt+kLPAjPM4HeWPgrl0FtafueU//e5N0qk/Q=
54+
golang.org/x/image v0.43.0 h1:FLxcP4ec2350nTfOC8ysKtqYSIFbk/QGjw1ZHNP4tsY=
55+
golang.org/x/image v0.43.0/go.mod h1:rrpelvGFt+kLPAjPM4HeWPgrl0FtafueU//e5N0qk/Q=
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=

0 commit comments

Comments
 (0)