Give the Razor benchmark a better html encoder from the framework. This is the best optimized one in the framework and is used in MVC
Use a simpler html encoder for short strings, this avoids allocating a char[] for buffering. Did some benchmarking to find a suitable length to switch between the two. This value may need tweaking.