Releases: xtaci/kcp-go
Releases · xtaci/kcp-go
Implemented Pacing in Userspace
Before:
$ go test -v -run=^$ -bench Echo ✔ 10:29:31
2025/11/16 10:29:32 beginning tests, encryption:salsa20, fec:10/3
goos: linux
goarch: amd64
pkg: github.com/xtaci/kcp-go/v5
cpu: AMD Ryzen 9 5950X 16-Core Processor
BenchmarkEchoSpeed4K
BenchmarkEchoSpeed4K-32 15097 84449 ns/op 48.50 MB/s 20018 B/op 169 allocs/op
BenchmarkEchoSpeed64K
BenchmarkEchoSpeed64K-32 907 1216051 ns/op 53.89 MB/s 310014 B/op 2579 allocs/op
BenchmarkEchoSpeed512K
BenchmarkEchoSpeed512K-32 120 9350585 ns/op 56.07 MB/s 2448735 B/op 20325 allocs/op
BenchmarkEchoSpeed1M
BenchmarkEchoSpeed1M-32 100 19568832 ns/op 53.58 MB/s 4961869 B/op 41245 allocs/op
PASS
ok github.com/xtaci/kcp-go/v5 7.423s
This version:
$ go test -v -run=^$ -bench Echo INT ✘ 10:28:46
2025/11/16 10:28:50 beginning tests, encryption:salsa20, fec:10/3
goos: linux
goarch: amd64
pkg: github.com/xtaci/kcp-go/v5
cpu: AMD Ryzen 9 5950X 16-Core Processor
BenchmarkEchoSpeed4K
BenchmarkEchoSpeed4K-32 31744 40587 ns/op 100.92 MB/s 18251 B/op 152 allocs/op
BenchmarkEchoSpeed64K
BenchmarkEchoSpeed64K-32 1870 569006 ns/op 115.18 MB/s 284778 B/op 2340 allocs/op
BenchmarkEchoSpeed512K
BenchmarkEchoSpeed512K-32 273 4498961 ns/op 116.54 MB/s 2248562 B/op 18462 allocs/op
BenchmarkEchoSpeed1M
BenchmarkEchoSpeed1M-32 134 9257285 ns/op 113.27 MB/s 4494310 B/op 36928 allocs/op
PASS
ok github.com/xtaci/kcp-go/v5 8.630s
Full Changelog: v5.6.35...v5.6.36
v5.6.33
Full Changelog: v5.6.32...v5.6.33
v5.6.25
v5.6.22
v5.6.19
What's Changed
- fix: reading low-level net.PacketConn when UDPSession is closed by @snyh in #280
- Bump golang.org/x/crypto from 0.21.0 to 0.31.0 by @dependabot in #281
- Use net.Error-compatible timeout error by @rgurov in #283
New Contributors
Full Changelog: v5.6.18...v5.6.19
v5.6.16
v5.6.15
v5.6.12
Full Changelog: v5.6.11...v5.6.12