3 ms·
Other tests by other people show that /dev/zero is slower. https://news.ycombinator.com/item?id=14544261 https://news.ycombinator.com/item?id=14544261 People
by jasonlotito 9y ago
Other tests by other people show that /dev/zero is slower.
https://news.ycombinator.com/item?id=14544261 https://news.ycombinator.com/item?id=14544261
People are suggesting that it's because of the use of cat. So, if someone writes a program, and the only difference is between /dev/zero and yes, and one is slower than the other, it's fairly reasonable to make the assumption that /dev/zero is slower.
- fredmorcos 9y agoOP's own comment shows that /dev/zero is faster: https://news.ycombinator.com/item?id=14544002 https://news.ycombinator.com/item?id=14544002
- deleted 9y ago[deleted]
- masklinn 9y ago> People are suggesting that it's because of the use of cat. It is: > cat /dev/zero | pv >/dev/null ^C97GiB 0:00:05 [1.79GiB/s] > < /dev/zero pv >/dev/null ^C.3GiB 0:00:06 [10.2GiB/s]