extremely simple test to get rough estimate of AntiXSS Library speed
AntiXSS Library v4.2.1 (Stable)
- 100 000 encodes = 277ms HttpUtility.HtmlEncode vs 663ms new Microsoft.Security.Application.Encoder.HtmlEncode
- 10 000 encodes = 22ms vs 76ms
- 1 000 encodes = 1ms vs 3ms
- 100 encodes = 0ms vs 0ms