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:

  1. as a server β€” -s πŸ‘‘
  2. as a client β€” lat_tcp localhost
  3. 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 πŸ’–