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:
- as a server β
lat_connect -s - as a client β
lat_connect localhost - 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!! β¨ππ
π¦ 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