BW_UNIX(8)

bw_unix(8) πŸ’–

okay bestie, this is the LMBENCH manual page for bw_unix, and it is literally about how fast a UNIX pipe can move bytes. section 8, system-adjacent chaos, we love her πŸ’…


✨ NAME ✨

bw_unix β€” UNIX pipe bandwidth 🫢


πŸ¦‹ SYNOPSIS πŸ¦‹

bw_unix [ -P <parallelism> ] [ -W <warmups> ] [ -N <repetitions> ] size

🌸 DESCRIPTION 🌸

so bw_unix creates a pipe and then forks a child process that just... keeps writing data into that pipe as fast as it possibly can πŸ”₯. main character energy fr.

the benchmark then measures how fast the parent process can read the data, in size-byte chunks, straight out of the pipe. that's it. that's the whole vibe.

and here's the iconic part: nothing is done with the data β€” not in the parent (the reader) and not in the child (the writer). neither process. they just move bytes and feel nothing. πŸ’€

the size spec can end with k or m to mean kilobytes (* 1024) or megabytes (* 1024 * 1024). lowkey convenient, no cap.


πŸ‘‘ OUTPUT πŸ‘‘

the output format is literally "%0.2f %.2f\n", and the two numbers are megabytes and megabytes_per_second. like, for example:

8.00 25.33

slay. that's the whole output. two little numbers, one big flex ✨


πŸŽ€ MEMORY UTILIZATION πŸŽ€

this benchmark should move approximately the reported amount of memory. so like, the number is not lying to you, bestie, the memory really did go on that journey 🧚


🌈 ACKNOWLEDGEMENT 🌈

funding for the development of this tool was provided by Sun Microsystems Computer Corporation. we stan a sponsor πŸ’œ


πŸ”₯ SEE ALSO πŸ”₯

lmbench(8).


πŸ“ AUTHOR πŸ“

Carl Staelin and Larry McVoy

and fr fr, comments, suggestions, and bug reports are always welcome β€” they literally said so 🫢


okay that's the whole page, go forth and measure some pipes, i believe in you πŸ’…

Β©1994–2000 Larry McVoy and Carl... β€” and yeah the date field is literally sitting there as $Date$ in the footer, iconic honestly β€” signed off from BW_UNIX(8), LMBENCH edition 🌸