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/null3,04GO 0:08:22 [5,83MB/s] [ <=>                                  ]$ yes | pv > /dev/null38GO 0:11:56 [40,2MB/s] [          <=>                        ]$ cat /dev/zero | pv > /dev/null754GO 0:08:52 [ 1,4GB/s] [                      <=>             ]Would you suggest another possible faster command?
Which command produces more data per second?
performance;data;pv
The system interprets /dev/zero as literally just an endless stream of zeroes, and I believe this is the fastest way to obtain useless information. In all likelihood, you're going to be bottlenecked by your physical disk speed, and so this should be as fast as you'd ever need even if there are any faster methods.Also, when testing, I was surprised to find that cat was much faster than dd for this!