002

command module
v0.0.0-...-425d60b Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 17, 2024 License: BSD-3-Clause Imports: 12 Imported by: 0

README

002

Second attempt.

Increase socket send and receive buffer sizes to 2MB.

https://medium.com/@CameronSparr/increase-os-udp-buffers-to-improve-performance-51d167bb1360

To run:

go run server.go

then in another terminal:

go run client.go

Results:

gaffer@batman 002 % go run client.go
starting 1000 clients
sent delta 99583, received delta 54445
sent delta 96432, received delta 57645
sent delta 98198, received delta 54189
sent delta 98059, received delta 56692
sent delta 98449, received delta 55664
sent delta 98163, received delta 54361
^C
received shutdown signal
shutting down
done.

No change. On MacOS it is not the socket buffer sizes. They're already big enough (at this small scale) by default.

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL