lib_sanitize Benchmarks

Empty String

Extension Time Rate  
MBSTRING 5ms633,045/s
ICONV 10ms304,013/s
PHP 3ms1,113,173/s

1K of clean ASCII

Extension Time Rate  
MBSTRING 59ms50,695/s
ICONV 40ms74,453/s
PHP 24ms124,059/s

1K of clean UTF8

Extension Time Rate  
MBSTRING 60ms50,320/s
ICONV 47ms63,535/s
PHP 196ms15,274/s

1K of dirty UTF8

Extension Time Rate  
MBSTRING 70ms43,007/s
ICONV 46ms65,007/s
PHP 219ms13,716/s

1K of clean Shift_JIS

Extension Time Rate  
MBSTRING 116ms25,911/s
ICONV 74ms40,554/s
PHP n/an/a 

1K of fallback Latin-1

Extension Time Rate  
MBSTRING 87ms34,330/s
ICONV 65ms46,332/s
PHP 66ms45,126/s