Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

performance: reverse example artifact runs much slower compared to plain #5

Open
gaukas opened this issue Mar 18, 2024 · 0 comments
Open
Assignees
Labels
invalid This doesn't seem right

Comments

@gaukas
Copy link
Contributor

gaukas commented Mar 18, 2024

goos: linux
goarch: amd64
pkg: github.com/refraction-networking/water/transport/v0
cpu: 12th Gen Intel(R) Core(TM) i5-1240P
BenchmarkDialerOutbound-16                176220              5844 ns/op         175.23 MB/s
BenchmarkDialerOutboundReverse-16          12115             89924 ns/op          11.39 MB/s
BenchmarkInboundListener-16               209980              5848 ns/op         175.11 MB/s
BenchmarkInboundListenerReverse-16         10000            135864 ns/op           7.54 MB/s
PASS
ok      github.com/refraction-networking/water/transport/v0     7.072s

More investigation required, preliminary guesses are pointing towards dynamic allocation/de-allocation.

@gaukas gaukas self-assigned this Mar 18, 2024
@gaukas gaukas added the invalid This doesn't seem right label Jun 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
invalid This doesn't seem right
Projects
None yet
Development

No branches or pull requests

1 participant