The commit that sped up GNU yes has a summary of the perf measurements: https://github.com/coreutils/coreutils/commit/3521722
yes can be used to generate arbitrary repeated data for testing or whatever, so it is useful to be fast