GNU yes(1) is not that fast! This implementaion is not only about 8 times as fast[0], it uses half as much CPU. [0] On my computer. If you get different results please leave a comment.