Skip to content

Commit ea39d57

Browse files
chore: Update benchmark results, graph, and README
1 parent ebedc01 commit ea39d57

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:** Tue, 30 Jun 2026 06:40:47 UTC
16+
**Last Updated:** Wed, 01 Jul 2026 06:54:33 UTC
1717

1818
| Library | Version | Throughput (MB/s) | Avg Latency (ms) |
1919
| ----------------------------------------------- | --------------- | ----------------- | ---------------- |
20-
| [coder/websocket](https://github.com/coder/websocket) | v1.8.15 | 254.13 | 30.48 |
21-
| [gobwas/ws](https://github.com/gobwas/ws) | v1.4.0 | 278.35 | 27.79 |
22-
| [gorilla/websocket](https://github.com/gorilla/websocket) | v1.5.3 | 499.91 | 15.50 |
23-
| [lesismal/nbio](https://github.com/lesismal/nbio) | v1.6.10 | 349.47 | 22.16 |
24-
| [lxzan/gws](https://github.com/lxzan/gws) | v1.9.1 | 577.13 | 13.47 |
20+
| [coder/websocket](https://github.com/coder/websocket) | v1.8.15 | 265.40 | 29.17 |
21+
| [gobwas/ws](https://github.com/gobwas/ws) | v1.4.0 | 293.51 | 26.36 |
22+
| [gorilla/websocket](https://github.com/gorilla/websocket) | v1.5.3 | 530.28 | 14.63 |
23+
| [lesismal/nbio](https://github.com/lesismal/nbio) | v1.6.10 | 362.08 | 21.39 |
24+
| [lxzan/gws](https://github.com/lxzan/gws) | v1.9.1 | 602.89 | 12.90 |
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
@@ -15013,5 +15013,40 @@
1501315013
"LatencyMs": 30.476393517209154,
1501415014
"Timestamp": "2026-06-30T06:39:50.994383117Z",
1501515015
"Version": "v1.8.15"
15016+
},
15017+
{
15018+
"LibraryName": "gorilla/websocket",
15019+
"ThroughputMBps": 530.278125,
15020+
"LatencyMs": 14.631384473949401,
15021+
"Timestamp": "2026-07-01T06:53:32.507775069Z",
15022+
"Version": "v1.5.3"
15023+
},
15024+
{
15025+
"LibraryName": "lxzan/gws",
15026+
"ThroughputMBps": 602.8890625,
15027+
"LatencyMs": 12.899985486550438,
15028+
"Timestamp": "2026-07-01T06:53:32.507775069Z",
15029+
"Version": "v1.9.1"
15030+
},
15031+
{
15032+
"LibraryName": "gobwas/ws",
15033+
"ThroughputMBps": 293.5109375,
15034+
"LatencyMs": 26.357993473411874,
15035+
"Timestamp": "2026-07-01T06:53:32.507775069Z",
15036+
"Version": "v1.4.0"
15037+
},
15038+
{
15039+
"LibraryName": "lesismal/nbio",
15040+
"ThroughputMBps": 362.07578125,
15041+
"LatencyMs": 21.391207814317188,
15042+
"Timestamp": "2026-07-01T06:53:32.507775069Z",
15043+
"Version": "v1.6.10"
15044+
},
15045+
{
15046+
"LibraryName": "coder/websocket",
15047+
"ThroughputMBps": 265.40234375,
15048+
"LatencyMs": 29.166224629468818,
15049+
"Timestamp": "2026-07-01T06:53:32.507775069Z",
15050+
"Version": "v1.8.15"
1501615051
}
1501715052
]

benchmark_performance.png

133 Bytes
Loading

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ require (
2020
github.com/gobwas/httphead v0.1.0 // indirect
2121
github.com/gobwas/pool v0.2.1 // indirect
2222
github.com/golang/freetype v0.0.0-20170609003504-e2365dfdc4a0 // indirect
23-
github.com/klauspost/compress v1.18.6 // indirect
23+
github.com/klauspost/compress v1.18.7 // indirect
2424
github.com/lesismal/llib v1.2.2 // indirect
2525
golang.org/x/crypto v0.53.0 // indirect
2626
golang.org/x/image v0.43.0 // indirect

go.sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,8 @@ github.com/golang/freetype v0.0.0-20170609003504-e2365dfdc4a0/go.mod h1:E/TSTwGw
3232
github.com/gorilla/websocket v1.5.3 h1:saDtZ6Pbx/0u+bgYQ3q96pZgCzfhKXGPqt7kZ72aNNg=
3333
github.com/gorilla/websocket v1.5.3/go.mod h1:YR8l580nyteQvAITg2hZ9XVh4b55+EU/adAjf1fMHhE=
3434
github.com/kisielk/gotool v1.0.0/go.mod h1:XhKaO+MFFWcvkIS/tQcRk01m1F5IRFswLeQ+oQHNcck=
35-
github.com/klauspost/compress v1.18.6 h1:2jupLlAwFm95+YDR+NwD2MEfFO9d4z4Prjl1XXDjuao=
36-
github.com/klauspost/compress v1.18.6/go.mod h1:cwPg85FWrGar70rWktvGQj8/hthj3wpl0PGDogxkrSQ=
35+
github.com/klauspost/compress v1.18.7 h1:aUyZsS4kH3QTKurYhAOwAHxllVPnOthb3vPfnF1Ehjw=
36+
github.com/klauspost/compress v1.18.7/go.mod h1:cwPg85FWrGar70rWktvGQj8/hthj3wpl0PGDogxkrSQ=
3737
github.com/lesismal/llib v1.2.2 h1:ZoVgP9J58Ju3Yue5jtj8ybWl+BKqoVmdRaN1mNwG5Gc=
3838
github.com/lesismal/llib v1.2.2/go.mod h1:70tFXXe7P1FZ02AU9l8LgSOK7d7sRrpnkUr3rd3gKSg=
3939
github.com/lesismal/nbio v1.6.10 h1:4ktUEmZ++2LGQCul9xQhh16ATDH/AaScEyTxg0eksCk=

0 commit comments

Comments
 (0)