kjensenxz
Re:How is GNU `yes` so fast?
on Tuesday June 13, 2017 @06:00AM (#14543796)
See the "fifth iteration" done in assembly.
Re:How is GNU `yes` so fast?
on Tuesday June 13, 2017 @05:58AM (#14543792)
This can be extended to any input given to the program, since yes is defined to take an argument from the command line to print out instead of "y". See https://www.reddit.com/r/unix/comments/6gxduc/how_is_gnu_yes...
Re:How is GNU `yes` so fast?
on Tuesday June 13, 2017 @05:57AM (#14543784)
From the OP:
>OS X just uses an old NetBSD version similar to OpenBSD's >NetBSD's is 139MiB/s, FreeBSD, OpenBSD, DragonFlyBSD have very similar code as NetBSD and are probably identical,
It really depends on how fast your memory and processor are. Everything there was benchmarked with an i7-4790 with DDR3-1600, and very very little running in the background.