Which command produces more data per second? This could be useful to quickly fill a file with garbage data or to test data transfer rates. So far, I found that "/dev/zero" is the quickest one.
$ cat /dev/urandom | pv > /dev/null
3,04GO 0:08:22 [5,83MB/s] [ <=> ]
$ yes | pv > /dev/null
38GO 0:11:56 [40,2MB/s] [ <=> ]
$ cat /dev/zero | pv > /dev/null
754GO 0:08:52 [ 1,4GB/s] [ <=> ]
Would you suggest another possible faster command?
dd if=/dev/zero bs=8192 | pv > /dev/null
is giving the best results. – Rui F Ribeiro Oct 26 '16 at 02:00