yes $(printf %1024s | tr " " "y") | pv > /dev/null
Or string concatenation, or pipeviewer.
https://github.com/coreutils/coreutils/blob/master/src/yes.c