Skip to content
This repository was archived by the owner on Aug 30, 2024. It is now read-only.

Conversation

kylecarbs
Copy link
Member

@kylecarbs kylecarbs commented Jun 15, 2021

Passes random sizes of byte slices through the connection to ensure buffering works as expected.

rem ~/P/c/coder-cli (rtcbench) go test -bench 'BenchmarkThroughput' cdr.dev/coder-cli/wsnet
goos: linux
goarch: amd64
pkg: cdr.dev/coder-cli/wsnet
cpu: Intel(R) Xeon(R) CPU
BenchmarkThroughput/Rand4-32               59210             19854 ns/op           0.20 MB/s        3002 B/op         88 allocs/op
BenchmarkThroughput/Rand16-32              58438             20366 ns/op           0.79 MB/s        3161 B/op         88 allocs/op
BenchmarkThroughput/Rand128-32             47649             23671 ns/op           5.41 MB/s        4817 B/op         89 allocs/op
BenchmarkThroughput/Rand256-32             48429             24614 ns/op          10.40 MB/s        6834 B/op         91 allocs/op
BenchmarkThroughput/Rand1024-32            44595             29377 ns/op          34.86 MB/s       19154 B/op        119 allocs/op
BenchmarkThroughput/Rand4096-32            10281            145791 ns/op          28.09 MB/s       73611 B/op        438 allocs/op
BenchmarkThroughput/Rand16384-32            6200            389575 ns/op          42.06 MB/s      281518 B/op       1471 allocs/op
BenchmarkThroughput/Rand32768-32            1746            911948 ns/op          35.93 MB/s      560390 B/op       2912 allocs/op
PASS
ok      cdr.dev/coder-cli/wsnet 13.915s

@kylecarbs kylecarbs requested review from deansheather and f0ssel June 15, 2021 19:30
@kylecarbs kylecarbs marked this pull request as ready for review June 15, 2021 19:30
@kylecarbs kylecarbs merged commit f85e054 into master Jun 15, 2021
@kylecarbs kylecarbs deleted the rtcbench branch June 15, 2021 20:31
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants