Skip to content

Instantly share code, notes, and snippets.

@ScottPJones
Last active August 29, 2015 14:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ScottPJones/bb712f7b85d1d8d91a9a to your computer and use it in GitHub Desktop.
Save ScottPJones/bb712f7b85d1d8d91a9a to your computer and use it in GitHub Desktop.
Benchmark v"0.3.7" vs v"0.4" vs v"0.4" with my conversion,length,validation changes
VERSION < v"0.4-" && (typealias AbstractString String)
function tst{T <: AbstractString}(str::T, max::Int)
local l
for i=1:max
l = length(str)
end
l
end
function cvt8{T <: AbstractString}(str::T, max::Int)
local out
for i=1:max
out = utf8(str)
end
out
end
function cvt16{T <: AbstractString}(str::T, max::Int)
local out
for i=1:max
out = utf16(str)
end
out
end
function cvt32{T <: AbstractString}(str::T, max::Int)
local out
for i=1:max
out = utf32(str)
end
out
end
function tstva{T <: AbstractString}(str::T, max::Int)
local l
for i=1:max
l = is_valid_ascii(str)
end
l
end
function tstv8{T <: AbstractString}(str::T, max::Int)
local l
for i=1:max
l = is_valid_utf8(str)
end
l
end
function tstv16{T <: AbstractString}(str::T, max::Int)
local l
for i=1:max
l = is_valid_utf16(str)
end
l
end
function tstv32{T <: AbstractString}(str::T, max::Int)
local l
for i=1:max
l = is_valid_utf32(str)
end
l
end
function tstall(flg::Bool, str::String, n::Int, strUTF8::UTF8String, strUTF16::UTF16String, strUTF32::UTF32String)
println("\n\n$str: Looping $n times, length=$(length(strUTF32))")
println("UTF-8: $(sizeof(strUTF8)), UTF-16: $(sizeof(strUTF16)), UTF-32: $(sizeof(strUTF32))\n")
tstlen(n, strUTF8, strUTF16, strUTF32)
tstval(n, strUTF8, strUTF16, strUTF32)
flg && tstcvt(n, strUTF8, strUTF16, strUTF32)
""
end
function tstval(n::Int, strUTF8::UTF8String, strUTF16::UTF16String, strUTF32::UTF32String)
print("UTF-8 valid: ")
@time tstv8(strUTF8, n)
print("UTF-16 valid: ")
@time tstv16(strUTF16, n)
try
is_valid_utf32(strUTF32)
print("UTF-32 valid: ")
@time tstv32(strUTF32, n)
catch ;
end
println()
""
end
function tstlen(n::Int, strUTF8::UTF8String, strUTF16::UTF16String, strUTF32::UTF32String)
print("UTF-8 length: ")
@time tst(strUTF8,n)
print("UTF-16 length: ")
@time tst(strUTF16,n)
print("UTF-32 length: ")
@time tst(strUTF32,n)
println()
""
end
function tstascii(n::Int, str::ASCIIString)
println("\nASCII: Looping $n times, length=$(length(str))")
print("length: ")
@time tst(str,n)
print("is_valid_ascii: ")
@time tstva(str, n)
print("Convert to UTF-8: ")
@time cvt8(str,n)
print("Convert to UTF-16:")
@time cvt16(str,n)
print("Convert to UTF-32:")
@time cvt32(str,n)
""
end
function tstcvt(n::Int, strUTF8::UTF8String, strUTF16::UTF16String, strUTF32::UTF32String)
print("UTF-8 convert to UTF-16: ")
@time cvt16(strUTF8,n)
print("UTF-8 convert to UTF-32: ")
@time cvt32(strUTF8,n)
print("UTF-16 convert to UTF-8: ")
@time cvt8(strUTF16,n)
print("UTF-16 convert to UTF-32: ")
@time cvt32(strUTF16,n)
print("UTF-32 convert to UTF-8: ")
@time cvt8(strUTF32,n)
print("UTF-32 convert to UTF-16: ")
@time cvt16(strUTF32,n)
""
end
function tstsiz(flg,n,strAscii,strA_UTF8,strL_UTF8,str2_UTF8,str3_UTF8,str4_UTF8,strS_UTF8)
strA_UTF16 = utf16(strA_UTF8)
strL_UTF16 = utf16(strL_UTF8)
str2_UTF16 = utf16(str2_UTF8)
str3_UTF16 = utf16(str3_UTF8)
str4_UTF16 = utf16(str4_UTF8)
strS_UTF16 = utf16(strS_UTF8)
strA_UTF32 = utf32(strA_UTF8)
strL_UTF32 = utf32(strL_UTF8)
str2_UTF32 = utf32(str2_UTF8)
str3_UTF32 = utf32(str3_UTF8)
str4_UTF32 = utf32(str4_UTF8)
strS_UTF32 = utf32(strS_UTF8)
tstascii(n,strAscii)
tstall(flg,"ASCII:",n,strA_UTF8,strA_UTF16,strA_UTF32)
tstall(flg,"Latin1:",n,strL_UTF8,strL_UTF16,strL_UTF32)
tstall(flg,"2-byte:",n,str2_UTF8,str2_UTF16,str2_UTF32)
tstall(flg,"3-byte:",n,str3_UTF8,str3_UTF16,str3_UTF32)
tstall(flg,"4-byte:",n,str4_UTF8,str4_UTF16,str4_UTF32)
tstall(flg,"Surrogates:",n,strS_UTF8,strS_UTF16,strS_UTF32)
end
function dotest(n,flg::Bool = true)
# Create some ASCII, UTF8, UTF16, and UTF32 strings
baseascii = "abcdefghijklmnop\uff"
strAscii = "abcd"
strA_UTF8 = baseascii[1:4]
strL_UTF8 = "ab\uff\uff"
str2_UTF8 = "ab\uff\u7ff"
str3_UTF8 = "a\uff\u7ff\u7fff"
str4_UTF8 = "a\uff\u7fff\U7ffff"
strS_UTF8 = UTF8String(b"\xc3\xbf\xdf\xbf\xe7\xbf\xbf\xed\xa0\x80\xed\xb0\x80")
strAscii = "abcdefgh"
strA_UTF8 = baseascii[1:8]
strL_UTF8 = "abcdef\uff\uff"
str2_UTF8 = "abcd\uff\uff\u7ff\u7ff"
str3_UTF8 = "abcd\uff\uff\u7fff\u7fff"
str4_UTF8 = "abcd\uff\u7ff\u7fff\U7ffff"
strS_UTF8 = UTF8String(b"abcd\xc3\xbf\xdf\xbf\xe7\xbf\xbf\xed\xa0\x80\xed\xb0\x80")
tstsiz(flg,n,strAscii,strA_UTF8,strL_UTF8,str2_UTF8,str3_UTF8,str4_UTF8,strS_UTF8)
strAscii = "abcdefghijklmnop"
strA_UTF8 = baseascii[1:16]
strL_UTF8 = "abcdefghijk\uff\uff\uff\uff\uff"
str2_UTF8 = "abcdefghijk\uff\uff\uff\u7ff\u7ff"
str3_UTF8 = "abcdefghijk\uff\uff\uff\u7fff\u7fff"
str4_UTF8 = "abcdefghijk\uff\u7ff\u7fff\U7ffff\U0fffff"
strS_UTF8 = UTF8String(b"abcdefghijk\xc3\xbf\xdf\xbf\xe7\xbf\xbf\xed\xa0\x80\xed\xb0\x80\xed\xaf\xbf\xed\xbf\xbf")
for i=1:9
strAscii ^= 4
strA_UTF8 ^= 4
strL_UTF8 ^= 4
str2_UTF8 ^= 4
str3_UTF8 ^= 4
str4_UTF8 ^= 4
strS_UTF8 ^= 4
tstsiz(flg,n,strAscii,strA_UTF8,strL_UTF8,str2_UTF8,str3_UTF8,str4_UTF8,strS_UTF8)
end
end
""
julia> VERSION
v"0.3.7"
julia> dotest(1000,true)
ASCII: Looping 1000 times, length=8
length: elapsed time: 7.674e-6 seconds (0 bytes allocated)
is_valid_ascii: elapsed time: 2.1853e-5 seconds (0 bytes allocated)
Convert to UTF-8: elapsed time: 1.2325e-5 seconds (16000 bytes allocated)
Convert to UTF-16:elapsed time: 0.000314615 seconds (144000 bytes allocated)
Convert to UTF-32:elapsed time: 0.000107187 seconds (112000 bytes allocated)
ASCII:: Looping 1000 times, length=8
UTF-8: 8, UTF-16: 16, UTF-32: 32
UTF-8 length: elapsed time: 1.6488e-5 seconds (0 bytes allocated)
UTF-16 length: elapsed time: 0.00010653 seconds (0 bytes allocated)
UTF-32 length: elapsed time: 5.883e-6 seconds (0 bytes allocated)
UTF-8 valid: elapsed time: 2.1743e-5 seconds (0 bytes allocated)
UTF-16 valid: elapsed time: 2.9867e-5 seconds (0 bytes allocated)
UTF-8 convert to UTF-16: elapsed time: 0.000416199 seconds (144000 bytes allocated)
UTF-8 convert to UTF-32: elapsed time: 0.000206595 seconds (112000 bytes allocated)
UTF-16 convert to UTF-8: elapsed time: 0.000646963 seconds (344000 bytes allocated)
UTF-16 convert to UTF-32: elapsed time: 0.00016945 seconds (112000 bytes allocated)
UTF-32 convert to UTF-8: elapsed time: 0.000374385 seconds (280000 bytes allocated)
UTF-32 convert to UTF-16: elapsed time: 0.000204522 seconds (144000 bytes allocated)
Latin1:: Looping 1000 times, length=8
UTF-8: 10, UTF-16: 16, UTF-32: 32
UTF-8 length: elapsed time: 1.2774e-5 seconds (0 bytes allocated)
UTF-16 length: elapsed time: 6.4379e-5 seconds (0 bytes allocated)
UTF-32 length: elapsed time: 3.697e-6 seconds (0 bytes allocated)
UTF-8 valid: elapsed time: 1.7116e-5 seconds (0 bytes allocated)
UTF-16 valid: elapsed time: 1.7934e-5 seconds (0 bytes allocated)
UTF-8 convert to UTF-16: elapsed time: 0.000260344 seconds (144000 bytes allocated)
UTF-8 convert to UTF-32: elapsed time: 0.000142056 seconds (112000 bytes allocated)
UTF-16 convert to UTF-8: elapsed time: 0.000662166 seconds (372000 bytes allocated)
UTF-16 convert to UTF-32: elapsed time: 0.000170082 seconds (112000 bytes allocated)
UTF-32 convert to UTF-8: elapsed time: 0.000411436 seconds (292000 bytes allocated)
UTF-32 convert to UTF-16: elapsed time: 0.000178695 seconds (144000 bytes allocated)
2-byte:: Looping 1000 times, length=8
UTF-8: 12, UTF-16: 16, UTF-32: 32
UTF-8 length: elapsed time: 1.2067e-5 seconds (0 bytes allocated)
UTF-16 length: elapsed time: 5.8016e-5 seconds (0 bytes allocated)
UTF-32 length: elapsed time: 3.205e-6 seconds (0 bytes allocated)
UTF-8 valid: elapsed time: 1.8181e-5 seconds (0 bytes allocated)
UTF-16 valid: elapsed time: 1.5941e-5 seconds (0 bytes allocated)
UTF-8 convert to UTF-16: elapsed time: 0.000240618 seconds (144000 bytes allocated)
UTF-8 convert to UTF-32: elapsed time: 0.000132987 seconds (112000 bytes allocated)
UTF-16 convert to UTF-8: elapsed time: 0.000645325 seconds (404000 bytes allocated)
UTF-16 convert to UTF-32: elapsed time: 0.000163135 seconds (112000 bytes allocated)
UTF-32 convert to UTF-8: elapsed time: 0.000409702 seconds (292000 bytes allocated)
UTF-32 convert to UTF-16: elapsed time: 0.000180473 seconds (144000 bytes allocated)
3-byte:: Looping 1000 times, length=8
UTF-8: 14, UTF-16: 16, UTF-32: 32
UTF-8 length: elapsed time: 1.6281e-5 seconds (0 bytes allocated)
UTF-16 length: elapsed time: 5.7975e-5 seconds (0 bytes allocated)
UTF-32 length: elapsed time: 3.223e-6 seconds (0 bytes allocated)
UTF-8 valid: elapsed time: 2.0863e-5 seconds (0 bytes allocated)
UTF-16 valid: elapsed time: 1.604e-5 seconds (0 bytes allocated)
UTF-8 convert to UTF-16: elapsed time: 0.000248602 seconds (144000 bytes allocated)
UTF-8 convert to UTF-32: elapsed time: 0.000135388 seconds (112000 bytes allocated)
UTF-16 convert to UTF-8: elapsed time: 0.000625144 seconds (404000 bytes allocated)
UTF-16 convert to UTF-32: elapsed time: 0.000142395 seconds (112000 bytes allocated)
UTF-32 convert to UTF-8: elapsed time: 0.000410061 seconds (292000 bytes allocated)
UTF-32 convert to UTF-16: elapsed time: 0.000165809 seconds (144000 bytes allocated)
4-byte:: Looping 1000 times, length=8
UTF-8: 15, UTF-16: 18, UTF-32: 32
UTF-8 length: elapsed time: 1.4692e-5 seconds (0 bytes allocated)
UTF-16 length: elapsed time: 5.6437e-5 seconds (0 bytes allocated)
UTF-32 length: elapsed time: 2.93e-6 seconds (0 bytes allocated)
UTF-8 valid: elapsed time: 2.012e-5 seconds (0 bytes allocated)
UTF-16 valid: elapsed time: 1.4906e-5 seconds (0 bytes allocated)
UTF-8 convert to UTF-16: elapsed time: 0.000237825 seconds (144000 bytes allocated)
UTF-8 convert to UTF-32: elapsed time: 0.000147128 seconds (112000 bytes allocated)
UTF-16 convert to UTF-8: elapsed time: 0.000586811 seconds (420000 bytes allocated)
UTF-16 convert to UTF-32: elapsed time: 0.000138032 seconds (112000 bytes allocated)
UTF-32 convert to UTF-8: elapsed time: 0.000415993 seconds (292000 bytes allocated)
UTF-32 convert to UTF-16: elapsed time: 0.000160869 seconds (144000 bytes allocated)
Surrogates:: Looping 1000 times, length=9
UTF-8: 17, UTF-16: 18, UTF-32: 36
UTF-8 length: elapsed time: 1.8335e-5 seconds (0 bytes allocated)
UTF-16 length: elapsed time: 5.3255e-5 seconds (0 bytes allocated)
UTF-32 length: elapsed time: 2.77e-6 seconds (0 bytes allocated)
UTF-8 valid: elapsed time: 2.0132e-5 seconds (0 bytes allocated)
UTF-16 valid: elapsed time: 1.4067e-5 seconds (0 bytes allocated)
UTF-8 convert to UTF-16: elapsed time: 0.000236882 seconds (144000 bytes allocated)
UTF-8 convert to UTF-32: elapsed time: 0.000149948 seconds (112000 bytes allocated)
UTF-16 convert to UTF-8: elapsed time: 0.000598561 seconds (420000 bytes allocated)
UTF-16 convert to UTF-32: elapsed time: 0.000135917 seconds (112000 bytes allocated)
UTF-32 convert to UTF-8: elapsed time: 0.000414145 seconds (308000 bytes allocated)
UTF-32 convert to UTF-16: elapsed time: 0.000166825 seconds (144000 bytes allocated)
ASCII: Looping 1000 times, length=64
length: elapsed time: 2.426e-6 seconds (0 bytes allocated)
is_valid_ascii: elapsed time: 7.5157e-5 seconds (0 bytes allocated)
Convert to UTF-8: elapsed time: 6.447e-6 seconds (16000 bytes allocated)
Convert to UTF-16:elapsed time: 0.000546992 seconds (648000 bytes allocated)
Convert to UTF-32:elapsed time: 0.000169531 seconds (336000 bytes allocated)
ASCII:: Looping 1000 times, length=64
UTF-8: 64, UTF-16: 128, UTF-32: 256
UTF-8 length: elapsed time: 5.2643e-5 seconds (0 bytes allocated)
UTF-16 length: elapsed time: 0.000358397 seconds (0 bytes allocated)
UTF-32 length: elapsed time: 2.537e-6 seconds (0 bytes allocated)
UTF-8 valid: elapsed time: 6.4997e-5 seconds (0 bytes allocated)
UTF-16 valid: elapsed time: 0.000103343 seconds (0 bytes allocated)
UTF-8 convert to UTF-16: elapsed time: 0.000894359 seconds (648000 bytes allocated)
UTF-8 convert to UTF-32: elapsed time: 0.000494632 seconds (336000 bytes allocated)
UTF-16 convert to UTF-8: elapsed time: 0.002014925 seconds (472000 bytes allocated)
UTF-16 convert to UTF-32: elapsed time: 0.000712361 seconds (336000 bytes allocated)
UTF-32 convert to UTF-8: elapsed time: 0.000886251 seconds (408000 bytes allocated)
UTF-32 convert to UTF-16: elapsed time: 0.000551607 seconds (648000 bytes allocated)
Latin1:: Looping 1000 times, length=64
UTF-8: 84, UTF-16: 128, UTF-32: 256
UTF-8 length: elapsed time: 5.0114e-5 seconds (0 bytes allocated)
UTF-16 length: elapsed time: 0.000357845 seconds (0 bytes allocated)
UTF-32 length: elapsed time: 2.552e-6 seconds (0 bytes allocated)
UTF-8 valid: elapsed time: 0.000114888 seconds (0 bytes allocated)
UTF-16 valid: elapsed time: 9.3179e-5 seconds (0 bytes allocated)
UTF-8 convert to UTF-16: elapsed time: 0.000956814 seconds (648000 bytes allocated)
UTF-8 convert to UTF-32: elapsed time: 0.0005524 seconds (336000 bytes allocated)
UTF-16 convert to UTF-8: elapsed time: 0.002441165 seconds (632000 bytes allocated)
UTF-16 convert to UTF-32: elapsed time: 0.00071786 seconds (336000 bytes allocated)
UTF-32 convert to UTF-8: elapsed time: 0.001293277 seconds (552000 bytes allocated)
UTF-32 convert to UTF-16: elapsed time: 0.000559487 seconds (648000 bytes allocated)
2-byte:: Looping 1000 times, length=64
UTF-8: 84, UTF-16: 128, UTF-32: 256
UTF-8 length: elapsed time: 5.9992e-5 seconds (0 bytes allocated)
UTF-16 length: elapsed time: 0.000354848 seconds (0 bytes allocated)
UTF-32 length: elapsed time: 2.539e-6 seconds (0 bytes allocated)
UTF-8 valid: elapsed time: 0.000105778 seconds (0 bytes allocated)
UTF-16 valid: elapsed time: 9.3359e-5 seconds (0 bytes allocated)
UTF-8 convert to UTF-16: elapsed time: 0.001026331 seconds (648000 bytes allocated)
UTF-8 convert to UTF-32: elapsed time: 0.000574123 seconds (336000 bytes allocated)
UTF-16 convert to UTF-8: elapsed time: 0.002719548 seconds (760000 bytes allocated)
UTF-16 convert to UTF-32: elapsed time: 0.000716596 seconds (336000 bytes allocated)
UTF-32 convert to UTF-8: elapsed time: 0.001298244 seconds (552000 bytes allocated)
UTF-32 convert to UTF-16: elapsed time: 0.001106863 seconds (648000 bytes allocated)
3-byte:: Looping 1000 times, length=64
UTF-8: 92, UTF-16: 128, UTF-32: 256
UTF-8 length: elapsed time: 6.2048e-5 seconds (0 bytes allocated)
UTF-16 length: elapsed time: 0.00032788 seconds (0 bytes allocated)
UTF-32 length: elapsed time: 2.612e-6 seconds (0 bytes allocated)
UTF-8 valid: elapsed time: 9.2609e-5 seconds (0 bytes allocated)
UTF-16 valid: elapsed time: 7.3202e-5 seconds (0 bytes allocated)
UTF-8 convert to UTF-16: elapsed time: 0.001002112 seconds (648000 bytes allocated)
UTF-8 convert to UTF-32: elapsed time: 0.000617098 seconds (336000 bytes allocated)
UTF-16 convert to UTF-8: elapsed time: 0.002628315 seconds (760000 bytes allocated)
UTF-16 convert to UTF-32: elapsed time: 0.000712281 seconds (336000 bytes allocated)
UTF-32 convert to UTF-8: elapsed time: 0.001414097 seconds (552000 bytes allocated)
UTF-32 convert to UTF-16: elapsed time: 0.000600251 seconds (648000 bytes allocated)
4-byte:: Looping 1000 times, length=64
UTF-8: 104, UTF-16: 144, UTF-32: 256
UTF-8 length: elapsed time: 7.8842e-5 seconds (0 bytes allocated)
UTF-16 length: elapsed time: 0.000443815 seconds (0 bytes allocated)
UTF-32 length: elapsed time: 2.548e-6 seconds (0 bytes allocated)
UTF-8 valid: elapsed time: 0.000119864 seconds (0 bytes allocated)
UTF-16 valid: elapsed time: 9.5144e-5 seconds (0 bytes allocated)
UTF-8 convert to UTF-16: elapsed time: 0.001116481 seconds (648000 bytes allocated)
UTF-8 convert to UTF-32: elapsed time: 0.000728095 seconds (336000 bytes allocated)
UTF-16 convert to UTF-8: elapsed time: 0.002846718 seconds (920000 bytes allocated)
UTF-16 convert to UTF-32: elapsed time: 0.000834468 seconds (336000 bytes allocated)
UTF-32 convert to UTF-8: elapsed time: 0.001603069 seconds (568000 bytes allocated)
UTF-32 convert to UTF-16: elapsed time: 0.000627987 seconds (648000 bytes allocated)
Surrogates:: Looping 1000 times, length=72
UTF-8: 120, UTF-16: 144, UTF-32: 288
UTF-8 length: elapsed time: 0.000157086 seconds (0 bytes allocated)
UTF-16 length: elapsed time: 0.000398885 seconds (0 bytes allocated)
UTF-32 length: elapsed time: 2.549e-6 seconds (0 bytes allocated)
UTF-8 valid: elapsed time: 0.000148586 seconds (0 bytes allocated)
UTF-16 valid: elapsed time: 0.000121842 seconds (0 bytes allocated)
UTF-8 convert to UTF-16: elapsed time: 0.001116239 seconds (648000 bytes allocated)
UTF-8 convert to UTF-32: elapsed time: 0.001284921 seconds (368000 bytes allocated)
UTF-16 convert to UTF-8: elapsed time: 0.00315977 seconds (920000 bytes allocated)
UTF-16 convert to UTF-32: elapsed time: 0.000827954 seconds (336000 bytes allocated)
UTF-32 convert to UTF-8: elapsed time: 0.001771154 seconds (600000 bytes allocated)
UTF-32 convert to UTF-16: elapsed time: 0.000635035 seconds (648000 bytes allocated)
ASCII: Looping 1000 times, length=256
length: elapsed time: 2.507e-6 seconds (0 bytes allocated)
is_valid_ascii: elapsed time: 0.000173719 seconds (0 bytes allocated)
Convert to UTF-8: elapsed time: 6.691e-6 seconds (16000 bytes allocated)
Convert to UTF-16:elapsed time: 0.001734245 seconds (2824000 bytes allocated)
Convert to UTF-32:elapsed time: 0.000413033 seconds (1552000 bytes allocated)
ASCII:: Looping 1000 times, length=256
UTF-8: 256, UTF-16: 512, UTF-32: 1024
UTF-8 length: elapsed time: 0.0001367 seconds (0 bytes allocated)
UTF-16 length: elapsed time: 0.00127134 seconds (0 bytes allocated)
UTF-32 length: elapsed time: 2.624e-6 seconds (0 bytes allocated)
UTF-8 valid: elapsed time: 0.000198574 seconds (0 bytes allocated)
UTF-16 valid: elapsed time: 0.000271274 seconds (0 bytes allocated)
UTF-8 convert to UTF-16: elapsed time: 0.002952858 seconds (2824000 bytes allocated)
UTF-8 convert to UTF-32: elapsed time: 0.002294571 seconds (1552000 bytes allocated)
UTF-16 convert to UTF-8: elapsed time: 0.00747334 seconds (856000 bytes allocated)
UTF-16 convert to UTF-32: elapsed time: 0.00273709 seconds (1552000 bytes allocated)
UTF-32 convert to UTF-8: elapsed time: 0.002982981 seconds (792000 bytes allocated)
UTF-32 convert to UTF-16: elapsed time: 0.001926891 seconds (2824000 bytes allocated)
Latin1:: Looping 1000 times, length=256
UTF-8: 336, UTF-16: 512, UTF-32: 1024
UTF-8 length: elapsed time: 0.000161364 seconds (0 bytes allocated)
UTF-16 length: elapsed time: 0.001262856 seconds (0 bytes allocated)
UTF-32 length: elapsed time: 2.625e-6 seconds (0 bytes allocated)
UTF-8 valid: elapsed time: 0.00031117 seconds (0 bytes allocated)
UTF-16 valid: elapsed time: 0.000245944 seconds (0 bytes allocated)
UTF-8 convert to UTF-16: elapsed time: 0.004166142 seconds (2824000 bytes allocated)
UTF-8 convert to UTF-32: elapsed time: 0.002133524 seconds (1552000 bytes allocated)
UTF-16 convert to UTF-8: elapsed time: 0.008873337 seconds (1592000 bytes allocated)
UTF-16 convert to UTF-32: elapsed time: 0.002670831 seconds (1552000 bytes allocated)
UTF-32 convert to UTF-8: elapsed time: 0.00508845 seconds (1512000 bytes allocated)
UTF-32 convert to UTF-16: elapsed time: 0.002020035 seconds (2824000 bytes allocated)
2-byte:: Looping 1000 times, length=256
UTF-8: 336, UTF-16: 512, UTF-32: 1024
UTF-8 length: elapsed time: 0.000201867 seconds (0 bytes allocated)
UTF-16 length: elapsed time: 0.001262498 seconds (0 bytes allocated)
UTF-32 length: elapsed time: 2.634e-6 seconds (0 bytes allocated)
UTF-8 valid: elapsed time: 0.00036511 seconds (0 bytes allocated)
UTF-16 valid: elapsed time: 0.00027111 seconds (0 bytes allocated)
UTF-8 convert to UTF-16: elapsed time: 0.003881319 seconds (2824000 bytes allocated)
UTF-8 convert to UTF-32: elapsed time: 0.002042057 seconds (1552000 bytes allocated)
UTF-16 convert to UTF-8: elapsed time: 0.009694362 seconds (2104000 bytes allocated)
UTF-16 convert to UTF-32: elapsed time: 0.002743283 seconds (1552000 bytes allocated)
UTF-32 convert to UTF-8: elapsed time: 0.004938256 seconds (1512000 bytes allocated)
UTF-32 convert to UTF-16: elapsed time: 0.002555627 seconds (2824000 bytes allocated)
3-byte:: Looping 1000 times, length=256
UTF-8: 368, UTF-16: 512, UTF-32: 1024
UTF-8 length: elapsed time: 0.000274192 seconds (0 bytes allocated)
UTF-16 length: elapsed time: 0.001284159 seconds (0 bytes allocated)
UTF-32 length: elapsed time: 2.606e-6 seconds (0 bytes allocated)
UTF-8 valid: elapsed time: 0.0004007 seconds (0 bytes allocated)
UTF-16 valid: elapsed time: 0.000270937 seconds (0 bytes allocated)
UTF-8 convert to UTF-16: elapsed time: 0.003697135 seconds (2824000 bytes allocated)
UTF-8 convert to UTF-32: elapsed time: 0.002353032 seconds (1552000 bytes allocated)
UTF-16 convert to UTF-8: elapsed time: 0.009630982 seconds (2136000 bytes allocated)
UTF-16 convert to UTF-32: elapsed time: 0.003249231 seconds (1552000 bytes allocated)
UTF-32 convert to UTF-8: elapsed time: 0.004749481 seconds (1544000 bytes allocated)
UTF-32 convert to UTF-16: elapsed time: 0.001889378 seconds (2824000 bytes allocated)
4-byte:: Looping 1000 times, length=256
UTF-8: 416, UTF-16: 576, UTF-32: 1024
UTF-8 length: elapsed time: 0.000355606 seconds (0 bytes allocated)
UTF-16 length: elapsed time: 0.00146903 seconds (0 bytes allocated)
UTF-32 length: elapsed time: 2.665e-6 seconds (0 bytes allocated)
UTF-8 valid: elapsed time: 0.000450683 seconds (0 bytes allocated)
UTF-16 valid: elapsed time: 0.000368757 seconds (0 bytes allocated)
UTF-8 convert to UTF-16: elapsed time: 0.004881219 seconds (2824000 bytes allocated)
UTF-8 convert to UTF-32: elapsed time: 0.002767213 seconds (1552000 bytes allocated)
UTF-16 convert to UTF-8: elapsed time: 0.010645585 seconds (2712000 bytes allocated)
UTF-16 convert to UTF-32: elapsed time: 0.004250361 seconds (1552000 bytes allocated)
UTF-32 convert to UTF-8: elapsed time: 0.005592562 seconds (1576000 bytes allocated)
UTF-32 convert to UTF-16: elapsed time: 0.002186524 seconds (2824000 bytes allocated)
Surrogates:: Looping 1000 times, length=288
UTF-8: 480, UTF-16: 576, UTF-32: 1152
UTF-8 length: elapsed time: 0.000446877 seconds (0 bytes allocated)
UTF-16 length: elapsed time: 0.001500728 seconds (0 bytes allocated)
UTF-32 length: elapsed time: 2.85e-6 seconds (0 bytes allocated)
UTF-8 valid: elapsed time: 0.000459282 seconds (0 bytes allocated)
UTF-16 valid: elapsed time: 0.000358356 seconds (0 bytes allocated)
UTF-8 convert to UTF-16: elapsed time: 0.004765164 seconds (2824000 bytes allocated)
UTF-8 convert to UTF-32: elapsed time: 0.002841518 seconds (1552000 bytes allocated)
UTF-16 convert to UTF-8: elapsed time: 0.010242887 seconds (2712000 bytes allocated)
UTF-16 convert to UTF-32: elapsed time: 0.003670207 seconds (1552000 bytes allocated)
UTF-32 convert to UTF-8: elapsed time: 0.007173071 seconds (1768000 bytes allocated)
UTF-32 convert to UTF-16: elapsed time: 0.003016836 seconds (2824000 bytes allocated)
ASCII: Looping 1000 times, length=1024
length: elapsed time: 1.0468e-5 seconds (16000 bytes allocated)
is_valid_ascii: elapsed time: 0.000537983 seconds (0 bytes allocated)
Convert to UTF-8: elapsed time: 1.4801e-5 seconds (16000 bytes allocated)
Convert to UTF-16:elapsed time: 0.009220168 seconds (9032000 bytes allocated)
Convert to UTF-32:elapsed time: 0.002808118 seconds (4192000 bytes allocated)
ASCII:: Looping 1000 times, length=1024
UTF-8: 1024, UTF-16: 2048, UTF-32: 4096
UTF-8 length: elapsed time: 0.000406605 seconds (16000 bytes allocated)
UTF-16 length: elapsed time: 0.004950511 seconds (16000 bytes allocated)
UTF-32 length: elapsed time: 1.3086e-5 seconds (16000 bytes allocated)
UTF-8 valid: elapsed time: 0.000583665 seconds (0 bytes allocated)
UTF-16 valid: elapsed time: 0.000944384 seconds (0 bytes allocated)
UTF-8 convert to UTF-16: elapsed time: 0.013940104 seconds (9032000 bytes allocated)
UTF-8 convert to UTF-32: elapsed time: 0.008209572 seconds (4192000 bytes allocated)
UTF-16 convert to UTF-8: elapsed time: 0.104250819 seconds (3304000 bytes allocated, 71.89% gc time)
UTF-16 convert to UTF-32: elapsed time: 0.010196845 seconds (4192000 bytes allocated)
UTF-32 convert to UTF-8: elapsed time: 0.011495805 seconds (3224000 bytes allocated)
UTF-32 convert to UTF-16: elapsed time: 0.007317196 seconds (9032000 bytes allocated)
Latin1:: Looping 1000 times, length=1024
UTF-8: 1344, UTF-16: 2048, UTF-32: 4096
UTF-8 length: elapsed time: 0.00062622 seconds (16000 bytes allocated)
UTF-16 length: elapsed time: 0.0050127 seconds (16000 bytes allocated)
UTF-32 length: elapsed time: 8.5e-6 seconds (16000 bytes allocated)
UTF-8 valid: elapsed time: 0.001281614 seconds (0 bytes allocated)
UTF-16 valid: elapsed time: 0.000976456 seconds (0 bytes allocated)
UTF-8 convert to UTF-16: elapsed time: 0.014398093 seconds (9032000 bytes allocated)
UTF-8 convert to UTF-32: elapsed time: 0.00820928 seconds (4192000 bytes allocated)
UTF-16 convert to UTF-8: elapsed time: 0.036572366 seconds (5384000 bytes allocated)
UTF-16 convert to UTF-32: elapsed time: 0.010915541 seconds (4192000 bytes allocated)
UTF-32 convert to UTF-8: elapsed time: 0.041022836 seconds (5288000 bytes allocated, 56.49% gc time)
UTF-32 convert to UTF-16: elapsed time: 0.007837922 seconds (9032000 bytes allocated)
2-byte:: Looping 1000 times, length=1024
UTF-8: 1344, UTF-16: 2048, UTF-32: 4096
UTF-8 length: elapsed time: 0.000785053 seconds (16000 bytes allocated)
UTF-16 length: elapsed time: 0.005891818 seconds (16000 bytes allocated)
UTF-32 length: elapsed time: 8.019e-6 seconds (16000 bytes allocated)
UTF-8 valid: elapsed time: 0.001614883 seconds (0 bytes allocated)
UTF-16 valid: elapsed time: 0.001205219 seconds (0 bytes allocated)
UTF-8 convert to UTF-16: elapsed time: 0.016175884 seconds (9032000 bytes allocated)
UTF-8 convert to UTF-32: elapsed time: 0.00887042 seconds (4192000 bytes allocated)
UTF-16 convert to UTF-8: elapsed time: 0.037220689 seconds (7432000 bytes allocated)
UTF-16 convert to UTF-32: elapsed time: 0.011178744 seconds (4192000 bytes allocated)
UTF-32 convert to UTF-8: elapsed time: 0.01772995 seconds (5288000 bytes allocated)
UTF-32 convert to UTF-16: elapsed time: 0.028060621 seconds (9032000 bytes allocated, 70.47% gc time)
3-byte:: Looping 1000 times, length=1024
UTF-8: 1472, UTF-16: 2048, UTF-32: 4096
UTF-8 length: elapsed time: 0.001225049 seconds (16000 bytes allocated)
UTF-16 length: elapsed time: 0.005827052 seconds (16000 bytes allocated)
UTF-32 length: elapsed time: 5.779e-6 seconds (16000 bytes allocated)
UTF-8 valid: elapsed time: 0.001381954 seconds (0 bytes allocated)
UTF-16 valid: elapsed time: 0.000945745 seconds (0 bytes allocated)
UTF-8 convert to UTF-16: elapsed time: 0.014770283 seconds (9032000 bytes allocated)
UTF-8 convert to UTF-32: elapsed time: 0.010216992 seconds (4192000 bytes allocated)
UTF-16 convert to UTF-8: elapsed time: 0.039298684 seconds (7432000 bytes allocated)
UTF-16 convert to UTF-32: elapsed time: 0.010566687 seconds (4192000 bytes allocated)
UTF-32 convert to UTF-8: elapsed time: 0.019173123 seconds (5288000 bytes allocated)
UTF-32 convert to UTF-16: elapsed time: 0.00840838 seconds (9032000 bytes allocated)
4-byte:: Looping 1000 times, length=1024
UTF-8: 1664, UTF-16: 2304, UTF-32: 4096
UTF-8 length: elapsed time: 0.001196562 seconds (16000 bytes allocated)
UTF-16 length: elapsed time: 0.005925654 seconds (16000 bytes allocated)
UTF-32 length: elapsed time: 1.2228e-5 seconds (16000 bytes allocated)
UTF-8 valid: elapsed time: 0.001703174 seconds (0 bytes allocated)
UTF-16 valid: elapsed time: 0.001435981 seconds (0 bytes allocated)
UTF-8 convert to UTF-16: elapsed time: 0.032646515 seconds (9032000 bytes allocated, 54.17% gc time)
UTF-8 convert to UTF-32: elapsed time: 0.01116508 seconds (4192000 bytes allocated)
UTF-16 convert to UTF-8: elapsed time: 0.041103392 seconds (10248000 bytes allocated)
UTF-16 convert to UTF-32: elapsed time: 0.012804267 seconds (4192000 bytes allocated)
UTF-32 convert to UTF-8: elapsed time: 0.021714498 seconds (5800000 bytes allocated)
UTF-32 convert to UTF-16: elapsed time: 0.008493214 seconds (9032000 bytes allocated)
Surrogates:: Looping 1000 times, length=1152
UTF-8: 1920, UTF-16: 2304, UTF-32: 4608
UTF-8 length: elapsed time: 0.001766227 seconds (16000 bytes allocated)
UTF-16 length: elapsed time: 0.006185905 seconds (16000 bytes allocated)
UTF-32 length: elapsed time: 7.352e-6 seconds (16000 bytes allocated)
UTF-8 valid: elapsed time: 0.001850738 seconds (0 bytes allocated)
UTF-16 valid: elapsed time: 0.001388687 seconds (0 bytes allocated)
UTF-8 convert to UTF-16: elapsed time: 0.035234954 seconds (9032000 bytes allocated, 52.57% gc time)
UTF-8 convert to UTF-32: elapsed time: 0.0111041 seconds (4704000 bytes allocated)
UTF-16 convert to UTF-8: elapsed time: 0.04136035 seconds (10248000 bytes allocated)
UTF-16 convert to UTF-32: elapsed time: 0.013265142 seconds (4192000 bytes allocated)
UTF-32 convert to UTF-8: elapsed time: 0.025746502 seconds (6056000 bytes allocated)
UTF-32 convert to UTF-16: elapsed time: 0.00953907 seconds (9032000 bytes allocated)
ASCII: Looping 1000 times, length=4096
length: elapsed time: 9.18e-6 seconds (16000 bytes allocated)
is_valid_ascii: elapsed time: 0.002278317 seconds (0 bytes allocated)
Convert to UTF-8: elapsed time: 6.989e-6 seconds (16000 bytes allocated)
Convert to UTF-16:elapsed time: 0.04667454 seconds (33672000 bytes allocated, 39.09% gc time)
Convert to UTF-32:elapsed time: 0.007683882 seconds (16464000 bytes allocated)
ASCII:: Looping 1000 times, length=4096
UTF-8: 4096, UTF-16: 8192, UTF-32: 16384
UTF-8 length: elapsed time: 0.001402012 seconds (16000 bytes allocated)
UTF-16 length: elapsed time: 0.020752712 seconds (16000 bytes allocated)
UTF-32 length: elapsed time: 6.746e-6 seconds (16000 bytes allocated)
UTF-8 valid: elapsed time: 0.002340828 seconds (0 bytes allocated)
UTF-16 valid: elapsed time: 0.003942351 seconds (0 bytes allocated)
UTF-8 convert to UTF-16: elapsed time: 0.066381953 seconds (33672000 bytes allocated, 25.83% gc time)
UTF-8 convert to UTF-32: elapsed time: 0.027712541 seconds (16464000 bytes allocated)
UTF-16 convert to UTF-8: elapsed time: 0.132528382 seconds (8584000 bytes allocated, 14.44% gc time)
UTF-16 convert to UTF-32: elapsed time: 0.043792367 seconds (16464000 bytes allocated)
UTF-32 convert to UTF-8: elapsed time: 0.045078016 seconds (8504000 bytes allocated)
UTF-32 convert to UTF-16: elapsed time: 0.050311782 seconds (33672000 bytes allocated, 41.18% gc time)
Latin1:: Looping 1000 times, length=4096
UTF-8: 5376, UTF-16: 8192, UTF-32: 16384
UTF-8 length: elapsed time: 0.002556047 seconds (16000 bytes allocated)
UTF-16 length: elapsed time: 0.020467732 seconds (16000 bytes allocated)
UTF-32 length: elapsed time: 6.289e-6 seconds (16000 bytes allocated)
UTF-8 valid: elapsed time: 0.004974836 seconds (0 bytes allocated)
UTF-16 valid: elapsed time: 0.003825764 seconds (0 bytes allocated)
UTF-8 convert to UTF-16: elapsed time: 0.06995628 seconds (33672000 bytes allocated, 23.84% gc time)
UTF-8 convert to UTF-32: elapsed time: 0.032405951 seconds (16464000 bytes allocated)
UTF-16 convert to UTF-8: elapsed time: 0.141598401 seconds (18088000 bytes allocated)
UTF-16 convert to UTF-32: elapsed time: 0.064497602 seconds (16464000 bytes allocated, 33.80% gc time)
UTF-32 convert to UTF-8: elapsed time: 0.069704084 seconds (17992000 bytes allocated)
UTF-32 convert to UTF-16: elapsed time: 0.046407702 seconds (33672000 bytes allocated, 37.71% gc time)
2-byte:: Looping 1000 times, length=4096
UTF-8: 5376, UTF-16: 8192, UTF-32: 16384
UTF-8 length: elapsed time: 0.002617428 seconds (16000 bytes allocated)
UTF-16 length: elapsed time: 0.020348743 seconds (16000 bytes allocated)
UTF-32 length: elapsed time: 1.0742e-5 seconds (16000 bytes allocated)
UTF-8 valid: elapsed time: 0.004938119 seconds (0 bytes allocated)
UTF-16 valid: elapsed time: 0.003681396 seconds (0 bytes allocated)
UTF-8 convert to UTF-16: elapsed time: 0.072909151 seconds (33672000 bytes allocated, 27.83% gc time)
UTF-8 convert to UTF-32: elapsed time: 0.032852087 seconds (16464000 bytes allocated)
UTF-16 convert to UTF-8: elapsed time: 0.166865919 seconds (26280000 bytes allocated, 10.27% gc time)
UTF-16 convert to UTF-32: elapsed time: 0.042974978 seconds (16464000 bytes allocated)
UTF-32 convert to UTF-8: elapsed time: 0.069370199 seconds (17992000 bytes allocated)
UTF-32 convert to UTF-16: elapsed time: 0.046398097 seconds (33672000 bytes allocated, 36.55% gc time)
3-byte:: Looping 1000 times, length=4096
UTF-8: 5888, UTF-16: 8192, UTF-32: 16384
UTF-8 length: elapsed time: 0.00379032 seconds (16000 bytes allocated)
UTF-16 length: elapsed time: 0.01963218 seconds (16000 bytes allocated)
UTF-32 length: elapsed time: 6.503e-6 seconds (16000 bytes allocated)
UTF-8 valid: elapsed time: 0.005396109 seconds (0 bytes allocated)
UTF-16 valid: elapsed time: 0.003968301 seconds (0 bytes allocated)
UTF-8 convert to UTF-16: elapsed time: 0.075915636 seconds (33672000 bytes allocated, 27.45% gc time)
UTF-8 convert to UTF-32: elapsed time: 0.037875463 seconds (16464000 bytes allocated)
UTF-16 convert to UTF-8: elapsed time: 0.17103211 seconds (26792000 bytes allocated, 11.39% gc time)
UTF-16 convert to UTF-32: elapsed time: 0.043622941 seconds (16464000 bytes allocated)
UTF-32 convert to UTF-8: elapsed time: 0.091809199 seconds (18504000 bytes allocated, 18.49% gc time)
UTF-32 convert to UTF-16: elapsed time: 0.028802508 seconds (33672000 bytes allocated)
4-byte:: Looping 1000 times, length=4096
UTF-8: 6656, UTF-16: 9216, UTF-32: 16384
UTF-8 length: elapsed time: 0.004638123 seconds (16000 bytes allocated)
UTF-16 length: elapsed time: 0.024206261 seconds (16000 bytes allocated)
UTF-32 length: elapsed time: 6.993e-6 seconds (16000 bytes allocated)
UTF-8 valid: elapsed time: 0.006242887 seconds (0 bytes allocated)
UTF-16 valid: elapsed time: 0.005315633 seconds (0 bytes allocated)
UTF-8 convert to UTF-16: elapsed time: 0.078516944 seconds (33672000 bytes allocated, 22.46% gc time)
UTF-8 convert to UTF-32: elapsed time: 0.043552613 seconds (16464000 bytes allocated)
UTF-16 convert to UTF-8: elapsed time: 0.178412349 seconds (37288000 bytes allocated, 9.30% gc time)
UTF-16 convert to UTF-32: elapsed time: 0.068769506 seconds (16464000 bytes allocated, 26.37% gc time)
UTF-32 convert to UTF-8: elapsed time: 0.084647037 seconds (19272000 bytes allocated)
UTF-32 convert to UTF-16: elapsed time: 0.050707287 seconds (33672000 bytes allocated, 32.82% gc time)
Surrogates:: Looping 1000 times, length=4608
UTF-8: 7680, UTF-16: 9216, UTF-32: 18432
UTF-8 length: elapsed time: 0.006657429 seconds (16000 bytes allocated)
UTF-16 length: elapsed time: 0.022944653 seconds (16000 bytes allocated)
UTF-32 length: elapsed time: 6.17e-6 seconds (16000 bytes allocated)
UTF-8 valid: elapsed time: 0.007230347 seconds (0 bytes allocated)
UTF-16 valid: elapsed time: 0.005537032 seconds (0 bytes allocated)
UTF-8 convert to UTF-16: elapsed time: 0.063726036 seconds (33672000 bytes allocated)
UTF-8 convert to UTF-32: elapsed time: 0.06257296 seconds (18512000 bytes allocated, 28.65% gc time)
UTF-16 convert to UTF-8: elapsed time: 0.182169703 seconds (37288000 bytes allocated, 10.90% gc time)
UTF-16 convert to UTF-32: elapsed time: 0.049952856 seconds (16464000 bytes allocated)
UTF-32 convert to UTF-8: elapsed time: 0.1004731 seconds (21832000 bytes allocated)
UTF-32 convert to UTF-16: elapsed time: 0.050137806 seconds (33672000 bytes allocated, 35.32% gc time)
ASCII: Looping 1000 times, length=16384
length: elapsed time: 1.7194e-5 seconds (16000 bytes allocated)
is_valid_ascii: elapsed time: 0.008374138 seconds (0 bytes allocated)
Convert to UTF-8: elapsed time: 6.13e-6 seconds (16000 bytes allocated)
Convert to UTF-16:elapsed time: 0.155935499 seconds (132040000 bytes allocated, 31.08% gc time)
Convert to UTF-32:elapsed time: 0.060627228 seconds (65616000 bytes allocated, 50.49% gc time)
ASCII:: Looping 1000 times, length=16384
UTF-8: 16384, UTF-16: 32768, UTF-32: 65536
UTF-8 length: elapsed time: 0.00531216 seconds (16000 bytes allocated)
UTF-16 length: elapsed time: 0.079247574 seconds (16000 bytes allocated)
UTF-32 length: elapsed time: 6.543e-6 seconds (16000 bytes allocated)
UTF-8 valid: elapsed time: 0.008260243 seconds (0 bytes allocated)
UTF-16 valid: elapsed time: 0.014472898 seconds (0 bytes allocated)
UTF-8 convert to UTF-16: elapsed time: 0.217503777 seconds (132040000 bytes allocated, 14.95% gc time)
UTF-8 convert to UTF-32: elapsed time: 0.143936158 seconds (65616000 bytes allocated, 22.99% gc time)
UTF-16 convert to UTF-8: elapsed time: 0.475010437 seconds (33128000 bytes allocated, 3.43% gc time)
UTF-16 convert to UTF-32: elapsed time: 0.189765365 seconds (65616000 bytes allocated, 8.91% gc time)
UTF-32 convert to UTF-8: elapsed time: 0.190882186 seconds (33048000 bytes allocated, 8.49% gc time)
UTF-32 convert to UTF-16: elapsed time: 0.161851125 seconds (132040000 bytes allocated, 31.91% gc time)
Latin1:: Looping 1000 times, length=16384
UTF-8: 21504, UTF-16: 32768, UTF-32: 65536
UTF-8 length: elapsed time: 0.009492549 seconds (16000 bytes allocated)
UTF-16 length: elapsed time: 0.079417817 seconds (16000 bytes allocated)
UTF-32 length: elapsed time: 6.848e-6 seconds (16000 bytes allocated)
UTF-8 valid: elapsed time: 0.019031377 seconds (0 bytes allocated)
UTF-16 valid: elapsed time: 0.014531846 seconds (0 bytes allocated)
UTF-8 convert to UTF-16: elapsed time: 0.239717964 seconds (132040000 bytes allocated, 12.59% gc time)
UTF-8 convert to UTF-32: elapsed time: 0.168068505 seconds (65616000 bytes allocated, 20.29% gc time)
UTF-16 convert to UTF-8: elapsed time: 0.573932631 seconds (71032000 bytes allocated, 2.72% gc time)
UTF-16 convert to UTF-32: elapsed time: 0.210361807 seconds (65616000 bytes allocated, 17.52% gc time)
UTF-32 convert to UTF-8: elapsed time: 0.290954826 seconds (70936000 bytes allocated, 6.57% gc time)
UTF-32 convert to UTF-16: elapsed time: 0.16467841 seconds (132040000 bytes allocated, 31.34% gc time)
2-byte:: Looping 1000 times, length=16384
UTF-8: 21504, UTF-16: 32768, UTF-32: 65536
UTF-8 length: elapsed time: 0.009748665 seconds (16000 bytes allocated)
UTF-16 length: elapsed time: 0.084396337 seconds (16000 bytes allocated)
UTF-32 length: elapsed time: 5.946e-6 seconds (16000 bytes allocated)
UTF-8 valid: elapsed time: 0.019074639 seconds (0 bytes allocated)
UTF-16 valid: elapsed time: 0.014670492 seconds (0 bytes allocated)
UTF-8 convert to UTF-16: elapsed time: 0.257275607 seconds (132040000 bytes allocated, 18.30% gc time)
UTF-8 convert to UTF-32: elapsed time: 0.166527626 seconds (65616000 bytes allocated, 20.54% gc time)
UTF-16 convert to UTF-8: elapsed time: 0.625170604 seconds (103800000 bytes allocated, 5.41% gc time)
UTF-16 convert to UTF-32: elapsed time: 0.189615585 seconds (65616000 bytes allocated, 8.73% gc time)
UTF-32 convert to UTF-8: elapsed time: 0.304706011 seconds (70936000 bytes allocated, 10.40% gc time)
UTF-32 convert to UTF-16: elapsed time: 0.157782337 seconds (132040000 bytes allocated, 29.63% gc time)
3-byte:: Looping 1000 times, length=16384
UTF-8: 23552, UTF-16: 32768, UTF-32: 65536
UTF-8 length: elapsed time: 0.015323109 seconds (16000 bytes allocated)
UTF-16 length: elapsed time: 0.080224607 seconds (16000 bytes allocated)
UTF-32 length: elapsed time: 6.567e-6 seconds (16000 bytes allocated)
UTF-8 valid: elapsed time: 0.021376273 seconds (0 bytes allocated)
UTF-16 valid: elapsed time: 0.016532935 seconds (0 bytes allocated)
UTF-8 convert to UTF-16: elapsed time: 0.268078836 seconds (132040000 bytes allocated, 17.21% gc time)
UTF-8 convert to UTF-32: elapsed time: 0.174560014 seconds (65616000 bytes allocated, 12.53% gc time)
UTF-16 convert to UTF-8: elapsed time: 0.646854686 seconds (105848000 bytes allocated, 5.78% gc time)
UTF-16 convert to UTF-32: elapsed time: 0.208193406 seconds (65616000 bytes allocated, 16.62% gc time)
UTF-32 convert to UTF-8: elapsed time: 0.310664041 seconds (72984000 bytes allocated, 5.20% gc time)
UTF-32 convert to UTF-16: elapsed time: 0.165345663 seconds (132040000 bytes allocated, 30.91% gc time)
4-byte:: Looping 1000 times, length=16384
UTF-8: 26624, UTF-16: 36864, UTF-32: 65536
UTF-8 length: elapsed time: 0.0180873 seconds (16000 bytes allocated)
UTF-16 length: elapsed time: 0.092709653 seconds (16000 bytes allocated)
UTF-32 length: elapsed time: 9.325e-6 seconds (16000 bytes allocated)
UTF-8 valid: elapsed time: 0.025204484 seconds (0 bytes allocated)
UTF-16 valid: elapsed time: 0.026066634 seconds (0 bytes allocated)
UTF-8 convert to UTF-16: elapsed time: 0.286203738 seconds (132040000 bytes allocated, 16.45% gc time)
UTF-8 convert to UTF-32: elapsed time: 0.205097653 seconds (65616000 bytes allocated, 16.53% gc time)
UTF-16 convert to UTF-8: elapsed time: 0.696651716 seconds (147832000 bytes allocated, 7.81% gc time)
UTF-16 convert to UTF-32: elapsed time: 0.215915113 seconds (65616000 bytes allocated, 8.06% gc time)
UTF-32 convert to UTF-8: elapsed time: 0.367549966 seconds (76056000 bytes allocated, 8.86% gc time)
UTF-32 convert to UTF-16: elapsed time: 0.181773115 seconds (132040000 bytes allocated, 27.83% gc time)
Surrogates:: Looping 1000 times, length=18432
UTF-8: 30720, UTF-16: 36864, UTF-32: 73728
UTF-8 length: elapsed time: 0.026603018 seconds (16000 bytes allocated)
UTF-16 length: elapsed time: 0.092696894 seconds (16000 bytes allocated)
UTF-32 length: elapsed time: 6.422e-6 seconds (16000 bytes allocated)
UTF-8 valid: elapsed time: 0.027753333 seconds (0 bytes allocated)
UTF-16 valid: elapsed time: 0.026032192 seconds (0 bytes allocated)
UTF-8 convert to UTF-16: elapsed time: 0.29641334 seconds (132040000 bytes allocated, 16.35% gc time)
UTF-8 convert to UTF-32: elapsed time: 0.198124707 seconds (73808000 bytes allocated, 9.06% gc time)
UTF-16 convert to UTF-8: elapsed time: 0.690458868 seconds (147832000 bytes allocated, 7.47% gc time)
UTF-16 convert to UTF-32: elapsed time: 0.231786227 seconds (65616000 bytes allocated, 14.80% gc time)
UTF-32 convert to UTF-8: elapsed time: 0.426406092 seconds (86296000 bytes allocated, 7.20% gc time)
UTF-32 convert to UTF-16: elapsed time: 0.173587793 seconds (132040000 bytes allocated, 27.99% gc time)
ASCII: Looping 1000 times, length=65536
length: elapsed time: 6.312e-6 seconds (16000 bytes allocated)
is_valid_ascii: elapsed time: 0.033389623 seconds (0 bytes allocated)
Convert to UTF-8: elapsed time: 6.412e-6 seconds (16000 bytes allocated)
Convert to UTF-16:elapsed time: 0.666695582 seconds (525320000 bytes allocated, 28.57% gc time)
Convert to UTF-32:elapsed time: 0.269877534 seconds (262224000 bytes allocated, 36.00% gc time)
ASCII:: Looping 1000 times, length=65536
UTF-8: 65536, UTF-16: 131072, UTF-32: 262144
UTF-8 length: elapsed time: 0.022107455 seconds (16000 bytes allocated)
UTF-16 length: elapsed time: 0.318925035 seconds (16000 bytes allocated)
UTF-32 length: elapsed time: 7.09e-6 seconds (16000 bytes allocated)
UTF-8 valid: elapsed time: 0.033163028 seconds (0 bytes allocated)
UTF-16 valid: elapsed time: 0.059576686 seconds (0 bytes allocated)
UTF-8 convert to UTF-16: elapsed time: 0.988031276 seconds (525320000 bytes allocated, 19.72% gc time)
UTF-8 convert to UTF-32: elapsed time: 0.582535625 seconds (262224000 bytes allocated, 15.21% gc time)
UTF-16 convert to UTF-8: elapsed time: 1.87821487 seconds (131432000 bytes allocated, 2.59% gc time)
UTF-16 convert to UTF-32: elapsed time: 0.822460428 seconds (262224000 bytes allocated, 11.32% gc time)
UTF-32 convert to UTF-8: elapsed time: 0.739788293 seconds (131352000 bytes allocated, 4.85% gc time)
UTF-32 convert to UTF-16: elapsed time: 0.658072387 seconds (525320000 bytes allocated, 26.25% gc time)
Latin1:: Looping 1000 times, length=65536
UTF-8: 86016, UTF-16: 131072, UTF-32: 262144
UTF-8 length: elapsed time: 0.041031639 seconds (16000 bytes allocated)
UTF-16 length: elapsed time: 0.321505268 seconds (16000 bytes allocated)
UTF-32 length: elapsed time: 6.627e-6 seconds (16000 bytes allocated)
UTF-8 valid: elapsed time: 0.076708005 seconds (0 bytes allocated)
UTF-16 valid: elapsed time: 0.058448043 seconds (0 bytes allocated)
UTF-8 convert to UTF-16: elapsed time: 1.042939635 seconds (525320000 bytes allocated, 15.03% gc time)
UTF-8 convert to UTF-32: elapsed time: 0.658221171 seconds (262224000 bytes allocated, 13.49% gc time)
UTF-16 convert to UTF-8: elapsed time: 2.368506508 seconds (283000000 bytes allocated, 4.33% gc time)
UTF-16 convert to UTF-32: elapsed time: 0.82537178 seconds (262224000 bytes allocated, 10.95% gc time)
UTF-32 convert to UTF-8: elapsed time: 1.218341276 seconds (282904000 bytes allocated, 7.59% gc time)
UTF-32 convert to UTF-16: elapsed time: 0.649434334 seconds (525320000 bytes allocated, 24.24% gc time)
2-byte:: Looping 1000 times, length=65536
UTF-8: 86016, UTF-16: 131072, UTF-32: 262144
UTF-8 length: elapsed time: 0.038665056 seconds (16000 bytes allocated)
UTF-16 length: elapsed time: 0.319232006 seconds (16000 bytes allocated)
UTF-32 length: elapsed time: 6.725e-6 seconds (16000 bytes allocated)
UTF-8 valid: elapsed time: 0.077377221 seconds (0 bytes allocated)
UTF-16 valid: elapsed time: 0.058669646 seconds (0 bytes allocated)
UTF-8 convert to UTF-16: elapsed time: 1.095512963 seconds (525320000 bytes allocated, 19.63% gc time)
UTF-8 convert to UTF-32: elapsed time: 0.666785925 seconds (262224000 bytes allocated, 13.32% gc time)
UTF-16 convert to UTF-8: elapsed time: 2.559058234 seconds (414072000 bytes allocated, 5.74% gc time)
UTF-16 convert to UTF-32: elapsed time: 0.809629524 seconds (262224000 bytes allocated, 9.18% gc time)
UTF-32 convert to UTF-8: elapsed time: 1.224359879 seconds (282904000 bytes allocated, 8.79% gc time)
UTF-32 convert to UTF-16: elapsed time: 0.64142913 seconds (525320000 bytes allocated, 24.37% gc time)
3-byte:: Looping 1000 times, length=65536
UTF-8: 94208, UTF-16: 131072, UTF-32: 262144
UTF-8 length: elapsed time: 0.059826613 seconds (16000 bytes allocated)
UTF-16 length: elapsed time: 0.318090943 seconds (16000 bytes allocated)
UTF-32 length: elapsed time: 6.664e-6 seconds (16000 bytes allocated)
UTF-8 valid: elapsed time: 0.087613717 seconds (0 bytes allocated)
UTF-16 valid: elapsed time: 0.058689124 seconds (0 bytes allocated)
UTF-8 convert to UTF-16: elapsed time: 1.119339753 seconds (525320000 bytes allocated, 17.10% gc time)
UTF-8 convert to UTF-32: elapsed time: 0.736748552 seconds (262224000 bytes allocated, 12.20% gc time)
UTF-16 convert to UTF-8: elapsed time: 2.629742089 seconds (422264000 bytes allocated, 5.76% gc time)
UTF-16 convert to UTF-32: elapsed time: 0.838038669 seconds (262224000 bytes allocated, 12.78% gc time)
UTF-32 convert to UTF-8: elapsed time: 1.34082464 seconds (291096000 bytes allocated, 7.78% gc time)
UTF-32 convert to UTF-16: elapsed time: 0.671749503 seconds (525320000 bytes allocated, 26.10% gc time)
4-byte:: Looping 1000 times, length=65536
UTF-8: 106496, UTF-16: 147456, UTF-32: 262144
UTF-8 length: elapsed time: 0.072594571 seconds (16000 bytes allocated)
UTF-16 length: elapsed time: 0.374267634 seconds (16000 bytes allocated)
UTF-32 length: elapsed time: 6.447e-6 seconds (16000 bytes allocated)
UTF-8 valid: elapsed time: 0.100129512 seconds (0 bytes allocated)
UTF-16 valid: elapsed time: 0.085885965 seconds (0 bytes allocated)
UTF-8 convert to UTF-16: elapsed time: 1.195602505 seconds (525320000 bytes allocated, 13.98% gc time)
UTF-8 convert to UTF-32: elapsed time: 0.842395079 seconds (262224000 bytes allocated, 10.95% gc time)
UTF-16 convert to UTF-8: elapsed time: 2.831499614 seconds (590200000 bytes allocated, 7.42% gc time)
UTF-16 convert to UTF-32: elapsed time: 0.916117029 seconds (262224000 bytes allocated, 8.07% gc time)
UTF-32 convert to UTF-8: elapsed time: 1.507497711 seconds (303384000 bytes allocated, 7.47% gc time)
UTF-32 convert to UTF-16: elapsed time: 0.747361975 seconds (525320000 bytes allocated, 22.02% gc time)
Surrogates:: Looping 1000 times, length=73728
UTF-8: 122880, UTF-16: 147456, UTF-32: 294912
UTF-8 length: elapsed time: 0.109406098 seconds (16000 bytes allocated)
UTF-16 length: elapsed time: 0.374022033 seconds (16000 bytes allocated)
UTF-32 length: elapsed time: 6.347e-6 seconds (16000 bytes allocated)
UTF-8 valid: elapsed time: 0.115370155 seconds (0 bytes allocated)
UTF-16 valid: elapsed time: 0.089429632 seconds (0 bytes allocated)
UTF-8 convert to UTF-16: elapsed time: 1.24551812 seconds (525320000 bytes allocated, 15.17% gc time)
UTF-8 convert to UTF-32: elapsed time: 0.890722193 seconds (294992000 bytes allocated, 10.64% gc time)
UTF-16 convert to UTF-8: elapsed time: 2.840995062 seconds (590200000 bytes allocated, 7.28% gc time)
UTF-16 convert to UTF-32: elapsed time: 0.946011935 seconds (262224000 bytes allocated, 9.73% gc time)
UTF-32 convert to UTF-8: elapsed time: 1.767135879 seconds (344344000 bytes allocated, 6.36% gc time)
UTF-32 convert to UTF-16: elapsed time: 0.709048678 seconds (525320000 bytes allocated, 24.38% gc time)
ASCII: Looping 1000 times, length=262144
length: elapsed time: 6.442e-6 seconds (16000 bytes allocated)
is_valid_ascii: elapsed time: 0.133026276 seconds (0 bytes allocated)
Convert to UTF-8: elapsed time: 6.314e-6 seconds (16000 bytes allocated)
Convert to UTF-16:elapsed time: 2.562497385 seconds (2098216000 bytes allocated, 25.76% gc time)
Convert to UTF-32:elapsed time: 0.885155337 seconds (1048656000 bytes allocated, 35.40% gc time)
ASCII:: Looping 1000 times, length=262144
UTF-8: 262144, UTF-16: 524288, UTF-32: 1048576
UTF-8 length: elapsed time: 0.085050813 seconds (16000 bytes allocated)
UTF-16 length: elapsed time: 1.273861759 seconds (16000 bytes allocated)
UTF-32 length: elapsed time: 6.906e-6 seconds (16000 bytes allocated)
UTF-8 valid: elapsed time: 0.13384381 seconds (0 bytes allocated)
UTF-16 valid: elapsed time: 0.239325105 seconds (0 bytes allocated)
UTF-8 convert to UTF-16: elapsed time: 3.867073367 seconds (2098216000 bytes allocated, 17.99% gc time)
UTF-8 convert to UTF-32: elapsed time: 2.267389966 seconds (1048656000 bytes allocated, 15.84% gc time)
UTF-16 convert to UTF-8: elapsed time: 7.720883938 seconds (524648000 bytes allocated, 2.33% gc time)
UTF-16 convert to UTF-32: elapsed time: 3.179003788 seconds (1048656000 bytes allocated, 10.56% gc time)
UTF-32 convert to UTF-8: elapsed time: 3.109011032 seconds (524568000 bytes allocated, 5.48% gc time)
UTF-32 convert to UTF-16: elapsed time: 2.693097355 seconds (2098216000 bytes allocated, 26.29% gc time)
Latin1:: Looping 1000 times, length=262144
UTF-8: 344064, UTF-16: 524288, UTF-32: 1048576
UTF-8 length: elapsed time: 0.152155719 seconds (16000 bytes allocated)
UTF-16 length: elapsed time: 1.268189008 seconds (16000 bytes allocated)
UTF-32 length: elapsed time: 6.764e-6 seconds (16000 bytes allocated)
UTF-8 valid: elapsed time: 0.30722756 seconds (0 bytes allocated)
UTF-16 valid: elapsed time: 0.240583058 seconds (0 bytes allocated)
UTF-8 convert to UTF-16: elapsed time: 4.267285462 seconds (2098216000 bytes allocated, 15.00% gc time)
UTF-8 convert to UTF-32: elapsed time: 2.709829269 seconds (1048656000 bytes allocated, 12.85% gc time)
UTF-16 convert to UTF-8: elapsed time: 9.743462836 seconds (1130872000 bytes allocated, 3.57% gc time)
UTF-16 convert to UTF-32: elapsed time: 3.164088574 seconds (1048656000 bytes allocated, 10.59% gc time)
UTF-32 convert to UTF-8: elapsed time: 5.134475324 seconds (1130776000 bytes allocated, 6.93% gc time)
UTF-32 convert to UTF-16: elapsed time: 2.663116165 seconds (2098216000 bytes allocated, 25.16% gc time)
2-byte:: Looping 1000 times, length=262144
UTF-8: 344064, UTF-16: 524288, UTF-32: 1048576
UTF-8 length: elapsed time: 0.155069535 seconds (16000 bytes allocated)
UTF-16 length: elapsed time: 1.289617139 seconds (16000 bytes allocated)
UTF-32 length: elapsed time: 6.991e-6 seconds (16000 bytes allocated)
UTF-8 valid: elapsed time: 0.362181466 seconds (0 bytes allocated)
UTF-16 valid: elapsed time: 0.242068841 seconds (0 bytes allocated)
UTF-8 convert to UTF-16: elapsed time: 4.204808478 seconds (2098216000 bytes allocated, 15.18% gc time)
UTF-8 convert to UTF-32: elapsed time: 2.538798161 seconds (1048656000 bytes allocated, 13.07% gc time)
UTF-16 convert to UTF-8: elapsed time: 10.534935863 seconds (1655160000 bytes allocated, 5.29% gc time)
UTF-16 convert to UTF-32: elapsed time: 3.240337082 seconds (1048656000 bytes allocated, 10.34% gc time)
UTF-32 convert to UTF-8: elapsed time: 5.101497071 seconds (1130776000 bytes allocated, 7.27% gc time)
UTF-32 convert to UTF-16: elapsed time: 2.652143237 seconds (2098216000 bytes allocated, 23.65% gc time)
3-byte:: Looping 1000 times, length=262144
UTF-8: 376832, UTF-16: 524288, UTF-32: 1048576
UTF-8 length: elapsed time: 0.243723967 seconds (16000 bytes allocated)
UTF-16 length: elapsed time: 1.30269808 seconds (16000 bytes allocated)
UTF-32 length: elapsed time: 6.569e-6 seconds (16000 bytes allocated)
UTF-8 valid: elapsed time: 0.348385979 seconds (0 bytes allocated)
UTF-16 valid: elapsed time: 0.243428683 seconds (0 bytes allocated)
UTF-8 convert to UTF-16: elapsed time: 4.452651467 seconds (2098216000 bytes allocated, 14.74% gc time)
UTF-8 convert to UTF-32: elapsed time: 2.878070383 seconds (1048656000 bytes allocated, 11.85% gc time)
UTF-16 convert to UTF-8: elapsed time: 10.950293123 seconds (1687928000 bytes allocated, 5.04% gc time)
UTF-16 convert to UTF-32: elapsed time: 3.321479763 seconds (1048656000 bytes allocated, 11.24% gc time)
UTF-32 convert to UTF-8: elapsed time: 5.665369539 seconds (1163544000 bytes allocated, 6.50% gc time)
UTF-32 convert to UTF-16: elapsed time: 2.810304361 seconds (2098216000 bytes allocated, 23.50% gc time)
4-byte:: Looping 1000 times, length=262144
UTF-8: 425984, UTF-16: 589824, UTF-32: 1048576
UTF-8 length: elapsed time: 0.32107124 seconds (16000 bytes allocated)
UTF-16 length: elapsed time: 1.634888135 seconds (16000 bytes allocated)
UTF-32 length: elapsed time: 6.974e-6 seconds (16000 bytes allocated)
UTF-8 valid: elapsed time: 0.439304251 seconds (0 bytes allocated)
UTF-16 valid: elapsed time: 0.374210388 seconds (0 bytes allocated)
UTF-8 convert to UTF-16: elapsed time: 5.098300299 seconds (2098216000 bytes allocated, 12.90% gc time)
UTF-8 convert to UTF-32: elapsed time: 3.464803166 seconds (1048656000 bytes allocated, 9.88% gc time)
UTF-16 convert to UTF-8: elapsed time: 12.761659874 seconds (2359672000 bytes allocated, 6.71% gc time)
UTF-16 convert to UTF-32: elapsed time: 4.045606187 seconds (1048656000 bytes allocated, 8.99% gc time)
UTF-32 convert to UTF-8: elapsed time: 6.937609129 seconds (1212696000 bytes allocated, 5.73% gc time)
UTF-32 convert to UTF-16: elapsed time: 3.35246102 seconds (2098216000 bytes allocated, 20.73% gc time)
Surrogates:: Looping 1000 times, length=294912
UTF-8: 491520, UTF-16: 589824, UTF-32: 1179648
UTF-8 length: elapsed time: 0.498345219 seconds (16000 bytes allocated)
UTF-16 length: elapsed time: 1.727670021 seconds (16000 bytes allocated)
UTF-32 length: elapsed time: 7.304e-6 seconds (16000 bytes allocated)
UTF-8 valid: elapsed time: 0.506675096 seconds (0 bytes allocated)
UTF-16 valid: elapsed time: 0.386948493 seconds (0 bytes allocated)
UTF-8 convert to UTF-16: elapsed time: 5.448606362 seconds (2098216000 bytes allocated, 12.74% gc time)
UTF-8 convert to UTF-32: elapsed time: 4.043905285 seconds (1179728000 bytes allocated, 10.70% gc time)
UTF-16 convert to UTF-8: elapsed time: 13.323288062 seconds (2359672000 bytes allocated, 6.40% gc time)
UTF-16 convert to UTF-32: elapsed time: 4.284160005 seconds (1048656000 bytes allocated, 8.59% gc time)
UTF-32 convert to UTF-8: elapsed time: 8.573190463 seconds (1376536000 bytes allocated, 5.39% gc time)
UTF-32 convert to UTF-16: elapsed time: 3.364225144 seconds (2098216000 bytes allocated, 21.27% gc time)
ASCII: Looping 1000 times, length=1048576
length: elapsed time: 7.86e-6 seconds (16000 bytes allocated)
is_valid_ascii: elapsed time: 0.661307721 seconds (0 bytes allocated)
Convert to UTF-8: elapsed time: 7.129e-6 seconds (16000 bytes allocated)
Convert to UTF-16:elapsed time: 8.626218542 seconds (8389672000 bytes allocated, 5.78% gc time)
Convert to UTF-32:elapsed time: 3.670093034 seconds (4194384000 bytes allocated, 38.32% gc time)
ASCII:: Looping 1000 times, length=1048576
UTF-8: 1048576, UTF-16: 2097152, UTF-32: 4194304
UTF-8 length: elapsed time: 0.434628874 seconds (16000 bytes allocated)
UTF-16 length: elapsed time: 6.379135693 seconds (16000 bytes allocated)
UTF-32 length: elapsed time: 7.757e-6 seconds (16000 bytes allocated)
UTF-8 valid: elapsed time: 0.689502313 seconds (0 bytes allocated)
UTF-16 valid: elapsed time: 1.115748246 seconds (0 bytes allocated)
UTF-8 convert to UTF-16: elapsed time: 15.206573328 seconds (8389672000 bytes allocated, 3.53% gc time)
UTF-8 convert to UTF-32: elapsed time: 10.35197179 seconds (4194384000 bytes allocated, 13.60% gc time)
UTF-16 convert to UTF-8: elapsed time: 38.831236663 seconds (2097512000 bytes allocated, 1.90% gc time)
UTF-16 convert to UTF-32: elapsed time: 15.582339369 seconds (4194384000 bytes allocated, 10.39% gc time)
UTF-32 convert to UTF-8: elapsed time: 15.64752496 seconds (2097432000 bytes allocated, 4.89% gc time)
UTF-32 convert to UTF-16: elapsed time: 9.90369924 seconds (8389672000 bytes allocated, 5.69% gc time)
Latin1:: Looping 1000 times, length=1048576
UTF-8: 1376256, UTF-16: 2097152, UTF-32: 4194304
UTF-8 length: elapsed time: 0.805081778 seconds (16000 bytes allocated)
UTF-16 length: elapsed time: 6.489078482 seconds (16000 bytes allocated)
UTF-32 length: elapsed time: 7.943e-6 seconds (16000 bytes allocated)
UTF-8 valid: elapsed time: 1.565819737 seconds (0 bytes allocated)
UTF-16 valid: elapsed time: 1.194256982 seconds (0 bytes allocated)
UTF-8 convert to UTF-16: elapsed time: 17.797645207 seconds (8389672000 bytes allocated, 2.63% gc time)
UTF-8 convert to UTF-32: elapsed time: 12.776996616 seconds (4194384000 bytes allocated, 12.19% gc time)
UTF-16 convert to UTF-8: elapsed time: 50.909461046 seconds (4522360000 bytes allocated, 3.03% gc time)
UTF-16 convert to UTF-32: elapsed time: 16.469348946 seconds (4194384000 bytes allocated, 10.04% gc time)
UTF-32 convert to UTF-8: elapsed time: 26.615655502 seconds (4522264000 bytes allocated, 5.75% gc time)
UTF-32 convert to UTF-16: elapsed time: 10.355198005 seconds (8389672000 bytes allocated, 5.35% gc time)
2-byte:: Looping 1000 times, length=1048576
UTF-8: 1376256, UTF-16: 2097152, UTF-32: 4194304
UTF-8 length: elapsed time: 0.884508718 seconds (16000 bytes allocated)
UTF-16 length: elapsed time: 7.037596506 seconds (16000 bytes allocated)
UTF-32 length: elapsed time: 8.505e-6 seconds (16000 bytes allocated)
UTF-8 valid: elapsed time: 1.627082979 seconds (0 bytes allocated)
UTF-16 valid: elapsed time: 1.227325663 seconds (0 bytes allocated)
UTF-8 convert to UTF-16: elapsed time: 18.355693518 seconds (8389672000 bytes allocated, 2.57% gc time)
UTF-8 convert to UTF-32: elapsed time: 13.137894887 seconds (4194384000 bytes allocated, 11.09% gc time)
UTF-16 convert to UTF-8: elapsed time: 55.958032366 seconds (6619512000 bytes allocated, 4.33% gc time)
UTF-16 convert to UTF-32: elapsed time: 16.828226128 seconds (4194384000 bytes allocated, 9.72% gc time)
UTF-32 convert to UTF-8: elapsed time: 26.94003974 seconds (4522264000 bytes allocated, 5.72% gc time)
UTF-32 convert to UTF-16: elapsed time: 10.492928303 seconds (8389672000 bytes allocated, 5.46% gc time)
3-byte:: Looping 1000 times, length=1048576
UTF-8: 1507328, UTF-16: 2097152, UTF-32: 4194304
UTF-8 length: elapsed time: 1.308819955 seconds (16000 bytes allocated)
UTF-16 length: elapsed time: 6.864485311 seconds (16000 bytes allocated)
UTF-32 length: elapsed time: 8.004e-6 seconds (16000 bytes allocated)
UTF-8 valid: elapsed time: 1.809223307 seconds (0 bytes allocated)
UTF-16 valid: elapsed time: 1.229477162 seconds (0 bytes allocated)
UTF-8 convert to UTF-16: elapsed time: 19.617680156 seconds (8389672000 bytes allocated, 2.45% gc time)
UTF-8 convert to UTF-32: elapsed time: 14.508012696 seconds (4194384000 bytes allocated, 10.16% gc time)
UTF-16 convert to UTF-8: elapsed time: 57.064106062 seconds (6750584000 bytes allocated, 4.22% gc time)
UTF-16 convert to UTF-32: elapsed time: 16.707371277 seconds (4194384000 bytes allocated, 9.93% gc time)
UTF-32 convert to UTF-8: elapsed time: 28.78633921 seconds (4653336000 bytes allocated, 5.65% gc time)
UTF-32 convert to UTF-16: elapsed time: 10.213845347 seconds (8389672000 bytes allocated, 5.58% gc time)
4-byte:: Looping 1000 times, length=1048576
UTF-8: 1703936, UTF-16: 2359296, UTF-32: 4194304
UTF-8 length: elapsed time: 1.585302269 seconds (16000 bytes allocated)
UTF-16 length: elapsed time: 7.756165706 seconds (16000 bytes allocated)
UTF-32 length: elapsed time: 7.781e-6 seconds (16000 bytes allocated)
UTF-8 valid: elapsed time: 2.041840091 seconds (0 bytes allocated)
UTF-16 valid: elapsed time: 1.745981883 seconds (0 bytes allocated)
UTF-8 convert to UTF-16: elapsed time: 21.239983428 seconds (8389672000 bytes allocated, 2.39% gc time)
UTF-8 convert to UTF-32: elapsed time: 16.616095575 seconds (4194384000 bytes allocated, 9.71% gc time)
UTF-16 convert to UTF-8: elapsed time: 61.264086009 seconds (9437560000 bytes allocated, 5.88% gc time)
UTF-16 convert to UTF-32: elapsed time: 18.668026663 seconds (4194384000 bytes allocated, 8.76% gc time)
UTF-32 convert to UTF-8: elapsed time: 32.39161791 seconds (4849944000 bytes allocated, 5.06% gc time)
UTF-32 convert to UTF-16: elapsed time: 12.124518583 seconds (8389672000 bytes allocated, 4.78% gc time)
Surrogates:: Looping 1000 times, length=1179648
UTF-8: 1966080, UTF-16: 2359296, UTF-32: 4718592
UTF-8 length: elapsed time: 2.297826817 seconds (16000 bytes allocated)
UTF-16 length: elapsed time: 7.821439308 seconds (16000 bytes allocated)
UTF-32 length: elapsed time: 1.1696e-5 seconds (16000 bytes allocated)
UTF-8 valid: elapsed time: 2.343813087 seconds (0 bytes allocated)
UTF-16 valid: elapsed time: 1.805761148 seconds (0 bytes allocated)
UTF-8 convert to UTF-16: elapsed time: 22.050386784 seconds (8389672000 bytes allocated, 2.34% gc time)
UTF-8 convert to UTF-32: elapsed time: 17.408505825 seconds (4718672000 bytes allocated, 9.78% gc time)
UTF-16 convert to UTF-8: elapsed time: 61.555500051 seconds (9437560000 bytes allocated, 5.87% gc time)
UTF-16 convert to UTF-32: elapsed time: 18.955893382 seconds (4194384000 bytes allocated, 8.90% gc time)
UTF-32 convert to UTF-8: elapsed time: 37.672122976 seconds (5505304000 bytes allocated, 4.98% gc time)
UTF-32 convert to UTF-16: elapsed time: 11.279469269 seconds (8389672000 bytes allocated, 5.30% gc time)
ASCII: Looping 1000 times, length=4194304
length: elapsed time: 8.184e-6 seconds (16000 bytes allocated)
is_valid_ascii: elapsed time: 2.808004869 seconds (0 bytes allocated)
Convert to UTF-8: elapsed time: 1.1292e-5 seconds (16000 bytes allocated)
Convert to UTF-16:elapsed time: 37.079439392 seconds (33555496000 bytes allocated, 5.11% gc time)
Convert to UTF-32:elapsed time: 17.181823101 seconds (16777296000 bytes allocated, 38.15% gc time)
ASCII:: Looping 1000 times, length=4194304
UTF-8: 4194304, UTF-16: 8388608, UTF-32: 16777216
UTF-8 length: elapsed time: 2.000051581 seconds (16000 bytes allocated)
UTF-16 length: elapsed time: 26.631946519 seconds (16000 bytes allocated)
UTF-32 length: elapsed time: 8.598e-6 seconds (16000 bytes allocated)
UTF-8 valid: elapsed time: 2.778884453 seconds (0 bytes allocated)
UTF-16 valid: elapsed time: 4.867937428 seconds (0 bytes allocated)
UTF-8 convert to UTF-16: elapsed time: 63.628926912 seconds (33555496000 bytes allocated, 3.00% gc time)
UTF-8 convert to UTF-32: elapsed time: 44.103928109 seconds (16777296000 bytes allocated, 13.96% gc time)
UTF-16 convert to UTF-8: elapsed time: 152.548939176 seconds (8388968000 bytes allocated, 2.06% gc time)
UTF-16 convert to UTF-32: elapsed time: 60.402758371 seconds (16777296000 bytes allocated, 10.12% gc time)
UTF-32 convert to UTF-8: elapsed time: 59.837823758 seconds (8388888000 bytes allocated, 5.28% gc time)
UTF-32 convert to UTF-16: elapsed time: 38.164617565 seconds (33555496000 bytes allocated, 5.21% gc time)
Latin1:: Looping 1000 times, length=4194304
UTF-8: 5505024, UTF-16: 8388608, UTF-32: 16777216
UTF-8 length: elapsed time: 3.258004639 seconds (16000 bytes allocated)
UTF-16 length: elapsed time: 26.799601234 seconds (16000 bytes allocated)
UTF-32 length: elapsed time: 8.518e-6 seconds (16000 bytes allocated)
UTF-8 valid: elapsed time: 6.322824242 seconds (0 bytes allocated)
UTF-16 valid: elapsed time: 4.822210385 seconds (0 bytes allocated)
UTF-8 convert to UTF-16: elapsed time: 72.578102612 seconds (33555496000 bytes allocated, 2.66% gc time)
UTF-8 convert to UTF-32: elapsed time: 52.639578464 seconds (16777296000 bytes allocated, 12.15% gc time)
UTF-16 convert to UTF-8: elapsed time: 206.392491916 seconds (18088312000 bytes allocated, 2.26% gc time)
UTF-16 convert to UTF-32: elapsed time: 65.71821249 seconds (16777296000 bytes allocated, 9.84% gc time)
UTF-32 convert to UTF-8: elapsed time: 103.348995012 seconds (18088216000 bytes allocated, 4.32% gc time)
UTF-32 convert to UTF-16: elapsed time: 39.375722093 seconds (33555496000 bytes allocated, 4.42% gc time)
2-byte:: Looping 1000 times, length=4194304
UTF-8: 5505024, UTF-16: 8388608, UTF-32: 16777216
UTF-8 length: elapsed time: 3.288911065 seconds (16000 bytes allocated)
UTF-16 length: elapsed time: 26.362233893 seconds (16000 bytes allocated)
UTF-32 length: elapsed time: 8.492e-6 seconds (16000 bytes allocated)
UTF-8 valid: elapsed time: 6.448959056 seconds (0 bytes allocated)
UTF-16 valid: elapsed time: 5.115533166 seconds (0 bytes allocated)
UTF-8 convert to UTF-16: elapsed time: 73.662366247 seconds (33555496000 bytes allocated, 2.56% gc time)
UTF-8 convert to UTF-32: elapsed time: 50.941961894 seconds (16777296000 bytes allocated, 12.14% gc time)
UTF-16 convert to UTF-8: elapsed time: 211.694562393 seconds (26476920000 bytes allocated, 4.20% gc time)
UTF-16 convert to UTF-32: elapsed time: 62.546411225 seconds (16777296000 bytes allocated, 10.02% gc time)
UTF-32 convert to UTF-8: elapsed time: 99.995073982 seconds (18088216000 bytes allocated, 4.49% gc time)
UTF-32 convert to UTF-16: elapsed time: 37.937361895 seconds (33555496000 bytes allocated, 4.83% gc time)
3-byte:: Looping 1000 times, length=4194304
UTF-8: 6029312, UTF-16: 8388608, UTF-32: 16777216
UTF-8 length: elapsed time: 5.110587232 seconds (16000 bytes allocated)
UTF-16 length: elapsed time: 26.531193493 seconds (16000 bytes allocated)
UTF-32 length: elapsed time: 8.254e-6 seconds (16000 bytes allocated)
UTF-8 valid: elapsed time: 6.843782019 seconds (0 bytes allocated)
UTF-16 valid: elapsed time: 4.761194155 seconds (0 bytes allocated)
UTF-8 convert to UTF-16: elapsed time: 73.626907678 seconds (33555496000 bytes allocated, 2.56% gc time)
UTF-8 convert to UTF-32: elapsed time: 55.228129805 seconds (16777296000 bytes allocated, 11.12% gc time)
UTF-16 convert to UTF-8: elapsed time: 222.089311082 seconds (27001208000 bytes allocated, 4.00% gc time)
UTF-16 convert to UTF-32: elapsed time: 63.859276422 seconds (16777296000 bytes allocated, 9.67% gc time)
UTF-32 convert to UTF-8: elapsed time: 110.42056053 seconds (18612504000 bytes allocated, 3.69% gc time)
UTF-32 convert to UTF-16: elapsed time: 37.970407068 seconds (33555496000 bytes allocated, 4.82% gc time)
4-byte:: Looping 1000 times, length=4194304
UTF-8: 6815744, UTF-16: 9437184, UTF-32: 16777216
UTF-8 length: elapsed time: 5.641477457 seconds (16000 bytes allocated)
UTF-16 length: elapsed time: 28.543055534 seconds (16000 bytes allocated)
UTF-32 length: elapsed time: 8.081e-6 seconds (16000 bytes allocated)
UTF-8 valid: elapsed time: 7.721434922 seconds (0 bytes allocated)
UTF-16 valid: elapsed time: 6.754914388 seconds (0 bytes allocated)
UTF-8 convert to UTF-16: elapsed time: 77.67711598 seconds (33555496000 bytes allocated, 2.50% gc time)
UTF-8 convert to UTF-32: elapsed time: 59.999502192 seconds (16777296000 bytes allocated, 10.10% gc time)
UTF-16 convert to UTF-8: elapsed time: 209.65011036 seconds (37749112000 bytes allocated, 6.64% gc time)
UTF-16 convert to UTF-32: elapsed time: 62.060973315 seconds (16777296000 bytes allocated, 9.31% gc time)
UTF-32 convert to UTF-8: elapsed time: 107.205264908 seconds (19398936000 bytes allocated, 4.40% gc time)
UTF-32 convert to UTF-16: elapsed time: 39.703519254 seconds (33555496000 bytes allocated, 4.67% gc time)
Surrogates:: Looping 1000 times, length=4718592
UTF-8: 7864320, UTF-16: 9437184, UTF-32: 18874368
UTF-8 length: elapsed time: 7.539831582 seconds (16000 bytes allocated)
UTF-16 length: elapsed time: 25.734180948 seconds (16000 bytes allocated)
UTF-32 length: elapsed time: 1.06e-5 seconds (16000 bytes allocated)
UTF-8 valid: elapsed time: 7.737149557 seconds (0 bytes allocated)
UTF-16 valid: elapsed time: 6.173279288 seconds (0 bytes allocated)
UTF-8 convert to UTF-16: elapsed time: 72.620280925 seconds (33555496000 bytes allocated, 2.51% gc time)
UTF-8 convert to UTF-32: elapsed time: 56.514802408 seconds (18874448000 bytes allocated, 10.45% gc time)
UTF-16 convert to UTF-8: elapsed time: 202.538686312 seconds (37749112000 bytes allocated, 6.74% gc time)
UTF-16 convert to UTF-32: elapsed time: 60.567456391 seconds (16777296000 bytes allocated, 9.45% gc time)
UTF-32 convert to UTF-8: elapsed time: 124.491797171 seconds (22020376000 bytes allocated, 4.16% gc time)
UTF-32 convert to UTF-16: elapsed time: 36.626322545 seconds (33555496000 bytes allocated, 5.06% gc time)
julia>
julia> dotest(1000,true)
ASCII: Looping 1000 times, length=8
length: 2.414 microseconds (0 allocations: 44800 KB)
is_valid_ascii: 8.495 microseconds (0 allocations: 44800 KB)
Convert to UTF-8: 5.696 microseconds (1000 allocations: 44816 KB)
Convert to UTF-16: 43.309 microseconds (2000 allocations: 44909 KB)
Convert to UTF-32: 49.704 microseconds (2000 allocations: 44925 KB)
ASCII:: Looping 1000 times, length=8
UTF-8: 8, UTF-16: 16, UTF-32: 32
UTF-8 length: 7.300 microseconds (0 allocations: 44800 KB)
UTF-16 length: 8.458 microseconds (0 allocations: 44800 KB)
UTF-32 length: 2.398 microseconds (0 allocations: 44800 KB)
UTF-8 valid: 6.286 microseconds (0 allocations: 44800 KB)
UTF-16 valid: 13.553 microseconds (0 allocations: 44800 KB)
UTF-32 valid: 9.569 microseconds (0 allocations: 44800 KB)
UTF-8 convert to UTF-16: 71.026 microseconds (2000 allocations: 44909 KB)
UTF-8 convert to UTF-32: 66.581 microseconds (2000 allocations: 44925 KB)
UTF-16 convert to UTF-8: 73.528 microseconds (2000 allocations: 44894 KB)
UTF-16 convert to UTF-32: 76.049 microseconds (2000 allocations: 44925 KB)
UTF-32 convert to UTF-8: 65.049 microseconds (2000 allocations: 44894 KB)
UTF-32 convert to UTF-16: 65.124 microseconds (2000 allocations: 44909 KB)
Latin1:: Looping 1000 times, length=8
UTF-8: 10, UTF-16: 16, UTF-32: 32
UTF-8 length: 8.606 microseconds (0 allocations: 44800 KB)
UTF-16 length: 8.292 microseconds (0 allocations: 44800 KB)
UTF-32 length: 2.385 microseconds (0 allocations: 44800 KB)
UTF-8 valid: 8.888 microseconds (0 allocations: 44800 KB)
UTF-16 valid: 17.267 microseconds (0 allocations: 44800 KB)
UTF-32 valid: 9.590 microseconds (0 allocations: 44800 KB)
UTF-8 convert to UTF-16: 74.024 microseconds (2000 allocations: 44909 KB)
UTF-8 convert to UTF-32: 79.888 microseconds (2000 allocations: 44925 KB)
UTF-16 convert to UTF-8: 73.148 microseconds (2000 allocations: 44894 KB)
UTF-16 convert to UTF-32: 65.375 microseconds (2000 allocations: 44925 KB)
UTF-32 convert to UTF-8: 69.241 microseconds (2000 allocations: 44894 KB)
UTF-32 convert to UTF-16: 65.290 microseconds (2000 allocations: 44909 KB)
2-byte:: Looping 1000 times, length=8
UTF-8: 12, UTF-16: 16, UTF-32: 32
UTF-8 length: 10.356 microseconds (0 allocations: 44800 KB)
UTF-16 length: 8.276 microseconds (0 allocations: 44800 KB)
UTF-32 length: 2.386 microseconds (0 allocations: 44800 KB)
UTF-8 valid: 10.441 microseconds (0 allocations: 44800 KB)
UTF-16 valid: 13.413 microseconds (0 allocations: 44800 KB)
UTF-32 valid: 9.571 microseconds (0 allocations: 44800 KB)
UTF-8 convert to UTF-16: 77.098 microseconds (2000 allocations: 44909 KB)
UTF-8 convert to UTF-32: 74.881 microseconds (2000 allocations: 44925 KB)
UTF-16 convert to UTF-8: 71.367 microseconds (2000 allocations: 44894 KB)
UTF-16 convert to UTF-32: 64.809 microseconds (2000 allocations: 44925 KB)
UTF-32 convert to UTF-8: 71.626 microseconds (2000 allocations: 44894 KB)
UTF-32 convert to UTF-16: 64.750 microseconds (2000 allocations: 44909 KB)
3-byte:: Looping 1000 times, length=8
UTF-8: 14, UTF-16: 16, UTF-32: 32
UTF-8 length: 12.251 microseconds (0 allocations: 44800 KB)
UTF-16 length: 8.325 microseconds (0 allocations: 44800 KB)
UTF-32 length: 2.358 microseconds (0 allocations: 44800 KB)
UTF-8 valid: 11.524 microseconds (0 allocations: 44800 KB)
UTF-16 valid: 13.392 microseconds (0 allocations: 44800 KB)
UTF-32 valid: 9.588 microseconds (0 allocations: 44800 KB)
UTF-8 convert to UTF-16: 79.505 microseconds (2000 allocations: 44909 KB)
UTF-8 convert to UTF-32: 80.865 microseconds (2000 allocations: 44925 KB)
UTF-16 convert to UTF-8: 69.914 microseconds (2000 allocations: 44894 KB)
UTF-16 convert to UTF-32: 65.801 microseconds (2000 allocations: 44925 KB)
UTF-32 convert to UTF-8: 72.285 microseconds (2000 allocations: 44894 KB)
UTF-32 convert to UTF-16: 64.144 microseconds (2000 allocations: 44909 KB)
4-byte:: Looping 1000 times, length=8
UTF-8: 15, UTF-16: 18, UTF-32: 32
UTF-8 length: 20.029 microseconds (0 allocations: 44800 KB)
UTF-16 length: 8.902 microseconds (0 allocations: 44800 KB)
UTF-32 length: 2.386 microseconds (0 allocations: 44800 KB)
UTF-8 valid: 12.310 microseconds (0 allocations: 44800 KB)
UTF-16 valid: 13.682 microseconds (0 allocations: 44800 KB)
UTF-32 valid: 9.569 microseconds (0 allocations: 44800 KB)
UTF-8 convert to UTF-16: 85.869 microseconds (2000 allocations: 44909 KB)
UTF-8 convert to UTF-32: 83.069 microseconds (2000 allocations: 44925 KB)
UTF-16 convert to UTF-8: 75.067 microseconds (2000 allocations: 44894 KB)
UTF-16 convert to UTF-32: 67.352 microseconds (2000 allocations: 44925 KB)
UTF-32 convert to UTF-8: 73.431 microseconds (2000 allocations: 44894 KB)
UTF-32 convert to UTF-16: 66.176 microseconds (2000 allocations: 44909 KB)
Surrogates:: Looping 1000 times, length=8
UTF-8: 17, UTF-16: 18, UTF-32: 32
UTF-8 length: 10.241 microseconds (0 allocations: 44800 KB)
UTF-16 length: 8.788 microseconds (0 allocations: 44800 KB)
UTF-32 length: 2.454 microseconds (0 allocations: 44800 KB)
UTF-8 valid: 11.541 microseconds (0 allocations: 44800 KB)
UTF-16 valid: 13.645 microseconds (0 allocations: 44800 KB)
UTF-32 valid: 9.581 microseconds (0 allocations: 44800 KB)
UTF-8 convert to UTF-16: 85.611 microseconds (2000 allocations: 44909 KB)
UTF-8 convert to UTF-32: 85.765 microseconds (2000 allocations: 44925 KB)
UTF-16 convert to UTF-8: 72.864 microseconds (2000 allocations: 44894 KB)
UTF-16 convert to UTF-32: 66.815 microseconds (2000 allocations: 44925 KB)
UTF-32 convert to UTF-8: 78.961 microseconds (2000 allocations: 44894 KB)
UTF-32 convert to UTF-16: 66.195 microseconds (2000 allocations: 44909 KB)
ASCII: Looping 1000 times, length=64
length: 2.468 microseconds (0 allocations: 44800 KB)
is_valid_ascii: 36.461 microseconds (0 allocations: 44800 KB)
Convert to UTF-8: 5.560 microseconds (1000 allocations: 44816 KB)
Convert to UTF-16: 133.459 microseconds (2000 allocations: 45019 KB)
Convert to UTF-32: 243.525 microseconds (2000 allocations: 45206 KB)
ASCII:: Looping 1000 times, length=64
UTF-8: 64, UTF-16: 128, UTF-32: 256
UTF-8 length: 26.647 microseconds (0 allocations: 44800 KB)
UTF-16 length: 24.942 microseconds (0 allocations: 44800 KB)
UTF-32 length: 2.376 microseconds (0 allocations: 44800 KB)
UTF-8 valid: 28.004 microseconds (0 allocations: 44800 KB)
UTF-16 valid: 75.270 microseconds (0 allocations: 44800 KB)
UTF-32 valid: 47.720 microseconds (0 allocations: 44800 KB)
UTF-8 convert to UTF-16: 224.435 microseconds (2000 allocations: 45019 KB)
UTF-8 convert to UTF-32: 358.687 microseconds (2000 allocations: 45206 KB)
UTF-16 convert to UTF-8: 249.318 microseconds (2000 allocations: 44956 KB)
UTF-16 convert to UTF-32: 367.579 microseconds (2000 allocations: 45206 KB)
UTF-32 convert to UTF-8: 215.956 microseconds (2000 allocations: 44956 KB)
UTF-32 convert to UTF-16: 238.344 microseconds (2000 allocations: 45019 KB)
Latin1:: Looping 1000 times, length=64
UTF-8: 84, UTF-16: 128, UTF-32: 256
UTF-8 length: 36.344 microseconds (0 allocations: 44800 KB)
UTF-16 length: 24.921 microseconds (0 allocations: 44800 KB)
UTF-32 length: 2.372 microseconds (0 allocations: 44800 KB)
UTF-8 valid: 51.274 microseconds (0 allocations: 44800 KB)
UTF-16 valid: 75.265 microseconds (0 allocations: 44800 KB)
UTF-32 valid: 46.748 microseconds (0 allocations: 44800 KB)
UTF-8 convert to UTF-16: 382.540 microseconds (2000 allocations: 45019 KB)
UTF-8 convert to UTF-32: 407.245 microseconds (2000 allocations: 45206 KB)
UTF-16 convert to UTF-8: 331.625 microseconds (2000 allocations: 44972 KB)
UTF-16 convert to UTF-32: 361.822 microseconds (2000 allocations: 45206 KB)
UTF-32 convert to UTF-8: 286.325 microseconds (2000 allocations: 44972 KB)
UTF-32 convert to UTF-16: 279.710 microseconds (2000 allocations: 45019 KB)
2-byte:: Looping 1000 times, length=64
UTF-8: 84, UTF-16: 128, UTF-32: 256
UTF-8 length: 36.187 microseconds (0 allocations: 44800 KB)
UTF-16 length: 26.731 microseconds (0 allocations: 44800 KB)
UTF-32 length: 2.364 microseconds (0 allocations: 44800 KB)
UTF-8 valid: 51.055 microseconds (0 allocations: 44800 KB)
UTF-16 valid: 75.998 microseconds (0 allocations: 44800 KB)
UTF-32 valid: 46.729 microseconds (0 allocations: 44800 KB)
UTF-8 convert to UTF-16: 392.255 microseconds (2000 allocations: 45019 KB)
UTF-8 convert to UTF-32: 417.400 microseconds (2000 allocations: 45206 KB)
UTF-16 convert to UTF-8: 314.465 microseconds (2000 allocations: 44972 KB)
UTF-16 convert to UTF-32: 354.299 microseconds (2000 allocations: 45206 KB)
UTF-32 convert to UTF-8: 291.419 microseconds (2000 allocations: 44972 KB)
UTF-32 convert to UTF-16: 260.591 microseconds (2000 allocations: 45019 KB)
3-byte:: Looping 1000 times, length=64
UTF-8: 92, UTF-16: 128, UTF-32: 256
UTF-8 length: 38.431 microseconds (0 allocations: 44800 KB)
UTF-16 length: 24.932 microseconds (0 allocations: 44800 KB)
UTF-32 length: 2.380 microseconds (0 allocations: 44800 KB)
UTF-8 valid: 60.853 microseconds (0 allocations: 44800 KB)
UTF-16 valid: 75.257 microseconds (0 allocations: 44800 KB)
UTF-32 valid: 47.462 microseconds (0 allocations: 44800 KB)
UTF-8 convert to UTF-16: 391.306 microseconds (2000 allocations: 45019 KB)
UTF-8 convert to UTF-32: 434.591 microseconds (2000 allocations: 45206 KB)
UTF-16 convert to UTF-8: 320.274 microseconds (2000 allocations: 44972 KB)
UTF-16 convert to UTF-32: 366.990 microseconds (2000 allocations: 45206 KB)
UTF-32 convert to UTF-8: 321.318 microseconds (2000 allocations: 44972 KB)
UTF-32 convert to UTF-16: 280.625 microseconds (2000 allocations: 45019 KB)
4-byte:: Looping 1000 times, length=64
UTF-8: 104, UTF-16: 144, UTF-32: 256
UTF-8 length: 40.649 microseconds (0 allocations: 44800 KB)
UTF-16 length: 34.216 microseconds (0 allocations: 44800 KB)
UTF-32 length: 2.400 microseconds (0 allocations: 44800 KB)
UTF-8 valid: 70.232 microseconds (0 allocations: 44800 KB)
UTF-16 valid: 94.414 microseconds (0 allocations: 44800 KB)
UTF-32 valid: 46.767 microseconds (0 allocations: 44800 KB)
UTF-8 convert to UTF-16: 454.473 microseconds (2000 allocations: 45034 KB)
UTF-8 convert to UTF-32: 476.431 microseconds (2000 allocations: 45206 KB)
UTF-16 convert to UTF-8: 373.656 microseconds (2000 allocations: 44988 KB)
UTF-16 convert to UTF-32: 434.569 microseconds (2000 allocations: 45206 KB)
UTF-32 convert to UTF-8: 3.018 milliseconds (2000 allocations: 44988 KB, 90.24% gc time)
UTF-32 convert to UTF-16: 255.895 microseconds (2000 allocations: 45034 KB)
Surrogates:: Looping 1000 times, length=64
UTF-8: 120, UTF-16: 144, UTF-32: 256
UTF-8 length: 46.567 microseconds (0 allocations: 44800 KB)
UTF-16 length: 28.044 microseconds (0 allocations: 44800 KB)
UTF-32 length: 2.399 microseconds (0 allocations: 44800 KB)
UTF-8 valid: 14.147 microseconds (0 allocations: 44800 KB)
UTF-16 valid: 97.204 microseconds (0 allocations: 44800 KB)
UTF-32 valid: 46.748 microseconds (0 allocations: 44800 KB)
UTF-8 convert to UTF-16: 445.889 microseconds (2000 allocations: 45034 KB)
UTF-8 convert to UTF-32: 370.093 microseconds (2000 allocations: 45206 KB)
UTF-16 convert to UTF-8: 337.686 microseconds (2000 allocations: 44988 KB)
UTF-16 convert to UTF-32: 255.674 microseconds (2000 allocations: 45206 KB)
UTF-32 convert to UTF-8: 338.222 microseconds (2000 allocations: 44988 KB)
UTF-32 convert to UTF-16: 348.884 microseconds (2000 allocations: 45034 KB)
ASCII: Looping 1000 times, length=256
length: 2.539 microseconds (0 allocations: 44800 KB)
is_valid_ascii: 120.925 microseconds (0 allocations: 44800 KB)
Convert to UTF-8: 6.082 microseconds (1000 allocations: 44816 KB)
Convert to UTF-16: 324.676 microseconds (2000 allocations: 45425 KB)
Convert to UTF-32: 570.845 microseconds (2000 allocations: 45956 KB)
ASCII:: Looping 1000 times, length=256
UTF-8: 256, UTF-16: 512, UTF-32: 1024
UTF-8 length: 110.034 microseconds (0 allocations: 44800 KB)
UTF-16 length: 91.620 microseconds (0 allocations: 44800 KB)
UTF-32 length: 2.430 microseconds (0 allocations: 44800 KB)
UTF-8 valid: 125.673 microseconds (0 allocations: 44800 KB)
UTF-16 valid: 252.540 microseconds (0 allocations: 44800 KB)
UTF-32 valid: 124.923 microseconds (0 allocations: 44800 KB)
UTF-8 convert to UTF-16: 711.333 microseconds (2000 allocations: 45425 KB)
UTF-8 convert to UTF-32: 1.080 milliseconds (2000 allocations: 45956 KB)
UTF-16 convert to UTF-8: 705.635 microseconds (2000 allocations: 45206 KB)
UTF-16 convert to UTF-32: 1.069 milliseconds (2000 allocations: 45956 KB)
UTF-32 convert to UTF-8: 510.431 microseconds (2000 allocations: 45206 KB)
UTF-32 convert to UTF-16: 724.273 microseconds (2000 allocations: 45425 KB)
Latin1:: Looping 1000 times, length=256
UTF-8: 336, UTF-16: 512, UTF-32: 1024
UTF-8 length: 128.007 microseconds (0 allocations: 44800 KB)
UTF-16 length: 95.332 microseconds (0 allocations: 44800 KB)
UTF-32 length: 2.513 microseconds (0 allocations: 44800 KB)
UTF-8 valid: 202.570 microseconds (0 allocations: 44800 KB)
UTF-16 valid: 252.481 microseconds (0 allocations: 44800 KB)
UTF-32 valid: 131.729 microseconds (0 allocations: 44800 KB)
UTF-8 convert to UTF-16: 1.385 milliseconds (2000 allocations: 45425 KB)
UTF-8 convert to UTF-32: 1.331 milliseconds (2000 allocations: 45956 KB)
UTF-16 convert to UTF-8: 1.042 milliseconds (2000 allocations: 45253 KB)
UTF-16 convert to UTF-32: 1.063 milliseconds (2000 allocations: 45956 KB)
UTF-32 convert to UTF-8: 926.915 microseconds (2000 allocations: 45253 KB)
UTF-32 convert to UTF-16: 789.607 microseconds (2000 allocations: 45425 KB)
2-byte:: Looping 1000 times, length=256
UTF-8: 336, UTF-16: 512, UTF-32: 1024
UTF-8 length: 132.529 microseconds (0 allocations: 44800 KB)
UTF-16 length: 93.956 microseconds (0 allocations: 44800 KB)
UTF-32 length: 2.384 microseconds (0 allocations: 44800 KB)
UTF-8 valid: 204.873 microseconds (0 allocations: 44800 KB)
UTF-16 valid: 254.685 microseconds (0 allocations: 44800 KB)
UTF-32 valid: 127.063 microseconds (0 allocations: 44800 KB)
UTF-8 convert to UTF-16: 1.369 milliseconds (2000 allocations: 45425 KB)
UTF-8 convert to UTF-32: 1.357 milliseconds (2000 allocations: 45956 KB)
UTF-16 convert to UTF-8: 1.068 milliseconds (2000 allocations: 45253 KB)
UTF-16 convert to UTF-32: 1.109 milliseconds (2000 allocations: 45956 KB)
UTF-32 convert to UTF-8: 1.058 milliseconds (2000 allocations: 45253 KB)
UTF-32 convert to UTF-16: 807.448 microseconds (2000 allocations: 45425 KB)
3-byte:: Looping 1000 times, length=256
UTF-8: 368, UTF-16: 512, UTF-32: 1024
UTF-8 length: 139.585 microseconds (0 allocations: 44800 KB)
UTF-16 length: 91.634 microseconds (0 allocations: 44800 KB)
UTF-32 length: 2.365 microseconds (0 allocations: 44800 KB)
UTF-8 valid: 224.159 microseconds (0 allocations: 44800 KB)
UTF-16 valid: 252.508 microseconds (0 allocations: 44800 KB)
UTF-32 valid: 139.799 microseconds (0 allocations: 44800 KB)
UTF-8 convert to UTF-16: 1.321 milliseconds (2000 allocations: 45425 KB)
UTF-8 convert to UTF-32: 1.394 milliseconds (2000 allocations: 45956 KB)
UTF-16 convert to UTF-8: 1.085 milliseconds (2000 allocations: 45253 KB)
UTF-16 convert to UTF-32: 1.058 milliseconds (2000 allocations: 45956 KB)
UTF-32 convert to UTF-8: 940.169 microseconds (2000 allocations: 45253 KB)
UTF-32 convert to UTF-16: 878.700 microseconds (2000 allocations: 45425 KB)
4-byte:: Looping 1000 times, length=256
UTF-8: 416, UTF-16: 576, UTF-32: 1024
UTF-8 length: 185.471 microseconds (0 allocations: 44800 KB)
UTF-16 length: 101.858 microseconds (0 allocations: 44800 KB)
UTF-32 length: 2.383 microseconds (0 allocations: 44800 KB)
UTF-8 valid: 253.720 microseconds (0 allocations: 44800 KB)
UTF-16 valid: 381.804 microseconds (0 allocations: 44800 KB)
UTF-32 valid: 127.584 microseconds (0 allocations: 44800 KB)
UTF-8 convert to UTF-16: 3.238 milliseconds (2000 allocations: 45472 KB, 58.51% gc time)
UTF-8 convert to UTF-32: 1.094 milliseconds (2000 allocations: 45956 KB)
UTF-16 convert to UTF-8: 1.217 milliseconds (2000 allocations: 45347 KB)
UTF-16 convert to UTF-32: 886.485 microseconds (2000 allocations: 45956 KB)
UTF-32 convert to UTF-8: 1.106 milliseconds (2000 allocations: 45347 KB)
UTF-32 convert to UTF-16: 1.064 milliseconds (2000 allocations: 45472 KB)
Surrogates:: Looping 1000 times, length=256
UTF-8: 480, UTF-16: 576, UTF-32: 1024
UTF-8 length: 180.399 microseconds (0 allocations: 44800 KB)
UTF-16 length: 101.809 microseconds (0 allocations: 44800 KB)
UTF-32 length: 2.528 microseconds (0 allocations: 44800 KB)
UTF-8 valid: 14.321 microseconds (0 allocations: 44800 KB)
UTF-16 valid: 370.775 microseconds (0 allocations: 44800 KB)
UTF-32 valid: 131.802 microseconds (0 allocations: 44800 KB)
UTF-8 convert to UTF-16: 1.575 milliseconds (2000 allocations: 45472 KB)
UTF-8 convert to UTF-32: 1.299 milliseconds (2000 allocations: 45956 KB)
UTF-16 convert to UTF-8: 1.260 milliseconds (2000 allocations: 45347 KB)
UTF-16 convert to UTF-32: 891.142 microseconds (2000 allocations: 45956 KB)
UTF-32 convert to UTF-8: 1.155 milliseconds (2000 allocations: 45347 KB)
UTF-32 convert to UTF-16: 1.039 milliseconds (2000 allocations: 45472 KB)
ASCII: Looping 1000 times, length=1024
length: 6.547 microseconds (1000 allocations: 44816 KB)
is_valid_ascii: 442.381 microseconds (0 allocations: 44800 KB)
Convert to UTF-8: 6.196 microseconds (1000 allocations: 44816 KB)
Convert to UTF-16: 481.275 microseconds (1000 allocations: 46909 KB)
Convert to UTF-32: 1.514 milliseconds (1000 allocations: 48909 KB)
ASCII:: Looping 1000 times, length=1024
UTF-8: 1024, UTF-16: 2048, UTF-32: 4096
UTF-8 length: 380.324 microseconds (1000 allocations: 44816 KB)
UTF-16 length: 341.286 microseconds (1000 allocations: 44816 KB)
UTF-32 length: 5.254 microseconds (1000 allocations: 44816 KB)
UTF-8 valid: 477.339 microseconds (0 allocations: 44800 KB)
UTF-16 valid: 962.763 microseconds (0 allocations: 44800 KB)
UTF-32 valid: 431.517 microseconds (0 allocations: 44800 KB)
UTF-8 convert to UTF-16: 2.555 milliseconds (1000 allocations: 46909 KB)
UTF-8 convert to UTF-32: 3.924 milliseconds (1000 allocations: 48909 KB)
UTF-16 convert to UTF-8: 5.559 milliseconds (2000 allocations: 45956 KB, 52.22% gc time)
UTF-16 convert to UTF-32: 2.675 milliseconds (1000 allocations: 48909 KB)
UTF-32 convert to UTF-8: 1.854 milliseconds (2000 allocations: 45956 KB)
UTF-32 convert to UTF-16: 2.009 milliseconds (1000 allocations: 46909 KB)
Latin1:: Looping 1000 times, length=1024
UTF-8: 1344, UTF-16: 2048, UTF-32: 4096
UTF-8 length: 497.362 microseconds (1000 allocations: 44816 KB)
UTF-16 length: 341.226 microseconds (1000 allocations: 44816 KB)
UTF-32 length: 8.626 microseconds (1000 allocations: 44816 KB)
UTF-8 valid: 786.213 microseconds (0 allocations: 44800 KB)
UTF-16 valid: 1.057 milliseconds (0 allocations: 44800 KB)
UTF-32 valid: 433.275 microseconds (0 allocations: 44800 KB)
UTF-8 convert to UTF-16: 5.311 milliseconds (1000 allocations: 46909 KB)
UTF-8 convert to UTF-32: 5.665 milliseconds (1000 allocations: 48909 KB)
UTF-16 convert to UTF-8: 4.666 milliseconds (2000 allocations: 46269 KB)
UTF-16 convert to UTF-32: 4.185 milliseconds (1000 allocations: 48909 KB)
UTF-32 convert to UTF-8: 3.940 milliseconds (2000 allocations: 46269 KB)
UTF-32 convert to UTF-16: 5.014 milliseconds (1000 allocations: 46909 KB, 36.03% gc time)
2-byte:: Looping 1000 times, length=1024
UTF-8: 1344, UTF-16: 2048, UTF-32: 4096
UTF-8 length: 502.871 microseconds (1000 allocations: 44816 KB)
UTF-16 length: 349.496 microseconds (1000 allocations: 44816 KB)
UTF-32 length: 7.379 microseconds (1000 allocations: 44816 KB)
UTF-8 valid: 786.515 microseconds (0 allocations: 44800 KB)
UTF-16 valid: 963.417 microseconds (0 allocations: 44800 KB)
UTF-32 valid: 435.038 microseconds (0 allocations: 44800 KB)
UTF-8 convert to UTF-16: 5.065 milliseconds (1000 allocations: 46909 KB)
UTF-8 convert to UTF-32: 5.118 milliseconds (1000 allocations: 48909 KB)
UTF-16 convert to UTF-8: 4.024 milliseconds (2000 allocations: 46269 KB)
UTF-16 convert to UTF-32: 3.385 milliseconds (1000 allocations: 48909 KB)
UTF-32 convert to UTF-8: 3.967 milliseconds (2000 allocations: 46269 KB)
UTF-32 convert to UTF-16: 2.316 milliseconds (1000 allocations: 46909 KB)
3-byte:: Looping 1000 times, length=1024
UTF-8: 1472, UTF-16: 2048, UTF-32: 4096
UTF-8 length: 546.174 microseconds (1000 allocations: 44816 KB)
UTF-16 length: 339.007 microseconds (1000 allocations: 44816 KB)
UTF-32 length: 5.793 microseconds (1000 allocations: 44816 KB)
UTF-8 valid: 871.324 microseconds (0 allocations: 44800 KB)
UTF-16 valid: 963.860 microseconds (0 allocations: 44800 KB)
UTF-32 valid: 432.085 microseconds (0 allocations: 44800 KB)
UTF-8 convert to UTF-16: 4.758 milliseconds (1000 allocations: 46909 KB)
UTF-8 convert to UTF-32: 8.179 milliseconds (1000 allocations: 48909 KB, 31.92% gc time)
UTF-16 convert to UTF-8: 3.966 milliseconds (2000 allocations: 46409 KB)
UTF-16 convert to UTF-32: 4.048 milliseconds (1000 allocations: 48909 KB)
UTF-32 convert to UTF-8: 3.589 milliseconds (2000 allocations: 46409 KB)
UTF-32 convert to UTF-16: 2.384 milliseconds (1000 allocations: 46909 KB)
4-byte:: Looping 1000 times, length=1024
UTF-8: 1664, UTF-16: 2304, UTF-32: 4096
UTF-8 length: 667.809 microseconds (1000 allocations: 44816 KB)
UTF-16 length: 422.502 microseconds (1000 allocations: 44816 KB)
UTF-32 length: 7.435 microseconds (1000 allocations: 44816 KB)
UTF-8 valid: 1.021 milliseconds (0 allocations: 44800 KB)
UTF-16 valid: 1.408 milliseconds (0 allocations: 44800 KB)
UTF-32 valid: 471.543 microseconds (0 allocations: 44800 KB)
UTF-8 convert to UTF-16: 4.697 milliseconds (1000 allocations: 47159 KB)
UTF-8 convert to UTF-32: 5.519 milliseconds (1000 allocations: 48909 KB)
UTF-16 convert to UTF-8: 4.102 milliseconds (2000 allocations: 46581 KB)
UTF-16 convert to UTF-32: 4.933 milliseconds (1000 allocations: 48909 KB)
UTF-32 convert to UTF-8: 10.727 milliseconds (2000 allocations: 46581 KB, 56.63% gc time)
UTF-32 convert to UTF-16: 3.314 milliseconds (1000 allocations: 47159 KB)
Surrogates:: Looping 1000 times, length=1024
UTF-8: 1920, UTF-16: 2304, UTF-32: 4096
UTF-8 length: 701.624 microseconds (1000 allocations: 44816 KB)
UTF-16 length: 424.936 microseconds (1000 allocations: 44816 KB)
UTF-32 length: 10.604 microseconds (1000 allocations: 44816 KB)
UTF-8 valid: 23.656 microseconds (0 allocations: 44800 KB)
UTF-16 valid: 1.440 milliseconds (0 allocations: 44800 KB)
UTF-32 valid: 472.550 microseconds (0 allocations: 44800 KB)
UTF-8 convert to UTF-16: 4.906 milliseconds (1000 allocations: 47159 KB)
UTF-8 convert to UTF-32: 5.442 milliseconds (1000 allocations: 48909 KB)
UTF-16 convert to UTF-8: 4.658 milliseconds (2000 allocations: 46581 KB)
UTF-16 convert to UTF-32: 4.210 milliseconds (1000 allocations: 48909 KB)
UTF-32 convert to UTF-8: 4.224 milliseconds (2000 allocations: 46581 KB)
UTF-32 convert to UTF-16: 3.123 milliseconds (1000 allocations: 47159 KB)
ASCII: Looping 1000 times, length=4096
length: 6.108 microseconds (1000 allocations: 44816 KB)
is_valid_ascii: 1.651 milliseconds (0 allocations: 44800 KB)
Convert to UTF-8: 4.743 microseconds (1000 allocations: 44816 KB)
Convert to UTF-16: 4.679 milliseconds (1000 allocations: 52909 KB, 68.72% gc time)
Convert to UTF-32: 5.860 milliseconds (3000 allocations: 60894 KB, 28.54% gc time)
ASCII:: Looping 1000 times, length=4096
UTF-8: 4096, UTF-16: 8192, UTF-32: 16384
UTF-8 length: 1.730 milliseconds (1000 allocations: 44816 KB)
UTF-16 length: 1.453 milliseconds (1000 allocations: 44816 KB)
UTF-32 length: 8.739 microseconds (1000 allocations: 44816 KB)
UTF-8 valid: 1.871 milliseconds (0 allocations: 44800 KB)
UTF-16 valid: 3.751 milliseconds (0 allocations: 44800 KB)
UTF-32 valid: 1.662 milliseconds (0 allocations: 44800 KB)
UTF-8 convert to UTF-16: 7.741 milliseconds (1000 allocations: 52909 KB)
UTF-8 convert to UTF-32: 13.016 milliseconds (3000 allocations: 60894 KB, 11.77% gc time)
UTF-16 convert to UTF-8: 10.288 milliseconds (1000 allocations: 48909 KB)
UTF-16 convert to UTF-32: 13.111 milliseconds (3000 allocations: 60894 KB)
UTF-32 convert to UTF-8: 8.076 milliseconds (1000 allocations: 48909 KB, 13.47% gc time)
UTF-32 convert to UTF-16: 8.180 milliseconds (1000 allocations: 52909 KB)
Latin1:: Looping 1000 times, length=4096
UTF-8: 5376, UTF-16: 8192, UTF-32: 16384
UTF-8 length: 1.923 milliseconds (1000 allocations: 44816 KB)
UTF-16 length: 1.308 milliseconds (1000 allocations: 44816 KB)
UTF-32 length: 17.326 microseconds (1000 allocations: 44816 KB)
UTF-8 valid: 3.246 milliseconds (0 allocations: 44800 KB)
UTF-16 valid: 4.408 milliseconds (0 allocations: 44800 KB)
UTF-32 valid: 1.851 milliseconds (0 allocations: 44800 KB)
UTF-8 convert to UTF-16: 17.572 milliseconds (1000 allocations: 52909 KB)
UTF-8 convert to UTF-32: 19.151 milliseconds (3000 allocations: 60894 KB, 14.51% gc time)
UTF-16 convert to UTF-8: 16.217 milliseconds (1000 allocations: 50159 KB)
UTF-16 convert to UTF-32: 15.764 milliseconds (3000 allocations: 60894 KB, 10.19% gc time)
UTF-32 convert to UTF-8: 14.454 milliseconds (1000 allocations: 50159 KB)
UTF-32 convert to UTF-16: 12.175 milliseconds (1000 allocations: 52909 KB, 19.30% gc time)
2-byte:: Looping 1000 times, length=4096
UTF-8: 5376, UTF-16: 8192, UTF-32: 16384
UTF-8 length: 1.959 milliseconds (1000 allocations: 44816 KB)
UTF-16 length: 1.313 milliseconds (1000 allocations: 44816 KB)
UTF-32 length: 8.700 microseconds (1000 allocations: 44816 KB)
UTF-8 valid: 3.129 milliseconds (0 allocations: 44800 KB)
UTF-16 valid: 4.571 milliseconds (0 allocations: 44800 KB)
UTF-32 valid: 1.714 milliseconds (0 allocations: 44800 KB)
UTF-8 convert to UTF-16: 20.068 milliseconds (1000 allocations: 52909 KB)
UTF-8 convert to UTF-32: 18.595 milliseconds (3000 allocations: 60894 KB, 13.32% gc time)
UTF-16 convert to UTF-8: 14.964 milliseconds (1000 allocations: 50159 KB)
UTF-16 convert to UTF-32: 12.746 milliseconds (3000 allocations: 60894 KB, 10.32% gc time)
UTF-32 convert to UTF-8: 14.152 milliseconds (1000 allocations: 50159 KB)
UTF-32 convert to UTF-16: 10.102 milliseconds (1000 allocations: 52909 KB)
3-byte:: Looping 1000 times, length=4096
UTF-8: 5888, UTF-16: 8192, UTF-32: 16384
UTF-8 length: 2.178 milliseconds (1000 allocations: 44816 KB)
UTF-16 length: 1.331 milliseconds (1000 allocations: 44816 KB)
UTF-32 length: 7.031 microseconds (1000 allocations: 44816 KB)
UTF-8 valid: 3.704 milliseconds (0 allocations: 44800 KB)
UTF-16 valid: 3.834 milliseconds (0 allocations: 44800 KB)
UTF-32 valid: 1.676 milliseconds (0 allocations: 44800 KB)
UTF-8 convert to UTF-16: 18.221 milliseconds (1000 allocations: 52909 KB, 10.00% gc time)
UTF-8 convert to UTF-32: 17.167 milliseconds (3000 allocations: 60894 KB)
UTF-16 convert to UTF-8: 19.116 milliseconds (1000 allocations: 50659 KB, 16.29% gc time)
UTF-16 convert to UTF-32: 11.985 milliseconds (3000 allocations: 60894 KB)
UTF-32 convert to UTF-8: 17.464 milliseconds (1000 allocations: 50659 KB, 15.69% gc time)
UTF-32 convert to UTF-16: 9.419 milliseconds (1000 allocations: 52909 KB)
4-byte:: Looping 1000 times, length=4096
UTF-8: 6656, UTF-16: 9216, UTF-32: 16384
UTF-8 length: 2.438 milliseconds (1000 allocations: 44816 KB)
UTF-16 length: 1.474 milliseconds (1000 allocations: 44816 KB)
UTF-32 length: 15.108 microseconds (1000 allocations: 44816 KB)
UTF-8 valid: 4.027 milliseconds (0 allocations: 44800 KB)
UTF-16 valid: 5.555 milliseconds (0 allocations: 44800 KB)
UTF-32 valid: 1.658 milliseconds (0 allocations: 44800 KB)
UTF-8 convert to UTF-16: 19.113 milliseconds (1000 allocations: 53909 KB)
UTF-8 convert to UTF-32: 19.384 milliseconds (3000 allocations: 60894 KB, 10.84% gc time)
UTF-16 convert to UTF-8: 16.824 milliseconds (1000 allocations: 51409 KB)
UTF-16 convert to UTF-32: 16.724 milliseconds (3000 allocations: 60894 KB, 15.45% gc time)
UTF-32 convert to UTF-8: 16.188 milliseconds (1000 allocations: 51409 KB)
UTF-32 convert to UTF-16: 16.151 milliseconds (1000 allocations: 53909 KB, 17.40% gc time)
Surrogates:: Looping 1000 times, length=4096
UTF-8: 7680, UTF-16: 9216, UTF-32: 16384
UTF-8 length: 2.792 milliseconds (1000 allocations: 44816 KB)
UTF-16 length: 1.467 milliseconds (1000 allocations: 44816 KB)
UTF-32 length: 7.582 microseconds (1000 allocations: 44816 KB)
UTF-8 valid: 14.308 microseconds (0 allocations: 44800 KB)
UTF-16 valid: 5.550 milliseconds (0 allocations: 44800 KB)
UTF-32 valid: 1.663 milliseconds (0 allocations: 44800 KB)
UTF-8 convert to UTF-16: 20.841 milliseconds (1000 allocations: 53909 KB)
UTF-8 convert to UTF-32: 21.366 milliseconds (3000 allocations: 60894 KB, 7.41% gc time)
UTF-16 convert to UTF-8: 16.704 milliseconds (1000 allocations: 51409 KB)
UTF-16 convert to UTF-32: 15.927 milliseconds (3000 allocations: 60894 KB, 11.79% gc time)
UTF-32 convert to UTF-8: 15.076 milliseconds (1000 allocations: 51409 KB)
UTF-32 convert to UTF-16: 17.348 milliseconds (1000 allocations: 53909 KB, 19.22% gc time)
ASCII: Looping 1000 times, length=16384
length: 9.406 microseconds (1000 allocations: 44816 KB)
is_valid_ascii: 7.413 milliseconds (0 allocations: 44800 KB)
Convert to UTF-8: 8.544 microseconds (1000 allocations: 44816 KB)
Convert to UTF-16: 5.933 milliseconds (3000 allocations: 76894 KB, 15.41% gc time)
Convert to UTF-32: 11.949 milliseconds (3000 allocations: 106 MB, 31.98% gc time)
ASCII:: Looping 1000 times, length=16384
UTF-8: 16384, UTF-16: 32768, UTF-32: 65536
UTF-8 length: 5.944 milliseconds (1000 allocations: 44816 KB)
UTF-16 length: 5.468 milliseconds (1000 allocations: 44816 KB)
UTF-32 length: 6.662 microseconds (1000 allocations: 44816 KB)
UTF-8 valid: 7.194 milliseconds (0 allocations: 44800 KB)
UTF-16 valid: 15.520 milliseconds (0 allocations: 44800 KB)
UTF-32 valid: 6.597 milliseconds (0 allocations: 44800 KB)
UTF-8 convert to UTF-16: 33.002 milliseconds (3000 allocations: 76894 KB, 4.67% gc time)
UTF-8 convert to UTF-32: 47.791 milliseconds (3000 allocations: 106 MB, 8.65% gc time)
UTF-16 convert to UTF-8: 43.738 milliseconds (3000 allocations: 60894 KB, 2.96% gc time)
UTF-16 convert to UTF-32: 53.771 milliseconds (3000 allocations: 106 MB, 9.62% gc time)
UTF-32 convert to UTF-8: 35.771 milliseconds (3000 allocations: 60894 KB, 6.62% gc time)
UTF-32 convert to UTF-16: 37.532 milliseconds (3000 allocations: 76894 KB, 3.07% gc time)
Latin1:: Looping 1000 times, length=16384
UTF-8: 21504, UTF-16: 32768, UTF-32: 65536
UTF-8 length: 7.615 milliseconds (1000 allocations: 44816 KB)
UTF-16 length: 5.127 milliseconds (1000 allocations: 44816 KB)
UTF-32 length: 7.861 microseconds (1000 allocations: 44816 KB)
UTF-8 valid: 12.136 milliseconds (0 allocations: 44800 KB)
UTF-16 valid: 14.928 milliseconds (0 allocations: 44800 KB)
UTF-32 valid: 6.261 milliseconds (0 allocations: 44800 KB)
UTF-8 convert to UTF-16: 74.770 milliseconds (3000 allocations: 76894 KB, 2.81% gc time)
UTF-8 convert to UTF-32: 69.961 milliseconds (3000 allocations: 106 MB, 7.67% gc time)
UTF-16 convert to UTF-8: 66.736 milliseconds (3000 allocations: 65894 KB, 3.32% gc time)
UTF-16 convert to UTF-32: 58.822 milliseconds (3000 allocations: 106 MB, 9.48% gc time)
UTF-32 convert to UTF-8: 57.994 milliseconds (3000 allocations: 65894 KB, 2.85% gc time)
UTF-32 convert to UTF-16: 41.203 milliseconds (3000 allocations: 76894 KB, 8.85% gc time)
2-byte:: Looping 1000 times, length=16384
UTF-8: 21504, UTF-16: 32768, UTF-32: 65536
UTF-8 length: 8.008 milliseconds (1000 allocations: 44816 KB)
UTF-16 length: 5.199 milliseconds (1000 allocations: 44816 KB)
UTF-32 length: 8.320 microseconds (1000 allocations: 44816 KB)
UTF-8 valid: 12.452 milliseconds (0 allocations: 44800 KB)
UTF-16 valid: 15.304 milliseconds (0 allocations: 44800 KB)
UTF-32 valid: 7.029 milliseconds (0 allocations: 44800 KB)
UTF-8 convert to UTF-16: 77.115 milliseconds (3000 allocations: 76894 KB, 1.56% gc time)
UTF-8 convert to UTF-32: 70.201 milliseconds (3000 allocations: 106 MB, 7.31% gc time)
UTF-16 convert to UTF-8: 65.182 milliseconds (3000 allocations: 65894 KB, 2.23% gc time)
UTF-16 convert to UTF-32: 52.382 milliseconds (3000 allocations: 106 MB, 9.21% gc time)
UTF-32 convert to UTF-8: 58.448 milliseconds (3000 allocations: 65894 KB, 4.05% gc time)
UTF-32 convert to UTF-16: 42.681 milliseconds (3000 allocations: 76894 KB, 6.96% gc time)
3-byte:: Looping 1000 times, length=16384
UTF-8: 23552, UTF-16: 32768, UTF-32: 65536
UTF-8 length: 8.821 milliseconds (1000 allocations: 44816 KB)
UTF-16 length: 5.394 milliseconds (1000 allocations: 44816 KB)
UTF-32 length: 12.443 microseconds (1000 allocations: 44816 KB)
UTF-8 valid: 14.511 milliseconds (0 allocations: 44800 KB)
UTF-16 valid: 15.591 milliseconds (0 allocations: 44800 KB)
UTF-32 valid: 6.637 milliseconds (0 allocations: 44800 KB)
UTF-8 convert to UTF-16: 71.324 milliseconds (3000 allocations: 76894 KB, 2.62% gc time)
UTF-8 convert to UTF-32: 72.442 milliseconds (3000 allocations: 106 MB, 5.34% gc time)
UTF-16 convert to UTF-8: 63.738 milliseconds (3000 allocations: 67894 KB, 2.07% gc time)
UTF-16 convert to UTF-32: 54.952 milliseconds (3000 allocations: 106 MB, 8.11% gc time)
UTF-32 convert to UTF-8: 58.361 milliseconds (3000 allocations: 67894 KB, 3.71% gc time)
UTF-32 convert to UTF-16: 42.072 milliseconds (3000 allocations: 76894 KB, 7.60% gc time)
4-byte:: Looping 1000 times, length=16384
UTF-8: 26624, UTF-16: 36864, UTF-32: 65536
UTF-8 length: 9.820 milliseconds (1000 allocations: 44816 KB)
UTF-16 length: 6.328 milliseconds (1000 allocations: 44816 KB)
UTF-32 length: 17.289 microseconds (1000 allocations: 44816 KB)
UTF-8 valid: 16.569 milliseconds (0 allocations: 44800 KB)
UTF-16 valid: 22.550 milliseconds (0 allocations: 44800 KB)
UTF-32 valid: 6.742 milliseconds (0 allocations: 44800 KB)
UTF-8 convert to UTF-16: 72.611 milliseconds (3000 allocations: 80894 KB, 0.90% gc time)
UTF-8 convert to UTF-32: 76.811 milliseconds (3000 allocations: 106 MB, 6.92% gc time)
UTF-16 convert to UTF-8: 69.101 milliseconds (3000 allocations: 70894 KB, 2.19% gc time)
UTF-16 convert to UTF-32: 60.614 milliseconds (3000 allocations: 106 MB, 7.12% gc time)
UTF-32 convert to UTF-8: 66.421 milliseconds (3000 allocations: 70894 KB, 1.92% gc time)
UTF-32 convert to UTF-16: 58.533 milliseconds (3000 allocations: 80894 KB, 7.14% gc time)
Surrogates:: Looping 1000 times, length=16384
UTF-8: 30720, UTF-16: 36864, UTF-32: 65536
UTF-8 length: 11.143 milliseconds (1000 allocations: 44816 KB)
UTF-16 length: 6.508 milliseconds (1000 allocations: 44816 KB)
UTF-32 length: 11.652 microseconds (1000 allocations: 44816 KB)
UTF-8 valid: 14.199 microseconds (0 allocations: 44800 KB)
UTF-16 valid: 22.665 milliseconds (0 allocations: 44800 KB)
UTF-32 valid: 7.577 milliseconds (0 allocations: 44800 KB)
UTF-8 convert to UTF-16: 82.996 milliseconds (3000 allocations: 80894 KB, 2.36% gc time)
UTF-8 convert to UTF-32: 84.403 milliseconds (3000 allocations: 106 MB, 5.94% gc time)
UTF-16 convert to UTF-8: 69.140 milliseconds (3000 allocations: 70894 KB, 4.31% gc time)
UTF-16 convert to UTF-32: 59.204 milliseconds (3000 allocations: 106 MB, 6.45% gc time)
UTF-32 convert to UTF-8: 65.528 milliseconds (3000 allocations: 70894 KB, 4.15% gc time)
UTF-32 convert to UTF-16: 55.844 milliseconds (3000 allocations: 80894 KB, 3.78% gc time)
ASCII: Looping 1000 times, length=65536
length: 13.149 microseconds (1000 allocations: 44816 KB)
is_valid_ascii: 27.706 milliseconds (0 allocations: 44800 KB)
Convert to UTF-8: 10.755 microseconds (1000 allocations: 44816 KB)
Convert to UTF-16: 53.355 milliseconds (3000 allocations: 169 MB, 15.25% gc time)
Convert to UTF-32: 90.267 milliseconds (3000 allocations: 294 MB, 14.94% gc time)
ASCII:: Looping 1000 times, length=65536
UTF-8: 65536, UTF-16: 131072, UTF-32: 262144
UTF-8 length: 25.684 milliseconds (1000 allocations: 44816 KB)
UTF-16 length: 22.091 milliseconds (1000 allocations: 44816 KB)
UTF-32 length: 9.569 microseconds (1000 allocations: 44816 KB)
UTF-8 valid: 29.428 milliseconds (0 allocations: 44800 KB)
UTF-16 valid: 65.172 milliseconds (0 allocations: 44800 KB)
UTF-32 valid: 27.839 milliseconds (0 allocations: 44800 KB)
UTF-8 convert to UTF-16: 175.121 milliseconds (3000 allocations: 169 MB, 7.53% gc time)
UTF-8 convert to UTF-32: 256 milliseconds (3000 allocations: 294 MB, 7.32% gc time)
UTF-16 convert to UTF-8: 178.305 milliseconds (3000 allocations: 106 MB, 2.83% gc time)
UTF-16 convert to UTF-32: 267.250 milliseconds (3000 allocations: 294 MB, 8.00% gc time)
UTF-32 convert to UTF-8: 125.022 milliseconds (3000 allocations: 106 MB, 4.12% gc time)
UTF-32 convert to UTF-16: 182.976 milliseconds (3000 allocations: 169 MB, 5.79% gc time)
Latin1:: Looping 1000 times, length=65536
UTF-8: 86016, UTF-16: 131072, UTF-32: 262144
UTF-8 length: 31.175 milliseconds (1000 allocations: 44816 KB)
UTF-16 length: 20.659 milliseconds (1000 allocations: 44816 KB)
UTF-32 length: 8.511 microseconds (1000 allocations: 44816 KB)
UTF-8 valid: 49.733 milliseconds (0 allocations: 44800 KB)
UTF-16 valid: 62.936 milliseconds (0 allocations: 44800 KB)
UTF-32 valid: 26.629 milliseconds (0 allocations: 44800 KB)
UTF-8 convert to UTF-16: 323.371 milliseconds (3000 allocations: 169 MB, 3.90% gc time)
UTF-8 convert to UTF-32: 336.028 milliseconds (3000 allocations: 294 MB, 5.80% gc time)
UTF-16 convert to UTF-8: 270.336 milliseconds (3000 allocations: 126 MB, 2.44% gc time)
UTF-16 convert to UTF-32: 277.037 milliseconds (3000 allocations: 294 MB, 6.64% gc time)
UTF-32 convert to UTF-8: 228.085 milliseconds (3000 allocations: 126 MB, 3.05% gc time)
UTF-32 convert to UTF-16: 203.111 milliseconds (3000 allocations: 169 MB, 5.75% gc time)
2-byte:: Looping 1000 times, length=65536
UTF-8: 86016, UTF-16: 131072, UTF-32: 262144
UTF-8 length: 31.677 milliseconds (1000 allocations: 44816 KB)
UTF-16 length: 21.562 milliseconds (1000 allocations: 44816 KB)
UTF-32 length: 7.889 microseconds (1000 allocations: 44816 KB)
UTF-8 valid: 51.154 milliseconds (0 allocations: 44800 KB)
UTF-16 valid: 62.582 milliseconds (0 allocations: 44800 KB)
UTF-32 valid: 30.419 milliseconds (0 allocations: 44800 KB)
UTF-8 convert to UTF-16: 344.448 milliseconds (3000 allocations: 169 MB, 3.72% gc time)
UTF-8 convert to UTF-32: 337.053 milliseconds (3000 allocations: 294 MB, 5.76% gc time)
UTF-16 convert to UTF-8: 256.400 milliseconds (3000 allocations: 126 MB, 2.58% gc time)
UTF-16 convert to UTF-32: 270.520 milliseconds (3000 allocations: 294 MB, 6.80% gc time)
UTF-32 convert to UTF-8: 240.133 milliseconds (3000 allocations: 126 MB, 2.64% gc time)
UTF-32 convert to UTF-16: 202.790 milliseconds (3000 allocations: 169 MB, 5.99% gc time)
3-byte:: Looping 1000 times, length=65536
UTF-8: 94208, UTF-16: 131072, UTF-32: 262144
UTF-8 length: 34.322 milliseconds (1000 allocations: 44816 KB)
UTF-16 length: 24.720 milliseconds (1000 allocations: 44816 KB)
UTF-32 length: 9.214 microseconds (1000 allocations: 44816 KB)
UTF-8 valid: 55.826 milliseconds (0 allocations: 44800 KB)
UTF-16 valid: 62.012 milliseconds (0 allocations: 44800 KB)
UTF-32 valid: 27.162 milliseconds (0 allocations: 44800 KB)
UTF-8 convert to UTF-16: 319.343 milliseconds (3000 allocations: 169 MB, 3.28% gc time)
UTF-8 convert to UTF-32: 350.549 milliseconds (3000 allocations: 294 MB, 6.00% gc time)
UTF-16 convert to UTF-8: 251.608 milliseconds (3000 allocations: 134 MB, 2.81% gc time)
UTF-16 convert to UTF-32: 268.249 milliseconds (3000 allocations: 294 MB, 6.73% gc time)
UTF-32 convert to UTF-8: 232.424 milliseconds (3000 allocations: 134 MB, 2.29% gc time)
UTF-32 convert to UTF-16: 223.178 milliseconds (3000 allocations: 169 MB, 5.46% gc time)
4-byte:: Looping 1000 times, length=65536
UTF-8: 106496, UTF-16: 147456, UTF-32: 262144
UTF-8 length: 45.429 milliseconds (1000 allocations: 44816 KB)
UTF-16 length: 29.631 milliseconds (1000 allocations: 44816 KB)
UTF-32 length: 8.654 microseconds (1000 allocations: 44816 KB)
UTF-8 valid: 68.237 milliseconds (0 allocations: 44800 KB)
UTF-16 valid: 93.670 milliseconds (0 allocations: 44800 KB)
UTF-32 valid: 29.066 milliseconds (0 allocations: 44800 KB)
UTF-8 convert to UTF-16: 343.378 milliseconds (3000 allocations: 184 MB, 3.44% gc time)
UTF-8 convert to UTF-32: 387.520 milliseconds (3000 allocations: 294 MB, 5.81% gc time)
UTF-16 convert to UTF-8: 284.912 milliseconds (3000 allocations: 145 MB, 2.34% gc time)
UTF-16 convert to UTF-32: 287.203 milliseconds (3000 allocations: 294 MB, 6.85% gc time)
UTF-32 convert to UTF-8: 251.517 milliseconds (3000 allocations: 145 MB, 2.83% gc time)
UTF-32 convert to UTF-16: 288.568 milliseconds (3000 allocations: 184 MB, 5.23% gc time)
Surrogates:: Looping 1000 times, length=65536
UTF-8: 122880, UTF-16: 147456, UTF-32: 262144
UTF-8 length: 50.513 milliseconds (1000 allocations: 44816 KB)
UTF-16 length: 25.448 milliseconds (1000 allocations: 44816 KB)
UTF-32 length: 20.775 microseconds (1000 allocations: 44816 KB)
UTF-8 valid: 24.591 microseconds (0 allocations: 44800 KB)
UTF-16 valid: 85.970 milliseconds (0 allocations: 44800 KB)
UTF-32 valid: 27.585 milliseconds (0 allocations: 44800 KB)
UTF-8 convert to UTF-16: 365.988 milliseconds (3000 allocations: 184 MB, 3.29% gc time)
UTF-8 convert to UTF-32: 413.218 milliseconds (3000 allocations: 294 MB, 5.16% gc time)
UTF-16 convert to UTF-8: 264.729 milliseconds (3000 allocations: 145 MB, 3.34% gc time)
UTF-16 convert to UTF-32: 309.639 milliseconds (3000 allocations: 294 MB, 6.27% gc time)
UTF-32 convert to UTF-8: 266.704 milliseconds (3000 allocations: 145 MB, 2.28% gc time)
UTF-32 convert to UTF-16: 262.426 milliseconds (3000 allocations: 184 MB, 5.17% gc time)
ASCII: Looping 1000 times, length=262144
length: 13.442 microseconds (1000 allocations: 44816 KB)
is_valid_ascii: 114.506 milliseconds (0 allocations: 44800 KB)
Convert to UTF-8: 29.036 microseconds (1000 allocations: 44816 KB)
Convert to UTF-16: 170.013 milliseconds (3000 allocations: 544 MB, 27.30% gc time)
Convert to UTF-32: 171.533 milliseconds (3000 allocations: 1044 MB, 13.95% gc time)
ASCII:: Looping 1000 times, length=262144
UTF-8: 262144, UTF-16: 524288, UTF-32: 1048576
UTF-8 length: 92.408 milliseconds (1000 allocations: 44816 KB)
UTF-16 length: 80.267 milliseconds (1000 allocations: 44816 KB)
UTF-32 length: 8.416 microseconds (1000 allocations: 44816 KB)
UTF-8 valid: 120.068 milliseconds (0 allocations: 44800 KB)
UTF-16 valid: 276.190 milliseconds (0 allocations: 44800 KB)
UTF-32 valid: 121.922 milliseconds (0 allocations: 44800 KB)
UTF-8 convert to UTF-16: 620.861 milliseconds (3000 allocations: 544 MB, 4.42% gc time)
UTF-8 convert to UTF-32: 833.246 milliseconds (3000 allocations: 1044 MB, 4.34% gc time)
UTF-16 convert to UTF-8: 819.308 milliseconds (3000 allocations: 294 MB, 2.26% gc time)
UTF-16 convert to UTF-32: 824.531 milliseconds (3000 allocations: 1044 MB, 4.23% gc time)
UTF-32 convert to UTF-8: 570.984 milliseconds (3000 allocations: 294 MB, 3.09% gc time)
UTF-32 convert to UTF-16: 675.103 milliseconds (3000 allocations: 544 MB, 3.83% gc time)
Latin1:: Looping 1000 times, length=262144
UTF-8: 344064, UTF-16: 524288, UTF-32: 1048576
UTF-8 length: 139.408 milliseconds (1000 allocations: 44816 KB)
UTF-16 length: 95.954 milliseconds (1000 allocations: 44816 KB)
UTF-32 length: 11.856 microseconds (1000 allocations: 44816 KB)
UTF-8 valid: 191.395 milliseconds (0 allocations: 44800 KB)
UTF-16 valid: 262.342 milliseconds (0 allocations: 44800 KB)
UTF-32 valid: 127.232 milliseconds (0 allocations: 44800 KB)
UTF-8 convert to UTF-16: 1.187 seconds (3000 allocations: 544 MB, 2.12% gc time)
UTF-8 convert to UTF-32: 1.081 seconds (3000 allocations: 1044 MB, 3.27% gc time)
UTF-16 convert to UTF-8: 1.152 seconds (3000 allocations: 372 MB, 1.76% gc time)
UTF-16 convert to UTF-32: 924.237 milliseconds (3000 allocations: 1044 MB, 4.07% gc time)
UTF-32 convert to UTF-8: 979.073 milliseconds (3000 allocations: 372 MB, 2.14% gc time)
UTF-32 convert to UTF-16: 733.824 milliseconds (3000 allocations: 544 MB, 3.62% gc time)
2-byte:: Looping 1000 times, length=262144
UTF-8: 344064, UTF-16: 524288, UTF-32: 1048576
UTF-8 length: 128.287 milliseconds (1000 allocations: 44816 KB)
UTF-16 length: 86.274 milliseconds (1000 allocations: 44816 KB)
UTF-32 length: 9.884 microseconds (1000 allocations: 44816 KB)
UTF-8 valid: 210.456 milliseconds (0 allocations: 44800 KB)
UTF-16 valid: 260.627 milliseconds (0 allocations: 44800 KB)
UTF-32 valid: 119.137 milliseconds (0 allocations: 44800 KB)
UTF-8 convert to UTF-16: 1.292 seconds (3000 allocations: 544 MB, 2.00% gc time)
UTF-8 convert to UTF-32: 1.158 seconds (3000 allocations: 1044 MB, 3.10% gc time)
UTF-16 convert to UTF-8: 1.071 seconds (3000 allocations: 372 MB, 1.87% gc time)
UTF-16 convert to UTF-32: 840.890 milliseconds (3000 allocations: 1044 MB, 4.13% gc time)
UTF-32 convert to UTF-8: 978.108 milliseconds (3000 allocations: 372 MB, 1.91% gc time)
UTF-32 convert to UTF-16: 745.429 milliseconds (3000 allocations: 544 MB, 3.23% gc time)
3-byte:: Looping 1000 times, length=262144
UTF-8: 376832, UTF-16: 524288, UTF-32: 1048576
UTF-8 length: 144.043 milliseconds (1000 allocations: 44816 KB)
UTF-16 length: 96.867 milliseconds (1000 allocations: 44816 KB)
UTF-32 length: 13.502 microseconds (1000 allocations: 44816 KB)
UTF-8 valid: 230.405 milliseconds (0 allocations: 44800 KB)
UTF-16 valid: 246.666 milliseconds (0 allocations: 44800 KB)
UTF-32 valid: 122.173 milliseconds (0 allocations: 44800 KB)
UTF-8 convert to UTF-16: 1.198 seconds (3000 allocations: 544 MB, 1.92% gc time)
UTF-8 convert to UTF-32: 1.122 seconds (3000 allocations: 1044 MB, 2.94% gc time)
UTF-16 convert to UTF-8: 1.141 seconds (3000 allocations: 403 MB, 1.86% gc time)
UTF-16 convert to UTF-32: 908.295 milliseconds (3000 allocations: 1044 MB, 3.90% gc time)
UTF-32 convert to UTF-8: 994.575 milliseconds (3000 allocations: 403 MB, 2.05% gc time)
UTF-32 convert to UTF-16: 714.083 milliseconds (3000 allocations: 544 MB, 3.31% gc time)
4-byte:: Looping 1000 times, length=262144
UTF-8: 425984, UTF-16: 589824, UTF-32: 1048576
UTF-8 length: 149.138 milliseconds (1000 allocations: 44816 KB)
UTF-16 length: 90.196 milliseconds (1000 allocations: 44816 KB)
UTF-32 length: 8.331 microseconds (1000 allocations: 44816 KB)
UTF-8 valid: 243.528 milliseconds (0 allocations: 44800 KB)
UTF-16 valid: 388.248 milliseconds (0 allocations: 44800 KB)
UTF-32 valid: 128.774 milliseconds (0 allocations: 44800 KB)
UTF-8 convert to UTF-16: 1.410 seconds (3000 allocations: 606 MB, 2.01% gc time)
UTF-8 convert to UTF-32: 1.218 seconds (3000 allocations: 1044 MB, 2.81% gc time)
UTF-16 convert to UTF-8: 1.225 seconds (3000 allocations: 450 MB, 1.82% gc time)
UTF-16 convert to UTF-32: 1.047 seconds (3000 allocations: 1044 MB, 3.51% gc time)
UTF-32 convert to UTF-8: 1.161 seconds (3000 allocations: 450 MB, 1.96% gc time)
UTF-32 convert to UTF-16: 1.015 seconds (3000 allocations: 606 MB, 2.69% gc time)
Surrogates:: Looping 1000 times, length=262144
UTF-8: 491520, UTF-16: 589824, UTF-32: 1048576
UTF-8 length: 187.717 milliseconds (1000 allocations: 44816 KB)
UTF-16 length: 98.494 milliseconds (1000 allocations: 44816 KB)
UTF-32 length: 8.691 microseconds (1000 allocations: 44816 KB)
UTF-8 valid: 14.575 microseconds (0 allocations: 44800 KB)
UTF-16 valid: 379.473 milliseconds (0 allocations: 44800 KB)
UTF-32 valid: 113.586 milliseconds (0 allocations: 44800 KB)
UTF-8 convert to UTF-16: 1.440 seconds (3000 allocations: 606 MB, 1.79% gc time)
UTF-8 convert to UTF-32: 1.424 seconds (3000 allocations: 1044 MB, 2.50% gc time)
UTF-16 convert to UTF-8: 1.231 seconds (3000 allocations: 450 MB, 1.91% gc time)
UTF-16 convert to UTF-32: 1.049 seconds (3000 allocations: 1044 MB, 3.41% gc time)
UTF-32 convert to UTF-8: 1.259 seconds (3000 allocations: 450 MB, 2.13% gc time)
UTF-32 convert to UTF-16: 1.015 seconds (3000 allocations: 606 MB, 2.60% gc time)
ASCII: Looping 1000 times, length=1048576
length: 12.307 microseconds (1000 allocations: 44816 KB)
is_valid_ascii: 452.955 milliseconds (0 allocations: 44800 KB)
Convert to UTF-8: 35.669 microseconds (1000 allocations: 44816 KB)
Convert to UTF-16: 309.428 milliseconds (3000 allocations: 2044 MB, 24.75% gc time)
Convert to UTF-32: 776.145 milliseconds (3000 allocations: 4044 MB, 27.95% gc time)
ASCII:: Looping 1000 times, length=1048576
UTF-8: 1048576, UTF-16: 2097152, UTF-32: 4194304
UTF-8 length: 387.290 milliseconds (1000 allocations: 44816 KB)
UTF-16 length: 361.894 milliseconds (1000 allocations: 44816 KB)
UTF-32 length: 12.971 microseconds (1000 allocations: 44816 KB)
UTF-8 valid: 475.209 milliseconds (0 allocations: 44800 KB)
UTF-16 valid: 1.185 seconds (0 allocations: 44800 KB)
UTF-32 valid: 537.146 milliseconds (0 allocations: 44800 KB)
UTF-8 convert to UTF-16: 2.322 seconds (3000 allocations: 2044 MB, 5.34% gc time)
UTF-8 convert to UTF-32: 3.358 seconds (3000 allocations: 4044 MB, 9.38% gc time)
UTF-16 convert to UTF-8: 2.848 seconds (3000 allocations: 1044 MB, 1.38% gc time)
UTF-16 convert to UTF-32: 3.389 seconds (3000 allocations: 4044 MB, 7.53% gc time)
UTF-32 convert to UTF-8: 2.051 seconds (3000 allocations: 1044 MB, 1.79% gc time)
UTF-32 convert to UTF-16: 2.364 seconds (3000 allocations: 2044 MB, 4.75% gc time)
Latin1:: Looping 1000 times, length=1048576
UTF-8: 1376256, UTF-16: 2097152, UTF-32: 4194304
UTF-8 length: 570.999 milliseconds (1000 allocations: 44816 KB)
UTF-16 length: 397.843 milliseconds (1000 allocations: 44816 KB)
UTF-32 length: 13.579 microseconds (1000 allocations: 44816 KB)
UTF-8 valid: 882.339 milliseconds (0 allocations: 44800 KB)
UTF-16 valid: 1.170 seconds (0 allocations: 44800 KB)
UTF-32 valid: 538.697 milliseconds (0 allocations: 44800 KB)
UTF-8 convert to UTF-16: 4.946 seconds (3000 allocations: 2044 MB, 2.26% gc time)
UTF-8 convert to UTF-32: 4.424 seconds (3000 allocations: 4044 MB, 5.59% gc time)
UTF-16 convert to UTF-8: 4.562 seconds (3000 allocations: 1356 MB, 1.30% gc time)
UTF-16 convert to UTF-32: 3.804 seconds (3000 allocations: 4044 MB, 6.52% gc time)
UTF-32 convert to UTF-8: 3.669 seconds (3000 allocations: 1356 MB, 1.45% gc time)
UTF-32 convert to UTF-16: 2.695 seconds (3000 allocations: 2044 MB, 4.89% gc time)
2-byte:: Looping 1000 times, length=1048576
UTF-8: 1376256, UTF-16: 2097152, UTF-32: 4194304
UTF-8 length: 498.516 milliseconds (1000 allocations: 44816 KB)
UTF-16 length: 360.116 milliseconds (1000 allocations: 44816 KB)
UTF-32 length: 9.809 microseconds (1000 allocations: 44816 KB)
UTF-8 valid: 842.175 milliseconds (0 allocations: 44800 KB)
UTF-16 valid: 1.043 seconds (0 allocations: 44800 KB)
UTF-32 valid: 481.397 milliseconds (0 allocations: 44800 KB)
UTF-8 convert to UTF-16: 5.235 seconds (3000 allocations: 2044 MB, 2.47% gc time)
UTF-8 convert to UTF-32: 4.780 seconds (3000 allocations: 4044 MB, 7.00% gc time)
UTF-16 convert to UTF-8: 4.282 seconds (3000 allocations: 1356 MB, 1.54% gc time)
UTF-16 convert to UTF-32: 3.415 seconds (3000 allocations: 4044 MB, 8.22% gc time)
UTF-32 convert to UTF-8: 3.814 seconds (3000 allocations: 1356 MB, 1.62% gc time)
UTF-32 convert to UTF-16: 2.774 seconds (3000 allocations: 2044 MB, 4.56% gc time)
3-byte:: Looping 1000 times, length=1048576
UTF-8: 1507328, UTF-16: 2097152, UTF-32: 4194304
UTF-8 length: 564.484 milliseconds (1000 allocations: 44816 KB)
UTF-16 length: 339.752 milliseconds (1000 allocations: 44816 KB)
UTF-32 length: 12.989 microseconds (1000 allocations: 44816 KB)
UTF-8 valid: 935.281 milliseconds (0 allocations: 44800 KB)
UTF-16 valid: 1.083 seconds (0 allocations: 44800 KB)
UTF-32 valid: 485.934 milliseconds (0 allocations: 44800 KB)
UTF-8 convert to UTF-16: 4.681 seconds (3000 allocations: 2044 MB, 2.67% gc time)
UTF-8 convert to UTF-32: 4.918 seconds (3000 allocations: 4044 MB, 6.95% gc time)
UTF-16 convert to UTF-8: 3.941 seconds (3000 allocations: 1481 MB, 2.33% gc time)
UTF-16 convert to UTF-32: 3.394 seconds (3000 allocations: 4044 MB, 7.82% gc time)
UTF-32 convert to UTF-8: 3.489 seconds (3000 allocations: 1481 MB, 1.99% gc time)
UTF-32 convert to UTF-16: 2.451 seconds (3000 allocations: 2044 MB, 4.14% gc time)
4-byte:: Looping 1000 times, length=1048576
UTF-8: 1703936, UTF-16: 2359296, UTF-32: 4194304
UTF-8 length: 607.903 milliseconds (1000 allocations: 44816 KB)
UTF-16 length: 400.159 milliseconds (1000 allocations: 44816 KB)
UTF-32 length: 8.528 microseconds (1000 allocations: 44816 KB)
UTF-8 valid: 1.005 seconds (0 allocations: 44800 KB)
UTF-16 valid: 1.396 seconds (0 allocations: 44800 KB)
UTF-32 valid: 415.230 milliseconds (0 allocations: 44800 KB)
UTF-8 convert to UTF-16: 4.646 seconds (3000 allocations: 2294 MB, 3.16% gc time)
UTF-8 convert to UTF-32: 4.517 seconds (3000 allocations: 4044 MB, 5.94% gc time)
UTF-16 convert to UTF-8: 4.161 seconds (3000 allocations: 1669 MB, 2.41% gc time)
UTF-16 convert to UTF-32: 3.660 seconds (3000 allocations: 4044 MB, 6.13% gc time)
UTF-32 convert to UTF-8: 3.971 seconds (3000 allocations: 1669 MB, 3.14% gc time)
UTF-32 convert to UTF-16: 3.296 seconds (3000 allocations: 2294 MB, 3.09% gc time)
Surrogates:: Looping 1000 times, length=1048576
UTF-8: 1966080, UTF-16: 2359296, UTF-32: 4194304
UTF-8 length: 691.128 milliseconds (1000 allocations: 44816 KB)
UTF-16 length: 375.694 milliseconds (1000 allocations: 44816 KB)
UTF-32 length: 8.421 microseconds (1000 allocations: 44816 KB)
UTF-8 valid: 24.838 microseconds (0 allocations: 44800 KB)
UTF-16 valid: 1.458 seconds (0 allocations: 44800 KB)
UTF-32 valid: 450.137 milliseconds (0 allocations: 44800 KB)
UTF-8 convert to UTF-16: 5.174 seconds (3000 allocations: 2294 MB, 1.96% gc time)
UTF-8 convert to UTF-32: 5.236 seconds (3000 allocations: 4044 MB, 6.24% gc time)
UTF-16 convert to UTF-8: 4.160 seconds (3000 allocations: 1669 MB, 2.41% gc time)
UTF-16 convert to UTF-32: 3.631 seconds (3000 allocations: 4044 MB, 6.11% gc time)
UTF-32 convert to UTF-8: 3.994 seconds (3000 allocations: 1669 MB, 3.21% gc time)
UTF-32 convert to UTF-16: 3.311 seconds (3000 allocations: 2294 MB, 3.06% gc time)
ASCII: Looping 1000 times, length=4194304
length: 12.998 microseconds (1000 allocations: 44816 KB)
is_valid_ascii: 1.713 seconds (0 allocations: 44800 KB)
Convert to UTF-8: 13.551 microseconds (1000 allocations: 44816 KB)
Convert to UTF-16: 1.746 seconds (3000 allocations: 8044 MB, 29.42% gc time)
Convert to UTF-32: 3.619 seconds (3000 allocations: 16044 MB, 29.65% gc time)
ASCII:: Looping 1000 times, length=4194304
UTF-8: 4194304, UTF-16: 8388608, UTF-32: 16777216
UTF-8 length: 1.486 seconds (1000 allocations: 44816 KB)
UTF-16 length: 1.323 seconds (1000 allocations: 44816 KB)
UTF-32 length: 22.663 microseconds (1000 allocations: 44816 KB)
UTF-8 valid: 1.726 seconds (0 allocations: 44800 KB)
UTF-16 valid: 3.882 seconds (0 allocations: 44800 KB)
UTF-32 valid: 1.753 seconds (0 allocations: 44800 KB)
UTF-8 convert to UTF-16: 8.979 seconds (3000 allocations: 8044 MB, 8.71% gc time)
UTF-8 convert to UTF-32: 13.186 seconds (3000 allocations: 16044 MB, 11.67% gc time)
UTF-16 convert to UTF-8: 11.134 seconds (3000 allocations: 4044 MB, 3.79% gc time)
UTF-16 convert to UTF-32: 14.288 seconds (3000 allocations: 16044 MB, 11.68% gc time)
UTF-32 convert to UTF-8: 7.743 seconds (3000 allocations: 4044 MB, 3.30% gc time)
UTF-32 convert to UTF-16: 8.644 seconds (3000 allocations: 8044 MB, 4.29% gc time)
Latin1:: Looping 1000 times, length=4194304
UTF-8: 5505024, UTF-16: 8388608, UTF-32: 16777216
UTF-8 length: 1.954 seconds (1000 allocations: 44816 KB)
UTF-16 length: 1.331 seconds (1000 allocations: 44816 KB)
UTF-32 length: 22.435 microseconds (1000 allocations: 44816 KB)
UTF-8 valid: 3.077 seconds (0 allocations: 44800 KB)
UTF-16 valid: 3.820 seconds (0 allocations: 44800 KB)
UTF-32 valid: 1.821 seconds (0 allocations: 44800 KB)
UTF-8 convert to UTF-16: 18.658 seconds (3000 allocations: 8044 MB, 2.89% gc time)
UTF-8 convert to UTF-32: 17.595 seconds (3000 allocations: 16044 MB, 8.82% gc time)
UTF-16 convert to UTF-8: 17.989 seconds (3000 allocations: 5294 MB, 2.77% gc time)
UTF-16 convert to UTF-32: 16.245 seconds (3000 allocations: 16044 MB, 9.29% gc time)
UTF-32 convert to UTF-8: 13.932 seconds (3000 allocations: 5294 MB, 2.39% gc time)
UTF-32 convert to UTF-16: 9.626 seconds (3000 allocations: 8044 MB, 3.83% gc time)
2-byte:: Looping 1000 times, length=4194304
UTF-8: 5505024, UTF-16: 8388608, UTF-32: 16777216
UTF-8 length: 2.005 seconds (1000 allocations: 44816 KB)
UTF-16 length: 1.343 seconds (1000 allocations: 44816 KB)
UTF-32 length: 12.871 microseconds (1000 allocations: 44816 KB)
UTF-8 valid: 3.177 seconds (0 allocations: 44800 KB)
UTF-16 valid: 4.073 seconds (0 allocations: 44800 KB)
UTF-32 valid: 1.756 seconds (0 allocations: 44800 KB)
UTF-8 convert to UTF-16: 19.156 seconds (3000 allocations: 8044 MB, 2.83% gc time)
UTF-8 convert to UTF-32: 18.005 seconds (3000 allocations: 16044 MB, 8.64% gc time)
UTF-16 convert to UTF-8: 15.968 seconds (3000 allocations: 5294 MB, 3.11% gc time)
UTF-16 convert to UTF-32: 14.289 seconds (3000 allocations: 16044 MB, 11.62% gc time)
UTF-32 convert to UTF-8: 14.392 seconds (3000 allocations: 5294 MB, 2.43% gc time)
UTF-32 convert to UTF-16: 9.793 seconds (3000 allocations: 8044 MB, 3.79% gc time)
3-byte:: Looping 1000 times, length=4194304
UTF-8: 6029312, UTF-16: 8388608, UTF-32: 16777216
UTF-8 length: 2.155 seconds (1000 allocations: 44816 KB)
UTF-16 length: 1.323 seconds (1000 allocations: 44816 KB)
UTF-32 length: 22.365 microseconds (1000 allocations: 44816 KB)
UTF-8 valid: 3.463 seconds (0 allocations: 44800 KB)
UTF-16 valid: 3.945 seconds (0 allocations: 44800 KB)
UTF-32 valid: 1.803 seconds (0 allocations: 44800 KB)
UTF-8 convert to UTF-16: 17.372 seconds (3000 allocations: 8044 MB, 3.13% gc time)
UTF-8 convert to UTF-32: 19.023 seconds (3000 allocations: 16044 MB, 8.19% gc time)
UTF-16 convert to UTF-8: 16.203 seconds (3000 allocations: 5794 MB, 3.16% gc time)
UTF-16 convert to UTF-32: 14.995 seconds (3000 allocations: 16044 MB, 10.87% gc time)
UTF-32 convert to UTF-8: 14.244 seconds (3000 allocations: 5794 MB, 2.48% gc time)
UTF-32 convert to UTF-16: 9.893 seconds (3000 allocations: 8044 MB, 3.72% gc time)
4-byte:: Looping 1000 times, length=4194304
UTF-8: 6815744, UTF-16: 9437184, UTF-32: 16777216
UTF-8 length: 2.449 seconds (1000 allocations: 44816 KB)
UTF-16 length: 1.500 seconds (1000 allocations: 44816 KB)
UTF-32 length: 8.136 microseconds (1000 allocations: 44816 KB)
UTF-8 valid: 4.032 seconds (0 allocations: 44800 KB)
UTF-16 valid: 6.138 seconds (0 allocations: 44800 KB)
UTF-32 valid: 1.967 seconds (0 allocations: 44800 KB)
UTF-8 convert to UTF-16: 21.443 seconds (3000 allocations: 9044 MB, 6.14% gc time)
UTF-8 convert to UTF-32: 20.681 seconds (3000 allocations: 16044 MB, 8.00% gc time)
UTF-16 convert to UTF-8: 18.380 seconds (3000 allocations: 6544 MB, 3.31% gc time)
UTF-16 convert to UTF-32: 17.477 seconds (3000 allocations: 16044 MB, 9.25% gc time)
UTF-32 convert to UTF-8: 17.695 seconds (3000 allocations: 6544 MB, 3.03% gc time)
UTF-32 convert to UTF-16: 15.323 seconds (3000 allocations: 9044 MB, 6.09% gc time)
Surrogates:: Looping 1000 times, length=4194304
UTF-8: 7864320, UTF-16: 9437184, UTF-32: 16777216
UTF-8 length: 3.092 seconds (1000 allocations: 44816 KB)
UTF-16 length: 1.718 seconds (1000 allocations: 44816 KB)
UTF-32 length: 22.272 microseconds (1000 allocations: 44816 KB)
UTF-8 valid: 24.549 microseconds (0 allocations: 44800 KB)
UTF-16 valid: 6.158 seconds (0 allocations: 44800 KB)
UTF-32 valid: 1.956 seconds (0 allocations: 44800 KB)
UTF-8 convert to UTF-16: 21.869 seconds (3000 allocations: 9044 MB, 5.46% gc time)
UTF-8 convert to UTF-32: 22.859 seconds (3000 allocations: 16044 MB, 7.08% gc time)
UTF-16 convert to UTF-8: 18.804 seconds (3000 allocations: 6544 MB, 3.19% gc time)
UTF-16 convert to UTF-32: 17.600 seconds (3000 allocations: 16044 MB, 9.13% gc time)
UTF-32 convert to UTF-8: 16.368 seconds (3000 allocations: 6544 MB, 3.19% gc time)
UTF-32 convert to UTF-16: 14.063 seconds (3000 allocations: 9044 MB, 5.81% gc time)
ScottsRetinaMBP:j scott$ usr/bin/julia
_
_ _ _(_)_ | A fresh approach to technical computing
(_) | (_) (_) | Documentation: http://docs.julialang.org
_ _ _| |_ __ _ | Type "help()" for help.
| | | | | | |/ _` | |
| | |_| | | | (_| | | Version 0.4.0-dev+4717 (2015-05-11 01:32 UTC)
_/ |\__'_|_|_|\__'_| | spj/time/7e0ec1a* (fork: 13 commits, 4 days)
|__/ | x86_64-apple-darwin14.4.0
julia> include("/d/spj/perftest.jl")
""
julia> dotest(1,true)
ASCII: Looping 1 times, length=8
length: 639 nanoseconds (0 allocations: 44800 KB)
is_valid_ascii: 668 nanoseconds (0 allocations: 44800 KB)
Convert to UTF-8: 338 nanoseconds (1 allocation: 44800 KB)
Convert to UTF-16: 1.104 microseconds (5 allocations: 44800 KB)
Convert to UTF-32: 740 nanoseconds (2 allocations: 44800 KB)
ASCII:: Looping 1 times, length=8
UTF-8: 8, UTF-16: 16, UTF-32: 32
UTF-8 length: 531 nanoseconds (0 allocations: 44800 KB)
UTF-16 length: 562 nanoseconds (0 allocations: 44800 KB)
UTF-32 length: 263 nanoseconds (0 allocations: 44800 KB)
UTF-8 valid: 344 nanoseconds (0 allocations: 44800 KB)
UTF-16 valid: 474 nanoseconds (0 allocations: 44800 KB)
UTF-8 convert to UTF-16: 2.128 microseconds (5 allocations: 44800 KB)
UTF-8 convert to UTF-32: 752 nanoseconds (2 allocations: 44800 KB)
UTF-16 convert to UTF-8: 4.466 milliseconds (2539 allocations: 44905 KB)
UTF-16 convert to UTF-32: 735 nanoseconds (2 allocations: 44800 KB)
UTF-32 convert to UTF-8: 1.584 microseconds (5 allocations: 44800 KB)
UTF-32 convert to UTF-16: 983 nanoseconds (5 allocations: 44800 KB)
Latin1:: Looping 1 times, length=8
UTF-8: 10, UTF-16: 16, UTF-32: 32
UTF-8 length: 463 nanoseconds (0 allocations: 44800 KB)
UTF-16 length: 338 nanoseconds (0 allocations: 44800 KB)
UTF-32 length: 250 nanoseconds (0 allocations: 44800 KB)
UTF-8 valid: 495 nanoseconds (0 allocations: 44800 KB)
UTF-16 valid: 388 nanoseconds (0 allocations: 44800 KB)
UTF-8 convert to UTF-16: 1.620 microseconds (5 allocations: 44800 KB)
UTF-8 convert to UTF-32: 622 nanoseconds (2 allocations: 44800 KB)
UTF-16 convert to UTF-8: 2.566 microseconds (9 allocations: 44800 KB)
UTF-16 convert to UTF-32: 483 nanoseconds (2 allocations: 44800 KB)
UTF-32 convert to UTF-8: 1.048 microseconds (5 allocations: 44800 KB)
UTF-32 convert to UTF-16: 595 nanoseconds (5 allocations: 44800 KB)
2-byte:: Looping 1 times, length=8
UTF-8: 12, UTF-16: 16, UTF-32: 32
UTF-8 length: 298 nanoseconds (0 allocations: 44800 KB)
UTF-16 length: 275 nanoseconds (0 allocations: 44800 KB)
UTF-32 length: 218 nanoseconds (0 allocations: 44800 KB)
UTF-8 valid: 280 nanoseconds (0 allocations: 44800 KB)
UTF-16 valid: 282 nanoseconds (0 allocations: 44800 KB)
UTF-8 convert to UTF-16: 884 nanoseconds (5 allocations: 44800 KB)
UTF-8 convert to UTF-32: 567 nanoseconds (2 allocations: 44800 KB)
UTF-16 convert to UTF-8: 1.542 microseconds (11 allocations: 44800 KB)
UTF-16 convert to UTF-32: 427 nanoseconds (2 allocations: 44800 KB)
UTF-32 convert to UTF-8: 836 nanoseconds (5 allocations: 44800 KB)
UTF-32 convert to UTF-16: 510 nanoseconds (5 allocations: 44800 KB)
3-byte:: Looping 1 times, length=8
UTF-8: 14, UTF-16: 16, UTF-32: 32
UTF-8 length: 358 nanoseconds (0 allocations: 44800 KB)
UTF-16 length: 279 nanoseconds (0 allocations: 44800 KB)
UTF-32 length: 220 nanoseconds (0 allocations: 44800 KB)
UTF-8 valid: 333 nanoseconds (0 allocations: 44800 KB)
UTF-16 valid: 264 nanoseconds (0 allocations: 44800 KB)
UTF-8 convert to UTF-16: 867 nanoseconds (5 allocations: 44800 KB)
UTF-8 convert to UTF-32: 659 nanoseconds (2 allocations: 44800 KB)
UTF-16 convert to UTF-8: 1.576 microseconds (11 allocations: 44800 KB)
UTF-16 convert to UTF-32: 422 nanoseconds (2 allocations: 44800 KB)
UTF-32 convert to UTF-8: 1.011 microseconds (5 allocations: 44800 KB)
UTF-32 convert to UTF-16: 562 nanoseconds (5 allocations: 44800 KB)
4-byte:: Looping 1 times, length=8
UTF-8: 15, UTF-16: 18, UTF-32: 32
UTF-8 length: 286 nanoseconds (0 allocations: 44800 KB)
UTF-16 length: 298 nanoseconds (0 allocations: 44800 KB)
UTF-32 length: 236 nanoseconds (0 allocations: 44800 KB)
UTF-8 valid: 353 nanoseconds (0 allocations: 44800 KB)
UTF-16 valid: 295 nanoseconds (0 allocations: 44800 KB)
UTF-8 convert to UTF-16: 970 nanoseconds (5 allocations: 44800 KB)
UTF-8 convert to UTF-32: 664 nanoseconds (2 allocations: 44800 KB)
UTF-16 convert to UTF-8: 1.594 microseconds (12 allocations: 44800 KB)
UTF-16 convert to UTF-32: 479 nanoseconds (2 allocations: 44800 KB)
UTF-32 convert to UTF-8: 914 nanoseconds (5 allocations: 44800 KB)
UTF-32 convert to UTF-16: 688 nanoseconds (5 allocations: 44800 KB)
Surrogates:: Looping 1 times, length=9
UTF-8: 17, UTF-16: 18, UTF-32: 36
UTF-8 length: 362 nanoseconds (0 allocations: 44800 KB)
UTF-16 length: 278 nanoseconds (0 allocations: 44800 KB)
UTF-32 length: 223 nanoseconds (0 allocations: 44800 KB)
UTF-8 valid: 303 nanoseconds (0 allocations: 44800 KB)
UTF-16 valid: 279 nanoseconds (0 allocations: 44800 KB)
UTF-8 convert to UTF-16: 911 nanoseconds (5 allocations: 44800 KB)
UTF-8 convert to UTF-32: 641 nanoseconds (2 allocations: 44800 KB)
UTF-16 convert to UTF-8: 1.578 microseconds (12 allocations: 44800 KB)
UTF-16 convert to UTF-32: 448 nanoseconds (2 allocations: 44800 KB)
UTF-32 convert to UTF-8: 910 nanoseconds (5 allocations: 44800 KB)
UTF-32 convert to UTF-16: 583 nanoseconds (5 allocations: 44800 KB)
ASCII: Looping 1 times, length=64
length: 311 nanoseconds (0 allocations: 44800 KB)
is_valid_ascii: 383 nanoseconds (0 allocations: 44800 KB)
Convert to UTF-8: 354 nanoseconds (1 allocation: 44800 KB)
Convert to UTF-16: 1.177 microseconds (8 allocations: 44801 KB)
Convert to UTF-32: 499 nanoseconds (2 allocations: 44800 KB)
ASCII:: Looping 1 times, length=64
UTF-8: 64, UTF-16: 128, UTF-32: 256
UTF-8 length: 323 nanoseconds (0 allocations: 44800 KB)
UTF-16 length: 318 nanoseconds (0 allocations: 44800 KB)
UTF-32 length: 223 nanoseconds (0 allocations: 44800 KB)
UTF-8 valid: 305 nanoseconds (0 allocations: 44800 KB)
UTF-16 valid: 328 nanoseconds (0 allocations: 44800 KB)
UTF-8 convert to UTF-16: 1.371 microseconds (8 allocations: 44801 KB)
UTF-8 convert to UTF-32: 919 nanoseconds (2 allocations: 44800 KB)
UTF-16 convert to UTF-8: 2.987 microseconds (8 allocations: 44801 KB)
UTF-16 convert to UTF-32: 755 nanoseconds (2 allocations: 44800 KB)
UTF-32 convert to UTF-8: 1.416 microseconds (5 allocations: 44800 KB)
UTF-32 convert to UTF-16: 1.180 microseconds (8 allocations: 44801 KB)
Latin1:: Looping 1 times, length=64
UTF-8: 84, UTF-16: 128, UTF-32: 256
UTF-8 length: 329 nanoseconds (0 allocations: 44800 KB)
UTF-16 length: 298 nanoseconds (0 allocations: 44800 KB)
UTF-32 length: 221 nanoseconds (0 allocations: 44800 KB)
UTF-8 valid: 409 nanoseconds (0 allocations: 44800 KB)
UTF-16 valid: 318 nanoseconds (0 allocations: 44800 KB)
UTF-8 convert to UTF-16: 1.645 microseconds (8 allocations: 44801 KB)
UTF-8 convert to UTF-32: 974 nanoseconds (2 allocations: 44800 KB)
UTF-16 convert to UTF-8: 3.488 microseconds (9 allocations: 44801 KB)
UTF-16 convert to UTF-32: 667 nanoseconds (2 allocations: 44800 KB)
UTF-32 convert to UTF-8: 2.115 microseconds (5 allocations: 44801 KB)
UTF-32 convert to UTF-16: 1.036 microseconds (8 allocations: 44801 KB)
2-byte:: Looping 1 times, length=64
UTF-8: 84, UTF-16: 128, UTF-32: 256
UTF-8 length: 322 nanoseconds (0 allocations: 44800 KB)
UTF-16 length: 289 nanoseconds (0 allocations: 44800 KB)
UTF-32 length: 219 nanoseconds (0 allocations: 44800 KB)
UTF-8 valid: 348 nanoseconds (0 allocations: 44800 KB)
UTF-16 valid: 306 nanoseconds (0 allocations: 44800 KB)
UTF-8 convert to UTF-16: 1.416 microseconds (8 allocations: 44801 KB)
UTF-8 convert to UTF-32: 1.039 microseconds (2 allocations: 44800 KB)
UTF-16 convert to UTF-8: 3.545 microseconds (17 allocations: 44801 KB)
UTF-16 convert to UTF-32: 737 nanoseconds (2 allocations: 44800 KB)
UTF-32 convert to UTF-8: 1.964 microseconds (5 allocations: 44801 KB)
UTF-32 convert to UTF-16: 1.040 microseconds (8 allocations: 44801 KB)
3-byte:: Looping 1 times, length=64
UTF-8: 92, UTF-16: 128, UTF-32: 256
UTF-8 length: 313 nanoseconds (0 allocations: 44800 KB)
UTF-16 length: 284 nanoseconds (0 allocations: 44800 KB)
UTF-32 length: 223 nanoseconds (0 allocations: 44800 KB)
UTF-8 valid: 427 nanoseconds (0 allocations: 44800 KB)
UTF-16 valid: 305 nanoseconds (0 allocations: 44800 KB)
UTF-8 convert to UTF-16: 1.673 microseconds (8 allocations: 44801 KB)
UTF-8 convert to UTF-32: 1.155 microseconds (2 allocations: 44800 KB)
UTF-16 convert to UTF-8: 4.021 microseconds (17 allocations: 44801 KB)
UTF-16 convert to UTF-32: 656 nanoseconds (2 allocations: 44800 KB)
UTF-32 convert to UTF-8: 2.308 microseconds (5 allocations: 44801 KB)
UTF-32 convert to UTF-16: 1.012 microseconds (8 allocations: 44801 KB)
4-byte:: Looping 1 times, length=64
UTF-8: 104, UTF-16: 144, UTF-32: 256
UTF-8 length: 332 nanoseconds (0 allocations: 44800 KB)
UTF-16 length: 285 nanoseconds (0 allocations: 44800 KB)
UTF-32 length: 219 nanoseconds (0 allocations: 44800 KB)
UTF-8 valid: 442 nanoseconds (0 allocations: 44800 KB)
UTF-16 valid: 408 nanoseconds (0 allocations: 44800 KB)
UTF-8 convert to UTF-16: 1.931 microseconds (8 allocations: 44801 KB)
UTF-8 convert to UTF-32: 1.256 microseconds (2 allocations: 44800 KB)
UTF-16 convert to UTF-8: 4.284 microseconds (25 allocations: 44801 KB)
UTF-16 convert to UTF-32: 857 nanoseconds (2 allocations: 44800 KB)
UTF-32 convert to UTF-8: 9.680 microseconds (5 allocations: 44801 KB)
UTF-32 convert to UTF-16: 4.634 microseconds (8 allocations: 44801 KB)
Surrogates:: Looping 1 times, length=72
UTF-8: 120, UTF-16: 144, UTF-32: 288
UTF-8 length: 1.275 microseconds (0 allocations: 44800 KB)
UTF-16 length: 1.264 microseconds (0 allocations: 44800 KB)
UTF-32 length: 608 nanoseconds (0 allocations: 44800 KB)
UTF-8 valid: 817 nanoseconds (0 allocations: 44800 KB)
UTF-16 valid: 627 nanoseconds (0 allocations: 44800 KB)
UTF-8 convert to UTF-16: 4.376 microseconds (8 allocations: 44801 KB)
UTF-8 convert to UTF-32: 2.396 microseconds (2 allocations: 44800 KB)
UTF-16 convert to UTF-8: 7.452 microseconds (25 allocations: 44801 KB)
UTF-16 convert to UTF-32: 1.116 microseconds (2 allocations: 44800 KB)
UTF-32 convert to UTF-8: 3.561 microseconds (5 allocations: 44801 KB)
UTF-32 convert to UTF-16: 1.660 microseconds (8 allocations: 44801 KB)
ASCII: Looping 1 times, length=256
length: 571 nanoseconds (0 allocations: 44800 KB)
is_valid_ascii: 707 nanoseconds (0 allocations: 44800 KB)
Convert to UTF-8: 416 nanoseconds (1 allocation: 44800 KB)
Convert to UTF-16: 3.949 microseconds (10 allocations: 44802 KB)
Convert to UTF-32: 9.266 microseconds (2 allocations: 44801 KB)
ASCII:: Looping 1 times, length=256
UTF-8: 256, UTF-16: 512, UTF-32: 1024
UTF-8 length: 591 nanoseconds (0 allocations: 44800 KB)
UTF-16 length: 670 nanoseconds (0 allocations: 44800 KB)
UTF-32 length: 316 nanoseconds (0 allocations: 44800 KB)
UTF-8 valid: 533 nanoseconds (0 allocations: 44800 KB)
UTF-16 valid: 709 nanoseconds (0 allocations: 44800 KB)
UTF-8 convert to UTF-16: 5.468 microseconds (10 allocations: 44802 KB)
UTF-8 convert to UTF-32: 2.736 microseconds (2 allocations: 44801 KB)
UTF-16 convert to UTF-8: 11.330 microseconds (8 allocations: 44801 KB)
UTF-16 convert to UTF-32: 1.923 microseconds (2 allocations: 44801 KB)
UTF-32 convert to UTF-8: 5.535 microseconds (5 allocations: 44801 KB)
UTF-32 convert to UTF-16: 3.145 microseconds (10 allocations: 44802 KB)
Latin1:: Looping 1 times, length=256
UTF-8: 336, UTF-16: 512, UTF-32: 1024
UTF-8 length: 760 nanoseconds (0 allocations: 44800 KB)
UTF-16 length: 519 nanoseconds (0 allocations: 44800 KB)
UTF-32 length: 270 nanoseconds (0 allocations: 44800 KB)
UTF-8 valid: 1.041 microseconds (0 allocations: 44800 KB)
UTF-16 valid: 612 nanoseconds (0 allocations: 44800 KB)
UTF-8 convert to UTF-16: 5.268 microseconds (10 allocations: 44802 KB)
UTF-8 convert to UTF-32: 5.676 microseconds (2 allocations: 44801 KB)
UTF-16 convert to UTF-8: 12.901 microseconds (9 allocations: 44802 KB)
UTF-16 convert to UTF-32: 1.870 microseconds (2 allocations: 44801 KB)
UTF-32 convert to UTF-8: 7.129 microseconds (5 allocations: 44801 KB)
UTF-32 convert to UTF-16: 3.148 microseconds (10 allocations: 44802 KB)
2-byte:: Looping 1 times, length=256
UTF-8: 336, UTF-16: 512, UTF-32: 1024
UTF-8 length: 564 nanoseconds (0 allocations: 44800 KB)
UTF-16 length: 565 nanoseconds (0 allocations: 44800 KB)
UTF-32 length: 286 nanoseconds (0 allocations: 44800 KB)
UTF-8 valid: 844 nanoseconds (0 allocations: 44800 KB)
UTF-16 valid: 603 nanoseconds (0 allocations: 44800 KB)
UTF-8 convert to UTF-16: 4.970 microseconds (10 allocations: 44802 KB)
UTF-8 convert to UTF-32: 2.948 microseconds (2 allocations: 44801 KB)
UTF-16 convert to UTF-8: 13.563 microseconds (41 allocations: 44802 KB)
UTF-16 convert to UTF-32: 1.790 microseconds (2 allocations: 44801 KB)
UTF-32 convert to UTF-8: 6.919 microseconds (5 allocations: 44801 KB)
UTF-32 convert to UTF-16: 3.006 microseconds (10 allocations: 44802 KB)
3-byte:: Looping 1 times, length=256
UTF-8: 368, UTF-16: 512, UTF-32: 1024
UTF-8 length: 860 nanoseconds (0 allocations: 44800 KB)
UTF-16 length: 541 nanoseconds (0 allocations: 44800 KB)
UTF-32 length: 284 nanoseconds (0 allocations: 44800 KB)
UTF-8 valid: 1.036 microseconds (0 allocations: 44800 KB)
UTF-16 valid: 580 nanoseconds (0 allocations: 44800 KB)
UTF-8 convert to UTF-16: 5.090 microseconds (10 allocations: 44802 KB)
UTF-8 convert to UTF-32: 5.784 microseconds (2 allocations: 44801 KB)
UTF-16 convert to UTF-8: 12.646 microseconds (41 allocations: 44802 KB)
UTF-16 convert to UTF-32: 1.718 microseconds (2 allocations: 44801 KB)
UTF-32 convert to UTF-8: 7.026 microseconds (5 allocations: 44801 KB)
UTF-32 convert to UTF-16: 2.774 microseconds (10 allocations: 44802 KB)
4-byte:: Looping 1 times, length=256
UTF-8: 416, UTF-16: 576, UTF-32: 1024
UTF-8 length: 588 nanoseconds (0 allocations: 44800 KB)
UTF-16 length: 513 nanoseconds (0 allocations: 44800 KB)
UTF-32 length: 255 nanoseconds (0 allocations: 44800 KB)
UTF-8 valid: 918 nanoseconds (0 allocations: 44800 KB)
UTF-16 valid: 746 nanoseconds (0 allocations: 44800 KB)
UTF-8 convert to UTF-16: 5.559 microseconds (10 allocations: 44802 KB)
UTF-8 convert to UTF-32: 3.498 microseconds (2 allocations: 44801 KB)
UTF-16 convert to UTF-8: 13.391 microseconds (73 allocations: 44803 KB)
UTF-16 convert to UTF-32: 1.708 microseconds (2 allocations: 44801 KB)
UTF-32 convert to UTF-8: 7.959 microseconds (5 allocations: 44802 KB)
UTF-32 convert to UTF-16: 3.593 microseconds (10 allocations: 44802 KB)
Surrogates:: Looping 1 times, length=288
UTF-8: 480, UTF-16: 576, UTF-32: 1152
UTF-8 length: 690 nanoseconds (0 allocations: 44800 KB)
UTF-16 length: 555 nanoseconds (0 allocations: 44800 KB)
UTF-32 length: 258 nanoseconds (0 allocations: 44800 KB)
UTF-8 valid: 1.069 microseconds (0 allocations: 44800 KB)
UTF-16 valid: 690 nanoseconds (0 allocations: 44800 KB)
UTF-8 convert to UTF-16: 5.913 microseconds (10 allocations: 44802 KB)
UTF-8 convert to UTF-32: 6.257 microseconds (2 allocations: 44801 KB)
UTF-16 convert to UTF-8: 13.101 microseconds (73 allocations: 44803 KB)
UTF-16 convert to UTF-32: 1.668 microseconds (2 allocations: 44801 KB)
UTF-32 convert to UTF-8: 8.971 microseconds (5 allocations: 44802 KB)
UTF-32 convert to UTF-16: 2.999 microseconds (10 allocations: 44802 KB)
ASCII: Looping 1 times, length=1024
length: 277 nanoseconds (1 allocation: 44800 KB)
is_valid_ascii: 918 nanoseconds (0 allocations: 44800 KB)
Convert to UTF-8: 238 nanoseconds (1 allocation: 44800 KB)
Convert to UTF-16: 7.495 microseconds (10 allocations: 44808 KB)
Convert to UTF-32: 1.652 microseconds (1 allocation: 44804 KB)
ASCII:: Looping 1 times, length=1024
UTF-8: 1024, UTF-16: 2048, UTF-32: 4096
UTF-8 length: 789 nanoseconds (1 allocation: 44800 KB)
UTF-16 length: 719 nanoseconds (1 allocation: 44800 KB)
UTF-32 length: 255 nanoseconds (1 allocation: 44800 KB)
UTF-8 valid: 921 nanoseconds (0 allocations: 44800 KB)
UTF-16 valid: 1.272 microseconds (0 allocations: 44800 KB)
UTF-8 convert to UTF-16: 12.908 microseconds (10 allocations: 44808 KB)
UTF-8 convert to UTF-32: 7.257 microseconds (1 allocation: 44804 KB)
UTF-16 convert to UTF-8: 35.222 microseconds (9 allocations: 44803 KB)
UTF-16 convert to UTF-32: 5.055 microseconds (1 allocation: 44804 KB)
UTF-32 convert to UTF-8: 15.724 microseconds (5 allocations: 44802 KB)
UTF-32 convert to UTF-16: 8.639 microseconds (10 allocations: 44808 KB)
Latin1:: Looping 1 times, length=1024
UTF-8: 1344, UTF-16: 2048, UTF-32: 4096
UTF-8 length: 913 nanoseconds (1 allocation: 44800 KB)
UTF-16 length: 842 nanoseconds (1 allocation: 44800 KB)
UTF-32 length: 240 nanoseconds (1 allocation: 44800 KB)
UTF-8 valid: 2.151 microseconds (0 allocations: 44800 KB)
UTF-16 valid: 1.329 microseconds (0 allocations: 44800 KB)
UTF-8 convert to UTF-16: 15.516 microseconds (10 allocations: 44808 KB)
UTF-8 convert to UTF-32: 14.576 microseconds (1 allocation: 44804 KB)
UTF-16 convert to UTF-8: 39.751 microseconds (9 allocations: 44805 KB)
UTF-16 convert to UTF-32: 4.911 microseconds (1 allocation: 44804 KB)
UTF-32 convert to UTF-8: 21.353 microseconds (4 allocations: 44805 KB)
UTF-32 convert to UTF-16: 8.582 microseconds (10 allocations: 44808 KB)
2-byte:: Looping 1 times, length=1024
UTF-8: 1344, UTF-16: 2048, UTF-32: 4096
UTF-8 length: 824 nanoseconds (1 allocation: 44800 KB)
UTF-16 length: 740 nanoseconds (1 allocation: 44800 KB)
UTF-32 length: 269 nanoseconds (1 allocation: 44800 KB)
UTF-8 valid: 2.383 microseconds (0 allocations: 44800 KB)
UTF-16 valid: 1.263 microseconds (0 allocations: 44800 KB)
UTF-8 convert to UTF-16: 14.116 microseconds (10 allocations: 44808 KB)
UTF-8 convert to UTF-32: 8.571 microseconds (1 allocation: 44804 KB)
UTF-16 convert to UTF-8: 39.796 microseconds (137 allocations: 44807 KB)
UTF-16 convert to UTF-32: 4.695 microseconds (1 allocation: 44804 KB)
UTF-32 convert to UTF-8: 24.179 microseconds (4 allocations: 44805 KB)
UTF-32 convert to UTF-16: 8.667 microseconds (10 allocations: 44808 KB)
3-byte:: Looping 1 times, length=1024
UTF-8: 1472, UTF-16: 2048, UTF-32: 4096
UTF-8 length: 851 nanoseconds (1 allocation: 44800 KB)
UTF-16 length: 846 nanoseconds (1 allocation: 44800 KB)
UTF-32 length: 255 nanoseconds (1 allocation: 44800 KB)
UTF-8 valid: 2.222 microseconds (0 allocations: 44800 KB)
UTF-16 valid: 1.225 microseconds (0 allocations: 44800 KB)
UTF-8 convert to UTF-16: 15.405 microseconds (10 allocations: 44808 KB)
UTF-8 convert to UTF-32: 10.612 microseconds (1 allocation: 44804 KB)
UTF-16 convert to UTF-8: 41.196 microseconds (137 allocations: 44807 KB)
UTF-16 convert to UTF-32: 4.694 microseconds (1 allocation: 44804 KB)
UTF-32 convert to UTF-8: 21.832 microseconds (4 allocations: 44805 KB)
UTF-32 convert to UTF-16: 8.072 microseconds (10 allocations: 44808 KB)
4-byte:: Looping 1 times, length=1024
UTF-8: 1664, UTF-16: 2304, UTF-32: 4096
UTF-8 length: 918 nanoseconds (1 allocation: 44800 KB)
UTF-16 length: 809 nanoseconds (1 allocation: 44800 KB)
UTF-32 length: 219 nanoseconds (1 allocation: 44800 KB)
UTF-8 valid: 2.402 microseconds (0 allocations: 44800 KB)
UTF-16 valid: 1.748 microseconds (0 allocations: 44800 KB)
UTF-8 convert to UTF-16: 16.397 microseconds (10 allocations: 44808 KB)
UTF-8 convert to UTF-32: 10.797 microseconds (1 allocation: 44804 KB)
UTF-16 convert to UTF-8: 43.856 microseconds (265 allocations: 44810 KB)
UTF-16 convert to UTF-32: 4.716 microseconds (1 allocation: 44804 KB)
UTF-32 convert to UTF-8: 24.898 microseconds (4 allocations: 44805 KB)
UTF-32 convert to UTF-16: 9.406 microseconds (10 allocations: 44808 KB)
Surrogates:: Looping 1 times, length=1152
UTF-8: 1920, UTF-16: 2304, UTF-32: 4608
UTF-8 length: 1.083 microseconds (1 allocation: 44800 KB)
UTF-16 length: 745 nanoseconds (1 allocation: 44800 KB)
UTF-32 length: 219 nanoseconds (1 allocation: 44800 KB)
UTF-8 valid: 2.846 microseconds (0 allocations: 44800 KB)
UTF-16 valid: 1.681 microseconds (0 allocations: 44800 KB)
UTF-8 convert to UTF-16: 18.502 microseconds (10 allocations: 44808 KB)
UTF-8 convert to UTF-32: 11.896 microseconds (1 allocation: 44805 KB)
UTF-16 convert to UTF-8: 45.017 microseconds (265 allocations: 44810 KB)
UTF-16 convert to UTF-32: 4.673 microseconds (1 allocation: 44804 KB)
UTF-32 convert to UTF-8: 31.597 microseconds (4 allocations: 44806 KB)
UTF-32 convert to UTF-16: 9.143 microseconds (10 allocations: 44808 KB)
ASCII: Looping 1 times, length=4096
length: 266 nanoseconds (1 allocation: 44800 KB)
is_valid_ascii: 2.790 microseconds (0 allocations: 44800 KB)
Convert to UTF-8: 261 nanoseconds (1 allocation: 44800 KB)
Convert to UTF-16: 26.476 microseconds (10 allocations: 44832 KB)
Convert to UTF-32: 4.643 microseconds (3 allocations: 44816 KB)
ASCII:: Looping 1 times, length=4096
UTF-8: 4096, UTF-16: 8192, UTF-32: 16384
UTF-8 length: 1.798 microseconds (1 allocation: 44800 KB)
UTF-16 length: 1.618 microseconds (1 allocation: 44800 KB)
UTF-32 length: 221 nanoseconds (1 allocation: 44800 KB)
UTF-8 valid: 2.801 microseconds (0 allocations: 44800 KB)
UTF-16 valid: 4.059 microseconds (0 allocations: 44800 KB)
UTF-8 convert to UTF-16: 53.441 microseconds (10 allocations: 44832 KB)
UTF-8 convert to UTF-32: 26.329 microseconds (3 allocations: 44816 KB)
UTF-16 convert to UTF-8: 120.851 microseconds (7 allocations: 44808 KB)
UTF-16 convert to UTF-32: 17.325 microseconds (3 allocations: 44816 KB)
UTF-32 convert to UTF-8: 52.825 microseconds (3 allocations: 44808 KB)
UTF-32 convert to UTF-16: 28.693 microseconds (10 allocations: 44832 KB)
Latin1:: Looping 1 times, length=4096
UTF-8: 5376, UTF-16: 8192, UTF-32: 16384
UTF-8 length: 2.248 microseconds (1 allocation: 44800 KB)
UTF-16 length: 1.651 microseconds (1 allocation: 44800 KB)
UTF-32 length: 217 nanoseconds (1 allocation: 44800 KB)
UTF-8 valid: 7.460 microseconds (0 allocations: 44800 KB)
UTF-16 valid: 4.050 microseconds (0 allocations: 44800 KB)
UTF-8 convert to UTF-16: 52.058 microseconds (10 allocations: 44832 KB)
UTF-8 convert to UTF-32: 30.682 microseconds (3 allocations: 44816 KB)
UTF-16 convert to UTF-8: 148.248 microseconds (7 allocations: 44818 KB)
UTF-16 convert to UTF-32: 17.240 microseconds (3 allocations: 44816 KB)
UTF-32 convert to UTF-8: 78.901 microseconds (2 allocations: 44818 KB)
UTF-32 convert to UTF-16: 28.785 microseconds (10 allocations: 44832 KB)
2-byte:: Looping 1 times, length=4096
UTF-8: 5376, UTF-16: 8192, UTF-32: 16384
UTF-8 length: 2.322 microseconds (1 allocation: 44800 KB)
UTF-16 length: 1.804 microseconds (1 allocation: 44800 KB)
UTF-32 length: 209 nanoseconds (1 allocation: 44800 KB)
UTF-8 valid: 7.385 microseconds (0 allocations: 44800 KB)
UTF-16 valid: 4.033 microseconds (0 allocations: 44800 KB)
UTF-8 convert to UTF-16: 60.572 microseconds (10 allocations: 44832 KB)
UTF-8 convert to UTF-32: 30.857 microseconds (3 allocations: 44816 KB)
UTF-16 convert to UTF-8: 153.814 microseconds (519 allocations: 44826 KB)
UTF-16 convert to UTF-32: 17.197 microseconds (3 allocations: 44816 KB)
UTF-32 convert to UTF-8: 78.986 microseconds (2 allocations: 44818 KB)
UTF-32 convert to UTF-16: 28.968 microseconds (10 allocations: 44832 KB)
3-byte:: Looping 1 times, length=4096
UTF-8: 5888, UTF-16: 8192, UTF-32: 16384
UTF-8 length: 2.503 microseconds (1 allocation: 44800 KB)
UTF-16 length: 2.014 microseconds (1 allocation: 44800 KB)
UTF-32 length: 205 nanoseconds (1 allocation: 44800 KB)
UTF-8 valid: 7.812 microseconds (0 allocations: 44800 KB)
UTF-16 valid: 4.050 microseconds (0 allocations: 44800 KB)
UTF-8 convert to UTF-16: 56.133 microseconds (10 allocations: 44832 KB)
UTF-8 convert to UTF-32: 39.506 microseconds (3 allocations: 44816 KB)
UTF-16 convert to UTF-8: 158.524 microseconds (519 allocations: 44826 KB)
UTF-16 convert to UTF-32: 17.213 microseconds (3 allocations: 44816 KB)
UTF-32 convert to UTF-8: 84.496 microseconds (2 allocations: 44818 KB)
UTF-32 convert to UTF-16: 28.583 microseconds (10 allocations: 44832 KB)
4-byte:: Looping 1 times, length=4096
UTF-8: 6656, UTF-16: 9216, UTF-32: 16384
UTF-8 length: 2.786 microseconds (1 allocation: 44800 KB)
UTF-16 length: 1.808 microseconds (1 allocation: 44800 KB)
UTF-32 length: 218 nanoseconds (1 allocation: 44800 KB)
UTF-8 valid: 8.521 microseconds (0 allocations: 44800 KB)
UTF-16 valid: 5.833 microseconds (0 allocations: 44800 KB)
UTF-8 convert to UTF-16: 60.301 microseconds (10 allocations: 44832 KB)
UTF-8 convert to UTF-32: 39.716 microseconds (3 allocations: 44816 KB)
UTF-16 convert to UTF-8: 166.825 microseconds (1031 allocations: 44836 KB)
UTF-16 convert to UTF-32: 17.143 microseconds (3 allocations: 44816 KB)
UTF-32 convert to UTF-8: 95.970 microseconds (2 allocations: 44819 KB)
UTF-32 convert to UTF-16: 34.421 microseconds (10 allocations: 44832 KB)
Surrogates:: Looping 1 times, length=4608
UTF-8: 7680, UTF-16: 9216, UTF-32: 18432
UTF-8 length: 3.083 microseconds (1 allocation: 44800 KB)
UTF-16 length: 1.750 microseconds (1 allocation: 44800 KB)
UTF-32 length: 242 nanoseconds (1 allocation: 44800 KB)
UTF-8 valid: 10.369 microseconds (0 allocations: 44800 KB)
UTF-16 valid: 5.830 microseconds (0 allocations: 44800 KB)
UTF-8 convert to UTF-16: 67.098 microseconds (10 allocations: 44832 KB)
UTF-8 convert to UTF-32: 44.897 microseconds (3 allocations: 44818 KB)
UTF-16 convert to UTF-8: 167.850 microseconds (1031 allocations: 44836 KB)
UTF-16 convert to UTF-32: 16.871 microseconds (3 allocations: 44816 KB)
UTF-32 convert to UTF-8: 113.276 microseconds (2 allocations: 44821 KB)
UTF-32 convert to UTF-16: 32.421 microseconds (10 allocations: 44832 KB)
ASCII: Looping 1 times, length=16384
length: 253 nanoseconds (1 allocation: 44800 KB)
is_valid_ascii: 10.381 microseconds (0 allocations: 44800 KB)
Convert to UTF-8: 255 nanoseconds (1 allocation: 44800 KB)
Convert to UTF-16: 140.623 microseconds (10 allocations: 44929 KB)
Convert to UTF-32: 47.168 microseconds (3 allocations: 44864 KB)
ASCII:: Looping 1 times, length=16384
UTF-8: 16384, UTF-16: 32768, UTF-32: 65536
UTF-8 length: 6.254 microseconds (1 allocation: 44800 KB)
UTF-16 length: 6.029 microseconds (1 allocation: 44800 KB)
UTF-32 length: 226 nanoseconds (1 allocation: 44800 KB)
UTF-8 valid: 10.383 microseconds (0 allocations: 44800 KB)
UTF-16 valid: 15.527 microseconds (0 allocations: 44800 KB)
UTF-8 convert to UTF-16: 206.959 microseconds (10 allocations: 44929 KB)
UTF-8 convert to UTF-32: 122.648 microseconds (3 allocations: 44864 KB)
UTF-16 convert to UTF-8: 481.176 microseconds (11 allocations: 44832 KB)
UTF-16 convert to UTF-32: 86.356 microseconds (3 allocations: 44864 KB)
UTF-32 convert to UTF-8: 229.595 microseconds (7 allocations: 44832 KB)
UTF-32 convert to UTF-16: 139.503 microseconds (10 allocations: 44929 KB)
Latin1:: Looping 1 times, length=16384
UTF-8: 21504, UTF-16: 32768, UTF-32: 65536
UTF-8 length: 8.124 microseconds (1 allocation: 44800 KB)
UTF-16 length: 5.776 microseconds (1 allocation: 44800 KB)
UTF-32 length: 223 nanoseconds (1 allocation: 44800 KB)
UTF-8 valid: 28.613 microseconds (0 allocations: 44800 KB)
UTF-16 valid: 15.480 microseconds (0 allocations: 44800 KB)
UTF-8 convert to UTF-16: 232.275 microseconds (10 allocations: 44929 KB)
UTF-8 convert to UTF-32: 141.226 microseconds (3 allocations: 44864 KB)
UTF-16 convert to UTF-8: 604.301 microseconds (12 allocations: 44853 KB)
UTF-16 convert to UTF-32: 86.620 microseconds (3 allocations: 44864 KB)
UTF-32 convert to UTF-8: 325 microseconds (7 allocations: 44853 KB)
UTF-32 convert to UTF-16: 132.702 microseconds (10 allocations: 44929 KB)
2-byte:: Looping 1 times, length=16384
UTF-8: 21504, UTF-16: 32768, UTF-32: 65536
UTF-8 length: 8.245 microseconds (1 allocation: 44800 KB)
UTF-16 length: 6.232 microseconds (1 allocation: 44800 KB)
UTF-32 length: 234 nanoseconds (1 allocation: 44800 KB)
UTF-8 valid: 28.581 microseconds (0 allocations: 44800 KB)
UTF-16 valid: 15.501 microseconds (0 allocations: 44800 KB)
UTF-8 convert to UTF-16: 237.973 microseconds (10 allocations: 44929 KB)
UTF-8 convert to UTF-32: 140.451 microseconds (3 allocations: 44864 KB)
UTF-16 convert to UTF-8: 629.462 microseconds (2060 allocations: 44885 KB)
UTF-16 convert to UTF-32: 85.455 microseconds (3 allocations: 44864 KB)
UTF-32 convert to UTF-8: 325.915 microseconds (7 allocations: 44853 KB)
UTF-32 convert to UTF-16: 171.304 microseconds (10 allocations: 44929 KB)
3-byte:: Looping 1 times, length=16384
UTF-8: 23552, UTF-16: 32768, UTF-32: 65536
UTF-8 length: 8.909 microseconds (1 allocation: 44800 KB)
UTF-16 length: 6.318 microseconds (1 allocation: 44800 KB)
UTF-32 length: 214 nanoseconds (1 allocation: 44800 KB)
UTF-8 valid: 30.172 microseconds (0 allocations: 44800 KB)
UTF-16 valid: 15.515 microseconds (0 allocations: 44800 KB)
UTF-8 convert to UTF-16: 251.634 microseconds (10 allocations: 44929 KB)
UTF-8 convert to UTF-32: 177.571 microseconds (3 allocations: 44864 KB)
UTF-16 convert to UTF-8: 645.551 microseconds (2060 allocations: 44887 KB)
UTF-16 convert to UTF-32: 86.798 microseconds (3 allocations: 44864 KB)
UTF-32 convert to UTF-8: 362.415 microseconds (7 allocations: 44855 KB)
UTF-32 convert to UTF-16: 134.265 microseconds (10 allocations: 44929 KB)
4-byte:: Looping 1 times, length=16384
UTF-8: 26624, UTF-16: 36864, UTF-32: 65536
UTF-8 length: 10.483 microseconds (1 allocation: 44800 KB)
UTF-16 length: 7.983 microseconds (1 allocation: 44800 KB)
UTF-32 length: 209 nanoseconds (1 allocation: 44800 KB)
UTF-8 valid: 33.115 microseconds (0 allocations: 44800 KB)
UTF-16 valid: 22.576 microseconds (0 allocations: 44800 KB)
UTF-8 convert to UTF-16: 274.990 microseconds (10 allocations: 44929 KB)
UTF-8 convert to UTF-32: 206.262 microseconds (3 allocations: 44864 KB)
UTF-16 convert to UTF-8: 695.380 microseconds (4108 allocations: 44926 KB)
UTF-16 convert to UTF-32: 86.971 microseconds (3 allocations: 44864 KB)
UTF-32 convert to UTF-8: 853.594 microseconds (7 allocations: 44858 KB)
UTF-32 convert to UTF-16: 212.803 microseconds (10 allocations: 44929 KB)
Surrogates:: Looping 1 times, length=18432
UTF-8: 30720, UTF-16: 36864, UTF-32: 73728
UTF-8 length: 21.726 microseconds (1 allocation: 44800 KB)
UTF-16 length: 18.132 microseconds (1 allocation: 44800 KB)
UTF-32 length: 428 nanoseconds (1 allocation: 44800 KB)
UTF-8 valid: 55.228 microseconds (0 allocations: 44800 KB)
UTF-16 valid: 30.703 microseconds (0 allocations: 44800 KB)
UTF-8 convert to UTF-16: 405.988 microseconds (10 allocations: 44929 KB)
UTF-8 convert to UTF-32: 276.486 microseconds (3 allocations: 44872 KB)
UTF-16 convert to UTF-8: 938.621 microseconds (4108 allocations: 44926 KB)
UTF-16 convert to UTF-32: 117.847 microseconds (3 allocations: 44864 KB)
UTF-32 convert to UTF-8: 634.096 microseconds (7 allocations: 44866 KB)
UTF-32 convert to UTF-16: 191.115 microseconds (10 allocations: 44929 KB)
ASCII: Looping 1 times, length=65536
length: 393 nanoseconds (1 allocation: 44800 KB)
is_valid_ascii: 61.853 microseconds (0 allocations: 44800 KB)
Convert to UTF-8: 341 nanoseconds (1 allocation: 44800 KB)
Convert to UTF-16: 576.651 microseconds (10 allocations: 45313 KB)
Convert to UTF-32: 239.492 microseconds (3 allocations: 45056 KB)
ASCII:: Looping 1 times, length=65536
UTF-8: 65536, UTF-16: 131072, UTF-32: 262144
UTF-8 length: 34.973 microseconds (1 allocation: 44800 KB)
UTF-16 length: 47.018 microseconds (1 allocation: 44800 KB)
UTF-32 length: 347 nanoseconds (1 allocation: 44800 KB)
UTF-8 valid: 60.303 microseconds (0 allocations: 44800 KB)
UTF-16 valid: 90.664 microseconds (0 allocations: 44800 KB)
UTF-8 convert to UTF-16: 3.318 milliseconds (10 allocations: 45313 KB, 74.07% gc time)
UTF-8 convert to UTF-32: 534.558 microseconds (3 allocations: 45056 KB)
UTF-16 convert to UTF-8: 1.924 milliseconds (11 allocations: 44928 KB)
UTF-16 convert to UTF-32: 298.503 microseconds (3 allocations: 45056 KB)
UTF-32 convert to UTF-8: 852.776 microseconds (7 allocations: 44928 KB)
UTF-32 convert to UTF-16: 500.363 microseconds (10 allocations: 45313 KB)
Latin1:: Looping 1 times, length=65536
UTF-8: 86016, UTF-16: 131072, UTF-32: 262144
UTF-8 length: 31.603 microseconds (1 allocation: 44800 KB)
UTF-16 length: 24.673 microseconds (1 allocation: 44800 KB)
UTF-32 length: 335 nanoseconds (1 allocation: 44800 KB)
UTF-8 valid: 121.479 microseconds (0 allocations: 44800 KB)
UTF-16 valid: 59.599 microseconds (0 allocations: 44800 KB)
UTF-8 convert to UTF-16: 900.773 microseconds (10 allocations: 45313 KB)
UTF-8 convert to UTF-32: 603.257 microseconds (3 allocations: 45056 KB)
UTF-16 convert to UTF-8: 2.246 milliseconds (12 allocations: 45012 KB)
UTF-16 convert to UTF-32: 372.567 microseconds (3 allocations: 45056 KB)
UTF-32 convert to UTF-8: 1.194 milliseconds (7 allocations: 45012 KB)
UTF-32 convert to UTF-16: 709.822 microseconds (10 allocations: 45313 KB)
2-byte:: Looping 1 times, length=65536
UTF-8: 86016, UTF-16: 131072, UTF-32: 262144
UTF-8 length: 45.512 microseconds (1 allocation: 44800 KB)
UTF-16 length: 54.600 microseconds (1 allocation: 44800 KB)
UTF-32 length: 402 nanoseconds (1 allocation: 44800 KB)
UTF-8 valid: 183.190 microseconds (0 allocations: 44800 KB)
UTF-16 valid: 88.024 microseconds (0 allocations: 44800 KB)
UTF-8 convert to UTF-16: 1.053 milliseconds (10 allocations: 45313 KB)
UTF-8 convert to UTF-32: 752.390 microseconds (3 allocations: 45056 KB)
UTF-16 convert to UTF-8: 2.772 milliseconds (8204 allocations: 45140 KB)
UTF-16 convert to UTF-32: 372.098 microseconds (3 allocations: 45056 KB)
UTF-32 convert to UTF-8: 1.314 milliseconds (7 allocations: 45012 KB)
UTF-32 convert to UTF-16: 607.391 microseconds (10 allocations: 45313 KB)
3-byte:: Looping 1 times, length=65536
UTF-8: 94208, UTF-16: 131072, UTF-32: 262144
UTF-8 length: 74.247 microseconds (1 allocation: 44800 KB)
UTF-16 length: 78.972 microseconds (1 allocation: 44800 KB)
UTF-32 length: 241 nanoseconds (1 allocation: 44800 KB)
UTF-8 valid: 167.434 microseconds (0 allocations: 44800 KB)
UTF-16 valid: 104.184 microseconds (0 allocations: 44800 KB)
UTF-8 convert to UTF-16: 1.055 milliseconds (10 allocations: 45313 KB)
UTF-8 convert to UTF-32: 754.435 microseconds (3 allocations: 45056 KB)
UTF-16 convert to UTF-8: 2.582 milliseconds (8204 allocations: 45148 KB)
UTF-16 convert to UTF-32: 408.548 microseconds (3 allocations: 45056 KB)
UTF-32 convert to UTF-8: 1.434 milliseconds (7 allocations: 45020 KB)
UTF-32 convert to UTF-16: 587.790 microseconds (10 allocations: 45313 KB)
4-byte:: Looping 1 times, length=65536
UTF-8: 106496, UTF-16: 147456, UTF-32: 262144
UTF-8 length: 77.417 microseconds (1 allocation: 44800 KB)
UTF-16 length: 83.403 microseconds (1 allocation: 44800 KB)
UTF-32 length: 241 nanoseconds (1 allocation: 44800 KB)
UTF-8 valid: 167.938 microseconds (0 allocations: 44800 KB)
UTF-16 valid: 137.373 microseconds (0 allocations: 44800 KB)
UTF-8 convert to UTF-16: 1.097 milliseconds (10 allocations: 45313 KB)
UTF-8 convert to UTF-32: 751.139 microseconds (3 allocations: 45056 KB)
UTF-16 convert to UTF-8: 2.747 milliseconds (16396 allocations: 45304 KB)
UTF-16 convert to UTF-32: 403.898 microseconds (3 allocations: 45056 KB)
UTF-32 convert to UTF-8: 1.643 milliseconds (7 allocations: 45032 KB)
UTF-32 convert to UTF-16: 667.610 microseconds (10 allocations: 45313 KB)
Surrogates:: Looping 1 times, length=73728
UTF-8: 122880, UTF-16: 147456, UTF-32: 294912
UTF-8 length: 86.951 microseconds (1 allocation: 44800 KB)
UTF-16 length: 83.976 microseconds (1 allocation: 44800 KB)
UTF-32 length: 218 nanoseconds (1 allocation: 44800 KB)
UTF-8 valid: 236.019 microseconds (0 allocations: 44800 KB)
UTF-16 valid: 137.401 microseconds (0 allocations: 44800 KB)
UTF-8 convert to UTF-16: 1.191 milliseconds (10 allocations: 45313 KB)
UTF-8 convert to UTF-32: 851.176 microseconds (3 allocations: 45088 KB)
UTF-16 convert to UTF-8: 2.734 milliseconds (16396 allocations: 45304 KB)
UTF-16 convert to UTF-32: 397.875 microseconds (3 allocations: 45056 KB)
UTF-32 convert to UTF-8: 1.999 milliseconds (7 allocations: 45064 KB)
UTF-32 convert to UTF-16: 746.590 microseconds (10 allocations: 45313 KB)
ASCII: Looping 1 times, length=262144
length: 491 nanoseconds (1 allocation: 44800 KB)
is_valid_ascii: 193.727 microseconds (0 allocations: 44800 KB)
Convert to UTF-8: 348 nanoseconds (1 allocation: 44800 KB)
Convert to UTF-16: 1.934 milliseconds (11 allocations: 46849 KB)
Convert to UTF-32: 675.427 microseconds (3 allocations: 45824 KB)
ASCII:: Looping 1 times, length=262144
UTF-8: 262144, UTF-16: 524288, UTF-32: 1048576
UTF-8 length: 96.855 microseconds (1 allocation: 44800 KB)
UTF-16 length: 110.501 microseconds (1 allocation: 44800 KB)
UTF-32 length: 312 nanoseconds (1 allocation: 44800 KB)
UTF-8 valid: 157.883 microseconds (0 allocations: 44800 KB)
UTF-16 valid: 236.914 microseconds (0 allocations: 44800 KB)
UTF-8 convert to UTF-16: 3.245 milliseconds (11 allocations: 46849 KB)
UTF-8 convert to UTF-32: 2.026 milliseconds (3 allocations: 45824 KB)
UTF-16 convert to UTF-8: 7.434 milliseconds (11 allocations: 45312 KB)
UTF-16 convert to UTF-32: 1.597 milliseconds (3 allocations: 45824 KB)
UTF-32 convert to UTF-8: 3.484 milliseconds (7 allocations: 45312 KB)
UTF-32 convert to UTF-16: 2.185 milliseconds (11 allocations: 46849 KB)
Latin1:: Looping 1 times, length=262144
UTF-8: 344064, UTF-16: 524288, UTF-32: 1048576
UTF-8 length: 210.632 microseconds (1 allocation: 44800 KB)
UTF-16 length: 166.331 microseconds (1 allocation: 44800 KB)
UTF-32 length: 257 nanoseconds (1 allocation: 44800 KB)
UTF-8 valid: 512.864 microseconds (0 allocations: 44800 KB)
UTF-16 valid: 279.173 microseconds (0 allocations: 44800 KB)
UTF-8 convert to UTF-16: 4.847 milliseconds (11 allocations: 46849 KB, 24.17% gc time)
UTF-8 convert to UTF-32: 2.379 milliseconds (3 allocations: 45824 KB)
UTF-16 convert to UTF-8: 9.226 milliseconds (12 allocations: 45648 KB)
UTF-16 convert to UTF-32: 1.424 milliseconds (3 allocations: 45824 KB)
UTF-32 convert to UTF-8: 5.135 milliseconds (7 allocations: 45648 KB)
UTF-32 convert to UTF-16: 2.101 milliseconds (11 allocations: 46849 KB)
2-byte:: Looping 1 times, length=262144
UTF-8: 344064, UTF-16: 524288, UTF-32: 1048576
UTF-8 length: 211.636 microseconds (1 allocation: 44800 KB)
UTF-16 length: 154.804 microseconds (1 allocation: 44800 KB)
UTF-32 length: 346 nanoseconds (1 allocation: 44800 KB)
UTF-8 valid: 565.180 microseconds (0 allocations: 44800 KB)
UTF-16 valid: 280.426 microseconds (0 allocations: 44800 KB)
UTF-8 convert to UTF-16: 3.640 milliseconds (11 allocations: 46849 KB)
UTF-8 convert to UTF-32: 2.561 milliseconds (3 allocations: 45824 KB)
UTF-16 convert to UTF-8: 10.169 milliseconds (32780 allocations: 46160 KB)
UTF-16 convert to UTF-32: 1.537 milliseconds (3 allocations: 45824 KB)
UTF-32 convert to UTF-8: 5.307 milliseconds (7 allocations: 45648 KB)
UTF-32 convert to UTF-16: 2.249 milliseconds (11 allocations: 46849 KB)
3-byte:: Looping 1 times, length=262144
UTF-8: 376832, UTF-16: 524288, UTF-32: 1048576
UTF-8 length: 223.151 microseconds (1 allocation: 44800 KB)
UTF-16 length: 154.650 microseconds (1 allocation: 44800 KB)
UTF-32 length: 418 nanoseconds (1 allocation: 44800 KB)
UTF-8 valid: 497.086 microseconds (0 allocations: 44800 KB)
UTF-16 valid: 294.614 microseconds (0 allocations: 44800 KB)
UTF-8 convert to UTF-16: 3.947 milliseconds (11 allocations: 46849 KB)
UTF-8 convert to UTF-32: 3.540 milliseconds (3 allocations: 45824 KB)
UTF-16 convert to UTF-8: 10.108 milliseconds (32780 allocations: 46192 KB)
UTF-16 convert to UTF-32: 1.449 milliseconds (3 allocations: 45824 KB)
UTF-32 convert to UTF-8: 5.968 milliseconds (7 allocations: 45680 KB)
UTF-32 convert to UTF-16: 4.027 milliseconds (11 allocations: 46849 KB, 40.85% gc time)
4-byte:: Looping 1 times, length=262144
UTF-8: 425984, UTF-16: 589824, UTF-32: 1048576
UTF-8 length: 150.177 microseconds (1 allocation: 44800 KB)
UTF-16 length: 95.351 microseconds (1 allocation: 44800 KB)
UTF-32 length: 288 nanoseconds (1 allocation: 44800 KB)
UTF-8 valid: 496.643 microseconds (0 allocations: 44800 KB)
UTF-16 valid: 347.965 microseconds (0 allocations: 44800 KB)
UTF-8 convert to UTF-16: 3.633 milliseconds (11 allocations: 46849 KB)
UTF-8 convert to UTF-32: 3.304 milliseconds (3 allocations: 45824 KB)
UTF-16 convert to UTF-8: 10.925 milliseconds (65548 allocations: 46816 KB)
UTF-16 convert to UTF-32: 1.373 milliseconds (3 allocations: 45824 KB)
UTF-32 convert to UTF-8: 5.995 milliseconds (7 allocations: 45728 KB)
UTF-32 convert to UTF-16: 2.519 milliseconds (11 allocations: 46849 KB)
Surrogates:: Looping 1 times, length=294912
UTF-8: 491520, UTF-16: 589824, UTF-32: 1179648
UTF-8 length: 265.138 microseconds (1 allocation: 44800 KB)
UTF-16 length: 165.972 microseconds (1 allocation: 44800 KB)
UTF-32 length: 373 nanoseconds (1 allocation: 44800 KB)
UTF-8 valid: 731.093 microseconds (0 allocations: 44800 KB)
UTF-16 valid: 381.802 microseconds (0 allocations: 44800 KB)
UTF-8 convert to UTF-16: 4.518 milliseconds (11 allocations: 46849 KB)
UTF-8 convert to UTF-32: 3.311 milliseconds (3 allocations: 45952 KB)
UTF-16 convert to UTF-8: 11.225 milliseconds (65548 allocations: 46816 KB)
UTF-16 convert to UTF-32: 1.411 milliseconds (3 allocations: 45824 KB)
UTF-32 convert to UTF-8: 8.265 milliseconds (7 allocations: 45856 KB)
UTF-32 convert to UTF-16: 2.424 milliseconds (11 allocations: 46849 KB)
ASCII: Looping 1 times, length=1048576
length: 461 nanoseconds (1 allocation: 89600 KB)
is_valid_ascii: 698.598 microseconds (0 allocations: 89600 KB)
Convert to UTF-8: 356 nanoseconds (1 allocation: 89600 KB)
Convert to UTF-16: 7.514 milliseconds (13 allocations: 94721 KB)
Convert to UTF-32: 2.319 milliseconds (3 allocations: 93696 KB)
ASCII:: Looping 1 times, length=1048576
UTF-8: 1048576, UTF-16: 2097152, UTF-32: 4194304
UTF-8 length: 483.690 microseconds (1 allocation: 89600 KB)
UTF-16 length: 724.387 microseconds (1 allocation: 89600 KB)
UTF-32 length: 303 nanoseconds (1 allocation: 89600 KB)
UTF-8 valid: 681.540 microseconds (0 allocations: 89600 KB)
UTF-16 valid: 1.033 milliseconds (0 allocations: 89600 KB)
UTF-8 convert to UTF-16: 12.476 milliseconds (13 allocations: 94721 KB)
UTF-8 convert to UTF-32: 7.961 milliseconds (3 allocations: 93696 KB)
UTF-16 convert to UTF-8: 30.278 milliseconds (11 allocations: 91648 KB)
UTF-16 convert to UTF-32: 5.618 milliseconds (3 allocations: 93696 KB)
UTF-32 convert to UTF-8: 13.028 milliseconds (7 allocations: 91648 KB)
UTF-32 convert to UTF-16: 8.002 milliseconds (13 allocations: 94721 KB)
Latin1:: Looping 1 times, length=1048576
UTF-8: 1376256, UTF-16: 2097152, UTF-32: 4194304
UTF-8 length: 477.081 microseconds (1 allocation: 89600 KB)
UTF-16 length: 929.140 microseconds (1 allocation: 89600 KB)
UTF-32 length: 355 nanoseconds (1 allocation: 89600 KB)
UTF-8 valid: 1.720 milliseconds (0 allocations: 89600 KB)
UTF-16 valid: 964.966 microseconds (0 allocations: 89600 KB)
UTF-8 convert to UTF-16: 28.257 milliseconds (13 allocations: 94721 KB, 53.95% gc time)
UTF-8 convert to UTF-32: 8.590 milliseconds (3 allocations: 48896 KB)
UTF-16 convert to UTF-8: 42.584 milliseconds (12 allocations: 48192 KB)
UTF-16 convert to UTF-32: 5.898 milliseconds (3 allocations: 48896 KB)
UTF-32 convert to UTF-8: 20.882 milliseconds (7 allocations: 48192 KB)
UTF-32 convert to UTF-16: 9.272 milliseconds (13 allocations: 49921 KB, 13.44% gc time)
2-byte:: Looping 1 times, length=1048576
UTF-8: 1376256, UTF-16: 2097152, UTF-32: 4194304
UTF-8 length: 518.950 microseconds (1 allocation: 44800 KB)
UTF-16 length: 1.038 milliseconds (1 allocation: 44800 KB)
UTF-32 length: 327 nanoseconds (1 allocation: 44800 KB)
UTF-8 valid: 1.967 milliseconds (0 allocations: 44800 KB)
UTF-16 valid: 1.086 milliseconds (0 allocations: 44800 KB)
UTF-8 convert to UTF-16: 13.433 milliseconds (13 allocations: 49921 KB)
UTF-8 convert to UTF-32: 7.970 milliseconds (3 allocations: 48896 KB)
UTF-16 convert to UTF-8: 39.928 milliseconds (131k allocations: 50240 KB)
UTF-16 convert to UTF-32: 4.177 milliseconds (3 allocations: 48896 KB)
UTF-32 convert to UTF-8: 21.653 milliseconds (7 allocations: 48192 KB, 4.10% gc time)
UTF-32 convert to UTF-16: 7.993 milliseconds (13 allocations: 49921 KB)
3-byte:: Looping 1 times, length=1048576
UTF-8: 1507328, UTF-16: 2097152, UTF-32: 4194304
UTF-8 length: 549.668 microseconds (1 allocation: 44800 KB)
UTF-16 length: 974.922 microseconds (1 allocation: 44800 KB)
UTF-32 length: 527 nanoseconds (1 allocation: 44800 KB)
UTF-8 valid: 1.916 milliseconds (0 allocations: 44800 KB)
UTF-16 valid: 983.104 microseconds (0 allocations: 44800 KB)
UTF-8 convert to UTF-16: 16.243 milliseconds (13 allocations: 49921 KB)
UTF-8 convert to UTF-32: 9.961 milliseconds (3 allocations: 48896 KB)
UTF-16 convert to UTF-8: 41.802 milliseconds (131k allocations: 50368 KB)
UTF-16 convert to UTF-32: 5.262 milliseconds (3 allocations: 48896 KB, 20.46% gc time)
UTF-32 convert to UTF-8: 21.584 milliseconds (7 allocations: 48320 KB)
UTF-32 convert to UTF-16: 8.033 milliseconds (13 allocations: 49921 KB)
4-byte:: Looping 1 times, length=1048576
UTF-8: 1703936, UTF-16: 2359296, UTF-32: 4194304
UTF-8 length: 737.265 microseconds (1 allocation: 44800 KB)
UTF-16 length: 1.106 milliseconds (1 allocation: 44800 KB)
UTF-32 length: 607 nanoseconds (1 allocation: 44800 KB)
UTF-8 valid: 2.120 milliseconds (0 allocations: 44800 KB)
UTF-16 valid: 1.514 milliseconds (0 allocations: 44800 KB)
UTF-8 convert to UTF-16: 19.440 milliseconds (13 allocations: 49921 KB)
UTF-8 convert to UTF-32: 9.570 milliseconds (3 allocations: 48896 KB)
UTF-16 convert to UTF-8: 44.793 milliseconds (262k allocations: 52864 KB, 3.38% gc time)
UTF-16 convert to UTF-32: 4.599 milliseconds (3 allocations: 48896 KB)
UTF-32 convert to UTF-8: 25.122 milliseconds (7 allocations: 48512 KB)
UTF-32 convert to UTF-16: 13.243 milliseconds (13 allocations: 49921 KB)
Surrogates:: Looping 1 times, length=1179648
UTF-8: 1966080, UTF-16: 2359296, UTF-32: 4718592
UTF-8 length: 798.487 microseconds (1 allocation: 44800 KB)
UTF-16 length: 1.092 milliseconds (1 allocation: 44800 KB)
UTF-32 length: 367 nanoseconds (1 allocation: 44800 KB)
UTF-8 valid: 2.559 milliseconds (0 allocations: 44800 KB)
UTF-16 valid: 1.648 milliseconds (0 allocations: 44800 KB)
UTF-8 convert to UTF-16: 17.872 milliseconds (13 allocations: 49921 KB)
UTF-8 convert to UTF-32: 14.700 milliseconds (3 allocations: 49408 KB, 14.50% gc time)
UTF-16 convert to UTF-8: 42.199 milliseconds (262k allocations: 52864 KB)
UTF-16 convert to UTF-32: 4.636 milliseconds (3 allocations: 48896 KB)
UTF-32 convert to UTF-8: 30.466 milliseconds (7 allocations: 49024 KB)
UTF-32 convert to UTF-16: 10.107 milliseconds (13 allocations: 49921 KB)
ASCII: Looping 1 times, length=4194304
length: 401 nanoseconds (1 allocation: 219 MB)
is_valid_ascii: 2.603 milliseconds (0 allocations: 219 MB)
Convert to UTF-8: 381 nanoseconds (1 allocation: 219 MB)
Convert to UTF-16: 25.976 milliseconds (15 allocations: 236 MB)
Convert to UTF-32: 9.360 milliseconds (3 allocations: 235 MB)
ASCII:: Looping 1 times, length=4194304
UTF-8: 4194304, UTF-16: 8388608, UTF-32: 16777216
UTF-8 length: 1.446 milliseconds (1 allocation: 219 MB)
UTF-16 length: 2.632 milliseconds (1 allocation: 219 MB)
UTF-32 length: 352 nanoseconds (1 allocation: 219 MB)
UTF-8 valid: 2.455 milliseconds (0 allocations: 219 MB)
UTF-16 valid: 3.871 milliseconds (0 allocations: 219 MB)
UTF-8 convert to UTF-16: 47.541 milliseconds (15 allocations: 236 MB)
UTF-8 convert to UTF-32: 35.616 milliseconds (3 allocations: 235 MB)
UTF-16 convert to UTF-8: 120.977 milliseconds (11 allocations: 227 MB)
UTF-16 convert to UTF-32: 22.952 milliseconds (3 allocations: 235 MB)
UTF-32 convert to UTF-8: 53.568 milliseconds (7 allocations: 227 MB)
UTF-32 convert to UTF-16: 54.111 milliseconds (15 allocations: 236 MB, 42.57% gc time)
Latin1:: Looping 1 times, length=4194304
UTF-8: 5505024, UTF-16: 8388608, UTF-32: 16777216
UTF-8 length: 2.198 milliseconds (1 allocation: 44800 KB)
UTF-16 length: 2.775 milliseconds (1 allocation: 44800 KB)
UTF-32 length: 531 nanoseconds (1 allocation: 44800 KB)
UTF-8 valid: 7.201 milliseconds (0 allocations: 44800 KB)
UTF-16 valid: 4.048 milliseconds (0 allocations: 44800 KB)
UTF-8 convert to UTF-16: 53.086 milliseconds (15 allocations: 62209 KB)
UTF-8 convert to UTF-32: 36.405 milliseconds (3 allocations: 61184 KB, 13.99% gc time)
UTF-16 convert to UTF-8: 155.800 milliseconds (12 allocations: 58368 KB)
UTF-16 convert to UTF-32: 33.611 milliseconds (3 allocations: 61184 KB, 44.99% gc time)
UTF-32 convert to UTF-8: 86.656 milliseconds (7 allocations: 58368 KB)
UTF-32 convert to UTF-16: 35.135 milliseconds (15 allocations: 62209 KB, 8.06% gc time)
2-byte:: Looping 1 times, length=4194304
UTF-8: 5505024, UTF-16: 8388608, UTF-32: 16777216
UTF-8 length: 2.132 milliseconds (1 allocation: 44800 KB)
UTF-16 length: 3.408 milliseconds (1 allocation: 44800 KB)
UTF-32 length: 446 nanoseconds (1 allocation: 44800 KB)
UTF-8 valid: 8.242 milliseconds (0 allocations: 44800 KB)
UTF-16 valid: 4.514 milliseconds (0 allocations: 44800 KB)
UTF-8 convert to UTF-16: 56.724 milliseconds (15 allocations: 62209 KB, 1.19% gc time)
UTF-8 convert to UTF-32: 31.386 milliseconds (3 allocations: 61184 KB)
UTF-16 convert to UTF-8: 160.823 milliseconds (524k allocations: 66560 KB, 1.88% gc time)
UTF-16 convert to UTF-32: 19.999 milliseconds (3 allocations: 61184 KB, 8.39% gc time)
UTF-32 convert to UTF-8: 83.115 milliseconds (7 allocations: 58368 KB)
UTF-32 convert to UTF-16: 33.352 milliseconds (15 allocations: 62209 KB, 6.80% gc time)
3-byte:: Looping 1 times, length=4194304
UTF-8: 6029312, UTF-16: 8388608, UTF-32: 16777216
UTF-8 length: 2.406 milliseconds (1 allocation: 44800 KB)
UTF-16 length: 2.699 milliseconds (1 allocation: 44800 KB)
UTF-32 length: 581 nanoseconds (1 allocation: 44800 KB)
UTF-8 valid: 7.494 milliseconds (0 allocations: 44800 KB)
UTF-16 valid: 3.996 milliseconds (0 allocations: 44800 KB)
UTF-8 convert to UTF-16: 66.119 milliseconds (15 allocations: 62209 KB, 1.07% gc time)
UTF-8 convert to UTF-32: 40.306 milliseconds (3 allocations: 61184 KB)
UTF-16 convert to UTF-8: 165.370 milliseconds (524k allocations: 67072 KB, 1.66% gc time)
UTF-16 convert to UTF-32: 25.359 milliseconds (3 allocations: 61184 KB, 6.45% gc time)
UTF-32 convert to UTF-8: 84.352 milliseconds (7 allocations: 58880 KB)
UTF-32 convert to UTF-16: 33.863 milliseconds (15 allocations: 62209 KB, 8.72% gc time)
4-byte:: Looping 1 times, length=4194304
UTF-8: 6815744, UTF-16: 9437184, UTF-32: 16777216
UTF-8 length: 2.707 milliseconds (1 allocation: 44800 KB)
UTF-16 length: 4.844 milliseconds (1 allocation: 44800 KB)
UTF-32 length: 598 nanoseconds (1 allocation: 44800 KB)
UTF-8 valid: 9.009 milliseconds (0 allocations: 44800 KB)
UTF-16 valid: 5.743 milliseconds (0 allocations: 44800 KB)
UTF-8 convert to UTF-16: 63.918 milliseconds (15 allocations: 62209 KB, 1.54% gc time)
UTF-8 convert to UTF-32: 41.571 milliseconds (3 allocations: 61184 KB)
UTF-16 convert to UTF-8: 183.080 milliseconds (1049k allocations: 77056 KB, 1.51% gc time)
UTF-16 convert to UTF-32: 18.443 milliseconds (3 allocations: 61184 KB)
UTF-32 convert to UTF-8: 102.494 milliseconds (7 allocations: 59648 KB, 3.24% gc time)
UTF-32 convert to UTF-16: 37.795 milliseconds (15 allocations: 62209 KB, 4.29% gc time)
Surrogates:: Looping 1 times, length=4718592
UTF-8: 7864320, UTF-16: 9437184, UTF-32: 18874368
UTF-8 length: 2.715 milliseconds (1 allocation: 44800 KB)
UTF-16 length: 3.013 milliseconds (1 allocation: 44800 KB)
UTF-32 length: 407 nanoseconds (1 allocation: 44800 KB)
UTF-8 valid: 10.392 milliseconds (0 allocations: 44800 KB)
UTF-16 valid: 6.268 milliseconds (0 allocations: 44800 KB)
UTF-8 convert to UTF-16: 74.161 milliseconds (15 allocations: 62209 KB)
UTF-8 convert to UTF-32: 53.124 milliseconds (3 allocations: 63232 KB, 1.48% gc time)
UTF-16 convert to UTF-8: 180.359 milliseconds (1049k allocations: 77056 KB, 1.51% gc time)
UTF-16 convert to UTF-32: 21.128 milliseconds (3 allocations: 61184 KB, 12.07% gc time)
UTF-32 convert to UTF-8: 112.382 milliseconds (7 allocations: 61696 KB)
UTF-32 convert to UTF-16: 38.165 milliseconds (15 allocations: 62209 KB, 8.95% gc time)
julia> dotest(1000,true)
ASCII: Looping 1000 times, length=8
length: 6.050 microseconds (0 allocations: 44800 KB)
is_valid_ascii: 20.359 microseconds (0 allocations: 44800 KB)
Convert to UTF-8: 26.213 microseconds (1000 allocations: 44816 KB)
Convert to UTF-16: 329.443 microseconds (5000 allocations: 44972 KB)
Convert to UTF-32: 122.437 microseconds (2000 allocations: 44925 KB)
ASCII:: Looping 1000 times, length=8
UTF-8: 8, UTF-16: 16, UTF-32: 32
UTF-8 length: 15.702 microseconds (0 allocations: 44800 KB)
UTF-16 length: 18.035 microseconds (0 allocations: 44800 KB)
UTF-32 length: 5.992 microseconds (0 allocations: 44800 KB)
UTF-8 valid: 20.937 microseconds (0 allocations: 44800 KB)
UTF-16 valid: 30.979 microseconds (0 allocations: 44800 KB)
UTF-8 convert to UTF-16: 253.127 microseconds (5000 allocations: 44972 KB)
UTF-8 convert to UTF-32: 130.463 microseconds (2000 allocations: 44925 KB)
UTF-16 convert to UTF-8: 586.174 microseconds (8000 allocations: 45191 KB)
UTF-16 convert to UTF-32: 96.104 microseconds (2000 allocations: 44925 KB)
UTF-32 convert to UTF-8: 301.726 microseconds (5000 allocations: 45050 KB)
UTF-32 convert to UTF-16: 200.302 microseconds (5000 allocations: 44972 KB)
Latin1:: Looping 1000 times, length=8
UTF-8: 10, UTF-16: 16, UTF-32: 32
UTF-8 length: 11.637 microseconds (0 allocations: 44800 KB)
UTF-16 length: 10.772 microseconds (0 allocations: 44800 KB)
UTF-32 length: 3.582 microseconds (0 allocations: 44800 KB)
UTF-8 valid: 19.622 microseconds (0 allocations: 44800 KB)
UTF-16 valid: 18.717 microseconds (0 allocations: 44800 KB)
UTF-8 convert to UTF-16: 263.952 microseconds (5000 allocations: 44972 KB)
UTF-8 convert to UTF-32: 140.087 microseconds (2000 allocations: 44925 KB)
UTF-16 convert to UTF-8: 640.679 microseconds (9000 allocations: 45222 KB)
UTF-16 convert to UTF-32: 87.561 microseconds (2000 allocations: 44925 KB)
UTF-32 convert to UTF-8: 313.961 microseconds (5000 allocations: 45066 KB)
UTF-32 convert to UTF-16: 175.683 microseconds (5000 allocations: 44972 KB)
2-byte:: Looping 1000 times, length=8
UTF-8: 12, UTF-16: 16, UTF-32: 32
UTF-8 length: 12.544 microseconds (0 allocations: 44800 KB)
UTF-16 length: 10.118 microseconds (0 allocations: 44800 KB)
UTF-32 length: 3.191 microseconds (0 allocations: 44800 KB)
UTF-8 valid: 25.396 microseconds (0 allocations: 44800 KB)
UTF-16 valid: 16.885 microseconds (0 allocations: 44800 KB)
UTF-8 convert to UTF-16: 236.367 microseconds (5000 allocations: 44972 KB)
UTF-8 convert to UTF-32: 130.148 microseconds (2000 allocations: 44925 KB)
UTF-16 convert to UTF-8: 656.834 microseconds (11000 allocations: 45253 KB)
UTF-16 convert to UTF-32: 80.287 microseconds (2000 allocations: 44925 KB)
UTF-32 convert to UTF-8: 323.427 microseconds (5000 allocations: 45066 KB)
UTF-32 convert to UTF-16: 166.570 microseconds (5000 allocations: 44972 KB)
3-byte:: Looping 1000 times, length=8
UTF-8: 14, UTF-16: 16, UTF-32: 32
UTF-8 length: 13.585 microseconds (0 allocations: 44800 KB)
UTF-16 length: 8.857 microseconds (0 allocations: 44800 KB)
UTF-32 length: 2.929 microseconds (0 allocations: 44800 KB)
UTF-8 valid: 25.852 microseconds (0 allocations: 44800 KB)
UTF-16 valid: 15.394 microseconds (0 allocations: 44800 KB)
UTF-8 convert to UTF-16: 225.653 microseconds (5000 allocations: 44972 KB)
UTF-8 convert to UTF-32: 155.688 microseconds (2000 allocations: 44925 KB)
UTF-16 convert to UTF-8: 633.277 microseconds (11000 allocations: 45253 KB)
UTF-16 convert to UTF-32: 125.637 microseconds (2000 allocations: 44925 KB)
UTF-32 convert to UTF-8: 328.784 microseconds (5000 allocations: 45066 KB)
UTF-32 convert to UTF-16: 152.119 microseconds (5000 allocations: 44972 KB)
4-byte:: Looping 1000 times, length=8
UTF-8: 15, UTF-16: 18, UTF-32: 32
UTF-8 length: 13.659 microseconds (0 allocations: 44800 KB)
UTF-16 length: 8.797 microseconds (0 allocations: 44800 KB)
UTF-32 length: 2.709 microseconds (0 allocations: 44800 KB)
UTF-8 valid: 24.516 microseconds (0 allocations: 44800 KB)
UTF-16 valid: 13.899 microseconds (0 allocations: 44800 KB)
UTF-8 convert to UTF-16: 220.565 microseconds (5000 allocations: 44972 KB)
UTF-8 convert to UTF-32: 169.985 microseconds (2000 allocations: 44925 KB)
UTF-16 convert to UTF-8: 579.217 microseconds (12000 allocations: 45269 KB)
UTF-16 convert to UTF-32: 115.208 microseconds (2000 allocations: 44925 KB)
UTF-32 convert to UTF-8: 343.736 microseconds (5000 allocations: 45066 KB)
UTF-32 convert to UTF-16: 177.478 microseconds (5000 allocations: 44972 KB)
Surrogates:: Looping 1000 times, length=9
UTF-8: 17, UTF-16: 18, UTF-32: 36
UTF-8 length: 10.519 microseconds (0 allocations: 44800 KB)
UTF-16 length: 8.539 microseconds (0 allocations: 44800 KB)
UTF-32 length: 2.659 microseconds (0 allocations: 44800 KB)
UTF-8 valid: 25.715 microseconds (0 allocations: 44800 KB)
UTF-16 valid: 13.503 microseconds (0 allocations: 44800 KB)
UTF-8 convert to UTF-16: 241.744 microseconds (5000 allocations: 44972 KB)
UTF-8 convert to UTF-32: 160.556 microseconds (2000 allocations: 44925 KB)
UTF-16 convert to UTF-8: 609.331 microseconds (12000 allocations: 45269 KB)
UTF-16 convert to UTF-32: 124.169 microseconds (2000 allocations: 44925 KB)
UTF-32 convert to UTF-8: 388.885 microseconds (5000 allocations: 45081 KB)
UTF-32 convert to UTF-16: 198.791 microseconds (5000 allocations: 44972 KB)
ASCII: Looping 1000 times, length=64
length: 2.688 microseconds (0 allocations: 44800 KB)
is_valid_ascii: 50.737 microseconds (0 allocations: 44800 KB)
Convert to UTF-8: 4.880 microseconds (1000 allocations: 44816 KB)
Convert to UTF-16: 711.688 microseconds (8000 allocations: 45519 KB)
Convert to UTF-32: 235.778 microseconds (2000 allocations: 45206 KB)
ASCII:: Looping 1000 times, length=64
UTF-8: 64, UTF-16: 128, UTF-32: 256
UTF-8 length: 26.661 microseconds (0 allocations: 44800 KB)
UTF-16 length: 26.499 microseconds (0 allocations: 44800 KB)
UTF-32 length: 2.627 microseconds (0 allocations: 44800 KB)
UTF-8 valid: 51.020 microseconds (0 allocations: 44800 KB)
UTF-16 valid: 75.604 microseconds (0 allocations: 44800 KB)
UTF-8 convert to UTF-16: 1.079 milliseconds (8000 allocations: 45519 KB)
UTF-8 convert to UTF-32: 576.011 microseconds (2000 allocations: 45206 KB)
UTF-16 convert to UTF-8: 2.187 milliseconds (8000 allocations: 45316 KB)
UTF-16 convert to UTF-32: 469.296 microseconds (2000 allocations: 45206 KB)
UTF-32 convert to UTF-8: 1.023 milliseconds (5000 allocations: 45175 KB)
UTF-32 convert to UTF-16: 812.148 microseconds (8000 allocations: 45519 KB)
Latin1:: Looping 1000 times, length=64
UTF-8: 84, UTF-16: 128, UTF-32: 256
UTF-8 length: 55.705 microseconds (0 allocations: 44800 KB)
UTF-16 length: 46.318 microseconds (0 allocations: 44800 KB)
UTF-32 length: 12.022 microseconds (0 allocations: 44800 KB)
UTF-8 valid: 160.855 microseconds (0 allocations: 44800 KB)
UTF-16 valid: 114.493 microseconds (0 allocations: 44800 KB)
UTF-8 convert to UTF-16: 1.209 milliseconds (8000 allocations: 45519 KB)
UTF-8 convert to UTF-32: 714.353 microseconds (2000 allocations: 45206 KB)
UTF-16 convert to UTF-8: 5.157 milliseconds (9000 allocations: 45472 KB, 48.05% gc time)
UTF-16 convert to UTF-32: 416.992 microseconds (2000 allocations: 45206 KB)
UTF-32 convert to UTF-8: 1.453 milliseconds (5000 allocations: 45316 KB)
UTF-32 convert to UTF-16: 582.178 microseconds (8000 allocations: 45519 KB)
2-byte:: Looping 1000 times, length=64
UTF-8: 84, UTF-16: 128, UTF-32: 256
UTF-8 length: 35.603 microseconds (0 allocations: 44800 KB)
UTF-16 length: 25.936 microseconds (0 allocations: 44800 KB)
UTF-32 length: 2.562 microseconds (0 allocations: 44800 KB)
UTF-8 valid: 113.536 microseconds (0 allocations: 44800 KB)
UTF-16 valid: 73.774 microseconds (0 allocations: 44800 KB)
UTF-8 convert to UTF-16: 1.012 milliseconds (8000 allocations: 45519 KB)
UTF-8 convert to UTF-32: 522.912 microseconds (2000 allocations: 45206 KB)
UTF-16 convert to UTF-8: 2.948 milliseconds (17000 allocations: 45597 KB)
UTF-16 convert to UTF-32: 316.719 microseconds (2000 allocations: 45206 KB)
UTF-32 convert to UTF-8: 1.521 milliseconds (5000 allocations: 45316 KB)
UTF-32 convert to UTF-16: 718.869 microseconds (8000 allocations: 45519 KB)
3-byte:: Looping 1000 times, length=64
UTF-8: 92, UTF-16: 128, UTF-32: 256
UTF-8 length: 57.762 microseconds (0 allocations: 44800 KB)
UTF-16 length: 46.219 microseconds (0 allocations: 44800 KB)
UTF-32 length: 2.655 microseconds (0 allocations: 44800 KB)
UTF-8 valid: 166.216 microseconds (0 allocations: 44800 KB)
UTF-16 valid: 104.637 microseconds (0 allocations: 44800 KB)
UTF-8 convert to UTF-16: 1.151 milliseconds (8000 allocations: 45519 KB)
UTF-8 convert to UTF-32: 659.866 microseconds (2000 allocations: 45206 KB)
UTF-16 convert to UTF-8: 2.916 milliseconds (17000 allocations: 45597 KB)
UTF-16 convert to UTF-32: 484.370 microseconds (2000 allocations: 45206 KB)
UTF-32 convert to UTF-8: 1.629 milliseconds (5000 allocations: 45316 KB)
UTF-32 convert to UTF-16: 809.762 microseconds (8000 allocations: 45519 KB)
4-byte:: Looping 1000 times, length=64
UTF-8: 104, UTF-16: 144, UTF-32: 256
UTF-8 length: 69.906 microseconds (0 allocations: 44800 KB)
UTF-16 length: 48.006 microseconds (0 allocations: 44800 KB)
UTF-32 length: 2.630 microseconds (0 allocations: 44800 KB)
UTF-8 valid: 188.548 microseconds (0 allocations: 44800 KB)
UTF-16 valid: 123.389 microseconds (0 allocations: 44800 KB)
UTF-8 convert to UTF-16: 1.309 milliseconds (8000 allocations: 45519 KB)
UTF-8 convert to UTF-32: 841.623 microseconds (2000 allocations: 45206 KB)
UTF-16 convert to UTF-8: 3.039 milliseconds (25000 allocations: 45753 KB)
UTF-16 convert to UTF-32: 524.199 microseconds (2000 allocations: 45206 KB)
UTF-32 convert to UTF-8: 1.762 milliseconds (5000 allocations: 45331 KB)
UTF-32 convert to UTF-16: 888.773 microseconds (8000 allocations: 45519 KB)
Surrogates:: Looping 1000 times, length=72
UTF-8: 120, UTF-16: 144, UTF-32: 288
UTF-8 length: 74.860 microseconds (0 allocations: 44800 KB)
UTF-16 length: 48.494 microseconds (0 allocations: 44800 KB)
UTF-32 length: 2.651 microseconds (0 allocations: 44800 KB)
UTF-8 valid: 187.480 microseconds (0 allocations: 44800 KB)
UTF-16 valid: 133.658 microseconds (0 allocations: 44800 KB)
UTF-8 convert to UTF-16: 1.373 milliseconds (8000 allocations: 45519 KB)
UTF-8 convert to UTF-32: 940.157 microseconds (2000 allocations: 45206 KB)
UTF-16 convert to UTF-8: 3.087 milliseconds (25000 allocations: 45753 KB)
UTF-16 convert to UTF-32: 513.485 microseconds (2000 allocations: 45206 KB)
UTF-32 convert to UTF-8: 2.024 milliseconds (5000 allocations: 45363 KB)
UTF-32 convert to UTF-16: 857.122 microseconds (8000 allocations: 45519 KB)
ASCII: Looping 1000 times, length=256
length: 2.641 microseconds (0 allocations: 44800 KB)
is_valid_ascii: 185.588 microseconds (0 allocations: 44800 KB)
Convert to UTF-8: 5.580 microseconds (1000 allocations: 44816 KB)
Convert to UTF-16: 2.555 milliseconds (10000 allocations: 47113 KB)
Convert to UTF-32: 777.357 microseconds (2000 allocations: 45956 KB)
ASCII:: Looping 1000 times, length=256
UTF-8: 256, UTF-16: 512, UTF-32: 1024
UTF-8 length: 97.204 microseconds (0 allocations: 44800 KB)
UTF-16 length: 93.222 microseconds (0 allocations: 44800 KB)
UTF-32 length: 2.692 microseconds (0 allocations: 44800 KB)
UTF-8 valid: 164.906 microseconds (0 allocations: 44800 KB)
UTF-16 valid: 246.603 microseconds (0 allocations: 44800 KB)
UTF-8 convert to UTF-16: 4.977 milliseconds (10000 allocations: 47113 KB, 24.65% gc time)
UTF-8 convert to UTF-32: 1.619 milliseconds (2000 allocations: 45956 KB)
UTF-16 convert to UTF-8: 7.633 milliseconds (8000 allocations: 45816 KB)
UTF-16 convert to UTF-32: 1.494 milliseconds (2000 allocations: 45956 KB)
UTF-32 convert to UTF-8: 3.168 milliseconds (5000 allocations: 45675 KB)
UTF-32 convert to UTF-16: 1.904 milliseconds (10000 allocations: 47113 KB)
Latin1:: Looping 1000 times, length=256
UTF-8: 336, UTF-16: 512, UTF-32: 1024
UTF-8 length: 197.005 microseconds (0 allocations: 44800 KB)
UTF-16 length: 142.658 microseconds (0 allocations: 44800 KB)
UTF-32 length: 2.728 microseconds (0 allocations: 44800 KB)
UTF-8 valid: 552.869 microseconds (0 allocations: 44800 KB)
UTF-16 valid: 302.919 microseconds (0 allocations: 44800 KB)
UTF-8 convert to UTF-16: 3.462 milliseconds (10000 allocations: 47113 KB)
UTF-8 convert to UTF-32: 2.369 milliseconds (2000 allocations: 45956 KB)
UTF-16 convert to UTF-8: 9.839 milliseconds (9000 allocations: 46394 KB)
UTF-16 convert to UTF-32: 1.439 milliseconds (2000 allocations: 45956 KB)
UTF-32 convert to UTF-8: 5.251 milliseconds (5000 allocations: 46238 KB)
UTF-32 convert to UTF-16: 2.706 milliseconds (10000 allocations: 47113 KB)
2-byte:: Looping 1000 times, length=256
UTF-8: 336, UTF-16: 512, UTF-32: 1024
UTF-8 length: 125.625 microseconds (0 allocations: 44800 KB)
UTF-16 length: 113.956 microseconds (0 allocations: 44800 KB)
UTF-32 length: 2.644 microseconds (0 allocations: 44800 KB)
UTF-8 valid: 421.291 microseconds (0 allocations: 44800 KB)
UTF-16 valid: 240.467 microseconds (0 allocations: 44800 KB)
UTF-8 convert to UTF-16: 3.860 milliseconds (10000 allocations: 47113 KB)
UTF-8 convert to UTF-32: 2.246 milliseconds (2000 allocations: 45956 KB)
UTF-16 convert to UTF-8: 10.273 milliseconds (41000 allocations: 46894 KB)
UTF-16 convert to UTF-32: 2.339 milliseconds (2000 allocations: 45956 KB, 50.94% gc time)
UTF-32 convert to UTF-8: 4.825 milliseconds (5000 allocations: 46238 KB)
UTF-32 convert to UTF-16: 1.876 milliseconds (10000 allocations: 47113 KB)
3-byte:: Looping 1000 times, length=256
UTF-8: 368, UTF-16: 512, UTF-32: 1024
UTF-8 length: 182.135 microseconds (0 allocations: 44800 KB)
UTF-16 length: 153.350 microseconds (0 allocations: 44800 KB)
UTF-32 length: 2.708 microseconds (0 allocations: 44800 KB)
UTF-8 valid: 527.161 microseconds (0 allocations: 44800 KB)
UTF-16 valid: 308.372 microseconds (0 allocations: 44800 KB)
UTF-8 convert to UTF-16: 3.800 milliseconds (10000 allocations: 47113 KB)
UTF-8 convert to UTF-32: 2.484 milliseconds (2000 allocations: 45956 KB)
UTF-16 convert to UTF-8: 9.861 milliseconds (41000 allocations: 46894 KB)
UTF-16 convert to UTF-32: 1.113 milliseconds (2000 allocations: 45956 KB)
UTF-32 convert to UTF-8: 5.448 milliseconds (5000 allocations: 46238 KB)
UTF-32 convert to UTF-16: 1.904 milliseconds (10000 allocations: 47113 KB)
4-byte:: Looping 1000 times, length=256
UTF-8: 416, UTF-16: 576, UTF-32: 1024
UTF-8 length: 153.735 microseconds (0 allocations: 44800 KB)
UTF-16 length: 103.397 microseconds (0 allocations: 44800 KB)
UTF-32 length: 2.559 microseconds (0 allocations: 44800 KB)
UTF-8 valid: 503.889 microseconds (0 allocations: 44800 KB)
UTF-16 valid: 345.252 microseconds (0 allocations: 44800 KB)
UTF-8 convert to UTF-16: 3.804 milliseconds (10000 allocations: 47113 KB)
UTF-8 convert to UTF-32: 2.681 milliseconds (2000 allocations: 45956 KB)
UTF-16 convert to UTF-8: 11.092 milliseconds (73000 allocations: 47566 KB)
UTF-16 convert to UTF-32: 2.025 milliseconds (2000 allocations: 45956 KB, 47.72% gc time)
UTF-32 convert to UTF-8: 5.922 milliseconds (5000 allocations: 46331 KB)
UTF-32 convert to UTF-16: 2.167 milliseconds (10000 allocations: 47113 KB)
Surrogates:: Looping 1000 times, length=288
UTF-8: 480, UTF-16: 576, UTF-32: 1152
UTF-8 length: 255.253 microseconds (0 allocations: 44800 KB)
UTF-16 length: 163.150 microseconds (0 allocations: 44800 KB)
UTF-32 length: 2.725 microseconds (0 allocations: 44800 KB)
UTF-8 valid: 673.077 microseconds (0 allocations: 44800 KB)
UTF-16 valid: 399.173 microseconds (0 allocations: 44800 KB)
UTF-8 convert to UTF-16: 4.188 milliseconds (10000 allocations: 47113 KB)
UTF-8 convert to UTF-32: 3.294 milliseconds (2000 allocations: 46034 KB)
UTF-16 convert to UTF-8: 11.892 milliseconds (73000 allocations: 47566 KB)
UTF-16 convert to UTF-32: 1.265 milliseconds (2000 allocations: 45956 KB)
UTF-32 convert to UTF-8: 8.052 milliseconds (5000 allocations: 46441 KB)
UTF-32 convert to UTF-16: 2.144 milliseconds (10000 allocations: 47113 KB)
ASCII: Looping 1000 times, length=1024
length: 8.296 microseconds (1000 allocations: 44816 KB)
is_valid_ascii: 661.589 microseconds (0 allocations: 44800 KB)
Convert to UTF-8: 9.362 microseconds (1000 allocations: 44816 KB)
Convert to UTF-16: 7.807 milliseconds (10000 allocations: 53175 KB, 17.68% gc time)
Convert to UTF-32: 1.114 milliseconds (1000 allocations: 48909 KB)
ASCII:: Looping 1000 times, length=1024
UTF-8: 1024, UTF-16: 2048, UTF-32: 4096
UTF-8 length: 426.803 microseconds (1000 allocations: 44816 KB)
UTF-16 length: 382.347 microseconds (1000 allocations: 44816 KB)
UTF-32 length: 16.925 microseconds (1000 allocations: 44816 KB)
UTF-8 valid: 676.354 microseconds (0 allocations: 44800 KB)
UTF-16 valid: 998.947 microseconds (0 allocations: 44800 KB)
UTF-8 convert to UTF-16: 13.626 milliseconds (10000 allocations: 53175 KB)
UTF-8 convert to UTF-32: 8.054 milliseconds (1000 allocations: 48909 KB)
UTF-16 convert to UTF-8: 28.743 milliseconds (9000 allocations: 47331 KB)
UTF-16 convert to UTF-32: 7.370 milliseconds (1000 allocations: 48909 KB, 34.88% gc time)
UTF-32 convert to UTF-8: 12.394 milliseconds (5000 allocations: 47175 KB)
UTF-32 convert to UTF-16: 9.422 milliseconds (10000 allocations: 53175 KB)
Latin1:: Looping 1000 times, length=1024
UTF-8: 1344, UTF-16: 2048, UTF-32: 4096
UTF-8 length: 525.656 microseconds (1000 allocations: 44816 KB)
UTF-16 length: 481.439 microseconds (1000 allocations: 44816 KB)
UTF-32 length: 8.471 microseconds (1000 allocations: 44816 KB)
UTF-8 valid: 1.760 milliseconds (0 allocations: 44800 KB)
UTF-16 valid: 1.056 milliseconds (0 allocations: 44800 KB)
UTF-8 convert to UTF-16: 14.756 milliseconds (10000 allocations: 53175 KB)
UTF-8 convert to UTF-32: 11.517 milliseconds (1000 allocations: 48909 KB, 32.08% gc time)
UTF-16 convert to UTF-8: 37.941 milliseconds (9000 allocations: 49691 KB)
UTF-16 convert to UTF-32: 5.387 milliseconds (1000 allocations: 48909 KB)
UTF-32 convert to UTF-8: 19.672 milliseconds (4000 allocations: 49519 KB)
UTF-32 convert to UTF-16: 10.591 milliseconds (10000 allocations: 53175 KB, 24.48% gc time)
2-byte:: Looping 1000 times, length=1024
UTF-8: 1344, UTF-16: 2048, UTF-32: 4096
UTF-8 length: 485.268 microseconds (1000 allocations: 44816 KB)
UTF-16 length: 333.942 microseconds (1000 allocations: 44816 KB)
UTF-32 length: 7.291 microseconds (1000 allocations: 44816 KB)
UTF-8 valid: 1.666 milliseconds (0 allocations: 44800 KB)
UTF-16 valid: 913.781 microseconds (0 allocations: 44800 KB)
UTF-8 convert to UTF-16: 13.693 milliseconds (10000 allocations: 53175 KB)
UTF-8 convert to UTF-32: 7.453 milliseconds (1000 allocations: 48909 KB)
UTF-16 convert to UTF-8: 41.671 milliseconds (137k allocations: 51691 KB, 7.71% gc time)
UTF-16 convert to UTF-32: 4.094 milliseconds (1000 allocations: 48909 KB)
UTF-32 convert to UTF-8: 18.784 milliseconds (4000 allocations: 49519 KB)
UTF-32 convert to UTF-16: 7.035 milliseconds (10000 allocations: 53175 KB)
3-byte:: Looping 1000 times, length=1024
UTF-8: 1472, UTF-16: 2048, UTF-32: 4096
UTF-8 length: 610.685 microseconds (1000 allocations: 44816 KB)
UTF-16 length: 385.905 microseconds (1000 allocations: 44816 KB)
UTF-32 length: 17.008 microseconds (1000 allocations: 44816 KB)
UTF-8 valid: 1.922 milliseconds (0 allocations: 44800 KB)
UTF-16 valid: 1.020 milliseconds (0 allocations: 44800 KB)
UTF-8 convert to UTF-16: 18.239 milliseconds (10000 allocations: 53175 KB, 12.20% gc time)
UTF-8 convert to UTF-32: 9.805 milliseconds (1000 allocations: 48909 KB)
UTF-16 convert to UTF-8: 38.592 milliseconds (137k allocations: 51831 KB)
UTF-16 convert to UTF-32: 4.837 milliseconds (1000 allocations: 48909 KB)
UTF-32 convert to UTF-8: 22.690 milliseconds (4000 allocations: 49659 KB, 11.42% gc time)
UTF-32 convert to UTF-16: 7.117 milliseconds (10000 allocations: 53175 KB)
4-byte:: Looping 1000 times, length=1024
UTF-8: 1664, UTF-16: 2304, UTF-32: 4096
UTF-8 length: 637.092 microseconds (1000 allocations: 44816 KB)
UTF-16 length: 367.732 microseconds (1000 allocations: 44816 KB)
UTF-32 length: 6.740 microseconds (1000 allocations: 44816 KB)
UTF-8 valid: 2.012 milliseconds (0 allocations: 44800 KB)
UTF-16 valid: 1.326 milliseconds (0 allocations: 44800 KB)
UTF-8 convert to UTF-16: 15.881 milliseconds (10000 allocations: 53175 KB)
UTF-8 convert to UTF-32: 11.001 milliseconds (1000 allocations: 48909 KB)
UTF-16 convert to UTF-8: 43.576 milliseconds (265k allocations: 54331 KB, 4.50% gc time)
UTF-16 convert to UTF-32: 4.795 milliseconds (1000 allocations: 48909 KB)
UTF-32 convert to UTF-8: 23.537 milliseconds (4000 allocations: 49831 KB)
UTF-32 convert to UTF-16: 11.158 milliseconds (10000 allocations: 53175 KB, 23.79% gc time)
Surrogates:: Looping 1000 times, length=1152
UTF-8: 1920, UTF-16: 2304, UTF-32: 4608
UTF-8 length: 670.148 microseconds (1000 allocations: 44816 KB)
UTF-16 length: 364.562 microseconds (1000 allocations: 44816 KB)
UTF-32 length: 6.295 microseconds (1000 allocations: 44816 KB)
UTF-8 valid: 2.342 milliseconds (0 allocations: 44800 KB)
UTF-16 valid: 1.323 milliseconds (0 allocations: 44800 KB)
UTF-8 convert to UTF-16: 19.128 milliseconds (10000 allocations: 53175 KB)
UTF-8 convert to UTF-32: 12.699 milliseconds (1000 allocations: 49409 KB)
UTF-16 convert to UTF-8: 44.160 milliseconds (265k allocations: 54331 KB, 5.51% gc time)
UTF-16 convert to UTF-32: 4.014 milliseconds (1000 allocations: 48909 KB)
UTF-32 convert to UTF-8: 27.663 milliseconds (4000 allocations: 50378 KB)
UTF-32 convert to UTF-16: 11.934 milliseconds (10000 allocations: 53175 KB, 24.29% gc time)
ASCII: Looping 1000 times, length=4096
length: 8.221 microseconds (1000 allocations: 44816 KB)
is_valid_ascii: 2.701 milliseconds (0 allocations: 44800 KB)
Convert to UTF-8: 8.279 microseconds (1000 allocations: 44816 KB)
Convert to UTF-16: 28.675 milliseconds (10000 allocations: 77238 KB, 7.64% gc time)
Convert to UTF-32: 9.650 milliseconds (3000 allocations: 60894 KB, 32.07% gc time)
ASCII:: Looping 1000 times, length=4096
UTF-8: 4096, UTF-16: 8192, UTF-32: 16384
UTF-8 length: 1.418 milliseconds (1000 allocations: 44816 KB)
UTF-16 length: 1.249 milliseconds (1000 allocations: 44816 KB)
UTF-32 length: 19.635 microseconds (1000 allocations: 44816 KB)
UTF-8 valid: 2.424 milliseconds (0 allocations: 44800 KB)
UTF-16 valid: 3.936 milliseconds (0 allocations: 44800 KB)
UTF-8 convert to UTF-16: 50.072 milliseconds (10000 allocations: 77238 KB, 4.27% gc time)
UTF-8 convert to UTF-32: 30.436 milliseconds (3000 allocations: 60894 KB, 7.83% gc time)
UTF-16 convert to UTF-8: 113.160 milliseconds (7000 allocations: 53238 KB)
UTF-16 convert to UTF-32: 21.164 milliseconds (3000 allocations: 60894 KB, 16.76% gc time)
UTF-32 convert to UTF-8: 49.630 milliseconds (3000 allocations: 53081 KB)
UTF-32 convert to UTF-16: 36.634 milliseconds (10000 allocations: 77238 KB, 16.15% gc time)
Latin1:: Looping 1000 times, length=4096
UTF-8: 5376, UTF-16: 8192, UTF-32: 16384
UTF-8 length: 1.953 milliseconds (1000 allocations: 44816 KB)
UTF-16 length: 1.250 milliseconds (1000 allocations: 44816 KB)
UTF-32 length: 10.324 microseconds (1000 allocations: 44816 KB)
UTF-8 valid: 9.630 milliseconds (0 allocations: 44800 KB)
UTF-16 valid: 4.073 milliseconds (0 allocations: 44800 KB)
UTF-8 convert to UTF-16: 53.318 milliseconds (10000 allocations: 77238 KB, 2.62% gc time)
UTF-8 convert to UTF-32: 32.062 milliseconds (3000 allocations: 60894 KB, 6.72% gc time)
UTF-16 convert to UTF-8: 149.684 milliseconds (7000 allocations: 62534 KB, 1.67% gc time)
UTF-16 convert to UTF-32: 17.805 milliseconds (3000 allocations: 60894 KB)
UTF-32 convert to UTF-8: 80.324 milliseconds (2000 allocations: 62363 KB, 3.63% gc time)
UTF-32 convert to UTF-16: 36.887 milliseconds (10000 allocations: 77238 KB, 13.26% gc time)
2-byte:: Looping 1000 times, length=4096
UTF-8: 5376, UTF-16: 8192, UTF-32: 16384
UTF-8 length: 1.957 milliseconds (1000 allocations: 44816 KB)
UTF-16 length: 1.241 milliseconds (1000 allocations: 44816 KB)
UTF-32 length: 9.031 microseconds (1000 allocations: 44816 KB)
UTF-8 valid: 6.914 milliseconds (0 allocations: 44800 KB)
UTF-16 valid: 4.652 milliseconds (0 allocations: 44800 KB)
UTF-8 convert to UTF-16: 56.562 milliseconds (10000 allocations: 77238 KB, 4.01% gc time)
UTF-8 convert to UTF-32: 33.478 milliseconds (3000 allocations: 60894 KB, 6.36% gc time)
UTF-16 convert to UTF-8: 153.744 milliseconds (519k allocations: 70534 KB, 0.89% gc time)
UTF-16 convert to UTF-32: 19.739 milliseconds (3000 allocations: 60894 KB, 10.69% gc time)
UTF-32 convert to UTF-8: 84.928 milliseconds (2000 allocations: 62363 KB, 1.40% gc time)
UTF-32 convert to UTF-16: 31.106 milliseconds (10000 allocations: 77238 KB, 5.86% gc time)
3-byte:: Looping 1000 times, length=4096
UTF-8: 5888, UTF-16: 8192, UTF-32: 16384
UTF-8 length: 2.099 milliseconds (1000 allocations: 44816 KB)
UTF-16 length: 1.435 milliseconds (1000 allocations: 44816 KB)
UTF-32 length: 18.143 microseconds (1000 allocations: 44816 KB)
UTF-8 valid: 7.182 milliseconds (0 allocations: 44800 KB)
UTF-16 valid: 4.056 milliseconds (0 allocations: 44800 KB)
UTF-8 convert to UTF-16: 61.128 milliseconds (10000 allocations: 77238 KB, 3.80% gc time)
UTF-8 convert to UTF-32: 41.138 milliseconds (3000 allocations: 60894 KB, 6.24% gc time)
UTF-16 convert to UTF-8: 157.443 milliseconds (519k allocations: 71034 KB, 2.32% gc time)
UTF-16 convert to UTF-32: 20.600 milliseconds (3000 allocations: 60894 KB, 12.80% gc time)
UTF-32 convert to UTF-8: 86.014 milliseconds (2000 allocations: 62863 KB, 4.17% gc time)
UTF-32 convert to UTF-16: 32.661 milliseconds (10000 allocations: 77238 KB, 6.98% gc time)
4-byte:: Looping 1000 times, length=4096
UTF-8: 6656, UTF-16: 9216, UTF-32: 16384
UTF-8 length: 2.605 milliseconds (1000 allocations: 44816 KB)
UTF-16 length: 1.437 milliseconds (1000 allocations: 44816 KB)
UTF-32 length: 6.203 microseconds (1000 allocations: 44816 KB)
UTF-8 valid: 7.841 milliseconds (0 allocations: 44800 KB)
UTF-16 valid: 7.561 milliseconds (0 allocations: 44800 KB)
UTF-8 convert to UTF-16: 66.247 milliseconds (10000 allocations: 77238 KB, 7.19% gc time)
UTF-8 convert to UTF-32: 39.503 milliseconds (3000 allocations: 60894 KB)
UTF-16 convert to UTF-8: 166.785 milliseconds (1031k allocations: 81284 KB, 2.67% gc time)
UTF-16 convert to UTF-32: 18.849 milliseconds (3000 allocations: 60894 KB, 11.01% gc time)
UTF-32 convert to UTF-8: 99.759 milliseconds (2000 allocations: 63613 KB, 4.14% gc time)
UTF-32 convert to UTF-16: 39.853 milliseconds (10000 allocations: 77238 KB, 6.11% gc time)
Surrogates:: Looping 1000 times, length=4608
UTF-8: 7680, UTF-16: 9216, UTF-32: 18432
UTF-8 length: 2.650 milliseconds (1000 allocations: 44816 KB)
UTF-16 length: 1.400 milliseconds (1000 allocations: 44816 KB)
UTF-32 length: 7.293 microseconds (1000 allocations: 44816 KB)
UTF-8 valid: 9.772 milliseconds (0 allocations: 44800 KB)
UTF-16 valid: 5.554 milliseconds (0 allocations: 44800 KB)
UTF-8 convert to UTF-16: 73.237 milliseconds (10000 allocations: 77238 KB, 5.46% gc time)
UTF-8 convert to UTF-32: 44.069 milliseconds (3000 allocations: 62894 KB)
UTF-16 convert to UTF-8: 166.766 milliseconds (1031k allocations: 81284 KB, 2.57% gc time)
UTF-16 convert to UTF-32: 19.406 milliseconds (3000 allocations: 60894 KB, 10.62% gc time)
UTF-32 convert to UTF-8: 112.695 milliseconds (2000 allocations: 66113 KB, 2.07% gc time)
UTF-32 convert to UTF-16: 34.855 milliseconds (10000 allocations: 77238 KB, 5.98% gc time)
ASCII: Looping 1000 times, length=16384
length: 9.482 microseconds (1000 allocations: 44816 KB)
is_valid_ascii: 10.266 milliseconds (0 allocations: 44800 KB)
Convert to UTF-8: 19.301 microseconds (1000 allocations: 44816 KB)
Convert to UTF-16: 116.143 milliseconds (10000 allocations: 169 MB, 9.95% gc time)
Convert to UTF-32: 23.882 milliseconds (3000 allocations: 106 MB, 16.22% gc time)
ASCII:: Looping 1000 times, length=16384
UTF-8: 16384, UTF-16: 32768, UTF-32: 65536
UTF-8 length: 5.779 milliseconds (1000 allocations: 44816 KB)
UTF-16 length: 5.137 milliseconds (1000 allocations: 44816 KB)
UTF-32 length: 7.075 microseconds (1000 allocations: 44816 KB)
UTF-8 valid: 10.028 milliseconds (0 allocations: 44800 KB)
UTF-16 valid: 16.702 milliseconds (0 allocations: 44800 KB)
UTF-8 convert to UTF-16: 196.462 milliseconds (10000 allocations: 169 MB, 4.95% gc time)
UTF-8 convert to UTF-32: 113.042 milliseconds (3000 allocations: 106 MB, 5.52% gc time)
UTF-16 convert to UTF-8: 453.498 milliseconds (11000 allocations: 77206 KB, 0.98% gc time)
UTF-16 convert to UTF-32: 77.018 milliseconds (3000 allocations: 106 MB, 7.68% gc time)
UTF-32 convert to UTF-8: 198.819 milliseconds (7000 allocations: 77050 KB, 0.91% gc time)
UTF-32 convert to UTF-16: 132.031 milliseconds (10000 allocations: 169 MB, 9.64% gc time)
Latin1:: Looping 1000 times, length=16384
UTF-8: 21504, UTF-16: 32768, UTF-32: 65536
UTF-8 length: 7.491 milliseconds (1000 allocations: 44816 KB)
UTF-16 length: 4.944 milliseconds (1000 allocations: 44816 KB)
UTF-32 length: 7.731 microseconds (1000 allocations: 44816 KB)
UTF-8 valid: 25.984 milliseconds (0 allocations: 44800 KB)
UTF-16 valid: 15.098 milliseconds (0 allocations: 44800 KB)
UTF-8 convert to UTF-16: 221.152 milliseconds (10000 allocations: 169 MB, 6.07% gc time)
UTF-8 convert to UTF-32: 126.116 milliseconds (3000 allocations: 106 MB, 3.62% gc time)
UTF-16 convert to UTF-8: 581.907 milliseconds (12000 allocations: 98222 KB, 1.05% gc time)
UTF-16 convert to UTF-32: 75.002 milliseconds (3000 allocations: 106 MB, 7.15% gc time)
UTF-32 convert to UTF-8: 303.808 milliseconds (7000 allocations: 98050 KB, 1.28% gc time)
UTF-32 convert to UTF-16: 127.898 milliseconds (10000 allocations: 169 MB, 9.27% gc time)
2-byte:: Looping 1000 times, length=16384
UTF-8: 21504, UTF-16: 32768, UTF-32: 65536
UTF-8 length: 7.922 milliseconds (1000 allocations: 44816 KB)
UTF-16 length: 5.101 milliseconds (1000 allocations: 44816 KB)
UTF-32 length: 17.801 microseconds (1000 allocations: 44816 KB)
UTF-8 valid: 31.483 milliseconds (0 allocations: 44800 KB)
UTF-16 valid: 15.157 milliseconds (0 allocations: 44800 KB)
UTF-8 convert to UTF-16: 218.512 milliseconds (10000 allocations: 169 MB, 4.41% gc time)
UTF-8 convert to UTF-32: 126.811 milliseconds (3000 allocations: 106 MB, 4.73% gc time)
UTF-16 convert to UTF-8: 598.277 milliseconds (2060k allocations: 127 MB, 1.22% gc time)
UTF-16 convert to UTF-32: 74.836 milliseconds (3000 allocations: 106 MB, 6.92% gc time)
UTF-32 convert to UTF-8: 304.902 milliseconds (7000 allocations: 98050 KB, 1.33% gc time)
UTF-32 convert to UTF-16: 128.997 milliseconds (10000 allocations: 169 MB, 8.69% gc time)
3-byte:: Looping 1000 times, length=16384
UTF-8: 23552, UTF-16: 32768, UTF-32: 65536
UTF-8 length: 8.242 milliseconds (1000 allocations: 44816 KB)
UTF-16 length: 4.993 milliseconds (1000 allocations: 44816 KB)
UTF-32 length: 18.102 microseconds (1000 allocations: 44816 KB)
UTF-8 valid: 28.345 milliseconds (0 allocations: 44800 KB)
UTF-16 valid: 14.841 milliseconds (0 allocations: 44800 KB)
UTF-8 convert to UTF-16: 239.026 milliseconds (10000 allocations: 169 MB, 4.82% gc time)
UTF-8 convert to UTF-32: 160.645 milliseconds (3000 allocations: 106 MB, 3.75% gc time)
UTF-16 convert to UTF-8: 612.820 milliseconds (2060k allocations: 129 MB, 1.11% gc time)
UTF-16 convert to UTF-32: 73.672 milliseconds (3000 allocations: 106 MB, 5.04% gc time)
UTF-32 convert to UTF-8: 327.389 milliseconds (7000 allocations: 100050 KB, 1.86% gc time)
UTF-32 convert to UTF-16: 127.421 milliseconds (10000 allocations: 169 MB, 9.58% gc time)
4-byte:: Looping 1000 times, length=16384
UTF-8: 26624, UTF-16: 36864, UTF-32: 65536
UTF-8 length: 9.306 milliseconds (1000 allocations: 44816 KB)
UTF-16 length: 5.578 milliseconds (1000 allocations: 44816 KB)
UTF-32 length: 18.821 microseconds (1000 allocations: 44816 KB)
UTF-8 valid: 35.831 milliseconds (0 allocations: 44800 KB)
UTF-16 valid: 21.508 milliseconds (0 allocations: 44800 KB)
UTF-8 convert to UTF-16: 246.236 milliseconds (10000 allocations: 169 MB, 3.88% gc time)
UTF-8 convert to UTF-32: 162.390 milliseconds (3000 allocations: 106 MB, 3.65% gc time)
UTF-16 convert to UTF-8: 651.891 milliseconds (4108k allocations: 167 MB, 1.41% gc time)
UTF-16 convert to UTF-32: 73.995 milliseconds (3000 allocations: 106 MB, 7.78% gc time)
UTF-32 convert to UTF-8: 369.978 milliseconds (7000 allocations: 101 MB, 1.10% gc time)
UTF-32 convert to UTF-16: 152.380 milliseconds (10000 allocations: 169 MB, 7.99% gc time)
Surrogates:: Looping 1000 times, length=18432
UTF-8: 30720, UTF-16: 36864, UTF-32: 73728
UTF-8 length: 10.742 milliseconds (1000 allocations: 44816 KB)
UTF-16 length: 6.282 milliseconds (1000 allocations: 44816 KB)
UTF-32 length: 22.777 microseconds (1000 allocations: 44816 KB)
UTF-8 valid: 38.846 milliseconds (0 allocations: 44800 KB)
UTF-16 valid: 21.346 milliseconds (0 allocations: 44800 KB)
UTF-8 convert to UTF-16: 284.083 milliseconds (10000 allocations: 169 MB, 4.34% gc time)
UTF-8 convert to UTF-32: 185.483 milliseconds (3000 allocations: 114 MB, 3.34% gc time)
UTF-16 convert to UTF-8: 657.351 milliseconds (4108k allocations: 167 MB, 1.55% gc time)
UTF-16 convert to UTF-32: 75.022 milliseconds (3000 allocations: 106 MB, 7.75% gc time)
UTF-32 convert to UTF-8: 453.868 milliseconds (7000 allocations: 108 MB, 0.77% gc time)
UTF-32 convert to UTF-16: 140.331 milliseconds (10000 allocations: 169 MB, 8.31% gc time)
ASCII: Looping 1000 times, length=65536
length: 9.223 microseconds (1000 allocations: 44816 KB)
is_valid_ascii: 39.152 milliseconds (0 allocations: 44800 KB)
Convert to UTF-8: 12.025 microseconds (1000 allocations: 44816 KB)
Convert to UTF-16: 488.061 milliseconds (10000 allocations: 544 MB, 7.37% gc time)
Convert to UTF-32: 146.601 milliseconds (3000 allocations: 294 MB, 10.14% gc time)
ASCII:: Looping 1000 times, length=65536
UTF-8: 65536, UTF-16: 131072, UTF-32: 262144
UTF-8 length: 22.959 milliseconds (1000 allocations: 44816 KB)
UTF-16 length: 20.029 milliseconds (1000 allocations: 44816 KB)
UTF-32 length: 8.295 microseconds (1000 allocations: 44816 KB)
UTF-8 valid: 39.545 milliseconds (0 allocations: 44800 KB)
UTF-16 valid: 66.749 milliseconds (0 allocations: 44800 KB)
UTF-8 convert to UTF-16: 815.020 milliseconds (10000 allocations: 544 MB, 3.46% gc time)
UTF-8 convert to UTF-32: 549.641 milliseconds (3000 allocations: 294 MB, 4.04% gc time)
UTF-16 convert to UTF-8: 2.018 seconds (11000 allocations: 169 MB, 0.29% gc time)
UTF-16 convert to UTF-32: 382.330 milliseconds (3000 allocations: 294 MB, 5.64% gc time)
UTF-32 convert to UTF-8: 868.003 milliseconds (7000 allocations: 169 MB, 0.79% gc time)
UTF-32 convert to UTF-16: 582.671 milliseconds (10000 allocations: 544 MB, 5.74% gc time)
Latin1:: Looping 1000 times, length=65536
UTF-8: 86016, UTF-16: 131072, UTF-32: 262144
UTF-8 length: 36.590 milliseconds (1000 allocations: 44816 KB)
UTF-16 length: 22.398 milliseconds (1000 allocations: 44816 KB)
UTF-32 length: 10.831 microseconds (1000 allocations: 44816 KB)
UTF-8 valid: 136.805 milliseconds (0 allocations: 44800 KB)
UTF-16 valid: 75.609 milliseconds (0 allocations: 44800 KB)
UTF-8 convert to UTF-16: 1.012 seconds (10000 allocations: 544 MB, 3.39% gc time)
UTF-8 convert to UTF-32: 601.999 milliseconds (3000 allocations: 294 MB, 3.39% gc time)
UTF-16 convert to UTF-8: 2.559 seconds (12000 allocations: 251 MB, 0.70% gc time)
UTF-16 convert to UTF-32: 392.072 milliseconds (3000 allocations: 294 MB, 5.31% gc time)
UTF-32 convert to UTF-8: 1.364 seconds (7000 allocations: 251 MB, 1.27% gc time)
UTF-32 convert to UTF-16: 559.620 milliseconds (10000 allocations: 544 MB, 5.05% gc time)
2-byte:: Looping 1000 times, length=65536
UTF-8: 86016, UTF-16: 131072, UTF-32: 262144
UTF-8 length: 29.851 milliseconds (1000 allocations: 44816 KB)
UTF-16 length: 20.920 milliseconds (1000 allocations: 44816 KB)
UTF-32 length: 10.062 microseconds (1000 allocations: 44816 KB)
UTF-8 valid: 140.827 milliseconds (0 allocations: 44800 KB)
UTF-16 valid: 62.697 milliseconds (0 allocations: 44800 KB)
UTF-8 convert to UTF-16: 923.887 milliseconds (10000 allocations: 544 MB, 3.29% gc time)
UTF-8 convert to UTF-32: 607.069 milliseconds (3000 allocations: 294 MB, 3.49% gc time)
UTF-16 convert to UTF-8: 2.651 seconds (8204k allocations: 376 MB, 0.90% gc time)
UTF-16 convert to UTF-32: 382.968 milliseconds (3000 allocations: 294 MB, 5.46% gc time)
UTF-32 convert to UTF-8: 1.434 seconds (7000 allocations: 251 MB, 1.15% gc time)
UTF-32 convert to UTF-16: 579.631 milliseconds (10000 allocations: 544 MB, 5.56% gc time)
3-byte:: Looping 1000 times, length=65536
UTF-8: 94208, UTF-16: 131072, UTF-32: 262144
UTF-8 length: 36.875 milliseconds (1000 allocations: 44816 KB)
UTF-16 length: 21.792 milliseconds (1000 allocations: 44816 KB)
UTF-32 length: 18.149 microseconds (1000 allocations: 44816 KB)
UTF-8 valid: 118.598 milliseconds (0 allocations: 44800 KB)
UTF-16 valid: 70.699 milliseconds (0 allocations: 44800 KB)
UTF-8 convert to UTF-16: 1.120 seconds (10000 allocations: 544 MB, 2.99% gc time)
UTF-8 convert to UTF-32: 788.594 milliseconds (3000 allocations: 294 MB, 2.84% gc time)
UTF-16 convert to UTF-8: 2.823 seconds (8204k allocations: 384 MB, 0.90% gc time)
UTF-16 convert to UTF-32: 386.303 milliseconds (3000 allocations: 294 MB, 5.43% gc time)
UTF-32 convert to UTF-8: 1.527 seconds (7000 allocations: 259 MB, 1.14% gc time)
UTF-32 convert to UTF-16: 584.812 milliseconds (10000 allocations: 544 MB, 5.59% gc time)
4-byte:: Looping 1000 times, length=65536
UTF-8: 106496, UTF-16: 147456, UTF-32: 262144
UTF-8 length: 38.509 milliseconds (1000 allocations: 44816 KB)
UTF-16 length: 27.127 milliseconds (1000 allocations: 44816 KB)
UTF-32 length: 23.494 microseconds (1000 allocations: 44816 KB)
UTF-8 valid: 142.017 milliseconds (0 allocations: 44800 KB)
UTF-16 valid: 94.685 milliseconds (0 allocations: 44800 KB)
UTF-8 convert to UTF-16: 1.133 seconds (10000 allocations: 544 MB, 2.93% gc time)
UTF-8 convert to UTF-32: 825.568 milliseconds (3000 allocations: 294 MB, 2.92% gc time)
UTF-16 convert to UTF-8: 2.992 seconds (16396k allocations: 536 MB, 0.95% gc time)
UTF-16 convert to UTF-32: 365.171 milliseconds (3000 allocations: 294 MB, 5.76% gc time)
UTF-32 convert to UTF-8: 1.685 seconds (7000 allocations: 271 MB, 0.97% gc time)
UTF-32 convert to UTF-16: 700.776 milliseconds (10000 allocations: 544 MB, 4.72% gc time)
Surrogates:: Looping 1000 times, length=73728
UTF-8: 122880, UTF-16: 147456, UTF-32: 294912
UTF-8 length: 45.174 milliseconds (1000 allocations: 44816 KB)
UTF-16 length: 30.691 milliseconds (1000 allocations: 44816 KB)
UTF-32 length: 12.097 microseconds (1000 allocations: 44816 KB)
UTF-8 valid: 167.274 milliseconds (0 allocations: 44800 KB)
UTF-16 valid: 97.340 milliseconds (0 allocations: 44800 KB)
UTF-8 convert to UTF-16: 1.269 seconds (10000 allocations: 544 MB, 2.57% gc time)
UTF-8 convert to UTF-32: 885.393 milliseconds (3000 allocations: 325 MB, 2.68% gc time)
UTF-16 convert to UTF-8: 2.699 seconds (16396k allocations: 536 MB, 1.02% gc time)
UTF-16 convert to UTF-32: 355.896 milliseconds (3000 allocations: 294 MB, 5.77% gc time)
UTF-32 convert to UTF-8: 1.977 seconds (7000 allocations: 302 MB, 1.00% gc time)
UTF-32 convert to UTF-16: 725.413 milliseconds (10000 allocations: 544 MB, 5.13% gc time)
ASCII: Looping 1000 times, length=262144
length: 11.550 microseconds (1000 allocations: 44816 KB)
is_valid_ascii: 187.689 milliseconds (0 allocations: 44800 KB)
Convert to UTF-8: 12.272 microseconds (1000 allocations: 44816 KB)
Convert to UTF-16: 2.162 seconds (11000 allocations: 2044 MB, 5.63% gc time)
Convert to UTF-32: 416.721 milliseconds (3000 allocations: 1044 MB, 8.94% gc time)
ASCII:: Looping 1000 times, length=262144
UTF-8: 262144, UTF-16: 524288, UTF-32: 1048576
UTF-8 length: 106.263 milliseconds (1000 allocations: 44816 KB)
UTF-16 length: 95.118 milliseconds (1000 allocations: 44816 KB)
UTF-32 length: 23.845 microseconds (1000 allocations: 44816 KB)
UTF-8 valid: 165.101 milliseconds (0 allocations: 44800 KB)
UTF-16 valid: 270.803 milliseconds (0 allocations: 44800 KB)
UTF-8 convert to UTF-16: 3.630 seconds (11000 allocations: 2044 MB, 3.48% gc time)
UTF-8 convert to UTF-32: 1.851 seconds (3000 allocations: 1044 MB, 2.82% gc time)
UTF-16 convert to UTF-8: 7.609 seconds (11000 allocations: 544 MB, 0.59% gc time)
UTF-16 convert to UTF-32: 1.277 seconds (3000 allocations: 1044 MB, 3.88% gc time)
UTF-32 convert to UTF-8: 3.507 seconds (7000 allocations: 544 MB, 1.32% gc time)
UTF-32 convert to UTF-16: 2.404 seconds (11000 allocations: 2044 MB, 5.22% gc time)
Latin1:: Looping 1000 times, length=262144
UTF-8: 344064, UTF-16: 524288, UTF-32: 1048576
UTF-8 length: 120.773 milliseconds (1000 allocations: 44816 KB)
UTF-16 length: 80.061 milliseconds (1000 allocations: 44816 KB)
UTF-32 length: 18.072 microseconds (1000 allocations: 44816 KB)
UTF-8 valid: 463.355 milliseconds (0 allocations: 44800 KB)
UTF-16 valid: 234.904 milliseconds (0 allocations: 44800 KB)
UTF-8 convert to UTF-16: 3.629 seconds (11000 allocations: 2044 MB, 3.17% gc time)
UTF-8 convert to UTF-32: 2.002 seconds (3000 allocations: 1044 MB, 2.33% gc time)
UTF-16 convert to UTF-8: 9.486 seconds (12000 allocations: 872 MB, 0.69% gc time)
UTF-16 convert to UTF-32: 1.184 seconds (3000 allocations: 1044 MB, 4.02% gc time)
UTF-32 convert to UTF-8: 5.245 seconds (7000 allocations: 872 MB, 1.27% gc time)
UTF-32 convert to UTF-16: 2.132 seconds (11000 allocations: 2044 MB, 5.40% gc time)
2-byte:: Looping 1000 times, length=262144
UTF-8: 344064, UTF-16: 524288, UTF-32: 1048576
UTF-8 length: 120.035 milliseconds (1000 allocations: 44816 KB)
UTF-16 length: 79.673 milliseconds (1000 allocations: 44816 KB)
UTF-32 length: 18.428 microseconds (1000 allocations: 44816 KB)
UTF-8 valid: 458.416 milliseconds (0 allocations: 44800 KB)
UTF-16 valid: 242.890 milliseconds (0 allocations: 44800 KB)
UTF-8 convert to UTF-16: 3.594 seconds (11000 allocations: 2044 MB, 3.20% gc time)
UTF-8 convert to UTF-32: 2.020 seconds (3000 allocations: 1044 MB, 2.43% gc time)
UTF-16 convert to UTF-8: 9.925 seconds (32780k allocations: 1372 MB, 0.88% gc time)
UTF-16 convert to UTF-32: 1.191 seconds (3000 allocations: 1044 MB, 3.98% gc time)
UTF-32 convert to UTF-8: 5.169 seconds (7000 allocations: 872 MB, 1.26% gc time)
UTF-32 convert to UTF-16: 2.144 seconds (11000 allocations: 2044 MB, 5.34% gc time)
3-byte:: Looping 1000 times, length=262144
UTF-8: 376832, UTF-16: 524288, UTF-32: 1048576
UTF-8 length: 135.143 milliseconds (1000 allocations: 44816 KB)
UTF-16 length: 82.928 milliseconds (1000 allocations: 44816 KB)
UTF-32 length: 9.916 microseconds (1000 allocations: 44816 KB)
UTF-8 valid: 464.712 milliseconds (0 allocations: 44800 KB)
UTF-16 valid: 235.632 milliseconds (0 allocations: 44800 KB)
UTF-8 convert to UTF-16: 3.919 seconds (11000 allocations: 2044 MB, 2.84% gc time)
UTF-8 convert to UTF-32: 2.558 seconds (3000 allocations: 1044 MB, 1.85% gc time)
UTF-16 convert to UTF-8: 10.040 seconds (32780k allocations: 1404 MB, 0.88% gc time)
UTF-16 convert to UTF-32: 1.174 seconds (3000 allocations: 1044 MB, 4.00% gc time)
UTF-32 convert to UTF-8: 5.511 seconds (7000 allocations: 903 MB, 1.22% gc time)
UTF-32 convert to UTF-16: 2.167 seconds (11000 allocations: 2044 MB, 5.47% gc time)
4-byte:: Looping 1000 times, length=262144
UTF-8: 425984, UTF-16: 589824, UTF-32: 1048576
UTF-8 length: 149.894 milliseconds (1000 allocations: 44816 KB)
UTF-16 length: 94.105 milliseconds (1000 allocations: 44816 KB)
UTF-32 length: 9.392 microseconds (1000 allocations: 44816 KB)
UTF-8 valid: 514.362 milliseconds (0 allocations: 44800 KB)
UTF-16 valid: 340.891 milliseconds (0 allocations: 44800 KB)
UTF-8 convert to UTF-16: 4.107 seconds (11000 allocations: 2044 MB, 2.88% gc time)
UTF-8 convert to UTF-32: 2.611 seconds (3000 allocations: 1044 MB, 1.82% gc time)
UTF-16 convert to UTF-8: 10.705 seconds (65548k allocations: 2013 MB, 1.08% gc time)
UTF-16 convert to UTF-32: 1.155 seconds (3000 allocations: 1044 MB, 4.05% gc time)
UTF-32 convert to UTF-8: 6.240 seconds (7000 allocations: 950 MB, 1.12% gc time)
UTF-32 convert to UTF-16: 2.533 seconds (11000 allocations: 2044 MB, 4.84% gc time)
Surrogates:: Looping 1000 times, length=294912
UTF-8: 491520, UTF-16: 589824, UTF-32: 1179648
UTF-8 length: 172.112 milliseconds (1000 allocations: 44816 KB)
UTF-16 length: 105.048 milliseconds (1000 allocations: 44816 KB)
UTF-32 length: 24.144 microseconds (1000 allocations: 44816 KB)
UTF-8 valid: 629.621 milliseconds (0 allocations: 44800 KB)
UTF-16 valid: 340.416 milliseconds (0 allocations: 44800 KB)
UTF-8 convert to UTF-16: 4.581 seconds (11000 allocations: 2044 MB, 2.55% gc time)
UTF-8 convert to UTF-32: 2.881 seconds (3000 allocations: 1169 MB, 1.90% gc time)
UTF-16 convert to UTF-8: 10.690 seconds (65548k allocations: 2013 MB, 1.05% gc time)
UTF-16 convert to UTF-32: 1.168 seconds (3000 allocations: 1044 MB, 4.13% gc time)
UTF-32 convert to UTF-8: 7.342 seconds (7000 allocations: 1075 MB, 1.04% gc time)
UTF-32 convert to UTF-16: 2.369 seconds (11000 allocations: 2044 MB, 5.01% gc time)
ASCII: Looping 1000 times, length=1048576
length: 15.902 microseconds (1000 allocations: 44816 KB)
is_valid_ascii: 625.423 milliseconds (0 allocations: 44800 KB)
Convert to UTF-8: 9.473 microseconds (1000 allocations: 44816 KB)
Convert to UTF-16: 7.370 seconds (13000 allocations: 5044 MB, 3.48% gc time)
Convert to UTF-32: 1.296 seconds (3000 allocations: 4044 MB, 11.55% gc time)
ASCII:: Looping 1000 times, length=1048576
UTF-8: 1048576, UTF-16: 2097152, UTF-32: 4194304
UTF-8 length: 365.030 milliseconds (1000 allocations: 44816 KB)
UTF-16 length: 323.032 milliseconds (1000 allocations: 44816 KB)
UTF-32 length: 24.572 microseconds (1000 allocations: 44816 KB)
UTF-8 valid: 618.927 milliseconds (0 allocations: 44800 KB)
UTF-16 valid: 934.269 milliseconds (0 allocations: 44800 KB)
UTF-8 convert to UTF-16: 12.665 seconds (13000 allocations: 5044 MB, 1.71% gc time)
UTF-8 convert to UTF-32: 6.896 seconds (3000 allocations: 4044 MB, 4.16% gc time)
UTF-16 convert to UTF-8: 29.016 seconds (11000 allocations: 2044 MB, 0.29% gc time)
UTF-16 convert to UTF-32: 4.767 seconds (3000 allocations: 4044 MB, 7.13% gc time)
UTF-32 convert to UTF-8: 12.593 seconds (7000 allocations: 2044 MB, 0.64% gc time)
UTF-32 convert to UTF-16: 8.296 seconds (13000 allocations: 5044 MB, 2.61% gc time)
Latin1:: Looping 1000 times, length=1048576
UTF-8: 1376256, UTF-16: 2097152, UTF-32: 4194304
UTF-8 length: 481.610 milliseconds (1000 allocations: 44816 KB)
UTF-16 length: 316.221 milliseconds (1000 allocations: 44816 KB)
UTF-32 length: 8.400 microseconds (1000 allocations: 44816 KB)
UTF-8 valid: 1.747 seconds (0 allocations: 44800 KB)
UTF-16 valid: 952.278 milliseconds (0 allocations: 44800 KB)
UTF-8 convert to UTF-16: 14.167 seconds (13000 allocations: 5044 MB, 1.47% gc time)
UTF-8 convert to UTF-32: 7.797 seconds (3000 allocations: 4044 MB, 2.94% gc time)
UTF-16 convert to UTF-8: 37.643 seconds (12000 allocations: 3357 MB, 0.40% gc time)
UTF-16 convert to UTF-32: 4.772 seconds (3000 allocations: 4044 MB, 7.13% gc time)
UTF-32 convert to UTF-8: 20.452 seconds (7000 allocations: 3356 MB, 0.72% gc time)
UTF-32 convert to UTF-16: 7.874 seconds (13000 allocations: 5044 MB, 4.18% gc time)
2-byte:: Looping 1000 times, length=1048576
UTF-8: 1376256, UTF-16: 2097152, UTF-32: 4194304
UTF-8 length: 482.526 milliseconds (1000 allocations: 44816 KB)
UTF-16 length: 333.116 milliseconds (1000 allocations: 44816 KB)
UTF-32 length: 10.869 microseconds (1000 allocations: 44816 KB)
UTF-8 valid: 2.060 seconds (0 allocations: 44800 KB)
UTF-16 valid: 942.712 milliseconds (0 allocations: 44800 KB)
UTF-8 convert to UTF-16: 13.779 seconds (13000 allocations: 5044 MB, 2.22% gc time)
UTF-8 convert to UTF-32: 8.078 seconds (3000 allocations: 4044 MB, 4.28% gc time)
UTF-16 convert to UTF-8: 39.771 seconds (131M allocations: 5357 MB, 0.69% gc time)
UTF-16 convert to UTF-32: 4.649 seconds (3000 allocations: 4044 MB, 6.43% gc time)
UTF-32 convert to UTF-8: 20.749 seconds (7000 allocations: 3356 MB, 0.87% gc time)
UTF-32 convert to UTF-16: 8.270 seconds (13000 allocations: 5044 MB, 2.90% gc time)
3-byte:: Looping 1000 times, length=1048576
UTF-8: 1507328, UTF-16: 2097152, UTF-32: 4194304
UTF-8 length: 522.746 milliseconds (1000 allocations: 44816 KB)
UTF-16 length: 319.181 milliseconds (1000 allocations: 44816 KB)
UTF-32 length: 20.803 microseconds (1000 allocations: 44816 KB)
UTF-8 valid: 1.835 seconds (0 allocations: 44800 KB)
UTF-16 valid: 956.483 milliseconds (0 allocations: 44800 KB)
UTF-8 convert to UTF-16: 15.545 seconds (13000 allocations: 5044 MB, 1.48% gc time)
UTF-8 convert to UTF-32: 10.095 seconds (3000 allocations: 4044 MB, 2.96% gc time)
UTF-16 convert to UTF-8: 40.201 seconds (131M allocations: 5482 MB, 0.66% gc time)
UTF-16 convert to UTF-32: 4.909 seconds (3000 allocations: 4044 MB, 8.10% gc time)
UTF-32 convert to UTF-8: 21.720 seconds (7000 allocations: 3481 MB, 0.95% gc time)
UTF-32 convert to UTF-16: 8.256 seconds (13000 allocations: 5044 MB, 2.86% gc time)
4-byte:: Looping 1000 times, length=1048576
UTF-8: 1703936, UTF-16: 2359296, UTF-32: 4194304
UTF-8 length: 596.336 milliseconds (1000 allocations: 44816 KB)
UTF-16 length: 382.633 milliseconds (1000 allocations: 44816 KB)
UTF-32 length: 11.145 microseconds (1000 allocations: 44816 KB)
UTF-8 valid: 2.017 seconds (0 allocations: 44800 KB)
UTF-16 valid: 1.374 seconds (0 allocations: 44800 KB)
UTF-8 convert to UTF-16: 16.366 seconds (13000 allocations: 5044 MB, 1.48% gc time)
UTF-8 convert to UTF-32: 10.359 seconds (3000 allocations: 4044 MB, 2.92% gc time)
UTF-16 convert to UTF-8: 43.079 seconds (262M allocations: 7919 MB, 0.86% gc time)
UTF-16 convert to UTF-32: 4.597 seconds (3000 allocations: 4044 MB, 6.60% gc time)
UTF-32 convert to UTF-8: 24.637 seconds (7000 allocations: 3669 MB, 0.77% gc time)
UTF-32 convert to UTF-16: 9.762 seconds (13000 allocations: 5044 MB, 2.64% gc time)
Surrogates:: Looping 1000 times, length=1179648
UTF-8: 1966080, UTF-16: 2359296, UTF-32: 4718592
UTF-8 length: 690.081 milliseconds (1000 allocations: 44816 KB)
UTF-16 length: 365.306 milliseconds (1000 allocations: 44816 KB)
UTF-32 length: 10.257 microseconds (1000 allocations: 44816 KB)
UTF-8 valid: 2.484 seconds (0 allocations: 44800 KB)
UTF-16 valid: 1.356 seconds (0 allocations: 44800 KB)
UTF-8 convert to UTF-16: 18.282 seconds (13000 allocations: 5044 MB, 1.37% gc time)
UTF-8 convert to UTF-32: 11.530 seconds (3000 allocations: 4544 MB, 2.80% gc time)
UTF-16 convert to UTF-8: 43.026 seconds (262M allocations: 7919 MB, 0.86% gc time)
UTF-16 convert to UTF-32: 4.618 seconds (3000 allocations: 4044 MB, 6.57% gc time)
UTF-32 convert to UTF-8: 29.222 seconds (7000 allocations: 4169 MB, 0.89% gc time)
UTF-32 convert to UTF-16: 9.022 seconds (13000 allocations: 5044 MB, 2.75% gc time)
ASCII: Looping 1000 times, length=4194304
length: 10.777 microseconds (1000 allocations: 89616 KB)
is_valid_ascii: 2.619 seconds (0 allocations: 89600 KB)
Convert to UTF-8: 12.343 microseconds (1000 allocations: 89616 KB)
Convert to UTF-16: 30.693 seconds (15000 allocations: 17088 MB, 2.59% gc time)
Convert to UTF-32: 6.320 seconds (3000 allocations: 16044 MB, 16.86% gc time)
ASCII:: Looping 1000 times, length=4194304
UTF-8: 4194304, UTF-16: 8388608, UTF-32: 16777216
UTF-8 length: 1.489 seconds (1000 allocations: 44816 KB)
UTF-16 length: 1.304 seconds (1000 allocations: 44816 KB)
UTF-32 length: 10.543 microseconds (1000 allocations: 44816 KB)
UTF-8 valid: 2.485 seconds (0 allocations: 44800 KB)
UTF-16 valid: 3.888 seconds (0 allocations: 44800 KB)
UTF-8 convert to UTF-16: 51.201 seconds (15000 allocations: 17044 MB, 1.57% gc time)
UTF-8 convert to UTF-32: 28.550 seconds (3000 allocations: 16044 MB, 5.34% gc time)
UTF-16 convert to UTF-8: 118.063 seconds (11000 allocations: 8044 MB, 0.51% gc time)
UTF-16 convert to UTF-32: 20.661 seconds (3000 allocations: 16044 MB, 7.64% gc time)
UTF-32 convert to UTF-8: 51.985 seconds (7000 allocations: 8044 MB, 1.15% gc time)
UTF-32 convert to UTF-16: 35.050 seconds (15000 allocations: 17044 MB, 2.53% gc time)
Latin1:: Looping 1000 times, length=4194304
UTF-8: 5505024, UTF-16: 8388608, UTF-32: 16777216
UTF-8 length: 1.960 seconds (1000 allocations: 44816 KB)
UTF-16 length: 1.367 seconds (1000 allocations: 44816 KB)
UTF-32 length: 20.860 microseconds (1000 allocations: 44816 KB)
UTF-8 valid: 8.284 seconds (0 allocations: 44800 KB)
UTF-16 valid: 3.880 seconds (0 allocations: 44800 KB)
UTF-8 convert to UTF-16: 61.071 seconds (15000 allocations: 17044 MB, 1.50% gc time)
UTF-8 convert to UTF-32: 35.981 seconds (3000 allocations: 16044 MB, 4.54% gc time)
UTF-16 convert to UTF-8: 161.087 seconds (12000 allocations: 13294 MB, 0.73% gc time)
UTF-16 convert to UTF-32: 20.735 seconds (3000 allocations: 16044 MB, 7.94% gc time)
UTF-32 convert to UTF-8: 91.747 seconds (7000 allocations: 13294 MB, 1.29% gc time)
UTF-32 convert to UTF-16: 36.443 seconds (15000 allocations: 17044 MB, 2.29% gc time)
2-byte:: Looping 1000 times, length=4194304
UTF-8: 5505024, UTF-16: 8388608, UTF-32: 16777216
UTF-8 length: 1.951 seconds (1000 allocations: 44816 KB)
UTF-16 length: 1.357 seconds (1000 allocations: 44816 KB)
UTF-32 length: 7.232 microseconds (1000 allocations: 44816 KB)
UTF-8 valid: 8.094 seconds (0 allocations: 44800 KB)
UTF-16 valid: 4.082 seconds (0 allocations: 44800 KB)
UTF-8 convert to UTF-16: 60.511 seconds (15000 allocations: 17044 MB, 1.40% gc time)
UTF-8 convert to UTF-32: 35.892 seconds (3000 allocations: 16044 MB, 4.63% gc time)
UTF-16 convert to UTF-8: 165.673 seconds (524M allocations: 21294 MB, 0.70% gc time)
UTF-16 convert to UTF-32: 21.019 seconds (3000 allocations: 16044 MB, 8.11% gc time)
UTF-32 convert to UTF-8: 83.055 seconds (7000 allocations: 13294 MB, 0.78% gc time)
UTF-32 convert to UTF-16: 36.295 seconds (15000 allocations: 17044 MB, 1.90% gc time)
3-byte:: Looping 1000 times, length=4194304
UTF-8: 6029312, UTF-16: 8388608, UTF-32: 16777216
UTF-8 length: 2.368 seconds (1000 allocations: 44816 KB)
UTF-16 length: 1.441 seconds (1000 allocations: 44816 KB)
UTF-32 length: 9.885 microseconds (1000 allocations: 44816 KB)
UTF-8 valid: 8.045 seconds (0 allocations: 44800 KB)
UTF-16 valid: 4.156 seconds (0 allocations: 44800 KB)
UTF-8 convert to UTF-16: 69.141 seconds (15000 allocations: 17044 MB, 0.89% gc time)
UTF-8 convert to UTF-32: 42.275 seconds (3000 allocations: 16044 MB, 3.65% gc time)
UTF-16 convert to UTF-8: 167.803 seconds (524M allocations: 21794 MB, 0.72% gc time)
UTF-16 convert to UTF-32: 20.489 seconds (3000 allocations: 16044 MB, 7.77% gc time)
UTF-32 convert to UTF-8: 88.106 seconds (7000 allocations: 13794 MB, 0.99% gc time)
UTF-32 convert to UTF-16: 34.035 seconds (15000 allocations: 17044 MB, 2.86% gc time)
4-byte:: Looping 1000 times, length=4194304
UTF-8: 6815744, UTF-16: 9437184, UTF-32: 16777216
UTF-8 length: 2.410 seconds (1000 allocations: 44816 KB)
UTF-16 length: 1.545 seconds (1000 allocations: 44816 KB)
UTF-32 length: 10.634 microseconds (1000 allocations: 44816 KB)
UTF-8 valid: 8.074 seconds (0 allocations: 44800 KB)
UTF-16 valid: 5.554 seconds (0 allocations: 44800 KB)
UTF-8 convert to UTF-16: 67.015 seconds (15000 allocations: 17044 MB, 1.55% gc time)
UTF-8 convert to UTF-32: 42.914 seconds (3000 allocations: 16044 MB, 3.68% gc time)
UTF-16 convert to UTF-8: 172.152 seconds (1049M allocations: 31544 MB, 0.91% gc time)
UTF-16 convert to UTF-32: 19.674 seconds (3000 allocations: 16044 MB, 8.34% gc time)
UTF-32 convert to UTF-8: 96.974 seconds (7000 allocations: 14544 MB, 1.41% gc time)
UTF-32 convert to UTF-16: 41.956 seconds (15000 allocations: 17044 MB, 2.46% gc time)
Surrogates:: Looping 1000 times, length=4718592
UTF-8: 7864320, UTF-16: 9437184, UTF-32: 18874368
UTF-8 length: 2.923 seconds (1000 allocations: 44816 KB)
UTF-16 length: 1.510 seconds (1000 allocations: 44816 KB)
UTF-32 length: 26.179 microseconds (1000 allocations: 44816 KB)
UTF-8 valid: 10.159 seconds (0 allocations: 44800 KB)
UTF-16 valid: 5.704 seconds (0 allocations: 44800 KB)
UTF-8 convert to UTF-16: 77.008 seconds (15000 allocations: 17044 MB, 1.36% gc time)
UTF-8 convert to UTF-32: 47.164 seconds (3000 allocations: 18044 MB, 3.68% gc time)
UTF-16 convert to UTF-8: 171.048 seconds (1049M allocations: 31544 MB, 0.80% gc time)
UTF-16 convert to UTF-32: 19.525 seconds (3000 allocations: 16044 MB, 8.12% gc time)
UTF-32 convert to UTF-8: 120.820 seconds (7000 allocations: 16544 MB, 1.25% gc time)
UTF-32 convert to UTF-16: 39.795 seconds (15000 allocations: 17044 MB, 2.07% gc time)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment