I got 1.26Gb/s in Python2 on MacOS (i7 mac air)
import os
ys = 'y\n' * 2048
while True:
os.write(1, ys)
update: seems to peek at around 3gb/s with
ys = 'y\n' * 2 * * 16(had to separate the asters to stop HN swallowing them)
Plain old `yes` gets a measly 33Mb/s!!