lib_sanitize Benchmarks

Empty String

Extension Time Rate  
MBSTRING 5ms560,015/s
ICONV 18ms166,076/s
PHP 15ms202,007/s

1K of clean ASCII

Extension Time Rate  
MBSTRING 69ms43,489/s
ICONV 57ms52,537/s
PHP 38ms78,464/s

1K of clean UTF8

Extension Time Rate  
MBSTRING 62ms48,620/s
ICONV 48ms62,704/s
PHP 206ms14,563/s

1K of dirty UTF8

Extension Time Rate  
MBSTRING 69ms43,469/s
ICONV 46ms64,597/s
PHP 244ms12,305/s

1K of clean Shift_JIS

Extension Time Rate  
MBSTRING 68ms44,417/s
ICONV 67ms44,859/s
PHP n/an/a 

1K of fallback Latin-1

Extension Time Rate  
MBSTRING 98ms30,469/s
ICONV 67ms44,506/s
PHP 38ms78,511/s