lib_sanitize Benchmarks

Empty String

Extension Time Rate  
MBSTRING 5ms557,828/s
ICONV 6ms492,126/s
PHP 3ms1,162,791/s

1K of clean ASCII

Extension Time Rate  
MBSTRING 56ms54,020/s
ICONV 41ms73,881/s
PHP 24ms124,316/s

1K of clean UTF8

Extension Time Rate  
MBSTRING 60ms49,662/s
ICONV 47ms63,633/s
PHP 192ms15,600/s

1K of dirty UTF8

Extension Time Rate  
MBSTRING 68ms43,826/s
ICONV 46ms64,683/s
PHP 196ms15,324/s

1K of clean Shift_JIS

Extension Time Rate  
MBSTRING 67ms44,929/s
ICONV 64ms46,860/s
PHP n/an/a 

1K of fallback Latin-1

Extension Time Rate  
MBSTRING 84ms35,872/s
ICONV 63ms47,889/s
PHP 37ms81,090/s