Skip to content

Commit 527bc84

Browse files
chore: Update benchmark results, graph, and README
1 parent bd70889 commit 527bc84

5 files changed

Lines changed: 47 additions & 12 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:** Wed, 02 Sep 2026 07:19:03 UTC
16+
**Last Updated:** Thu, 03 Sep 2026 07:23:10 UTC
1717

1818
| Library | Version | Throughput (MB/s) | Avg Latency (ms) |
1919
| ----------------------------------------------- | --------------- | ----------------- | ---------------- |
20-
| [coder/websocket](https://github.com/coder/websocket) | v1.8.15 | 416.24 | 18.65 |
21-
| [gobwas/ws](https://github.com/gobwas/ws) | v1.4.0 | 503.81 | 15.40 |
22-
| [gorilla/websocket](https://github.com/gorilla/websocket) | v1.5.3 | 830.74 | 9.35 |
23-
| [lesismal/nbio](https://github.com/lesismal/nbio) | v1.6.12 | 593.59 | 13.09 |
24-
| [lxzan/gws](https://github.com/lxzan/gws) | v1.10.1 | 1028.27 | 7.57 |
20+
| [coder/websocket](https://github.com/coder/websocket) | v1.8.15 | 254.82 | 30.38 |
21+
| [gobwas/ws](https://github.com/gobwas/ws) | v1.4.0 | 277.54 | 27.96 |
22+
| [gorilla/websocket](https://github.com/gorilla/websocket) | v1.5.3 | 518.64 | 14.92 |
23+
| [lesismal/nbio](https://github.com/lesismal/nbio) | v1.6.12 | 346.91 | 22.29 |
24+
| [lxzan/gws](https://github.com/lxzan/gws) | v1.10.1 | 589.61 | 13.19 |
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
@@ -488,5 +488,40 @@
488488
"LatencyMs": 18.647193411188816,
489489
"Timestamp": "2026-09-02T07:18:03.05031205Z",
490490
"Version": "v1.8.15"
491+
},
492+
{
493+
"LibraryName": "gorilla/websocket",
494+
"ThroughputMBps": 518.64296875,
495+
"LatencyMs": 14.918923030806054,
496+
"Timestamp": "2026-09-03T07:22:09.498325826Z",
497+
"Version": "v1.5.3"
498+
},
499+
{
500+
"LibraryName": "lxzan/gws",
501+
"ThroughputMBps": 589.61171875,
502+
"LatencyMs": 13.192506191177191,
503+
"Timestamp": "2026-09-03T07:22:09.498325826Z",
504+
"Version": "v1.10.1"
505+
},
506+
{
507+
"LibraryName": "gobwas/ws",
508+
"ThroughputMBps": 277.5390625,
509+
"LatencyMs": 27.957429978888108,
510+
"Timestamp": "2026-09-03T07:22:09.498325826Z",
511+
"Version": "v1.4.0"
512+
},
513+
{
514+
"LibraryName": "lesismal/nbio",
515+
"ThroughputMBps": 346.91171875,
516+
"LatencyMs": 22.291000727400476,
517+
"Timestamp": "2026-09-03T07:22:09.498325826Z",
518+
"Version": "v1.6.12"
519+
},
520+
{
521+
"LibraryName": "coder/websocket",
522+
"ThroughputMBps": 254.8234375,
523+
"LatencyMs": 30.375005365234507,
524+
"Timestamp": "2026-09-03T07:22:09.498325826Z",
525+
"Version": "v1.8.15"
491526
}
492527
]

benchmark_performance.png

2.51 KB
Loading

go.mod

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,9 @@ 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.19.2 // indirect
23+
github.com/klauspost/compress v1.20.0 // indirect
2424
github.com/lesismal/llib v1.2.4 // indirect
25-
golang.org/x/crypto v0.55.0 // indirect
25+
golang.org/x/crypto v0.56.0 // indirect
2626
golang.org/x/image v0.45.0 // indirect
2727
golang.org/x/sys v0.47.0 // indirect
2828
golang.org/x/text v0.41.0 // indirect

go.sum

Lines changed: 4 additions & 4 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.19.2 h1:hMRETovs/pu/dVWN7zIT1PGG8t509MwT6bO7XSi26R8=
36-
github.com/klauspost/compress v1.19.2/go.mod h1:cwPg85FWrGar70rWktvGQj8/hthj3wpl0PGDogxkrSQ=
35+
github.com/klauspost/compress v1.20.0 h1:a3C1ke2ohxFymNlb2HWAHjDeKCI90scRskErZkR0ezA=
36+
github.com/klauspost/compress v1.20.0/go.mod h1:LUdAzn7YLVvxLpc7y3V1m40wESHTgc1422pwwBSKYuI=
3737
github.com/lesismal/llib v1.2.4 h1:O9ih7VDnOB6KOP3r64DAJpMyMJ/bCKbzYI80VoXEV28=
3838
github.com/lesismal/llib v1.2.4/go.mod h1:70tFXXe7P1FZ02AU9l8LgSOK7d7sRrpnkUr3rd3gKSg=
3939
github.com/lesismal/nbio v1.6.12 h1:nzCqb/vli06hoYdMHD+TYAGIdUnEv/BIHm3TddUD/h4=
@@ -49,8 +49,8 @@ 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.55.0 h1:+KWHjbgOaAQ66dh/YlkZKHlz9ZUlq61AFirAR9ntP8M=
53-
golang.org/x/crypto v0.55.0/go.mod h1:uq0V9dE/fzQuJtbnL+2EhWOE63vo164FY8xqEnV9xis=
52+
golang.org/x/crypto v0.56.0 h1:GUh5Ii4J5jtcseSMiRqr1jXCNHoxjeV9Fmekc2oLy6Y=
53+
golang.org/x/crypto v0.56.0/go.mod h1:OMW5y6CY9l38uPLmxU6l6pwcXp1obtLo3e6gT7gQR2I=
5454
golang.org/x/image v0.45.0 h1:FMb1nTbH5H9vF55SriQHgFw5GnNL9Jg6L25BwXKzhB0=
5555
golang.org/x/image v0.45.0/go.mod h1:n62x/7RqlwXDvGsSU4u6IUTUf6KghUZ9Bt7cG/T9Fx4=
5656
golang.org/x/mod v0.3.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA=

0 commit comments

Comments
 (0)