Re:A little story about the `yes` Unix command
by giuscri on Thursday July 21, 2022 @05:40AM
(#32177358)
`cat /dev/urandom > /tmp/myfile` is faster on macos though
[ Parent
| on HN ]
Re:A little story about the `yes` Unix command
by nacs on Thursday July 21, 2022 @11:44AM
(#32180745)
`yes` is far faster on my Linux (2.2GB/s) vs /dev/urandom (0.38GB/s) -- not surprising since the `man` page for urandom says:
"[urandom] is designed for security, not speed, and is poorly suited to generating large amounts of random data"
`cat /dev/zero` is pretty much as fast as `yes` on my system however (2.1GB/s)