On 30/03/2026 00:13, Collin Funk wrote:
On a AMD Ryzen 7 3700X system:$ timeout 10 taskset 1 ./src/cat-prev /dev/zero \ | taskset 2 pv -r > /dev/null [1.84GiB/s] $ timeout 10 taskset 1 ./src/cat /dev/zero \ | taskset 2 pv -r > /dev/null [7.92GiB/s]
While a bit of an edge case, it really speeds up pipe to pipe: For example if you wanted to skip the first 4K of input, you could: $ src/yes | (dd bs=4096 count=1 of=/dev/null status=none; src/cat-prev) | pv -r >/dev/null [2.37GiB/s] $ src/yes | (dd bs=4096 count=1 of=/dev/null status=none; src/cat) | pv -r >/dev/null [35.5GiB/s] cheers, Padraig
