Skip to content

Instantly share code, notes, and snippets.

@ScottPJones
Created May 21, 2015 23:59
Show Gist options
  • Save ScottPJones/1032ead4061e960526bf to your computer and use it in GitHub Desktop.
Save ScottPJones/1032ead4061e960526bf to your computer and use it in GitHub Desktop.
Results from #11004 using more generic methods
julia> @timev dotest(1000,true)
ASCII: Looping 1000 times, length=8
length: 6.128 microseconds
is_valid_ascii: 16.227 microseconds
Convert to UTF-8: 18.801 microseconds (1000 allocations: 16000 bytes)
Convert to UTF-16: 123.615 microseconds (2000 allocations: 109 KB)
Convert to UTF-32: 128.039 microseconds (2000 allocations: 125 KB)
ASCII:: Looping 1000 times, length=8
UTF-8: 8, UTF-16: 16, UTF-32: 32
UTF-8 length: 15.353 microseconds
UTF-16 length: 17.404 microseconds
UTF-32 length: 5.993 microseconds
UTF-8 valid: 9.776 microseconds
UTF-16 valid: 18.915 microseconds
UTF-32 valid: 12.695 microseconds
UTF-8 convert to UTF-16: 124.474 microseconds (2000 allocations: 109 KB)
UTF-8 convert to UTF-32: 133.283 microseconds (2000 allocations: 125 KB)
UTF-16 convert to UTF-8: 163.530 microseconds (2000 allocations: 96000 bytes)
UTF-16 convert to UTF-32: 158.493 microseconds (2000 allocations: 125 KB)
UTF-32 convert to UTF-8: 219.723 microseconds (4000 allocations: 172 KB)
UTF-32 convert to UTF-16: 218.551 microseconds (4000 allocations: 188 KB)
Latin1:: Looping 1000 times, length=8
UTF-8: 10, UTF-16: 16, UTF-32: 32
UTF-8 length: 11.312 microseconds
UTF-16 length: 10.496 microseconds
UTF-32 length: 3.564 microseconds
UTF-8 valid: 13.746 microseconds
UTF-16 valid: 18.751 microseconds
UTF-32 valid: 12.583 microseconds
UTF-8 convert to UTF-16: 183.478 microseconds (2000 allocations: 109 KB)
UTF-8 convert to UTF-32: 179.088 microseconds (2000 allocations: 125 KB)
UTF-16 convert to UTF-8: 200.077 microseconds (2000 allocations: 96000 bytes)
UTF-16 convert to UTF-32: 206.489 microseconds (2000 allocations: 125 KB)
UTF-32 convert to UTF-8: 250.902 microseconds (4000 allocations: 172 KB)
UTF-32 convert to UTF-16: 224.706 microseconds (4000 allocations: 188 KB)
2-byte:: Looping 1000 times, length=8
UTF-8: 12, UTF-16: 16, UTF-32: 32
UTF-8 length: 12.283 microseconds
UTF-16 length: 9.433 microseconds
UTF-32 length: 3.226 microseconds
UTF-8 valid: 14.337 microseconds
UTF-16 valid: 16.914 microseconds
UTF-32 valid: 11.335 microseconds
UTF-8 convert to UTF-16: 218.970 microseconds (2000 allocations: 109 KB)
UTF-8 convert to UTF-32: 219.370 microseconds (2000 allocations: 125 KB)
UTF-16 convert to UTF-8: 225.973 microseconds (2000 allocations: 96000 bytes)
UTF-16 convert to UTF-32: 225.675 microseconds (2000 allocations: 125 KB)
UTF-32 convert to UTF-8: 272.904 microseconds (4000 allocations: 172 KB)
UTF-32 convert to UTF-16: 272.803 microseconds (4000 allocations: 188 KB)
3-byte:: Looping 1000 times, length=8
UTF-8: 14, UTF-16: 16, UTF-32: 32
UTF-8 length: 14.858 microseconds
UTF-16 length: 9.448 microseconds
UTF-32 length: 3.231 microseconds
UTF-8 valid: 16.926 microseconds
UTF-16 valid: 16.913 microseconds
UTF-32 valid: 11.359 microseconds
UTF-8 convert to UTF-16: 240.808 microseconds (2000 allocations: 109 KB)
UTF-8 convert to UTF-32: 210.566 microseconds (2000 allocations: 125 KB)
UTF-16 convert to UTF-8: 292.577 microseconds (2000 allocations: 96000 bytes)
UTF-16 convert to UTF-32: 247.732 microseconds (2000 allocations: 125 KB)
UTF-32 convert to UTF-8: 337.978 microseconds (4000 allocations: 172 KB)
UTF-32 convert to UTF-16: 286.137 microseconds (4000 allocations: 188 KB)
4-byte:: Looping 1000 times, length=8
UTF-8: 15, UTF-16: 18, UTF-32: 32
UTF-8 length: 14.931 microseconds
UTF-16 length: 9.319 microseconds
UTF-32 length: 2.939 microseconds
UTF-8 valid: 16.129 microseconds
UTF-16 valid: 15.160 microseconds
UTF-32 valid: 10.366 microseconds
UTF-8 convert to UTF-16: 217.482 microseconds (2000 allocations: 109 KB)
UTF-8 convert to UTF-32: 210.748 microseconds (2000 allocations: 125 KB)
UTF-16 convert to UTF-8: 311.883 microseconds (2000 allocations: 96000 bytes)
UTF-16 convert to UTF-32: 274.149 microseconds (2000 allocations: 125 KB)
UTF-32 convert to UTF-8: 314.837 microseconds (4000 allocations: 172 KB)
UTF-32 convert to UTF-16: 274.654 microseconds (4000 allocations: 188 KB)
Surrogates:: Looping 1000 times, length=8
UTF-8: 17, UTF-16: 18, UTF-32: 32
UTF-8 length: 10.473 microseconds
UTF-16 length: 8.265 microseconds
UTF-32 length: 2.624 microseconds
UTF-8 valid: 13.281 microseconds
UTF-16 valid: 23.858 microseconds
UTF-32 valid: 9.017 microseconds
UTF-8 convert to UTF-16: 237.206 microseconds (2000 allocations: 109 KB)
UTF-8 convert to UTF-32: 252.936 microseconds (2000 allocations: 125 KB)
UTF-16 convert to UTF-8: 338.267 microseconds (2000 allocations: 96000 bytes)
UTF-16 convert to UTF-32: 272.305 microseconds (2000 allocations: 125 KB)
UTF-32 convert to UTF-8: 327.895 microseconds (4000 allocations: 172 KB)
UTF-32 convert to UTF-16: 274.644 microseconds (4000 allocations: 188 KB)
ASCII: Looping 1000 times, length=64
length: 2.785 microseconds
is_valid_ascii: 40.716 microseconds
Convert to UTF-8: 5.213 microseconds (1000 allocations: 16000 bytes)
Convert to UTF-16: 68.362 microseconds (2000 allocations: 219 KB)
Convert to UTF-32: 96.902 microseconds (2000 allocations: 406 KB)
ASCII:: Looping 1000 times, length=64
UTF-8: 64, UTF-16: 128, UTF-32: 256
UTF-8 length: 28.170 microseconds
UTF-16 length: 26.249 microseconds
UTF-32 length: 2.789 microseconds
UTF-8 valid: 48.170 microseconds
UTF-16 valid: 84.314 microseconds
UTF-32 valid: 60.927 microseconds
UTF-8 convert to UTF-16: 194.161 microseconds (2000 allocations: 219 KB)
UTF-8 convert to UTF-32: 228.892 microseconds (2000 allocations: 406 KB)
UTF-16 convert to UTF-8: 272.936 microseconds (2000 allocations: 156 KB)
UTF-16 convert to UTF-32: 244.598 microseconds (2000 allocations: 406 KB)
UTF-32 convert to UTF-8: 318.780 microseconds (4000 allocations: 234 KB)
UTF-32 convert to UTF-16: 304.882 microseconds (4000 allocations: 297 KB)
Latin1:: Looping 1000 times, length=64
UTF-8: 84, UTF-16: 128, UTF-32: 256
UTF-8 length: 36.166 microseconds
UTF-16 length: 24.894 microseconds
UTF-32 length: 2.617 microseconds
UTF-8 valid: 64.567 microseconds
UTF-16 valid: 75.494 microseconds
UTF-32 valid: 51.559 microseconds
UTF-8 convert to UTF-16: 731.830 microseconds (2000 allocations: 219 KB)
UTF-8 convert to UTF-32: 884.951 microseconds (2000 allocations: 406 KB)
UTF-16 convert to UTF-8: 736.884 microseconds (2000 allocations: 172 KB)
UTF-16 convert to UTF-32: 798.865 microseconds (2000 allocations: 406 KB)
UTF-32 convert to UTF-8: 832.653 microseconds (4000 allocations: 250 KB)
UTF-32 convert to UTF-16: 757.581 microseconds (4000 allocations: 297 KB)
2-byte:: Looping 1000 times, length=64
UTF-8: 84, UTF-16: 128, UTF-32: 256
UTF-8 length: 46.144 microseconds
UTF-16 length: 35.014 microseconds
UTF-32 length: 2.647 microseconds
UTF-8 valid: 83.100 microseconds
UTF-16 valid: 94.219 microseconds
UTF-32 valid: 70.589 microseconds
UTF-8 convert to UTF-16: 804.248 microseconds (2000 allocations: 219 KB)
UTF-8 convert to UTF-32: 876.259 microseconds (2000 allocations: 406 KB)
UTF-16 convert to UTF-8: 779.817 microseconds (2000 allocations: 172 KB)
UTF-16 convert to UTF-32: 725.102 microseconds (2000 allocations: 406 KB)
UTF-32 convert to UTF-8: 793.066 microseconds (4000 allocations: 250 KB)
UTF-32 convert to UTF-16: 756.449 microseconds (4000 allocations: 297 KB)
3-byte:: Looping 1000 times, length=64
UTF-8: 92, UTF-16: 128, UTF-32: 256
UTF-8 length: 38.992 microseconds
UTF-16 length: 44.588 microseconds
UTF-32 length: 2.695 microseconds
UTF-8 valid: 103.274 microseconds
UTF-16 valid: 94.204 microseconds
UTF-32 valid: 70.623 microseconds
UTF-8 convert to UTF-16: 855.851 microseconds (2000 allocations: 219 KB)
UTF-8 convert to UTF-32: 914.172 microseconds (2000 allocations: 406 KB)
UTF-16 convert to UTF-8: 1.037 milliseconds (2000 allocations: 172 KB)
UTF-16 convert to UTF-32: 1.378 milliseconds (2000 allocations: 406 KB)
UTF-32 convert to UTF-8: 1.099 milliseconds (4000 allocations: 250 KB)
UTF-32 convert to UTF-16: 904.802 microseconds (4000 allocations: 297 KB)
4-byte:: Looping 1000 times, length=64
UTF-8: 104, UTF-16: 144, UTF-32: 256
UTF-8 length: 41.521 microseconds
UTF-16 length: 28.014 microseconds
UTF-32 length: 2.734 microseconds
UTF-8 valid: 80.463 microseconds
UTF-16 valid: 94.747 microseconds
UTF-32 valid: 51.653 microseconds
UTF-8 convert to UTF-16: 4.257 milliseconds (2000 allocations: 234 KB, 80.56% gc time)
UTF-8 convert to UTF-32: 765.316 microseconds (2000 allocations: 406 KB)
UTF-16 convert to UTF-8: 1.562 milliseconds (2000 allocations: 188 KB)
UTF-16 convert to UTF-32: 1.206 milliseconds (2000 allocations: 406 KB)
UTF-32 convert to UTF-8: 1.198 milliseconds (4000 allocations: 266 KB)
UTF-32 convert to UTF-16: 970.903 microseconds (4000 allocations: 313 KB)
Surrogates:: Looping 1000 times, length=64
UTF-8: 120, UTF-16: 144, UTF-32: 256
UTF-8 length: 49.730 microseconds
UTF-16 length: 29.481 microseconds
UTF-32 length: 2.806 microseconds
UTF-8 valid: 17.767 microseconds
UTF-16 valid: 100.083 microseconds
UTF-32 valid: 54.421 microseconds
UTF-8 convert to UTF-16: 853.272 microseconds (2000 allocations: 234 KB)
UTF-8 convert to UTF-32: 789.008 microseconds (2000 allocations: 406 KB)
UTF-16 convert to UTF-8: 1.508 milliseconds (2000 allocations: 188 KB)
UTF-16 convert to UTF-32: 1.201 milliseconds (2000 allocations: 406 KB)
UTF-32 convert to UTF-8: 1.195 milliseconds (4000 allocations: 266 KB)
UTF-32 convert to UTF-16: 990.464 microseconds (4000 allocations: 313 KB)
ASCII: Looping 1000 times, length=256
length: 3.061 microseconds
is_valid_ascii: 128.066 microseconds
Convert to UTF-8: 9.679 microseconds (1000 allocations: 16000 bytes)
Convert to UTF-16: 336.288 microseconds (2000 allocations: 625 KB)
Convert to UTF-32: 566.775 microseconds (2000 allocations: 1156 KB)
ASCII:: Looping 1000 times, length=256
UTF-8: 256, UTF-16: 512, UTF-32: 1024
UTF-8 length: 103.606 microseconds
UTF-16 length: 94.164 microseconds
UTF-32 length: 2.789 microseconds
UTF-8 valid: 117.616 microseconds
UTF-16 valid: 259.858 microseconds
UTF-32 valid: 156.964 microseconds
UTF-8 convert to UTF-16: 717.234 microseconds (2000 allocations: 625 KB)
UTF-8 convert to UTF-32: 919.640 microseconds (2000 allocations: 1156 KB)
UTF-16 convert to UTF-8: 790.876 microseconds (2000 allocations: 406 KB)
UTF-16 convert to UTF-32: 918.796 microseconds (2000 allocations: 1156 KB)
UTF-32 convert to UTF-8: 856.248 microseconds (4000 allocations: 484 KB)
UTF-32 convert to UTF-16: 1.035 milliseconds (4000 allocations: 703 KB)
Latin1:: Looping 1000 times, length=256
UTF-8: 336, UTF-16: 512, UTF-32: 1024
UTF-8 length: 148.022 microseconds
UTF-16 length: 107.831 microseconds
UTF-32 length: 2.692 microseconds
UTF-8 valid: 268.976 microseconds
UTF-16 valid: 267.293 microseconds
UTF-32 valid: 162.051 microseconds
UTF-8 convert to UTF-16: 2.843 milliseconds (2000 allocations: 625 KB)
UTF-8 convert to UTF-32: 3.031 milliseconds (2000 allocations: 1156 KB)
UTF-16 convert to UTF-8: 2.658 milliseconds (2000 allocations: 453 KB)
UTF-16 convert to UTF-32: 2.561 milliseconds (2000 allocations: 1156 KB)
UTF-32 convert to UTF-8: 2.656 milliseconds (4000 allocations: 531 KB)
UTF-32 convert to UTF-16: 2.982 milliseconds (4000 allocations: 703 KB)
2-byte:: Looping 1000 times, length=256
UTF-8: 336, UTF-16: 512, UTF-32: 1024
UTF-8 length: 136.946 microseconds
UTF-16 length: 97.214 microseconds
UTF-32 length: 2.844 microseconds
UTF-8 valid: 274.205 microseconds
UTF-16 valid: 266.894 microseconds
UTF-32 valid: 169.296 microseconds
UTF-8 convert to UTF-16: 3.031 milliseconds (2000 allocations: 625 KB)
UTF-8 convert to UTF-32: 3.269 milliseconds (2000 allocations: 1156 KB)
UTF-16 convert to UTF-8: 2.594 milliseconds (2000 allocations: 453 KB)
UTF-16 convert to UTF-32: 2.525 milliseconds (2000 allocations: 1156 KB)
UTF-32 convert to UTF-8: 2.641 milliseconds (4000 allocations: 531 KB)
UTF-32 convert to UTF-16: 2.466 milliseconds (4000 allocations: 703 KB)
3-byte:: Looping 1000 times, length=256
UTF-8: 368, UTF-16: 512, UTF-32: 1024
UTF-8 length: 149.924 microseconds
UTF-16 length: 101.014 microseconds
UTF-32 length: 2.721 microseconds
UTF-8 valid: 336.924 microseconds
UTF-16 valid: 266.782 microseconds
UTF-32 valid: 169.103 microseconds
UTF-8 convert to UTF-16: 2.908 milliseconds (2000 allocations: 625 KB)
UTF-8 convert to UTF-32: 3.217 milliseconds (2000 allocations: 1156 KB)
UTF-16 convert to UTF-8: 3.873 milliseconds (2000 allocations: 453 KB)
UTF-16 convert to UTF-32: 3.934 milliseconds (2000 allocations: 1156 KB, 19.23% gc time)
UTF-32 convert to UTF-8: 3.673 milliseconds (4000 allocations: 531 KB)
UTF-32 convert to UTF-16: 2.695 milliseconds (4000 allocations: 703 KB)
4-byte:: Looping 1000 times, length=256
UTF-8: 416, UTF-16: 576, UTF-32: 1024
UTF-8 length: 202.678 microseconds
UTF-16 length: 128.282 microseconds
UTF-32 length: 2.727 microseconds
UTF-8 valid: 443.913 microseconds
UTF-16 valid: 409.054 microseconds
UTF-32 valid: 176.697 microseconds
UTF-8 convert to UTF-16: 2.879 milliseconds (2000 allocations: 672 KB)
UTF-8 convert to UTF-32: 2.625 milliseconds (2000 allocations: 1156 KB)
UTF-16 convert to UTF-8: 5.767 milliseconds (2000 allocations: 547 KB)
UTF-16 convert to UTF-32: 4.575 milliseconds (2000 allocations: 1156 KB)
UTF-32 convert to UTF-8: 4.306 milliseconds (4000 allocations: 625 KB)
UTF-32 convert to UTF-16: 3.264 milliseconds (4000 allocations: 750 KB)
Surrogates:: Looping 1000 times, length=256
UTF-8: 480, UTF-16: 576, UTF-32: 1024
UTF-8 length: 225.209 microseconds
UTF-16 length: 130.613 microseconds
UTF-32 length: 2.780 microseconds
UTF-8 valid: 16.840 microseconds
UTF-16 valid: 356.384 microseconds
UTF-32 valid: 153.350 microseconds
UTF-8 convert to UTF-16: 3.174 milliseconds (2000 allocations: 672 KB)
UTF-8 convert to UTF-32: 2.847 milliseconds (2000 allocations: 1156 KB)
UTF-16 convert to UTF-8: 5.724 milliseconds (2000 allocations: 547 KB)
UTF-16 convert to UTF-32: 4.580 milliseconds (2000 allocations: 1156 KB)
UTF-32 convert to UTF-8: 4.361 milliseconds (4000 allocations: 625 KB)
UTF-32 convert to UTF-16: 3.355 milliseconds (4000 allocations: 750 KB)
ASCII: Looping 1000 times, length=1024
length: 5.966 microseconds (1000 allocations: 16000 bytes)
is_valid_ascii: 449.817 microseconds
Convert to UTF-8: 5.886 microseconds (1000 allocations: 16000 bytes)
Convert to UTF-16: 357.915 microseconds (1000 allocations: 2109 KB)
Convert to UTF-32: 1.356 milliseconds (1000 allocations: 4109 KB)
ASCII:: Looping 1000 times, length=1024
UTF-8: 1024, UTF-16: 2048, UTF-32: 4096
UTF-8 length: 414.524 microseconds (1000 allocations: 16000 bytes)
UTF-16 length: 387.804 microseconds (1000 allocations: 16000 bytes)
UTF-32 length: 5.537 microseconds (1000 allocations: 16000 bytes)
UTF-8 valid: 439.542 microseconds
UTF-16 valid: 977.557 microseconds
UTF-32 valid: 565.296 microseconds
UTF-8 convert to UTF-16: 2.530 milliseconds (1000 allocations: 2109 KB)
UTF-8 convert to UTF-32: 5.599 milliseconds (1000 allocations: 4109 KB, 38.24% gc time)
UTF-16 convert to UTF-8: 3.120 milliseconds (2000 allocations: 1156 KB)
UTF-16 convert to UTF-32: 2.344 milliseconds (1000 allocations: 4109 KB)
UTF-32 convert to UTF-8: 2.933 milliseconds (4000 allocations: 1234 KB)
UTF-32 convert to UTF-16: 3.503 milliseconds (4000 allocations: 2203 KB)
Latin1:: Looping 1000 times, length=1024
UTF-8: 1344, UTF-16: 2048, UTF-32: 4096
UTF-8 length: 539.656 microseconds (1000 allocations: 16000 bytes)
UTF-16 length: 344.521 microseconds (1000 allocations: 16000 bytes)
UTF-32 length: 6.005 microseconds (1000 allocations: 16000 bytes)
UTF-8 valid: 1.021 milliseconds
UTF-16 valid: 945.259 microseconds
UTF-32 valid: 563.040 microseconds
UTF-8 convert to UTF-16: 11.060 milliseconds (1000 allocations: 2109 KB)
UTF-8 convert to UTF-32: 11.794 milliseconds (1000 allocations: 4109 KB)
UTF-16 convert to UTF-8: 10.110 milliseconds (2000 allocations: 1469 KB)
UTF-16 convert to UTF-32: 9.309 milliseconds (1000 allocations: 4109 KB)
UTF-32 convert to UTF-8: 12.080 milliseconds (4000 allocations: 1547 KB, 21.21% gc time)
UTF-32 convert to UTF-16: 10.770 milliseconds (4000 allocations: 2203 KB)
2-byte:: Looping 1000 times, length=1024
UTF-8: 1344, UTF-16: 2048, UTF-32: 4096
UTF-8 length: 676.499 microseconds (1000 allocations: 16000 bytes)
UTF-16 length: 460.990 microseconds (1000 allocations: 16000 bytes)
UTF-32 length: 11.782 microseconds (1000 allocations: 16000 bytes)
UTF-8 valid: 1.357 milliseconds
UTF-16 valid: 1.179 milliseconds
UTF-32 valid: 685.853 microseconds
UTF-8 convert to UTF-16: 12.682 milliseconds (1000 allocations: 2109 KB)
UTF-8 convert to UTF-32: 10.729 milliseconds (1000 allocations: 4109 KB)
UTF-16 convert to UTF-8: 9.798 milliseconds (2000 allocations: 1469 KB)
UTF-16 convert to UTF-32: 8.719 milliseconds (1000 allocations: 4109 KB)
UTF-32 convert to UTF-8: 9.901 milliseconds (4000 allocations: 1547 KB)
UTF-32 convert to UTF-16: 8.836 milliseconds (4000 allocations: 2203 KB)
3-byte:: Looping 1000 times, length=1024
UTF-8: 1472, UTF-16: 2048, UTF-32: 4096
UTF-8 length: 579.943 microseconds (1000 allocations: 16000 bytes)
UTF-16 length: 381.251 microseconds (1000 allocations: 16000 bytes)
UTF-32 length: 5.653 microseconds (1000 allocations: 16000 bytes)
UTF-8 valid: 1.138 milliseconds
UTF-16 valid: 987.510 microseconds
UTF-32 valid: 586.491 microseconds
UTF-8 convert to UTF-16: 10.622 milliseconds (1000 allocations: 2109 KB)
UTF-8 convert to UTF-32: 13.432 milliseconds (1000 allocations: 4109 KB, 20.97% gc time)
UTF-16 convert to UTF-8: 14.631 milliseconds (2000 allocations: 1609 KB)
UTF-16 convert to UTF-32: 11.046 milliseconds (1000 allocations: 4109 KB)
UTF-32 convert to UTF-8: 14.615 milliseconds (4000 allocations: 1688 KB)
UTF-32 convert to UTF-16: 11.066 milliseconds (4000 allocations: 2203 KB)
4-byte:: Looping 1000 times, length=1024
UTF-8: 1664, UTF-16: 2304, UTF-32: 4096
UTF-8 length: 634.040 microseconds (1000 allocations: 16000 bytes)
UTF-16 length: 492.241 microseconds (1000 allocations: 16000 bytes)
UTF-32 length: 6.075 microseconds (1000 allocations: 16000 bytes)
UTF-8 valid: 1.251 milliseconds
UTF-16 valid: 1.356 milliseconds
UTF-32 valid: 586.984 microseconds
UTF-8 convert to UTF-16: 10.753 milliseconds (1000 allocations: 2359 KB)
UTF-8 convert to UTF-32: 11.528 milliseconds (1000 allocations: 4109 KB)
UTF-16 convert to UTF-8: 21.744 milliseconds (2000 allocations: 1781 KB)
UTF-16 convert to UTF-32: 20.634 milliseconds (1000 allocations: 4109 KB, 9.58% gc time)
UTF-32 convert to UTF-8: 15.649 milliseconds (4000 allocations: 1859 KB)
UTF-32 convert to UTF-16: 11.906 milliseconds (4000 allocations: 2453 KB)
Surrogates:: Looping 1000 times, length=1024
UTF-8: 1920, UTF-16: 2304, UTF-32: 4096
UTF-8 length: 785.309 microseconds (1000 allocations: 16000 bytes)
UTF-16 length: 388.884 microseconds (1000 allocations: 16000 bytes)
UTF-32 length: 5.953 microseconds (1000 allocations: 16000 bytes)
UTF-8 valid: 27.365 microseconds
UTF-16 valid: 1.356 milliseconds
UTF-32 valid: 605.421 microseconds
UTF-8 convert to UTF-16: 10.945 milliseconds (1000 allocations: 2359 KB)
UTF-8 convert to UTF-32: 12.025 milliseconds (1000 allocations: 4109 KB)
UTF-16 convert to UTF-8: 21.534 milliseconds (2000 allocations: 1781 KB)
UTF-16 convert to UTF-32: 18.532 milliseconds (1000 allocations: 4109 KB)
UTF-32 convert to UTF-8: 16.550 milliseconds (4000 allocations: 1859 KB)
UTF-32 convert to UTF-16: 16.118 milliseconds (4000 allocations: 2453 KB, 26.26% gc time)
ASCII: Looping 1000 times, length=4096
length: 10.567 microseconds (1000 allocations: 16000 bytes)
is_valid_ascii: 1.801 milliseconds
Convert to UTF-8: 10.031 microseconds (1000 allocations: 16000 bytes)
Convert to UTF-16: 1.523 milliseconds (1000 allocations: 8109 KB)
Convert to UTF-32: 4.341 milliseconds (3000 allocations: 16094 KB, 38.01% gc time)
ASCII:: Looping 1000 times, length=4096
UTF-8: 4096, UTF-16: 8192, UTF-32: 16384
UTF-8 length: 1.568 milliseconds (1000 allocations: 16000 bytes)
UTF-16 length: 1.302 milliseconds (1000 allocations: 16000 bytes)
UTF-32 length: 6.940 microseconds (1000 allocations: 16000 bytes)
UTF-8 valid: 1.586 milliseconds
UTF-16 valid: 3.682 milliseconds
UTF-32 valid: 2.270 milliseconds
UTF-8 convert to UTF-16: 8.290 milliseconds (1000 allocations: 8109 KB)
UTF-8 convert to UTF-32: 10.624 milliseconds (3000 allocations: 16094 KB, 15.56% gc time)
UTF-16 convert to UTF-8: 11.758 milliseconds (1000 allocations: 4109 KB)
UTF-16 convert to UTF-32: 11.445 milliseconds (3000 allocations: 16094 KB, 18.22% gc time)
UTF-32 convert to UTF-8: 11.158 milliseconds (3000 allocations: 4188 KB)
UTF-32 convert to UTF-16: 11.809 milliseconds (4000 allocations: 8203 KB)
Latin1:: Looping 1000 times, length=4096
UTF-8: 5376, UTF-16: 8192, UTF-32: 16384
UTF-8 length: 2.056 milliseconds (1000 allocations: 16000 bytes)
UTF-16 length: 1.308 milliseconds (1000 allocations: 16000 bytes)
UTF-32 length: 6.017 microseconds (1000 allocations: 16000 bytes)
UTF-8 valid: 4.049 milliseconds
UTF-16 valid: 3.743 milliseconds
UTF-32 valid: 2.147 milliseconds
UTF-8 convert to UTF-16: 42.663 milliseconds (1000 allocations: 8109 KB, 6.01% gc time)
UTF-8 convert to UTF-32: 42.163 milliseconds (3000 allocations: 16094 KB)
UTF-16 convert to UTF-8: 40.408 milliseconds (1000 allocations: 5359 KB, 7.61% gc time)
UTF-16 convert to UTF-32: 33.700 milliseconds (3000 allocations: 16094 KB)
UTF-32 convert to UTF-8: 38.344 milliseconds (3000 allocations: 5438 KB)
UTF-32 convert to UTF-16: 35.695 milliseconds (4000 allocations: 8203 KB, 4.86% gc time)
2-byte:: Looping 1000 times, length=4096
UTF-8: 5376, UTF-16: 8192, UTF-32: 16384
UTF-8 length: 2.159 milliseconds (1000 allocations: 16000 bytes)
UTF-16 length: 1.312 milliseconds (1000 allocations: 16000 bytes)
UTF-32 length: 7.254 microseconds (1000 allocations: 16000 bytes)
UTF-8 valid: 4.504 milliseconds
UTF-16 valid: 3.942 milliseconds
UTF-32 valid: 2.231 milliseconds
UTF-8 convert to UTF-16: 45.053 milliseconds (1000 allocations: 8109 KB)
UTF-8 convert to UTF-32: 50.072 milliseconds (3000 allocations: 16094 KB, 3.25% gc time)
UTF-16 convert to UTF-8: 36.532 milliseconds (1000 allocations: 5359 KB)
UTF-16 convert to UTF-32: 37.003 milliseconds (3000 allocations: 16094 KB, 6.12% gc time)
UTF-32 convert to UTF-8: 39.259 milliseconds (3000 allocations: 5438 KB)
UTF-32 convert to UTF-16: 36.786 milliseconds (4000 allocations: 8203 KB)
3-byte:: Looping 1000 times, length=4096
UTF-8: 5888, UTF-16: 8192, UTF-32: 16384
UTF-8 length: 2.759 milliseconds (1000 allocations: 16000 bytes)
UTF-16 length: 1.558 milliseconds (1000 allocations: 16000 bytes)
UTF-32 length: 9.750 microseconds (1000 allocations: 16000 bytes)
UTF-8 valid: 4.876 milliseconds
UTF-16 valid: 3.770 milliseconds
UTF-32 valid: 2.146 milliseconds
UTF-8 convert to UTF-16: 44.667 milliseconds (1000 allocations: 8109 KB, 6.49% gc time)
UTF-8 convert to UTF-32: 45.578 milliseconds (3000 allocations: 16094 KB, 4.92% gc time)
UTF-16 convert to UTF-8: 59.694 milliseconds (1000 allocations: 5859 KB)
UTF-16 convert to UTF-32: 48.538 milliseconds (3000 allocations: 16094 KB, 2.68% gc time)
UTF-32 convert to UTF-8: 54.890 milliseconds (3000 allocations: 5938 KB)
UTF-32 convert to UTF-16: 42.055 milliseconds (4000 allocations: 8203 KB)
4-byte:: Looping 1000 times, length=4096
UTF-8: 6656, UTF-16: 9216, UTF-32: 16384
UTF-8 length: 2.405 milliseconds (1000 allocations: 16000 bytes)
UTF-16 length: 1.458 milliseconds (1000 allocations: 16000 bytes)
UTF-32 length: 6.010 microseconds (1000 allocations: 16000 bytes)
UTF-8 valid: 5.113 milliseconds
UTF-16 valid: 5.425 milliseconds
UTF-32 valid: 2.217 milliseconds
UTF-8 convert to UTF-16: 44.675 milliseconds (1000 allocations: 9109 KB, 5.67% gc time)
UTF-8 convert to UTF-32: 48.553 milliseconds (3000 allocations: 16094 KB)
UTF-16 convert to UTF-8: 87.138 milliseconds (1000 allocations: 6609 KB, 2.97% gc time)
UTF-16 convert to UTF-32: 72.144 milliseconds (3000 allocations: 16094 KB)
UTF-32 convert to UTF-8: 66.982 milliseconds (3000 allocations: 6688 KB, 5.21% gc time)
UTF-32 convert to UTF-16: 49.503 milliseconds (4000 allocations: 9203 KB)
Surrogates:: Looping 1000 times, length=4096
UTF-8: 7680, UTF-16: 9216, UTF-32: 16384
UTF-8 length: 2.842 milliseconds (1000 allocations: 16000 bytes)
UTF-16 length: 1.424 milliseconds (1000 allocations: 16000 bytes)
UTF-32 length: 10.006 microseconds (1000 allocations: 16000 bytes)
UTF-8 valid: 27.345 microseconds
UTF-16 valid: 5.425 milliseconds
UTF-32 valid: 2.145 milliseconds
UTF-8 convert to UTF-16: 43.333 milliseconds (1000 allocations: 9109 KB)
UTF-8 convert to UTF-32: 46.341 milliseconds (3000 allocations: 16094 KB, 5.01% gc time)
UTF-16 convert to UTF-8: 86.484 milliseconds (1000 allocations: 6609 KB)
UTF-16 convert to UTF-32: 75.564 milliseconds (3000 allocations: 16094 KB, 3.95% gc time)
UTF-32 convert to UTF-8: 62.522 milliseconds (3000 allocations: 6688 KB)
UTF-32 convert to UTF-16: 51.950 milliseconds (4000 allocations: 9203 KB, 5.97% gc time)
ASCII: Looping 1000 times, length=16384
length: 9.289 microseconds (1000 allocations: 16000 bytes)
is_valid_ascii: 6.317 milliseconds
Convert to UTF-8: 7.055 microseconds (1000 allocations: 16000 bytes)
Convert to UTF-16: 8.011 milliseconds (3000 allocations: 32094 KB, 26.02% gc time)
Convert to UTF-32: 13.450 milliseconds (3000 allocations: 64094 KB, 31.84% gc time)
ASCII:: Looping 1000 times, length=16384
UTF-8: 16384, UTF-16: 32768, UTF-32: 65536
UTF-8 length: 5.983 milliseconds (1000 allocations: 16000 bytes)
UTF-16 length: 5.161 milliseconds (1000 allocations: 16000 bytes)
UTF-32 length: 7.866 microseconds (1000 allocations: 16000 bytes)
UTF-8 valid: 6.369 milliseconds
UTF-16 valid: 14.786 milliseconds
UTF-32 valid: 8.432 milliseconds
UTF-8 convert to UTF-16: 35.182 milliseconds (3000 allocations: 32094 KB, 11.15% gc time)
UTF-8 convert to UTF-32: 39.102 milliseconds (3000 allocations: 64094 KB, 8.51% gc time)
UTF-16 convert to UTF-8: 52.826 milliseconds (3000 allocations: 16094 KB, 2.87% gc time)
UTF-16 convert to UTF-32: 44.962 milliseconds (3000 allocations: 64094 KB, 11.02% gc time)
UTF-32 convert to UTF-8: 49.192 milliseconds (5000 allocations: 16172 KB, 4.45% gc time)
UTF-32 convert to UTF-16: 47.403 milliseconds (6000 allocations: 32188 KB, 4.56% gc time)
Latin1:: Looping 1000 times, length=16384
UTF-8: 21504, UTF-16: 32768, UTF-32: 65536
UTF-8 length: 7.635 milliseconds (1000 allocations: 16000 bytes)
UTF-16 length: 5.093 milliseconds (1000 allocations: 16000 bytes)
UTF-32 length: 7.226 microseconds (1000 allocations: 16000 bytes)
UTF-8 valid: 15.455 milliseconds
UTF-16 valid: 15.251 milliseconds
UTF-32 valid: 8.485 milliseconds
UTF-8 convert to UTF-16: 166.708 milliseconds (3000 allocations: 32094 KB, 2.97% gc time)
UTF-8 convert to UTF-32: 174.787 milliseconds (3000 allocations: 64094 KB, 3.76% gc time)
UTF-16 convert to UTF-8: 143.464 milliseconds (3000 allocations: 21094 KB)
UTF-16 convert to UTF-32: 135.390 milliseconds (3000 allocations: 64094 KB, 4.19% gc time)
UTF-32 convert to UTF-8: 150.837 milliseconds (5000 allocations: 21172 KB, 1.41% gc time)
UTF-32 convert to UTF-16: 137.168 milliseconds (6000 allocations: 32188 KB, 3.08% gc time)
2-byte:: Looping 1000 times, length=16384
UTF-8: 21504, UTF-16: 32768, UTF-32: 65536
UTF-8 length: 7.603 milliseconds (1000 allocations: 16000 bytes)
UTF-16 length: 4.982 milliseconds (1000 allocations: 16000 bytes)
UTF-32 length: 10.320 microseconds (1000 allocations: 16000 bytes)
UTF-8 valid: 15.436 milliseconds
UTF-16 valid: 14.962 milliseconds
UTF-32 valid: 8.625 milliseconds
UTF-8 convert to UTF-16: 165.399 milliseconds (3000 allocations: 32094 KB, 1.33% gc time)
UTF-8 convert to UTF-32: 179.096 milliseconds (3000 allocations: 64094 KB, 3.44% gc time)
UTF-16 convert to UTF-8: 149.515 milliseconds (3000 allocations: 21094 KB, 1.32% gc time)
UTF-16 convert to UTF-32: 135.220 milliseconds (3000 allocations: 64094 KB, 4.50% gc time)
UTF-32 convert to UTF-8: 150.113 milliseconds (5000 allocations: 21172 KB, 1.46% gc time)
UTF-32 convert to UTF-16: 138.387 milliseconds (6000 allocations: 32188 KB, 1.61% gc time)
3-byte:: Looping 1000 times, length=16384
UTF-8: 23552, UTF-16: 32768, UTF-32: 65536
UTF-8 length: 8.195 milliseconds (1000 allocations: 16000 bytes)
UTF-16 length: 5.167 milliseconds (1000 allocations: 16000 bytes)
UTF-32 length: 9.674 microseconds (1000 allocations: 16000 bytes)
UTF-8 valid: 17.778 milliseconds
UTF-16 valid: 15.277 milliseconds
UTF-32 valid: 8.536 milliseconds
UTF-8 convert to UTF-16: 177.895 milliseconds (3000 allocations: 32094 KB, 2.50% gc time)
UTF-8 convert to UTF-32: 177.272 milliseconds (3000 allocations: 64094 KB, 2.34% gc time)
UTF-16 convert to UTF-8: 229.952 milliseconds (3000 allocations: 23094 KB, 0.94% gc time)
UTF-16 convert to UTF-32: 182.173 milliseconds (3000 allocations: 64094 KB, 2.93% gc time)
UTF-32 convert to UTF-8: 221.758 milliseconds (5000 allocations: 23172 KB, 0.77% gc time)
UTF-32 convert to UTF-16: 167.951 milliseconds (6000 allocations: 32188 KB, 2.57% gc time)
4-byte:: Looping 1000 times, length=16384
UTF-8: 26624, UTF-16: 36864, UTF-32: 65536
UTF-8 length: 12.814 milliseconds (1000 allocations: 16000 bytes)
UTF-16 length: 5.634 milliseconds (1000 allocations: 16000 bytes)
UTF-32 length: 8.451 microseconds (1000 allocations: 16000 bytes)
UTF-8 valid: 21.108 milliseconds
UTF-16 valid: 22.381 milliseconds
UTF-32 valid: 9.479 milliseconds
UTF-8 convert to UTF-16: 164.335 milliseconds (3000 allocations: 36094 KB, 1.05% gc time)
UTF-8 convert to UTF-32: 184.228 milliseconds (3000 allocations: 64094 KB, 3.02% gc time)
UTF-16 convert to UTF-8: 340.489 milliseconds (3000 allocations: 26094 KB, 0.60% gc time)
UTF-16 convert to UTF-32: 297.217 milliseconds (3000 allocations: 64094 KB, 1.96% gc time)
UTF-32 convert to UTF-8: 251.408 milliseconds (5000 allocations: 26172 KB, 0.61% gc time)
UTF-32 convert to UTF-16: 191.157 milliseconds (6000 allocations: 36188 KB, 2.27% gc time)
Surrogates:: Looping 1000 times, length=16384
UTF-8: 30720, UTF-16: 36864, UTF-32: 65536
UTF-8 length: 10.726 milliseconds (1000 allocations: 16000 bytes)
UTF-16 length: 5.587 milliseconds (1000 allocations: 16000 bytes)
UTF-32 length: 7.222 microseconds (1000 allocations: 16000 bytes)
UTF-8 valid: 16.740 microseconds
UTF-16 valid: 21.661 milliseconds
UTF-32 valid: 8.593 milliseconds
UTF-8 convert to UTF-16: 177.521 milliseconds (3000 allocations: 36094 KB, 2.09% gc time)
UTF-8 convert to UTF-32: 185.448 milliseconds (3000 allocations: 64094 KB, 3.60% gc time)
UTF-16 convert to UTF-8: 338.785 milliseconds (3000 allocations: 26094 KB, 0.65% gc time)
UTF-16 convert to UTF-32: 293.970 milliseconds (3000 allocations: 64094 KB, 2.05% gc time)
UTF-32 convert to UTF-8: 250.855 milliseconds (5000 allocations: 26172 KB, 0.89% gc time)
UTF-32 convert to UTF-16: 200.655 milliseconds (6000 allocations: 36188 KB, 0.85% gc time)
ASCII: Looping 1000 times, length=65536
length: 5.921 microseconds (1000 allocations: 16000 bytes)
is_valid_ascii: 27.490 milliseconds
Convert to UTF-8: 17.681 microseconds (1000 allocations: 16000 bytes)
Convert to UTF-16: 62.367 milliseconds (3000 allocations: 125 MB, 21.64% gc time)
Convert to UTF-32: 89.887 milliseconds (3000 allocations: 250 MB, 16.45% gc time)
ASCII:: Looping 1000 times, length=65536
UTF-8: 65536, UTF-16: 131072, UTF-32: 262144
UTF-8 length: 23.026 milliseconds (1000 allocations: 16000 bytes)
UTF-16 length: 23.048 milliseconds (1000 allocations: 16000 bytes)
UTF-32 length: 17.741 microseconds (1000 allocations: 16000 bytes)
UTF-8 valid: 25.679 milliseconds
UTF-16 valid: 58.993 milliseconds
UTF-32 valid: 33.566 milliseconds
UTF-8 convert to UTF-16: 164.269 milliseconds (3000 allocations: 125 MB, 6.60% gc time)
UTF-8 convert to UTF-32: 198.590 milliseconds (3000 allocations: 250 MB, 8.49% gc time)
UTF-16 convert to UTF-8: 202.020 milliseconds (3000 allocations: 64094 KB, 3.24% gc time)
UTF-16 convert to UTF-32: 225.271 milliseconds (3000 allocations: 250 MB, 7.73% gc time)
UTF-32 convert to UTF-8: 192.700 milliseconds (5000 allocations: 64172 KB, 3.08% gc time)
UTF-32 convert to UTF-16: 211.707 milliseconds (6000 allocations: 125 MB, 4.57% gc time)
Latin1:: Looping 1000 times, length=65536
UTF-8: 86016, UTF-16: 131072, UTF-32: 262144
UTF-8 length: 30.364 milliseconds (1000 allocations: 16000 bytes)
UTF-16 length: 20.501 milliseconds (1000 allocations: 16000 bytes)
UTF-32 length: 9.031 microseconds (1000 allocations: 16000 bytes)
UTF-8 valid: 68.099 milliseconds
UTF-16 valid: 58.876 milliseconds
UTF-32 valid: 33.468 milliseconds
UTF-8 convert to UTF-16: 690.619 milliseconds (3000 allocations: 125 MB, 1.88% gc time)
UTF-8 convert to UTF-32: 778.572 milliseconds (3000 allocations: 250 MB, 2.77% gc time)
UTF-16 convert to UTF-8: 593.202 milliseconds (3000 allocations: 84094 KB, 1.00% gc time)
UTF-16 convert to UTF-32: 579.200 milliseconds (3000 allocations: 250 MB, 3.32% gc time)
UTF-32 convert to UTF-8: 600.354 milliseconds (5000 allocations: 84172 KB, 0.86% gc time)
UTF-32 convert to UTF-16: 591.706 milliseconds (6000 allocations: 125 MB, 2.09% gc time)
2-byte:: Looping 1000 times, length=65536
UTF-8: 86016, UTF-16: 131072, UTF-32: 262144
UTF-8 length: 30.022 milliseconds (1000 allocations: 16000 bytes)
UTF-16 length: 20.257 milliseconds (1000 allocations: 16000 bytes)
UTF-32 length: 9.562 microseconds (1000 allocations: 16000 bytes)
UTF-8 valid: 65.181 milliseconds
UTF-16 valid: 59.446 milliseconds
UTF-32 valid: 33.508 milliseconds
UTF-8 convert to UTF-16: 704.286 milliseconds (3000 allocations: 125 MB, 1.77% gc time)
UTF-8 convert to UTF-32: 751.586 milliseconds (3000 allocations: 250 MB, 2.59% gc time)
UTF-16 convert to UTF-8: 585.507 milliseconds (3000 allocations: 84094 KB, 1.33% gc time)
UTF-16 convert to UTF-32: 597.247 milliseconds (3000 allocations: 250 MB, 3.15% gc time)
UTF-32 convert to UTF-8: 602.317 milliseconds (5000 allocations: 84172 KB, 1.42% gc time)
UTF-32 convert to UTF-16: 583.660 milliseconds (6000 allocations: 125 MB, 1.98% gc time)
3-byte:: Looping 1000 times, length=65536
UTF-8: 94208, UTF-16: 131072, UTF-32: 262144
UTF-8 length: 33.096 milliseconds (1000 allocations: 16000 bytes)
UTF-16 length: 20.474 milliseconds (1000 allocations: 16000 bytes)
UTF-32 length: 11.273 microseconds (1000 allocations: 16000 bytes)
UTF-8 valid: 71.417 milliseconds
UTF-16 valid: 65.886 milliseconds
UTF-32 valid: 33.630 milliseconds
UTF-8 convert to UTF-16: 722.306 milliseconds (3000 allocations: 125 MB, 1.46% gc time)
UTF-8 convert to UTF-32: 774.133 milliseconds (3000 allocations: 250 MB, 2.73% gc time)
UTF-16 convert to UTF-8: 905.732 milliseconds (3000 allocations: 92094 KB, 0.79% gc time)
UTF-16 convert to UTF-32: 744.035 milliseconds (3000 allocations: 250 MB, 2.44% gc time)
UTF-32 convert to UTF-8: 894.294 milliseconds (5000 allocations: 92172 KB, 0.81% gc time)
UTF-32 convert to UTF-16: 697.582 milliseconds (6000 allocations: 125 MB, 1.77% gc time)
4-byte:: Looping 1000 times, length=65536
UTF-8: 106496, UTF-16: 147456, UTF-32: 262144
UTF-8 length: 37.822 milliseconds (1000 allocations: 16000 bytes)
UTF-16 length: 22.622 milliseconds (1000 allocations: 16000 bytes)
UTF-32 length: 9.579 microseconds (1000 allocations: 16000 bytes)
UTF-8 valid: 79.868 milliseconds
UTF-16 valid: 86.361 milliseconds
UTF-32 valid: 33.416 milliseconds
UTF-8 convert to UTF-16: 703.621 milliseconds (3000 allocations: 141 MB, 2.02% gc time)
UTF-8 convert to UTF-32: 749.251 milliseconds (3000 allocations: 250 MB, 2.57% gc time)
UTF-16 convert to UTF-8: 1.356 seconds (3000 allocations: 102 MB, 0.67% gc time)
UTF-16 convert to UTF-32: 1.226 seconds (3000 allocations: 250 MB, 1.60% gc time)
UTF-32 convert to UTF-8: 1.150 seconds (5000 allocations: 102 MB, 0.43% gc time)
UTF-32 convert to UTF-16: 805.785 milliseconds (6000 allocations: 141 MB, 1.48% gc time)
Surrogates:: Looping 1000 times, length=65536
UTF-8: 122880, UTF-16: 147456, UTF-32: 262144
UTF-8 length: 43.125 milliseconds (1000 allocations: 16000 bytes)
UTF-16 length: 22.661 milliseconds (1000 allocations: 16000 bytes)
UTF-32 length: 10.562 microseconds (1000 allocations: 16000 bytes)
UTF-8 valid: 26.403 microseconds
UTF-16 valid: 90.584 milliseconds
UTF-32 valid: 33.818 milliseconds
UTF-8 convert to UTF-16: 731.773 milliseconds (3000 allocations: 141 MB, 1.65% gc time)
UTF-8 convert to UTF-32: 790.561 milliseconds (3000 allocations: 250 MB, 2.71% gc time)
UTF-16 convert to UTF-8: 1.374 seconds (3000 allocations: 102 MB, 0.42% gc time)
UTF-16 convert to UTF-32: 1.216 seconds (3000 allocations: 250 MB, 1.72% gc time)
UTF-32 convert to UTF-8: 1.004 seconds (5000 allocations: 102 MB, 0.65% gc time)
UTF-32 convert to UTF-16: 809.025 milliseconds (6000 allocations: 141 MB, 1.85% gc time)
ASCII: Looping 1000 times, length=262144
length: 15.912 microseconds (1000 allocations: 16000 bytes)
is_valid_ascii: 110.380 milliseconds
Convert to UTF-8: 22.116 microseconds (1000 allocations: 16000 bytes)
Convert to UTF-16: 143.312 milliseconds (3000 allocations: 500 MB, 13.86% gc time)
Convert to UTF-32: 191.510 milliseconds (3000 allocations: 1000 MB, 16.80% gc time)
ASCII:: Looping 1000 times, length=262144
UTF-8: 262144, UTF-16: 524288, UTF-32: 1048576
UTF-8 length: 96.954 milliseconds (1000 allocations: 16000 bytes)
UTF-16 length: 80.612 milliseconds (1000 allocations: 16000 bytes)
UTF-32 length: 12.906 microseconds (1000 allocations: 16000 bytes)
UTF-8 valid: 104.603 milliseconds
UTF-16 valid: 240.628 milliseconds
UTF-32 valid: 137.987 milliseconds
UTF-8 convert to UTF-16: 587.208 milliseconds (3000 allocations: 500 MB, 5.24% gc time)
UTF-8 convert to UTF-32: 599.553 milliseconds (3000 allocations: 1000 MB, 5.51% gc time)
UTF-16 convert to UTF-8: 882.442 milliseconds (3000 allocations: 250 MB, 2.21% gc time)
UTF-16 convert to UTF-32: 688.224 milliseconds (3000 allocations: 1000 MB, 4.57% gc time)
UTF-32 convert to UTF-8: 804.505 milliseconds (5000 allocations: 250 MB, 2.68% gc time)
UTF-32 convert to UTF-16: 774.885 milliseconds (6000 allocations: 500 MB, 3.82% gc time)
Latin1:: Looping 1000 times, length=262144
UTF-8: 344064, UTF-16: 524288, UTF-32: 1048576
UTF-8 length: 121.292 milliseconds (1000 allocations: 16000 bytes)
UTF-16 length: 81.891 milliseconds (1000 allocations: 16000 bytes)
UTF-32 length: 14.055 microseconds (1000 allocations: 16000 bytes)
UTF-8 valid: 250.783 milliseconds
UTF-16 valid: 240.754 milliseconds
UTF-32 valid: 139.680 milliseconds
UTF-8 convert to UTF-16: 2.699 seconds (3000 allocations: 500 MB, 1.15% gc time)
UTF-8 convert to UTF-32: 2.889 seconds (3000 allocations: 1000 MB, 1.75% gc time)
UTF-16 convert to UTF-8: 2.449 seconds (3000 allocations: 328 MB, 1.07% gc time)
UTF-16 convert to UTF-32: 2.133 seconds (3000 allocations: 1000 MB, 2.26% gc time)
UTF-32 convert to UTF-8: 2.505 seconds (5000 allocations: 328 MB, 1.03% gc time)
UTF-32 convert to UTF-16: 2.259 seconds (6000 allocations: 500 MB, 1.48% gc time)
2-byte:: Looping 1000 times, length=262144
UTF-8: 344064, UTF-16: 524288, UTF-32: 1048576
UTF-8 length: 123.294 milliseconds (1000 allocations: 16000 bytes)
UTF-16 length: 80.547 milliseconds (1000 allocations: 16000 bytes)
UTF-32 length: 11.590 microseconds (1000 allocations: 16000 bytes)
UTF-8 valid: 251.167 milliseconds
UTF-16 valid: 243.203 milliseconds
UTF-32 valid: 134.771 milliseconds
UTF-8 convert to UTF-16: 2.720 seconds (3000 allocations: 500 MB, 1.14% gc time)
UTF-8 convert to UTF-32: 2.806 seconds (3000 allocations: 1000 MB, 1.71% gc time)
UTF-16 convert to UTF-8: 2.497 seconds (3000 allocations: 328 MB, 1.04% gc time)
UTF-16 convert to UTF-32: 2.155 seconds (3000 allocations: 1000 MB, 2.20% gc time)
UTF-32 convert to UTF-8: 2.519 seconds (5000 allocations: 328 MB, 1.07% gc time)
UTF-32 convert to UTF-16: 2.219 seconds (6000 allocations: 500 MB, 1.46% gc time)
3-byte:: Looping 1000 times, length=262144
UTF-8: 376832, UTF-16: 524288, UTF-32: 1048576
UTF-8 length: 136.712 milliseconds (1000 allocations: 16000 bytes)
UTF-16 length: 81.692 milliseconds (1000 allocations: 16000 bytes)
UTF-32 length: 16.318 microseconds (1000 allocations: 16000 bytes)
UTF-8 valid: 283.416 milliseconds
UTF-16 valid: 236.194 milliseconds
UTF-32 valid: 142.743 milliseconds
UTF-8 convert to UTF-16: 2.784 seconds (3000 allocations: 500 MB, 1.16% gc time)
UTF-8 convert to UTF-32: 2.918 seconds (3000 allocations: 1000 MB, 1.62% gc time)
UTF-16 convert to UTF-8: 3.730 seconds (3000 allocations: 359 MB, 0.71% gc time)
UTF-16 convert to UTF-32: 2.822 seconds (3000 allocations: 1000 MB, 1.77% gc time)
UTF-32 convert to UTF-8: 3.678 seconds (5000 allocations: 360 MB, 0.73% gc time)
UTF-32 convert to UTF-16: 2.879 seconds (6000 allocations: 500 MB, 1.24% gc time)
4-byte:: Looping 1000 times, length=262144
UTF-8: 425984, UTF-16: 589824, UTF-32: 1048576
UTF-8 length: 150.102 milliseconds (1000 allocations: 16000 bytes)
UTF-16 length: 93.609 milliseconds (1000 allocations: 16000 bytes)
UTF-32 length: 11.141 microseconds (1000 allocations: 16000 bytes)
UTF-8 valid: 320.740 milliseconds
UTF-16 valid: 348.848 milliseconds
UTF-32 valid: 138.677 milliseconds
UTF-8 convert to UTF-16: 2.802 seconds (3000 allocations: 563 MB, 1.28% gc time)
UTF-8 convert to UTF-32: 2.800 seconds (3000 allocations: 1000 MB, 1.73% gc time)
UTF-16 convert to UTF-8: 5.701 seconds (3000 allocations: 406 MB, 0.53% gc time)
UTF-16 convert to UTF-32: 4.678 seconds (3000 allocations: 1000 MB, 1.04% gc time)
UTF-32 convert to UTF-8: 4.173 seconds (5000 allocations: 406 MB, 0.73% gc time)
UTF-32 convert to UTF-16: 3.170 seconds (6000 allocations: 563 MB, 1.09% gc time)
Surrogates:: Looping 1000 times, length=262144
UTF-8: 491520, UTF-16: 589824, UTF-32: 1048576
UTF-8 length: 172.972 milliseconds (1000 allocations: 16000 bytes)
UTF-16 length: 89.993 milliseconds (1000 allocations: 16000 bytes)
UTF-32 length: 11.150 microseconds (1000 allocations: 16000 bytes)
UTF-8 valid: 27.953 microseconds
UTF-16 valid: 351.038 milliseconds
UTF-32 valid: 136.073 milliseconds
UTF-8 convert to UTF-16: 2.989 seconds (3000 allocations: 563 MB, 1.24% gc time)
UTF-8 convert to UTF-32: 3.081 seconds (3000 allocations: 1000 MB, 1.64% gc time)
UTF-16 convert to UTF-8: 5.950 seconds (3000 allocations: 406 MB, 0.57% gc time)
UTF-16 convert to UTF-32: 4.906 seconds (3000 allocations: 1000 MB, 1.06% gc time)
UTF-32 convert to UTF-8: 4.304 seconds (5000 allocations: 406 MB, 0.76% gc time)
UTF-32 convert to UTF-16: 3.294 seconds (6000 allocations: 563 MB, 1.07% gc time)
ASCII: Looping 1000 times, length=1048576
length: 11.622 microseconds (1000 allocations: 16000 bytes)
is_valid_ascii: 440.857 milliseconds
Convert to UTF-8: 12.810 microseconds (1000 allocations: 16000 bytes)
Convert to UTF-16: 420.908 milliseconds (3000 allocations: 2000 MB, 36.47% gc time)
Convert to UTF-32: 616.819 milliseconds (3000 allocations: 4000 MB, 28.15% gc time)
ASCII:: Looping 1000 times, length=1048576
UTF-8: 1048576, UTF-16: 2097152, UTF-32: 4194304
UTF-8 length: 388.034 milliseconds (1000 allocations: 16000 bytes)
UTF-16 length: 333.130 milliseconds (1000 allocations: 16000 bytes)
UTF-32 length: 12.928 microseconds (1000 allocations: 16000 bytes)
UTF-8 valid: 446.365 milliseconds
UTF-16 valid: 971.486 milliseconds
UTF-32 valid: 548.861 milliseconds
UTF-8 convert to UTF-16: 2.117 seconds (3000 allocations: 2000 MB, 6.98% gc time)
UTF-8 convert to UTF-32: 2.455 seconds (3000 allocations: 4000 MB, 10.63% gc time)
UTF-16 convert to UTF-8: 3.227 seconds (3000 allocations: 1000 MB, 1.49% gc time)
UTF-16 convert to UTF-32: 3.012 seconds (3000 allocations: 4000 MB, 11.40% gc time)
UTF-32 convert to UTF-8: 3.029 seconds (5000 allocations: 1000 MB, 1.48% gc time)
UTF-32 convert to UTF-16: 2.830 seconds (6000 allocations: 2000 MB, 4.27% gc time)
Latin1:: Looping 1000 times, length=1048576
UTF-8: 1376256, UTF-16: 2097152, UTF-32: 4194304
UTF-8 length: 490.387 milliseconds (1000 allocations: 16000 bytes)
UTF-16 length: 323.232 milliseconds (1000 allocations: 16000 bytes)
UTF-32 length: 12.449 microseconds (1000 allocations: 16000 bytes)
UTF-8 valid: 995.691 milliseconds
UTF-16 valid: 952.383 milliseconds
UTF-32 valid: 582.281 milliseconds
UTF-8 convert to UTF-16: 10.406 seconds (3000 allocations: 2000 MB, 1.18% gc time)
UTF-8 convert to UTF-32: 10.997 seconds (3000 allocations: 4000 MB, 2.95% gc time)
UTF-16 convert to UTF-8: 9.377 seconds (3000 allocations: 1313 MB, 0.79% gc time)
UTF-16 convert to UTF-32: 8.773 seconds (3000 allocations: 4000 MB, 4.26% gc time)
UTF-32 convert to UTF-8: 9.715 seconds (5000 allocations: 1313 MB, 0.74% gc time)
UTF-32 convert to UTF-16: 8.621 seconds (6000 allocations: 2000 MB, 1.44% gc time)
2-byte:: Looping 1000 times, length=1048576
UTF-8: 1376256, UTF-16: 2097152, UTF-32: 4194304
UTF-8 length: 481.714 milliseconds (1000 allocations: 16000 bytes)
UTF-16 length: 327.593 milliseconds (1000 allocations: 16000 bytes)
UTF-32 length: 12.880 microseconds (1000 allocations: 16000 bytes)
UTF-8 valid: 1.014 seconds
UTF-16 valid: 939.762 milliseconds
UTF-32 valid: 549.378 milliseconds
UTF-8 convert to UTF-16: 10.497 seconds (3000 allocations: 2000 MB, 1.14% gc time)
UTF-8 convert to UTF-32: 11.106 seconds (3000 allocations: 4000 MB, 2.83% gc time)
UTF-16 convert to UTF-8: 9.432 seconds (3000 allocations: 1313 MB, 0.78% gc time)
UTF-16 convert to UTF-32: 8.638 seconds (3000 allocations: 4000 MB, 3.65% gc time)
UTF-32 convert to UTF-8: 9.618 seconds (5000 allocations: 1313 MB, 0.75% gc time)
UTF-32 convert to UTF-16: 8.632 seconds (6000 allocations: 2000 MB, 1.65% gc time)
3-byte:: Looping 1000 times, length=1048576
UTF-8: 1507328, UTF-16: 2097152, UTF-32: 4194304
UTF-8 length: 537.183 milliseconds (1000 allocations: 16000 bytes)
UTF-16 length: 319.008 milliseconds (1000 allocations: 16000 bytes)
UTF-32 length: 13.431 microseconds (1000 allocations: 16000 bytes)
UTF-8 valid: 1.146 seconds
UTF-16 valid: 943.395 milliseconds
UTF-32 valid: 576.524 milliseconds
UTF-8 convert to UTF-16: 10.794 seconds (3000 allocations: 2000 MB, 1.29% gc time)
UTF-8 convert to UTF-32: 11.525 seconds (3000 allocations: 4000 MB, 2.85% gc time)
UTF-16 convert to UTF-8: 14.239 seconds (3000 allocations: 1438 MB, 0.73% gc time)
UTF-16 convert to UTF-32: 11.274 seconds (3000 allocations: 4000 MB, 2.82% gc time)
UTF-32 convert to UTF-8: 14.234 seconds (5000 allocations: 1438 MB, 0.50% gc time)
UTF-32 convert to UTF-16: 10.527 seconds (6000 allocations: 2000 MB, 0.99% gc time)
4-byte:: Looping 1000 times, length=1048576
UTF-8: 1703936, UTF-16: 2359296, UTF-32: 4194304
UTF-8 length: 603.900 milliseconds (1000 allocations: 16000 bytes)
UTF-16 length: 357.821 milliseconds (1000 allocations: 16000 bytes)
UTF-32 length: 12.905 microseconds (1000 allocations: 16000 bytes)
UTF-8 valid: 1.271 seconds
UTF-16 valid: 1.369 seconds
UTF-32 valid: 549.241 milliseconds
UTF-8 convert to UTF-16: 10.594 seconds (3000 allocations: 2250 MB, 0.98% gc time)
UTF-8 convert to UTF-32: 11.125 seconds (3000 allocations: 4000 MB, 2.93% gc time)
UTF-16 convert to UTF-8: 21.993 seconds (3000 allocations: 1625 MB, 0.53% gc time)
UTF-16 convert to UTF-32: 18.447 seconds (3000 allocations: 4000 MB, 1.38% gc time)
UTF-32 convert to UTF-8: 16.082 seconds (5000 allocations: 1625 MB, 0.58% gc time)
UTF-32 convert to UTF-16: 12.197 seconds (6000 allocations: 2250 MB, 1.54% gc time)
Surrogates:: Looping 1000 times, length=1048576
UTF-8: 1966080, UTF-16: 2359296, UTF-32: 4194304
UTF-8 length: 693.658 milliseconds (1000 allocations: 16000 bytes)
UTF-16 length: 359.425 milliseconds (1000 allocations: 16000 bytes)
UTF-32 length: 12.584 microseconds (1000 allocations: 16000 bytes)
UTF-8 valid: 16.965 microseconds
UTF-16 valid: 1.374 seconds
UTF-32 valid: 548.598 milliseconds
UTF-8 convert to UTF-16: 11.198 seconds (3000 allocations: 2250 MB, 1.64% gc time)
UTF-8 convert to UTF-32: 12.083 seconds (3000 allocations: 4000 MB, 3.25% gc time)
UTF-16 convert to UTF-8: 22.198 seconds (3000 allocations: 1625 MB, 0.54% gc time)
UTF-16 convert to UTF-32: 18.724 seconds (3000 allocations: 4000 MB, 1.39% gc time)
UTF-32 convert to UTF-8: 16.377 seconds (5000 allocations: 1625 MB, 0.56% gc time)
UTF-32 convert to UTF-16: 12.346 seconds (6000 allocations: 2250 MB, 1.27% gc time)
ASCII: Looping 1000 times, length=4194304
length: 8.134 microseconds (1000 allocations: 16000 bytes)
is_valid_ascii: 1.765 seconds
Convert to UTF-8: 19.276 microseconds (1000 allocations: 16000 bytes)
Convert to UTF-16: 1.483 seconds (3000 allocations: 8000 MB, 28.16% gc time)
Convert to UTF-32: 3.686 seconds (3000 allocations: 16000 MB, 30.15% gc time)
ASCII:: Looping 1000 times, length=4194304
UTF-8: 4194304, UTF-16: 8388608, UTF-32: 16777216
UTF-8 length: 1.488 seconds (1000 allocations: 16000 bytes)
UTF-16 length: 1.309 seconds (1000 allocations: 16000 bytes)
UTF-32 length: 22.192 microseconds (1000 allocations: 16000 bytes)
UTF-8 valid: 1.730 seconds
UTF-16 valid: 3.991 seconds
UTF-32 valid: 2.267 seconds
UTF-8 convert to UTF-16: 8.656 seconds (3000 allocations: 8000 MB, 8.01% gc time)
UTF-8 convert to UTF-32: 11.520 seconds (3000 allocations: 16000 MB, 13.94% gc time)
UTF-16 convert to UTF-8: 13.132 seconds (3000 allocations: 4000 MB, 5.08% gc time)
UTF-16 convert to UTF-32: 12.720 seconds (3000 allocations: 16000 MB, 12.71% gc time)
UTF-32 convert to UTF-8: 12.631 seconds (5000 allocations: 4000 MB, 3.43% gc time)
UTF-32 convert to UTF-16: 12.074 seconds (6000 allocations: 8000 MB, 4.84% gc time)
Latin1:: Looping 1000 times, length=4194304
UTF-8: 5505024, UTF-16: 8388608, UTF-32: 16777216
UTF-8 length: 1.987 seconds (1000 allocations: 16000 bytes)
UTF-16 length: 1.301 seconds (1000 allocations: 16000 bytes)
UTF-32 length: 12.368 microseconds (1000 allocations: 16000 bytes)
UTF-8 valid: 4.008 seconds
UTF-16 valid: 3.980 seconds
UTF-32 valid: 2.277 seconds
UTF-8 convert to UTF-16: 43.335 seconds (3000 allocations: 8000 MB, 2.07% gc time)
UTF-8 convert to UTF-32: 46.463 seconds (3000 allocations: 16000 MB, 3.70% gc time)
UTF-16 convert to UTF-8: 38.886 seconds (3000 allocations: 5250 MB, 2.08% gc time)
UTF-16 convert to UTF-32: 35.832 seconds (3000 allocations: 16000 MB, 4.67% gc time)
UTF-32 convert to UTF-8: 39.522 seconds (5000 allocations: 5250 MB, 1.95% gc time)
UTF-32 convert to UTF-16: 35.797 seconds (6000 allocations: 8000 MB, 2.47% gc time)
2-byte:: Looping 1000 times, length=4194304
UTF-8: 5505024, UTF-16: 8388608, UTF-32: 16777216
UTF-8 length: 2.010 seconds (1000 allocations: 16000 bytes)
UTF-16 length: 1.329 seconds (1000 allocations: 16000 bytes)
UTF-32 length: 12.870 microseconds (1000 allocations: 16000 bytes)
UTF-8 valid: 4.062 seconds
UTF-16 valid: 3.938 seconds
UTF-32 valid: 2.275 seconds
UTF-8 convert to UTF-16: 43.331 seconds (3000 allocations: 8000 MB, 2.09% gc time)
UTF-8 convert to UTF-32: 45.711 seconds (3000 allocations: 16000 MB, 3.83% gc time)
UTF-16 convert to UTF-8: 39.311 seconds (3000 allocations: 5250 MB, 2.00% gc time)
UTF-16 convert to UTF-32: 36.424 seconds (3000 allocations: 16000 MB, 4.61% gc time)
UTF-32 convert to UTF-8: 39.686 seconds (5000 allocations: 5250 MB, 1.99% gc time)
UTF-32 convert to UTF-16: 36.056 seconds (6000 allocations: 8000 MB, 2.47% gc time)
3-byte:: Looping 1000 times, length=4194304
UTF-8: 6029312, UTF-16: 8388608, UTF-32: 16777216
UTF-8 length: 2.247 seconds (1000 allocations: 16000 bytes)
UTF-16 length: 1.400 seconds (1000 allocations: 16000 bytes)
UTF-32 length: 12.940 microseconds (1000 allocations: 16000 bytes)
UTF-8 valid: 4.731 seconds
UTF-16 valid: 3.971 seconds
UTF-32 valid: 2.342 seconds
UTF-8 convert to UTF-16: 44.730 seconds (3000 allocations: 8000 MB, 2.00% gc time)
UTF-8 convert to UTF-32: 47.719 seconds (3000 allocations: 16000 MB, 3.64% gc time)
UTF-16 convert to UTF-8: 58.099 seconds (3000 allocations: 5750 MB, 1.41% gc time)
UTF-16 convert to UTF-32: 47.134 seconds (3000 allocations: 16000 MB, 3.55% gc time)
UTF-32 convert to UTF-8: 58.826 seconds (5000 allocations: 5750 MB, 1.39% gc time)
UTF-32 convert to UTF-16: 43.929 seconds (6000 allocations: 8000 MB, 2.02% gc time)
4-byte:: Looping 1000 times, length=4194304
UTF-8: 6815744, UTF-16: 9437184, UTF-32: 16777216
UTF-8 length: 2.501 seconds (1000 allocations: 16000 bytes)
UTF-16 length: 1.488 seconds (1000 allocations: 16000 bytes)
UTF-32 length: 12.484 microseconds (1000 allocations: 16000 bytes)
UTF-8 valid: 5.138 seconds
UTF-16 valid: 5.650 seconds
UTF-32 valid: 2.269 seconds
UTF-8 convert to UTF-16: 43.929 seconds (3000 allocations: 9000 MB, 3.14% gc time)
UTF-8 convert to UTF-32: 45.907 seconds (3000 allocations: 16000 MB, 3.77% gc time)
UTF-16 convert to UTF-8: 89.392 seconds (3000 allocations: 6500 MB, 0.91% gc time)
UTF-16 convert to UTF-32: 76.570 seconds (3000 allocations: 16000 MB, 2.19% gc time)
UTF-32 convert to UTF-8: 66.455 seconds (5000 allocations: 6500 MB, 1.26% gc time)
UTF-32 convert to UTF-16: 51.081 seconds (6000 allocations: 9000 MB, 2.61% gc time)
Surrogates:: Looping 1000 times, length=4194304
UTF-8: 7864320, UTF-16: 9437184, UTF-32: 16777216
UTF-8 length: 3.022 seconds (1000 allocations: 16000 bytes)
UTF-16 length: 1.480 seconds (1000 allocations: 16000 bytes)
UTF-32 length: 12.529 microseconds (1000 allocations: 16000 bytes)
UTF-8 valid: 16.849 microseconds
UTF-16 valid: 5.689 seconds
UTF-32 valid: 2.320 seconds
UTF-8 convert to UTF-16: 45.742 seconds (3000 allocations: 9000 MB, 2.90% gc time)
UTF-8 convert to UTF-32: 48.828 seconds (3000 allocations: 16000 MB, 3.54% gc time)
UTF-16 convert to UTF-8: 89.341 seconds (3000 allocations: 6500 MB, 0.95% gc time)
UTF-16 convert to UTF-32: 75.828 seconds (3000 allocations: 16000 MB, 2.23% gc time)
UTF-32 convert to UTF-8: 65.584 seconds (5000 allocations: 6500 MB, 1.22% gc time)
UTF-32 convert to UTF-16: 50.968 seconds (6000 allocations: 9000 MB, 2.54% gc time)
2243 seconds (1383 k allocations: 498 GB, 2.31% gc time)
elapsed time: 2243006600008 nanoseconds
gc time: 51789486295
bytes allocated: 535084565632
allocated: -9501344
mallocs: 203101
poolallocs: 1179623
total allocated: 535094066976
pause: 19049
full sweep: 3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment