From my experience GNU CLI tools make a particular effort to be really fast (even on embedded hardware).
Mac builtin:
yes | pv > /dev/null
139MiB 0:00:05 [28.4MiB/s]
GNU:
gyes | pv > /dev/null
3.31GiB 0:00:06 [ 584MiB/s]
Unix was pretty much "do a quick loop using terse code" and "see what fits in this static small buffer, and if it doesn't, quietly truncate". GNU would reallocate buffers to fit, and take reasonable precautions on performing well on tiny/huge inputs.
GNU was actually considered bloated by the Unix crowd ("why so many more kilobytes of code?" ). It's an approach that scaled better for the future though.
[0] https://www.gnu.org/prep/standards/standards.html#Reading-No...