LAT_TCP(8)
π lat_tcp β the manual, but make it make sense
okay so bestie, welcome to LAT_TCP(8), part of the LMBENCH family β¨ this is lat_tcp, and she measures interprocess communication latency via TCP/IP. yes. she is that girl. π¦
β¨ NAME β¨
lat_tcp β measure interprocess communication latency via TCP/IP π«Ά
πΈ SYNOPSIS πΈ
lat_tcp -s
lat_tcp [ -m <message size> ] [ -P <parallelism> ] [ -W <warmups> ] [ -N
<repetitions> ] hostname
lat_tcp -S hostname
three whole moods, pick your moment π
π DESCRIPTION π
so lat_tcp is a client/server program that measures interprocess communication latencies. the benchmark passes a message back and forth between the two processes β this sort of benchmark is frequently referred to as a ``hot potato'' benchmark π₯π₯ and honestly? accurate. no other work is done in the processes. they just toss that thing back and forth. nothing else. no side quests. no multitasking. just vibes and latency.
lat_tcp has three forms of usage, and the way that it has three forms is genuinely so iconic:
- as a server β
-sπ - as a client β
lat_tcp localhost - as a shutdown β
lat_tcp -S localhost
periodt. that's the whole personality.
π OUTPUT π
the reported time is in microseconds per round trip, and it includes the total time, i.e., the context switching overhead is includeded. yes bestie, that is a typo in the original and I am keeping it because the facts stay facts. π
the output format is like so:
TCP latency using localhost: 700 microseconds
seven hundred microseconds. slay. π β¨
π ACKNOWLEDGEMENT π
funding for the development of this tool was provided by Sun Microsystems Computer Corporation. thank you sun microsystems, you ate. π«ΆβοΈ
π SEE ALSO π
the whole friend group fr fr π¦πΈ
β AUTHOR β
Carl Staelin and Larry McVoy
comments, suggestions, and bug reports are always welcome. like genuinely, they want to hear from you, bestie. slide into their mentions. π
lowkey a masterpiece, highkey a benchmark tool. no cap.
(c)1994 Larry McVoy β and the version stamp is $Date$, so if you see a date there, that's the one this page shipped with. πΈ that's it, that's the page, mwah π LMBENCH π
π¦ where this page comes from
- debian bookworm: lmbench 3.0-a9+debian.1-6
- debian trixie: lmbench 3.0-a9+debian.1-9
- ubuntu jammy: lmbench 3.0-a9+debian.1-6
- ubuntu noble: lmbench 3.0-a9+debian.1-6build3
- ubuntu questing: lmbench 3.0-a9+debian.1-9
- ubuntu resolute: lmbench 3.0-a9+debian.1-10
- ubuntu stonking: lmbench 3.0-a9+debian.1-10
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms