30 MB/s. UTF8 is rather suboptimal for source code. Nearly all of it isASCII which can be processed a machine word at a time, instead of byte. There were earlier discussions about that
http://forum.world.st/Fastest-utf-8-encoder-contest-td4634566.html
Stephan
