{"modulePath":"github.com/tmc/apple","version":"v0.6.21","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package main\n\nCommand udpbatchbench measures the Darwin batched UDP datapath (sendmsg\\_x/recvmsg\\_x via x/udpbatch) against the one-syscall-per-datagram path every Go program uses today.\n\nThe default mode sweeps batch sizes over loopback and prints a packets-per-second table:\n\n\tgo run . -sweep\n\nIMPORTANT: loopback numbers measure the syscall boundary, not the network. A batching win here is real but may not transfer to the wire at the same magnitude; run the send/recv modes across two machines for wire numbers (see design/high-performance-darwin.md, \"Loopback is not the wire\").\n\nSplit modes for two-machine runs:\n\n\tudpbatchbench -recv -addr :9999\n\tudpbatchbench -send -addr host:9999 -batch 32\n\n","path":"github.com/tmc/apple/examples/network/udpbatchbench","name":"main","synopsis":"Command udpbatchbench measures the Darwin batched UDP datapath (sendmsg_x/recvmsg_x via x/udpbatch) against the one-syscall-per-datagram path every Go program uses today.","isRedistributable":true}
