Is Your Mental Model of Bash Pipelines Wrong?

[Michael Lynch] encountered a strange situation. Why was compiling then running his program nearly 10x faster than just running the program by itself? [Michael] ran into this issue while benchmarking a programming project, pared it down to its essentials for repeatability and analysis, and discovered it highlighted an incorrect mental model of how bash pipelines worked.


This is a companion discussion topic for the original entry at https://hackaday.com/2024/03/28/is-your-mental-model-of-bash-pipelines-wrong/