by yakubin · 4y ago · 0 comments
"tr '\0' 1 </dev/zero | pv >/dev/null" reports 1.38GiB/s.
"yes | pv >/dev/null" reports 7.26GiB/s.
So "/dev/urandom" may not be the best source when testing performance.
UPDATE: If you mean that you want to test how fast pipes are when there is other load in the system, then I'd suggest just running a lot of stuff in the background. But I wouldn't put the process dedicated for doing something else into the pipeline you're measuring. As a matter of fact, the numbers I gave were taken with plenty of heavy processes running in the background, such as Firefox, Thunderbird, a VM with another instance of Firefox, OpenVPN, etc. etc. :)