Skip to content

Instantly share code, notes, and snippets.

HASWELL

UTF-8 (haswell)

validate_utf8 (GB/s) validate_utf8_with_errors (GB/s) convert_utf8_to_utf16 (GB/s) convert_utf8_to_utf16_with_errors (GB/s) convert_utf8_to_utf32 (GB/s) convert_utf8_to_utf32_with_errors (GB/s)
Arabic-Lipsum.utf8.txt 11.907 11.342 1.849 2.380 1.946 2.174
Chinese-Lipsum.utf8.txt 12.064 11.582 2.370 2.554 2.431 2.650
Emoji-Lipsum.utf8.txt 12.122 11.611 1.347 1.437 2.113 2.078
Hebrew-Lipsum.utf8.txt 12.119 11.631 1.834 2.373 1.927 2.143
Hindi-Lipsum.utf8.txt 12.114 11.585 1.617 1.678 1.619 1.571
Japanese-Lipsum.utf8.txt 12.152 11.659 2.278 2.529 2.324 2.622