Other tests by other people show that /dev/zero is slower.
https://news.ycombinator.com/item?id=14544261
People are suggesting that it's because of the use of cat. So, if someone writes a program, and the only difference is between /dev/zero and yes, and one is slower than the other, it's fairly reasonable to make the assumption that /dev/zero is slower.