LAT_CONNECT(8)

πŸ’… lat_connect β€” the LMBENCH girlie's guide πŸ’…

okay bestie, this is lat_connect, a page from the LMBENCH manual, section 8 (that's admin/system commands, for the uninitiated). it's literally about measuring how long it takes two processes to connect over TCP/IP. it's giving networking girl math, and honestly? obsessed. 🫢


✨ NAME ✨

lat_connect β€” measure interprocess connection latency via TCP/IP


🌸 SYNOPSIS 🌸

lat_connect -s
lat_connect [ -P <parallelism> ] [ -W <warmups> ] [ -N <repetitions> ] hostname
lat_connect -S hostname

three whole modes, no cap. πŸŽ€


πŸ¦‹ DESCRIPTION πŸ¦‹

okay so lat_connect is a client/server program that measures interprocess connection latencies. it's a benchmark, which means it exists purely to time things and judge them. πŸ’…

the benchmark times the creation and connection of an AF_INET socket β€” aka TCP/IP, aka the internet's whole thing β€” to a remote server. and bestie, they were careful: care is taken that the connection time does not include any other overhead, like the gethostbyname() lookup or remote port lookups, because those add more overhead than the connection establishment itself. so they got filtered out. periodt. 🧚

lat_connect has three forms of usage:

  1. as a server β€” lat_connect -s
  2. as a client β€” lat_connect localhost
  3. as a shutdown β€” lat_connect -S localhost

three moods, one binary. main character energy fr fr. πŸ‘‘


πŸ”₯ OUTPUT πŸ”₯

the reported time is in microseconds per connection. output format is like so:

TCP/IP connection cost to localhost: 1006 microseconds

that's it. that's the whole output. simple, iconic, no notes. πŸ˜­πŸ’–


πŸ‘€ SEE ALSO πŸ‘€


πŸ’œ AUTHOR πŸ’œ

Carl Staelin and Larry McVoy

Comments, suggestions, and bug reports are always welcome. (they mean it, bestie β€” slide into their inbox, they want the feedback 🫢)


tiny reminder that this whole thing is (c)1994 Larry McVoy, and the date field on the page is literally just $Date$ β€” a version-control placeholder living its best life, not an actual date. πŸ’€

and that's the page!! the LMBENCH crew in 1994 said "let's measure connection latency and also be thorough about it" and honestly? they ate. πŸ“ slay, measure responsibly, bye bestie!! ✨🌈πŸ’