Skip to content

Instantly share code, notes, and snippets.

@ScottPJones
Created May 25, 2015 21:06
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/730dfd98c804188cb368 to your computer and use it in GitHub Desktop.
Save ScottPJones/730dfd98c804188cb368 to your computer and use it in GitHub Desktop.
Results from 0.4 master (May 25th)
ASCII: Looping 100 times, length=8
length: 1.316 microseconds
is_valid_ascii: 22.529 milliseconds (5600 allocations: 62722 KB, 31.40% gc time)
Convert to UTF-8: 1.527 microseconds (100 allocations: 1600 bytes)
Convert to UTF-16: 16.616 microseconds (500 allocations: 17600 bytes)
Convert to UTF-32: 9.947 microseconds (200 allocations: 12800 bytes)
ASCII:: Looping 100 times, length=8
UTF-8: 8, UTF-16: 16, UTF-32: 32
UTF-8 length: 1.263 microseconds
UTF-16 length: 1.231 microseconds
UTF-32 length: 573 nanoseconds
UTF-8 valid: 14.826 milliseconds (5600 allocations: 62722 KB, 4.86% gc time)
UTF-16 valid: 14.022 milliseconds (5600 allocations: 62722 KB, 6.63% gc time)
UTF-32 valid: 13.875 milliseconds (5700 allocations: 62723 KB, 7.12% gc time)
UTF-8 convert to UTF-16: 19.885 microseconds (500 allocations: 17600 bytes)
UTF-8 convert to UTF-32: 23.867 microseconds (200 allocations: 12800 bytes)
UTF-16 convert to UTF-8: 76.690 microseconds (800 allocations: 40000 bytes)
UTF-16 convert to UTF-32: 9.424 microseconds (200 allocations: 12800 bytes)
UTF-32 convert to UTF-8: 54.566 microseconds (500 allocations: 25600 bytes)
UTF-32 convert to UTF-16: 23.991 microseconds (500 allocations: 17600 bytes)
Latin1:: Looping 100 times, length=8
UTF-8: 10, UTF-16: 16, UTF-32: 32
UTF-8 length: 1.232 microseconds
UTF-16 length: 1.134 microseconds
UTF-32 length: 542 nanoseconds
UTF-8 valid: 13.842 milliseconds (5600 allocations: 62722 KB, 6.88% gc time)
UTF-16 valid: 14.182 milliseconds (5600 allocations: 62722 KB, 7.62% gc time)
UTF-32 valid: 14.207 milliseconds (5700 allocations: 62723 KB, 4.56% gc time)
UTF-8 convert to UTF-16: 23.441 microseconds (500 allocations: 17600 bytes)
UTF-8 convert to UTF-32: 15.751 microseconds (200 allocations: 12800 bytes)
UTF-16 convert to UTF-8: 77.948 microseconds (900 allocations: 43200 bytes)
UTF-16 convert to UTF-32: 21.468 microseconds (200 allocations: 12800 bytes)
UTF-32 convert to UTF-8: 38.019 microseconds (500 allocations: 27200 bytes)
UTF-32 convert to UTF-16: 28.618 microseconds (500 allocations: 17600 bytes)
2-byte:: Looping 100 times, length=8
UTF-8: 12, UTF-16: 16, UTF-32: 32
UTF-8 length: 1.330 microseconds
UTF-16 length: 1.202 microseconds
UTF-32 length: 569 nanoseconds
UTF-8 valid: 14.639 milliseconds (5600 allocations: 62722 KB, 7.51% gc time)
UTF-16 valid: 13.339 milliseconds (5600 allocations: 62722 KB, 6.26% gc time)
UTF-32 valid: 13.812 milliseconds (5700 allocations: 62723 KB, 6.74% gc time)
UTF-8 convert to UTF-16: 32.906 microseconds (500 allocations: 17600 bytes)
UTF-8 convert to UTF-32: 13.493 microseconds (200 allocations: 12800 bytes)
UTF-16 convert to UTF-8: 56.566 microseconds (1100 allocations: 46400 bytes)
UTF-16 convert to UTF-32: 9.391 microseconds (200 allocations: 12800 bytes)
UTF-32 convert to UTF-8: 35.115 microseconds (500 allocations: 27200 bytes)
UTF-32 convert to UTF-16: 15.062 microseconds (500 allocations: 17600 bytes)
3-byte:: Looping 100 times, length=8
UTF-8: 14, UTF-16: 16, UTF-32: 32
UTF-8 length: 1.612 microseconds
UTF-16 length: 1.127 microseconds
UTF-32 length: 567 nanoseconds
UTF-8 valid: 14.239 milliseconds (5600 allocations: 62722 KB, 7.75% gc time)
UTF-16 valid: 13.872 milliseconds (5600 allocations: 62722 KB, 5.07% gc time)
UTF-32 valid: 13.947 milliseconds (5700 allocations: 62723 KB, 7.42% gc time)
UTF-8 convert to UTF-16: 22.132 microseconds (500 allocations: 17600 bytes)
UTF-8 convert to UTF-32: 16.389 microseconds (200 allocations: 12800 bytes)
UTF-16 convert to UTF-8: 61.543 microseconds (1100 allocations: 46400 bytes)
UTF-16 convert to UTF-32: 9.432 microseconds (200 allocations: 12800 bytes)
UTF-32 convert to UTF-8: 42.371 microseconds (500 allocations: 27200 bytes)
UTF-32 convert to UTF-16: 15.741 microseconds (500 allocations: 17600 bytes)
4-byte:: Looping 100 times, length=8
UTF-8: 15, UTF-16: 18, UTF-32: 32
UTF-8 length: 1.649 microseconds
UTF-16 length: 1.182 microseconds
UTF-32 length: 567 nanoseconds
UTF-8 valid: 13.704 milliseconds (5600 allocations: 62722 KB, 6.94% gc time)
UTF-16 valid: 13.500 milliseconds (5600 allocations: 62722 KB, 6.26% gc time)
UTF-32 valid: 13.106 milliseconds (5700 allocations: 62723 KB, 4.95% gc time)
UTF-8 convert to UTF-16: 34.805 microseconds (500 allocations: 17600 bytes)
UTF-8 convert to UTF-32: 26.351 microseconds (200 allocations: 12800 bytes)
UTF-16 convert to UTF-8: 83.542 microseconds (1200 allocations: 48000 bytes)
UTF-16 convert to UTF-32: 9.397 microseconds (200 allocations: 12800 bytes)
UTF-32 convert to UTF-8: 52.466 microseconds (500 allocations: 27200 bytes)
UTF-32 convert to UTF-16: 17.201 microseconds (500 allocations: 17600 bytes)
Surrogates:: Looping 100 times, length=9
UTF-8: 17, UTF-16: 18, UTF-32: 36
UTF-8 length: 1.529 microseconds
UTF-16 length: 1.205 microseconds
UTF-32 length: 562 nanoseconds
UTF-8 valid: 14.190 milliseconds (5600 allocations: 62722 KB, 8.34% gc time)
UTF-16 valid: 13.773 milliseconds (5600 allocations: 62722 KB, 6.58% gc time)
UTF-32 valid: 13.560 milliseconds (5700 allocations: 62723 KB, 6.68% gc time)
UTF-8 convert to UTF-16: 23.682 microseconds (500 allocations: 17600 bytes)
UTF-8 convert to UTF-32: 16.400 microseconds (200 allocations: 12800 bytes)
UTF-16 convert to UTF-8: 102.880 microseconds (1200 allocations: 48000 bytes)
UTF-16 convert to UTF-32: 10.466 microseconds (200 allocations: 12800 bytes)
UTF-32 convert to UTF-8: 78.982 microseconds (500 allocations: 28800 bytes)
UTF-32 convert to UTF-16: 24.753 microseconds (500 allocations: 17600 bytes)
ASCII: Looping 100 times, length=64
length: 644 nanoseconds
is_valid_ascii: 14.066 milliseconds (5600 allocations: 62722 KB, 8.65% gc time)
Convert to UTF-8: 1.174 microseconds (100 allocations: 1600 bytes)
Convert to UTF-16: 63.262 microseconds (800 allocations: 73600 bytes)
Convert to UTF-32: 21.799 microseconds (200 allocations: 41600 bytes)
ASCII:: Looping 100 times, length=64
UTF-8: 64, UTF-16: 128, UTF-32: 256
UTF-8 length: 3.222 microseconds
UTF-16 length: 3.020 microseconds
UTF-32 length: 557 nanoseconds
UTF-8 valid: 13.221 milliseconds (5600 allocations: 62722 KB, 4.33% gc time)
UTF-16 valid: 13.605 milliseconds (5600 allocations: 62722 KB, 6.67% gc time)
UTF-32 valid: 13.279 milliseconds (5700 allocations: 62723 KB, 6.42% gc time)
UTF-8 convert to UTF-16: 120.698 microseconds (800 allocations: 73600 bytes)
UTF-8 convert to UTF-32: 82.387 microseconds (200 allocations: 41600 bytes)
UTF-16 convert to UTF-8: 235.853 microseconds (800 allocations: 52800 bytes)
UTF-16 convert to UTF-32: 77.002 microseconds (200 allocations: 41600 bytes)
UTF-32 convert to UTF-8: 166.216 microseconds (500 allocations: 38400 bytes)
UTF-32 convert to UTF-16: 82.810 microseconds (800 allocations: 73600 bytes)
Latin1:: Looping 100 times, length=64
UTF-8: 84, UTF-16: 128, UTF-32: 256
UTF-8 length: 3.953 microseconds
UTF-16 length: 3.105 microseconds
UTF-32 length: 11.050 microseconds
UTF-8 valid: 13.923 milliseconds (5600 allocations: 62722 KB, 6.99% gc time)
UTF-16 valid: 17.668 milliseconds (5600 allocations: 62722 KB, 7.38% gc time)
UTF-32 valid: 13.374 milliseconds (5700 allocations: 62723 KB, 5.51% gc time)
UTF-8 convert to UTF-16: 141.748 microseconds (800 allocations: 73600 bytes)
UTF-8 convert to UTF-32: 94.345 microseconds (200 allocations: 41600 bytes)
UTF-16 convert to UTF-8: 269.783 microseconds (900 allocations: 68800 bytes)
UTF-16 convert to UTF-32: 62.106 microseconds (200 allocations: 41600 bytes)
UTF-32 convert to UTF-8: 234 microseconds (500 allocations: 52800 bytes)
UTF-32 convert to UTF-16: 79.850 microseconds (800 allocations: 73600 bytes)
2-byte:: Looping 100 times, length=64
UTF-8: 84, UTF-16: 128, UTF-32: 256
UTF-8 length: 4.047 microseconds
UTF-16 length: 13.349 microseconds
UTF-32 length: 552 nanoseconds
UTF-8 valid: 13.999 milliseconds (5600 allocations: 62722 KB, 8.19% gc time)
UTF-16 valid: 13.823 milliseconds (5600 allocations: 62722 KB, 7.98% gc time)
UTF-32 valid: 15.673 milliseconds (5700 allocations: 62723 KB, 7.87% gc time)
UTF-8 convert to UTF-16: 236.700 microseconds (800 allocations: 73600 bytes)
UTF-8 convert to UTF-32: 81.759 microseconds (200 allocations: 41600 bytes)
UTF-16 convert to UTF-8: 362.757 microseconds (1700 allocations: 81600 bytes)
UTF-16 convert to UTF-32: 57.576 microseconds (200 allocations: 41600 bytes)
UTF-32 convert to UTF-8: 269.689 microseconds (500 allocations: 52800 bytes)
UTF-32 convert to UTF-16: 78.533 microseconds (800 allocations: 73600 bytes)
3-byte:: Looping 100 times, length=64
UTF-8: 92, UTF-16: 128, UTF-32: 256
UTF-8 length: 5.926 microseconds
UTF-16 length: 4.245 microseconds
UTF-32 length: 677 nanoseconds
UTF-8 valid: 15.002 milliseconds (5600 allocations: 62722 KB, 5.63% gc time)
UTF-16 valid: 13.298 milliseconds (5600 allocations: 62722 KB, 5.92% gc time)
UTF-32 valid: 16.527 milliseconds (5700 allocations: 62723 KB, 5.93% gc time)
UTF-8 convert to UTF-16: 155.698 microseconds (800 allocations: 73600 bytes)
UTF-8 convert to UTF-32: 102.127 microseconds (200 allocations: 41600 bytes)
UTF-16 convert to UTF-8: 325.182 microseconds (1700 allocations: 81600 bytes)
UTF-16 convert to UTF-32: 61.821 microseconds (200 allocations: 41600 bytes)
UTF-32 convert to UTF-8: 256.145 microseconds (500 allocations: 52800 bytes)
UTF-32 convert to UTF-16: 80.646 microseconds (800 allocations: 73600 bytes)
4-byte:: Looping 100 times, length=64
UTF-8: 104, UTF-16: 144, UTF-32: 256
UTF-8 length: 4.846 microseconds
UTF-16 length: 3.358 microseconds
UTF-32 length: 501 nanoseconds
UTF-8 valid: 14.067 milliseconds (5600 allocations: 62722 KB, 7.85% gc time)
UTF-16 valid: 13.981 milliseconds (5600 allocations: 62722 KB, 6.04% gc time)
UTF-32 valid: 13.064 milliseconds (5700 allocations: 62723 KB, 4.58% gc time)
UTF-8 convert to UTF-16: 152.974 microseconds (800 allocations: 73600 bytes)
UTF-8 convert to UTF-32: 93.299 microseconds (200 allocations: 41600 bytes)
UTF-16 convert to UTF-8: 352.077 microseconds (2500 allocations: 97600 bytes)
UTF-16 convert to UTF-32: 64.234 microseconds (200 allocations: 41600 bytes)
UTF-32 convert to UTF-8: 295.244 microseconds (500 allocations: 54400 bytes)
UTF-32 convert to UTF-16: 95.653 microseconds (800 allocations: 73600 bytes)
Surrogates:: Looping 100 times, length=72
UTF-8: 120, UTF-16: 144, UTF-32: 288
UTF-8 length: 4.956 microseconds
UTF-16 length: 3.407 microseconds
UTF-32 length: 578 nanoseconds
UTF-8 valid: 13.470 milliseconds (5600 allocations: 62722 KB, 7.04% gc time)
UTF-16 valid: 13.705 milliseconds (5600 allocations: 62722 KB, 6.76% gc time)
UTF-32 valid: 15.455 milliseconds (5700 allocations: 62723 KB, 6.10% gc time)
UTF-8 convert to UTF-16: 131.113 microseconds (800 allocations: 73600 bytes)
UTF-8 convert to UTF-32: 91.353 microseconds (200 allocations: 41600 bytes)
UTF-16 convert to UTF-8: 324.885 microseconds (2500 allocations: 97600 bytes)
UTF-16 convert to UTF-32: 49.606 microseconds (200 allocations: 41600 bytes)
UTF-32 convert to UTF-8: 269.304 microseconds (500 allocations: 57600 bytes)
UTF-32 convert to UTF-16: 71.664 microseconds (800 allocations: 73600 bytes)
ASCII: Looping 100 times, length=256
length: 587 nanoseconds
is_valid_ascii: 13.855 milliseconds (5600 allocations: 62722 KB, 7.19% gc time)
Convert to UTF-8: 912 nanoseconds (100 allocations: 1600 bytes)
Convert to UTF-16: 256.589 microseconds (1000 allocations: 231 KB)
Convert to UTF-32: 117.157 microseconds (200 allocations: 116 KB)
ASCII:: Looping 100 times, length=256
UTF-8: 256, UTF-16: 512, UTF-32: 1024
UTF-8 length: 10.523 microseconds
UTF-16 length: 20.517 microseconds
UTF-32 length: 572 nanoseconds
UTF-8 valid: 13.684 milliseconds (5600 allocations: 62722 KB, 6.02% gc time)
UTF-16 valid: 13.471 milliseconds (5600 allocations: 62722 KB, 6.18% gc time)
UTF-32 valid: 13.306 milliseconds (5700 allocations: 62723 KB, 6.52% gc time)
UTF-8 convert to UTF-16: 366.828 microseconds (1000 allocations: 231 KB)
UTF-8 convert to UTF-32: 246.774 microseconds (200 allocations: 116 KB)
UTF-16 convert to UTF-8: 774.457 microseconds (800 allocations: 102 KB)
UTF-16 convert to UTF-32: 284.321 microseconds (200 allocations: 116 KB)
UTF-32 convert to UTF-8: 500.892 microseconds (500 allocations: 89600 bytes)
UTF-32 convert to UTF-16: 249.617 microseconds (1000 allocations: 231 KB)
Latin1:: Looping 100 times, length=256
UTF-8: 336, UTF-16: 512, UTF-32: 1024
UTF-8 length: 23.587 microseconds
UTF-16 length: 9.818 microseconds
UTF-32 length: 564 nanoseconds
UTF-8 valid: 13.690 milliseconds (5600 allocations: 62722 KB, 7.28% gc time)
UTF-16 valid: 17.978 milliseconds (5600 allocations: 62722 KB, 4.33% gc time)
UTF-32 valid: 14.022 milliseconds (5700 allocations: 62723 KB, 5.58% gc time)
UTF-8 convert to UTF-16: 379.540 microseconds (1000 allocations: 231 KB)
UTF-8 convert to UTF-32: 234.623 microseconds (200 allocations: 116 KB)
UTF-16 convert to UTF-8: 991.478 microseconds (900 allocations: 159 KB)
UTF-16 convert to UTF-32: 177.134 microseconds (200 allocations: 116 KB)
UTF-32 convert to UTF-8: 828.833 microseconds (500 allocations: 144 KB)
UTF-32 convert to UTF-16: 223.553 microseconds (1000 allocations: 231 KB)
2-byte:: Looping 100 times, length=256
UTF-8: 336, UTF-16: 512, UTF-32: 1024
UTF-8 length: 13.213 microseconds
UTF-16 length: 20.245 microseconds
UTF-32 length: 489 nanoseconds
UTF-8 valid: 14.081 milliseconds (5600 allocations: 62722 KB, 8.55% gc time)
UTF-16 valid: 14.125 milliseconds (5600 allocations: 62722 KB, 8.70% gc time)
UTF-32 valid: 14.308 milliseconds (5700 allocations: 62723 KB, 9.11% gc time)
UTF-8 convert to UTF-16: 349.247 microseconds (1000 allocations: 231 KB)
UTF-8 convert to UTF-32: 218.598 microseconds (200 allocations: 116 KB)
UTF-16 convert to UTF-8: 977.498 microseconds (4100 allocations: 209 KB)
UTF-16 convert to UTF-32: 154.834 microseconds (200 allocations: 116 KB)
UTF-32 convert to UTF-8: 804.990 microseconds (500 allocations: 144 KB)
UTF-32 convert to UTF-16: 180.344 microseconds (1000 allocations: 231 KB)
3-byte:: Looping 100 times, length=256
UTF-8: 368, UTF-16: 512, UTF-32: 1024
UTF-8 length: 14.545 microseconds
UTF-16 length: 10.293 microseconds
UTF-32 length: 501 nanoseconds
UTF-8 valid: 14.313 milliseconds (5600 allocations: 62722 KB, 6.87% gc time)
UTF-16 valid: 14.151 milliseconds (5600 allocations: 62722 KB, 7.69% gc time)
UTF-32 valid: 14.712 milliseconds (5700 allocations: 62723 KB, 9.96% gc time)
UTF-8 convert to UTF-16: 387.196 microseconds (1000 allocations: 231 KB)
UTF-8 convert to UTF-32: 268.642 microseconds (200 allocations: 116 KB)
UTF-16 convert to UTF-8: 1.005 milliseconds (4100 allocations: 209 KB)
UTF-16 convert to UTF-32: 153.273 microseconds (200 allocations: 116 KB)
UTF-32 convert to UTF-8: 775.056 microseconds (500 allocations: 144 KB)
UTF-32 convert to UTF-16: 179.215 microseconds (1000 allocations: 231 KB)
4-byte:: Looping 100 times, length=256
UTF-8: 416, UTF-16: 576, UTF-32: 1024
UTF-8 length: 16.345 microseconds
UTF-16 length: 10.966 microseconds
UTF-32 length: 582 nanoseconds
UTF-8 valid: 15.368 milliseconds (5600 allocations: 62722 KB, 8.64% gc time)
UTF-16 valid: 15.039 milliseconds (5600 allocations: 62722 KB, 6.39% gc time)
UTF-32 valid: 14.285 milliseconds (5700 allocations: 62723 KB, 5.40% gc time)
UTF-8 convert to UTF-16: 395.870 microseconds (1000 allocations: 231 KB)
UTF-8 convert to UTF-32: 277.679 microseconds (200 allocations: 116 KB)
UTF-16 convert to UTF-8: 1.107 milliseconds (7300 allocations: 277 KB)
UTF-16 convert to UTF-32: 175.162 microseconds (200 allocations: 116 KB)
UTF-32 convert to UTF-8: 868.513 microseconds (500 allocations: 153 KB)
UTF-32 convert to UTF-16: 633.883 microseconds (1000 allocations: 231 KB, 63.29% gc time)
Surrogates:: Looping 100 times, length=288
UTF-8: 480, UTF-16: 576, UTF-32: 1152
UTF-8 length: 18.724 microseconds
UTF-16 length: 11.118 microseconds
UTF-32 length: 488 nanoseconds
UTF-8 valid: 13.934 milliseconds (5600 allocations: 62722 KB, 5.70% gc time)
UTF-16 valid: 14.299 milliseconds (5600 allocations: 62722 KB, 8.91% gc time)
UTF-32 valid: 13.641 milliseconds (5700 allocations: 62723 KB, 8.30% gc time)
UTF-8 convert to UTF-16: 496.937 microseconds (1000 allocations: 231 KB)
UTF-8 convert to UTF-32: 357.167 microseconds (200 allocations: 123 KB)
UTF-16 convert to UTF-8: 1.120 milliseconds (7300 allocations: 277 KB)
UTF-16 convert to UTF-32: 187.413 microseconds (200 allocations: 116 KB)
UTF-32 convert to UTF-8: 982.016 microseconds (500 allocations: 164 KB)
UTF-32 convert to UTF-16: 258.303 microseconds (1000 allocations: 231 KB)
ASCII: Looping 100 times, length=1024
length: 1.195 microseconds (100 allocations: 1600 bytes)
is_valid_ascii: 14.571 milliseconds (5600 allocations: 62722 KB, 9.52% gc time)
Convert to UTF-8: 1.047 microseconds (100 allocations: 1600 bytes)
Convert to UTF-16: 826.740 microseconds (1000 allocations: 838 KB)
Convert to UTF-32: 224.839 microseconds (100 allocations: 411 KB)
ASCII:: Looping 100 times, length=1024
UTF-8: 1024, UTF-16: 2048, UTF-32: 4096
UTF-8 length: 39.321 microseconds (100 allocations: 1600 bytes)
UTF-16 length: 49.964 microseconds (100 allocations: 1600 bytes)
UTF-32 length: 2.215 microseconds (100 allocations: 1600 bytes)
UTF-8 valid: 14.701 milliseconds (5600 allocations: 62722 KB, 6.92% gc time)
UTF-16 valid: 13.293 milliseconds (5600 allocations: 62722 KB, 4.75% gc time)
UTF-32 valid: 16.941 milliseconds (5700 allocations: 62723 KB, 6.21% gc time)
UTF-8 convert to UTF-16: 1.257 milliseconds (1000 allocations: 838 KB)
UTF-8 convert to UTF-32: 757.831 microseconds (100 allocations: 411 KB)
UTF-16 convert to UTF-8: 3.033 milliseconds (900 allocations: 253 KB)
UTF-16 convert to UTF-32: 643.721 microseconds (100 allocations: 411 KB)
UTF-32 convert to UTF-8: 1.823 milliseconds (500 allocations: 238 KB)
UTF-32 convert to UTF-16: 647.821 microseconds (1000 allocations: 838 KB)
Latin1:: Looping 100 times, length=1024
UTF-8: 1344, UTF-16: 2048, UTF-32: 4096
UTF-8 length: 49.280 microseconds (100 allocations: 1600 bytes)
UTF-16 length: 35.786 microseconds (100 allocations: 1600 bytes)
UTF-32 length: 946 nanoseconds (100 allocations: 1600 bytes)
UTF-8 valid: 14.203 milliseconds (5600 allocations: 62722 KB, 8.36% gc time)
UTF-16 valid: 13.533 milliseconds (5600 allocations: 62722 KB, 6.27% gc time)
UTF-32 valid: 13.719 milliseconds (5700 allocations: 62723 KB, 7.29% gc time)
UTF-8 convert to UTF-16: 1.361 milliseconds (1000 allocations: 838 KB)
UTF-8 convert to UTF-32: 853.961 microseconds (100 allocations: 411 KB)
UTF-16 convert to UTF-8: 3.678 milliseconds (900 allocations: 489 KB)
UTF-16 convert to UTF-32: 573.202 microseconds (100 allocations: 411 KB)
UTF-32 convert to UTF-8: 2.962 milliseconds (400 allocations: 472 KB)
UTF-32 convert to UTF-16: 636.409 microseconds (1000 allocations: 838 KB)
2-byte:: Looping 100 times, length=1024
UTF-8: 1344, UTF-16: 2048, UTF-32: 4096
UTF-8 length: 49.368 microseconds (100 allocations: 1600 bytes)
UTF-16 length: 34.935 microseconds (100 allocations: 1600 bytes)
UTF-32 length: 2.795 microseconds (100 allocations: 1600 bytes)
UTF-8 valid: 14.019 milliseconds (5600 allocations: 62722 KB, 8.41% gc time)
UTF-16 valid: 13.152 milliseconds (5600 allocations: 62722 KB, 4.28% gc time)
UTF-32 valid: 13.958 milliseconds (5700 allocations: 62723 KB, 7.25% gc time)
UTF-8 convert to UTF-16: 1.316 milliseconds (1000 allocations: 838 KB)
UTF-8 convert to UTF-32: 831.355 microseconds (100 allocations: 411 KB)
UTF-16 convert to UTF-8: 3.710 milliseconds (13700 allocations: 689 KB)
UTF-16 convert to UTF-32: 593.702 microseconds (100 allocations: 411 KB)
UTF-32 convert to UTF-8: 3.162 milliseconds (400 allocations: 472 KB)
UTF-32 convert to UTF-16: 698.889 microseconds (1000 allocations: 838 KB)
3-byte:: Looping 100 times, length=1024
UTF-8: 1472, UTF-16: 2048, UTF-32: 4096
UTF-8 length: 84.584 microseconds (100 allocations: 1600 bytes)
UTF-16 length: 63.958 microseconds (100 allocations: 1600 bytes)
UTF-32 length: 1.300 microseconds (100 allocations: 1600 bytes)
UTF-8 valid: 14.103 milliseconds (5600 allocations: 62722 KB, 8.84% gc time)
UTF-16 valid: 13.499 milliseconds (5600 allocations: 62722 KB, 7.09% gc time)
UTF-32 valid: 14.113 milliseconds (5700 allocations: 62723 KB, 7.07% gc time)
UTF-8 convert to UTF-16: 1.400 milliseconds (1000 allocations: 838 KB)
UTF-8 convert to UTF-32: 1.047 milliseconds (100 allocations: 411 KB)
UTF-16 convert to UTF-8: 4.098 milliseconds (13700 allocations: 703 KB)
UTF-16 convert to UTF-32: 631.497 microseconds (100 allocations: 411 KB)
UTF-32 convert to UTF-8: 2.827 milliseconds (400 allocations: 486 KB)
UTF-32 convert to UTF-16: 655.197 microseconds (1000 allocations: 838 KB)
4-byte:: Looping 100 times, length=1024
UTF-8: 1664, UTF-16: 2304, UTF-32: 4096
UTF-8 length: 101.176 microseconds (100 allocations: 1600 bytes)
UTF-16 length: 57.815 microseconds (100 allocations: 1600 bytes)
UTF-32 length: 953 nanoseconds (100 allocations: 1600 bytes)
UTF-8 valid: 13.862 milliseconds (5600 allocations: 62722 KB, 8.52% gc time)
UTF-16 valid: 13.347 milliseconds (5600 allocations: 62722 KB, 4.52% gc time)
UTF-32 valid: 13.979 milliseconds (5700 allocations: 62723 KB, 8.11% gc time)
UTF-8 convert to UTF-16: 1.628 milliseconds (1000 allocations: 838 KB)
UTF-8 convert to UTF-32: 1.089 milliseconds (100 allocations: 411 KB)
UTF-16 convert to UTF-8: 4.207 milliseconds (26500 allocations: 953 KB)
UTF-16 convert to UTF-32: 633.287 microseconds (100 allocations: 411 KB)
UTF-32 convert to UTF-8: 3.451 milliseconds (400 allocations: 503 KB)
UTF-32 convert to UTF-16: 809.917 microseconds (1000 allocations: 838 KB)
Surrogates:: Looping 100 times, length=1152
UTF-8: 1920, UTF-16: 2304, UTF-32: 4608
UTF-8 length: 90.525 microseconds (100 allocations: 1600 bytes)
UTF-16 length: 58.312 microseconds (100 allocations: 1600 bytes)
UTF-32 length: 797 nanoseconds (100 allocations: 1600 bytes)
UTF-8 valid: 14.148 milliseconds (5600 allocations: 62722 KB, 9.00% gc time)
UTF-16 valid: 14.118 milliseconds (5600 allocations: 62722 KB, 7.53% gc time)
UTF-32 valid: 13.642 milliseconds (5700 allocations: 62723 KB, 6.09% gc time)
UTF-8 convert to UTF-16: 1.652 milliseconds (1000 allocations: 838 KB)
UTF-8 convert to UTF-32: 1.228 milliseconds (100 allocations: 461 KB)
UTF-16 convert to UTF-8: 4.150 milliseconds (26500 allocations: 953 KB)
UTF-16 convert to UTF-32: 633.556 microseconds (100 allocations: 411 KB)
UTF-32 convert to UTF-8: 3.345 milliseconds (400 allocations: 558 KB)
UTF-32 convert to UTF-16: 727.216 microseconds (1000 allocations: 838 KB)
ASCII: Looping 100 times, length=4096
length: 1.095 microseconds (100 allocations: 1600 bytes)
is_valid_ascii: 13.955 milliseconds (5600 allocations: 62722 KB, 9.10% gc time)
Convert to UTF-8: 1.289 microseconds (100 allocations: 1600 bytes)
Convert to UTF-16: 2.827 milliseconds (1000 allocations: 3244 KB)
Convert to UTF-32: 1.497 milliseconds (300 allocations: 1609 KB)
ASCII:: Looping 100 times, length=4096
UTF-8: 4096, UTF-16: 8192, UTF-32: 16384
UTF-8 length: 149.276 microseconds (100 allocations: 1600 bytes)
UTF-16 length: 139.143 microseconds (100 allocations: 1600 bytes)
UTF-32 length: 2.323 microseconds (100 allocations: 1600 bytes)
UTF-8 valid: 14.265 milliseconds (5600 allocations: 62722 KB, 7.36% gc time)
UTF-16 valid: 13.948 milliseconds (5600 allocations: 62722 KB, 5.64% gc time)
UTF-32 valid: 13.695 milliseconds (5700 allocations: 62723 KB, 8.28% gc time)
UTF-8 convert to UTF-16: 4.328 milliseconds (1000 allocations: 3244 KB)
UTF-8 convert to UTF-32: 2.876 milliseconds (300 allocations: 1609 KB)
UTF-16 convert to UTF-8: 12.839 milliseconds (700 allocations: 844 KB, 4.02% gc time)
UTF-16 convert to UTF-32: 2.343 milliseconds (300 allocations: 1609 KB)
UTF-32 convert to UTF-8: 4.932 milliseconds (300 allocations: 828 KB)
UTF-32 convert to UTF-16: 2.798 milliseconds (1000 allocations: 3244 KB)
Latin1:: Looping 100 times, length=4096
UTF-8: 5376, UTF-16: 8192, UTF-32: 16384
UTF-8 length: 233.150 microseconds (100 allocations: 1600 bytes)
UTF-16 length: 147.943 microseconds (100 allocations: 1600 bytes)
UTF-32 length: 1.859 microseconds (100 allocations: 1600 bytes)
UTF-8 valid: 14.328 milliseconds (5600 allocations: 62722 KB, 8.01% gc time)
UTF-16 valid: 13.871 milliseconds (5600 allocations: 62722 KB, 4.17% gc time)
UTF-32 valid: 14.983 milliseconds (5700 allocations: 62723 KB, 6.99% gc time)
UTF-8 convert to UTF-16: 5.262 milliseconds (1000 allocations: 3244 KB)
UTF-8 convert to UTF-32: 3.348 milliseconds (300 allocations: 1609 KB)
UTF-16 convert to UTF-8: 14.728 milliseconds (700 allocations: 1773 KB)
UTF-16 convert to UTF-32: 2.835 milliseconds (300 allocations: 1609 KB)
UTF-32 convert to UTF-8: 11.358 milliseconds (200 allocations: 1756 KB, 5.48% gc time)
UTF-32 convert to UTF-16: 2.561 milliseconds (1000 allocations: 3244 KB)
2-byte:: Looping 100 times, length=4096
UTF-8: 5376, UTF-16: 8192, UTF-32: 16384
UTF-8 length: 190.513 microseconds (100 allocations: 1600 bytes)
UTF-16 length: 134.272 microseconds (100 allocations: 1600 bytes)
UTF-32 length: 1.021 microseconds (100 allocations: 1600 bytes)
UTF-8 valid: 14.578 milliseconds (5600 allocations: 62722 KB, 6.24% gc time)
UTF-16 valid: 14.020 milliseconds (5600 allocations: 62722 KB, 6.84% gc time)
UTF-32 valid: 13.938 milliseconds (5700 allocations: 62723 KB, 6.87% gc time)
UTF-8 convert to UTF-16: 5.549 milliseconds (1000 allocations: 3244 KB)
UTF-8 convert to UTF-32: 3.909 milliseconds (300 allocations: 1609 KB)
UTF-16 convert to UTF-8: 15.121 milliseconds (51900 allocations: 2573 KB)
UTF-16 convert to UTF-32: 2.300 milliseconds (300 allocations: 1609 KB)
UTF-32 convert to UTF-8: 11.657 milliseconds (200 allocations: 1756 KB, 7.04% gc time)
UTF-32 convert to UTF-16: 2.499 milliseconds (1000 allocations: 3244 KB)
3-byte:: Looping 100 times, length=4096
UTF-8: 5888, UTF-16: 8192, UTF-32: 16384
UTF-8 length: 220.134 microseconds (100 allocations: 1600 bytes)
UTF-16 length: 149.518 microseconds (100 allocations: 1600 bytes)
UTF-32 length: 1.583 microseconds (100 allocations: 1600 bytes)
UTF-8 valid: 14.448 milliseconds (5600 allocations: 62722 KB, 6.49% gc time)
UTF-16 valid: 13.918 milliseconds (5600 allocations: 62722 KB, 6.50% gc time)
UTF-32 valid: 13.869 milliseconds (5700 allocations: 62723 KB, 7.83% gc time)
UTF-8 convert to UTF-16: 5.415 milliseconds (1000 allocations: 3244 KB)
UTF-8 convert to UTF-32: 3.992 milliseconds (300 allocations: 1609 KB)
UTF-16 convert to UTF-8: 15.565 milliseconds (51900 allocations: 2623 KB)
UTF-16 convert to UTF-32: 2.343 milliseconds (300 allocations: 1609 KB)
UTF-32 convert to UTF-8: 12.757 milliseconds (200 allocations: 1806 KB, 15.87% gc time)
UTF-32 convert to UTF-16: 3.058 milliseconds (1000 allocations: 3244 KB)
4-byte:: Looping 100 times, length=4096
UTF-8: 6656, UTF-16: 9216, UTF-32: 16384
UTF-8 length: 283.114 microseconds (100 allocations: 1600 bytes)
UTF-16 length: 204.046 microseconds (100 allocations: 1600 bytes)
UTF-32 length: 1.311 microseconds (100 allocations: 1600 bytes)
UTF-8 valid: 13.960 milliseconds (5600 allocations: 62722 KB, 5.78% gc time)
UTF-16 valid: 14.455 milliseconds (5600 allocations: 62722 KB, 7.81% gc time)
UTF-32 valid: 13.682 milliseconds (5700 allocations: 62723 KB, 6.11% gc time)
UTF-8 convert to UTF-16: 5.793 milliseconds (1000 allocations: 3244 KB)
UTF-8 convert to UTF-32: 4.552 milliseconds (300 allocations: 1609 KB)
UTF-16 convert to UTF-8: 16.982 milliseconds (103 k allocations: 3648 KB)
UTF-16 convert to UTF-32: 3.192 milliseconds (300 allocations: 1609 KB)
UTF-32 convert to UTF-8: 14.223 milliseconds (200 allocations: 1881 KB, 5.89% gc time)
UTF-32 convert to UTF-16: 2.992 milliseconds (1000 allocations: 3244 KB)
Surrogates:: Looping 100 times, length=4608
UTF-8: 7680, UTF-16: 9216, UTF-32: 18432
UTF-8 length: 326.231 microseconds (100 allocations: 1600 bytes)
UTF-16 length: 165.277 microseconds (100 allocations: 1600 bytes)
UTF-32 length: 1.163 microseconds (100 allocations: 1600 bytes)
UTF-8 valid: 13.448 milliseconds (5600 allocations: 62722 KB, 6.22% gc time)
UTF-16 valid: 14.296 milliseconds (5600 allocations: 62722 KB, 6.54% gc time)
UTF-32 valid: 13.576 milliseconds (5700 allocations: 62723 KB, 6.93% gc time)
UTF-8 convert to UTF-16: 6.455 milliseconds (1000 allocations: 3244 KB)
UTF-8 convert to UTF-32: 4.695 milliseconds (300 allocations: 1809 KB)
UTF-16 convert to UTF-8: 16.124 milliseconds (103 k allocations: 3648 KB)
UTF-16 convert to UTF-32: 3.272 milliseconds (300 allocations: 1609 KB, 26.38% gc time)
UTF-32 convert to UTF-8: 13.634 milliseconds (200 allocations: 2131 KB)
UTF-32 convert to UTF-16: 2.760 milliseconds (1000 allocations: 3244 KB)
ASCII: Looping 100 times, length=16384
length: 2.295 microseconds (100 allocations: 1600 bytes)
is_valid_ascii: 14.500 milliseconds (5600 allocations: 62722 KB, 7.87% gc time)
Convert to UTF-8: 1.245 microseconds (100 allocations: 1600 bytes)
Convert to UTF-16: 11.634 milliseconds (1000 allocations: 12850 KB)
Convert to UTF-32: 4.649 milliseconds (300 allocations: 6409 KB)
ASCII:: Looping 100 times, length=16384
UTF-8: 16384, UTF-16: 32768, UTF-32: 65536
UTF-8 length: 618.228 microseconds (100 allocations: 1600 bytes)
UTF-16 length: 519.602 microseconds (100 allocations: 1600 bytes)
UTF-32 length: 1.310 microseconds (100 allocations: 1600 bytes)
UTF-8 valid: 16.670 milliseconds (5600 allocations: 62722 KB, 18.47% gc time)
UTF-16 valid: 15.276 milliseconds (5600 allocations: 62722 KB, 6.07% gc time)
UTF-32 valid: 13.944 milliseconds (5700 allocations: 62723 KB, 6.56% gc time)
UTF-8 convert to UTF-16: 19.876 milliseconds (1000 allocations: 12850 KB)
UTF-8 convert to UTF-32: 12.887 milliseconds (300 allocations: 6409 KB, 9.45% gc time)
UTF-16 convert to UTF-8: 47.071 milliseconds (1100 allocations: 3241 KB)
UTF-16 convert to UTF-32: 9.925 milliseconds (300 allocations: 6409 KB)
UTF-32 convert to UTF-8: 21.013 milliseconds (700 allocations: 3225 KB)
UTF-32 convert to UTF-16: 12.513 milliseconds (1000 allocations: 12850 KB, 18.29% gc time)
Latin1:: Looping 100 times, length=16384
UTF-8: 21504, UTF-16: 32768, UTF-32: 65536
UTF-8 length: 801.480 microseconds (100 allocations: 1600 bytes)
UTF-16 length: 526.742 microseconds (100 allocations: 1600 bytes)
UTF-32 length: 1.412 microseconds (100 allocations: 1600 bytes)
UTF-8 valid: 14.935 milliseconds (5600 allocations: 62722 KB, 6.00% gc time)
UTF-16 valid: 14.831 milliseconds (5600 allocations: 62722 KB, 4.44% gc time)
UTF-32 valid: 14.558 milliseconds (5700 allocations: 62723 KB, 6.93% gc time)
UTF-8 convert to UTF-16: 20.057 milliseconds (1000 allocations: 12850 KB, 2.41% gc time)
UTF-8 convert to UTF-32: 14.005 milliseconds (300 allocations: 6409 KB)
UTF-16 convert to UTF-8: 57.201 milliseconds (1200 allocations: 5342 KB)
UTF-16 convert to UTF-32: 11.125 milliseconds (300 allocations: 6409 KB, 17.29% gc time)
UTF-32 convert to UTF-8: 43.932 milliseconds (700 allocations: 5325 KB)
UTF-32 convert to UTF-16: 11.291 milliseconds (1000 allocations: 12850 KB)
2-byte:: Looping 100 times, length=16384
UTF-8: 21504, UTF-16: 32768, UTF-32: 65536
UTF-8 length: 805.656 microseconds (100 allocations: 1600 bytes)
UTF-16 length: 542.360 microseconds (100 allocations: 1600 bytes)
UTF-32 length: 1.279 microseconds (100 allocations: 1600 bytes)
UTF-8 valid: 19.393 milliseconds (5600 allocations: 62722 KB, 11.94% gc time)
UTF-16 valid: 17.526 milliseconds (5600 allocations: 62722 KB, 6.55% gc time)
UTF-32 valid: 14.553 milliseconds (5700 allocations: 62723 KB, 6.72% gc time)
UTF-8 convert to UTF-16: 20.307 milliseconds (1000 allocations: 12850 KB)
UTF-8 convert to UTF-32: 18.135 milliseconds (300 allocations: 6409 KB, 7.87% gc time)
UTF-16 convert to UTF-8: 59.006 milliseconds (206 k allocations: 8542 KB)
UTF-16 convert to UTF-32: 11.623 milliseconds (300 allocations: 6409 KB)
UTF-32 convert to UTF-8: 44.002 milliseconds (700 allocations: 5325 KB)
UTF-32 convert to UTF-16: 12.241 milliseconds (1000 allocations: 12850 KB, 14.51% gc time)
3-byte:: Looping 100 times, length=16384
UTF-8: 23552, UTF-16: 32768, UTF-32: 65536
UTF-8 length: 867.389 microseconds (100 allocations: 1600 bytes)
UTF-16 length: 526.064 microseconds (100 allocations: 1600 bytes)
UTF-32 length: 2.328 microseconds (100 allocations: 1600 bytes)
UTF-8 valid: 17.327 milliseconds (5600 allocations: 62722 KB, 12.12% gc time)
UTF-16 valid: 15.969 milliseconds (5600 allocations: 62722 KB, 7.94% gc time)
UTF-32 valid: 14.369 milliseconds (5700 allocations: 62723 KB, 5.26% gc time)
UTF-8 convert to UTF-16: 22.354 milliseconds (1000 allocations: 12850 KB, 1.92% gc time)
UTF-8 convert to UTF-32: 23.861 milliseconds (300 allocations: 6409 KB)
UTF-16 convert to UTF-8: 63.458 milliseconds (206 k allocations: 8742 KB, 4.31% gc time)
UTF-16 convert to UTF-32: 9.732 milliseconds (300 allocations: 6409 KB)
UTF-32 convert to UTF-8: 40.021 milliseconds (700 allocations: 5525 KB)
UTF-32 convert to UTF-16: 13.101 milliseconds (1000 allocations: 12850 KB, 19.65% gc time)
4-byte:: Looping 100 times, length=16384
UTF-8: 26624, UTF-16: 36864, UTF-32: 65536
UTF-8 length: 970.823 microseconds (100 allocations: 1600 bytes)
UTF-16 length: 587.219 microseconds (100 allocations: 1600 bytes)
UTF-32 length: 1.945 microseconds (100 allocations: 1600 bytes)
UTF-8 valid: 16.337 milliseconds (5600 allocations: 62722 KB, 7.79% gc time)
UTF-16 valid: 15.930 milliseconds (5600 allocations: 62722 KB, 4.81% gc time)
UTF-32 valid: 14.402 milliseconds (5700 allocations: 62723 KB, 7.99% gc time)
UTF-8 convert to UTF-16: 24.871 milliseconds (1000 allocations: 12850 KB, 4.47% gc time)
UTF-8 convert to UTF-32: 17.748 milliseconds (300 allocations: 6409 KB)
UTF-16 convert to UTF-8: 67.815 milliseconds (411 k allocations: 12642 KB, 2.20% gc time)
UTF-16 convert to UTF-32: 10.250 milliseconds (300 allocations: 6409 KB)
UTF-32 convert to UTF-8: 54.888 milliseconds (700 allocations: 5825 KB)
UTF-32 convert to UTF-16: 14.451 milliseconds (1000 allocations: 12850 KB, 14.35% gc time)
Surrogates:: Looping 100 times, length=18432
UTF-8: 30720, UTF-16: 36864, UTF-32: 73728
UTF-8 length: 1.201 milliseconds (100 allocations: 1600 bytes)
UTF-16 length: 589.665 microseconds (100 allocations: 1600 bytes)
UTF-32 length: 901 nanoseconds (100 allocations: 1600 bytes)
UTF-8 valid: 13.361 milliseconds (5600 allocations: 62722 KB, 5.56% gc time)
UTF-16 valid: 16.273 milliseconds (5600 allocations: 62722 KB, 6.54% gc time)
UTF-32 valid: 14.580 milliseconds (5700 allocations: 62723 KB, 6.94% gc time)
UTF-8 convert to UTF-16: 27.378 milliseconds (1000 allocations: 12850 KB, 4.60% gc time)
UTF-8 convert to UTF-32: 19.130 milliseconds (300 allocations: 7209 KB)
UTF-16 convert to UTF-8: 68.954 milliseconds (411 k allocations: 12642 KB)
UTF-16 convert to UTF-32: 12.416 milliseconds (300 allocations: 6409 KB, 17.39% gc time)
UTF-32 convert to UTF-8: 54.557 milliseconds (700 allocations: 6625 KB)
UTF-32 convert to UTF-16: 13.808 milliseconds (1000 allocations: 12850 KB, 15.50% gc time)
ASCII: Looping 100 times, length=65536
length: 1.609 microseconds (100 allocations: 1600 bytes)
is_valid_ascii: 16.739 milliseconds (5600 allocations: 62722 KB, 7.41% gc time)
Convert to UTF-8: 1.159 microseconds (100 allocations: 1600 bytes)
Convert to UTF-16: 55.237 milliseconds (1000 allocations: 51256 KB, 4.45% gc time)
Convert to UTF-32: 24.569 milliseconds (300 allocations: 25609 KB, 6.54% gc time)
ASCII:: Looping 100 times, length=65536
UTF-8: 65536, UTF-16: 131072, UTF-32: 262144
UTF-8 length: 2.305 milliseconds (100 allocations: 1600 bytes)
UTF-16 length: 1.997 milliseconds (100 allocations: 1600 bytes)
UTF-32 length: 2.331 microseconds (100 allocations: 1600 bytes)
UTF-8 valid: 20.601 milliseconds (5600 allocations: 62722 KB, 11.71% gc time)
UTF-16 valid: 19.547 milliseconds (5600 allocations: 62722 KB, 4.93% gc time)
UTF-32 valid: 16.315 milliseconds (5700 allocations: 62723 KB, 4.19% gc time)
UTF-8 convert to UTF-16: 80.283 milliseconds (1000 allocations: 51256 KB, 3.60% gc time)
UTF-8 convert to UTF-32: 56.645 milliseconds (300 allocations: 25609 KB, 2.95% gc time)
UTF-16 convert to UTF-8: 191.675 milliseconds (1100 allocations: 12841 KB)
UTF-16 convert to UTF-32: 47.292 milliseconds (300 allocations: 25609 KB, 6.58% gc time)
UTF-32 convert to UTF-8: 94.865 milliseconds (700 allocations: 12825 KB)
UTF-32 convert to UTF-16: 48.895 milliseconds (1000 allocations: 51256 KB, 5.24% gc time)
Latin1:: Looping 100 times, length=65536
UTF-8: 86016, UTF-16: 131072, UTF-32: 262144
UTF-8 length: 3.133 milliseconds (100 allocations: 1600 bytes)
UTF-16 length: 2.018 milliseconds (100 allocations: 1600 bytes)
UTF-32 length: 2.166 microseconds (100 allocations: 1600 bytes)
UTF-8 valid: 20.113 milliseconds (5600 allocations: 62722 KB, 10.42% gc time)
UTF-16 valid: 20.422 milliseconds (5600 allocations: 62722 KB, 5.59% gc time)
UTF-32 valid: 15.935 milliseconds (5700 allocations: 62723 KB, 5.72% gc time)
UTF-8 convert to UTF-16: 96.361 milliseconds (1000 allocations: 51256 KB, 2.38% gc time)
UTF-8 convert to UTF-32: 62.627 milliseconds (300 allocations: 25609 KB, 2.38% gc time)
UTF-16 convert to UTF-8: 235.524 milliseconds (1200 allocations: 21242 KB, 0.73% gc time)
UTF-16 convert to UTF-32: 46.342 milliseconds (300 allocations: 25609 KB, 3.48% gc time)
UTF-32 convert to UTF-8: 173.367 milliseconds (700 allocations: 21225 KB, 0.99% gc time)
UTF-32 convert to UTF-16: 50.967 milliseconds (1000 allocations: 51256 KB, 5.69% gc time)
2-byte:: Looping 100 times, length=65536
UTF-8: 86016, UTF-16: 131072, UTF-32: 262144
UTF-8 length: 3.091 milliseconds (100 allocations: 1600 bytes)
UTF-16 length: 2.030 milliseconds (100 allocations: 1600 bytes)
UTF-32 length: 2.265 microseconds (100 allocations: 1600 bytes)
UTF-8 valid: 21.513 milliseconds (5600 allocations: 62722 KB, 11.26% gc time)
UTF-16 valid: 20.160 milliseconds (5600 allocations: 62722 KB, 5.32% gc time)
UTF-32 valid: 16.491 milliseconds (5700 allocations: 62723 KB, 5.47% gc time)
UTF-8 convert to UTF-16: 89.236 milliseconds (1000 allocations: 51256 KB, 2.36% gc time)
UTF-8 convert to UTF-32: 62.741 milliseconds (300 allocations: 25609 KB, 2.30% gc time)
UTF-16 convert to UTF-8: 241.133 milliseconds (820 k allocations: 34042 KB, 1.30% gc time)
UTF-16 convert to UTF-32: 47.975 milliseconds (300 allocations: 25609 KB, 4.41% gc time)
UTF-32 convert to UTF-8: 169.373 milliseconds (700 allocations: 21225 KB, 0.88% gc time)
UTF-32 convert to UTF-16: 49.716 milliseconds (1000 allocations: 51256 KB, 5.15% gc time)
3-byte:: Looping 100 times, length=65536
UTF-8: 94208, UTF-16: 131072, UTF-32: 262144
UTF-8 length: 3.379 milliseconds (100 allocations: 1600 bytes)
UTF-16 length: 2.047 milliseconds (100 allocations: 1600 bytes)
UTF-32 length: 2.442 microseconds (100 allocations: 1600 bytes)
UTF-8 valid: 20.434 milliseconds (5600 allocations: 62722 KB, 8.46% gc time)
UTF-16 valid: 19.812 milliseconds (5600 allocations: 62722 KB, 5.18% gc time)
UTF-32 valid: 15.833 milliseconds (5700 allocations: 62723 KB, 3.79% gc time)
UTF-8 convert to UTF-16: 96.873 milliseconds (1000 allocations: 51256 KB, 3.05% gc time)
UTF-8 convert to UTF-32: 75.488 milliseconds (300 allocations: 25609 KB, 2.31% gc time)
UTF-16 convert to UTF-8: 249.878 milliseconds (820 k allocations: 34842 KB, 0.63% gc time)
UTF-16 convert to UTF-32: 46.137 milliseconds (300 allocations: 25609 KB, 2.80% gc time)
UTF-32 convert to UTF-8: 202.453 milliseconds (700 allocations: 22025 KB, 0.78% gc time)
UTF-32 convert to UTF-16: 58.790 milliseconds (1000 allocations: 51256 KB, 7.20% gc time)
4-byte:: Looping 100 times, length=65536
UTF-8: 106496, UTF-16: 147456, UTF-32: 262144
UTF-8 length: 5.754 milliseconds (100 allocations: 1600 bytes)
UTF-16 length: 3.148 milliseconds (100 allocations: 1600 bytes)
UTF-32 length: 2.535 microseconds (100 allocations: 1600 bytes)
UTF-8 valid: 24.887 milliseconds (5600 allocations: 62722 KB, 7.08% gc time)
UTF-16 valid: 26.174 milliseconds (5600 allocations: 62722 KB, 3.66% gc time)
UTF-32 valid: 17.456 milliseconds (5700 allocations: 62723 KB, 6.14% gc time)
UTF-8 convert to UTF-16: 123.043 milliseconds (1000 allocations: 51256 KB, 2.51% gc time)
UTF-8 convert to UTF-32: 79.851 milliseconds (300 allocations: 25609 KB, 3.90% gc time)
UTF-16 convert to UTF-8: 315.711 milliseconds (1640 k allocations: 50442 KB, 0.80% gc time)
UTF-16 convert to UTF-32: 48.994 milliseconds (300 allocations: 25609 KB, 3.92% gc time)
UTF-32 convert to UTF-8: 235.836 milliseconds (700 allocations: 23225 KB, 0.66% gc time)
UTF-32 convert to UTF-16: 60.258 milliseconds (1000 allocations: 51256 KB, 4.50% gc time)
Surrogates:: Looping 100 times, length=73728
UTF-8: 122880, UTF-16: 147456, UTF-32: 294912
UTF-8 length: 4.398 milliseconds (100 allocations: 1600 bytes)
UTF-16 length: 2.418 milliseconds (100 allocations: 1600 bytes)
UTF-32 length: 2.341 microseconds (100 allocations: 1600 bytes)
UTF-8 valid: 15.183 milliseconds (5600 allocations: 62722 KB, 13.23% gc time)
UTF-16 valid: 23.486 milliseconds (5600 allocations: 62722 KB, 5.06% gc time)
UTF-32 valid: 14.084 milliseconds (5700 allocations: 62723 KB, 7.45% gc time)
UTF-8 convert to UTF-16: 118.744 milliseconds (1000 allocations: 51256 KB, 2.22% gc time)
UTF-8 convert to UTF-32: 88.667 milliseconds (300 allocations: 28809 KB, 1.91% gc time)
UTF-16 convert to UTF-8: 283.772 milliseconds (1640 k allocations: 50442 KB, 1.09% gc time)
UTF-16 convert to UTF-32: 58.599 milliseconds (300 allocations: 25609 KB, 6.55% gc time)
UTF-32 convert to UTF-8: 228.200 milliseconds (700 allocations: 26425 KB, 0.55% gc time)
UTF-32 convert to UTF-16: 58.783 milliseconds (1000 allocations: 51256 KB, 4.56% gc time)
ASCII: Looping 100 times, length=262144
length: 2.020 microseconds (100 allocations: 1600 bytes)
is_valid_ascii: 77.629 milliseconds (5600 allocations: 62722 KB, 62.98% gc time)
Convert to UTF-8: 2.083 microseconds (100 allocations: 1600 bytes)
Convert to UTF-16: 239.477 milliseconds (1100 allocations: 200 MB, 5.71% gc time)
Convert to UTF-32: 75.637 milliseconds (300 allocations: 100 MB, 5.38% gc time)
ASCII:: Looping 100 times, length=262144
UTF-8: 262144, UTF-16: 524288, UTF-32: 1048576
UTF-8 length: 9.760 milliseconds (100 allocations: 1600 bytes)
UTF-16 length: 8.033 milliseconds (100 allocations: 1600 bytes)
UTF-32 length: 1.494 microseconds (100 allocations: 1600 bytes)
UTF-8 valid: 29.156 milliseconds (5600 allocations: 62722 KB, 6.43% gc time)
UTF-16 valid: 41.569 milliseconds (5600 allocations: 62722 KB, 2.82% gc time)
UTF-32 valid: 25.264 milliseconds (5700 allocations: 62723 KB, 4.32% gc time)
UTF-8 convert to UTF-16: 320.307 milliseconds (1100 allocations: 200 MB, 2.94% gc time)
UTF-8 convert to UTF-32: 207.389 milliseconds (300 allocations: 100 MB, 2.22% gc time)
UTF-16 convert to UTF-8: 801.735 milliseconds (1100 allocations: 51241 KB, 0.70% gc time)
UTF-16 convert to UTF-32: 165.552 milliseconds (300 allocations: 100 MB, 2.60% gc time)
UTF-32 convert to UTF-8: 368.668 milliseconds (700 allocations: 51225 KB, 1.06% gc time)
UTF-32 convert to UTF-16: 200.556 milliseconds (1100 allocations: 200 MB, 5.41% gc time)
Latin1:: Looping 100 times, length=262144
UTF-8: 344064, UTF-16: 524288, UTF-32: 1048576
UTF-8 length: 11.982 milliseconds (100 allocations: 1600 bytes)
UTF-16 length: 8.274 milliseconds (100 allocations: 1600 bytes)
UTF-32 length: 1.643 microseconds (100 allocations: 1600 bytes)
UTF-8 valid: 34.730 milliseconds (5600 allocations: 62722 KB, 3.04% gc time)
UTF-16 valid: 38.147 milliseconds (5600 allocations: 62722 KB, 1.96% gc time)
UTF-32 valid: 24.732 milliseconds (5700 allocations: 62723 KB, 2.89% gc time)
UTF-8 convert to UTF-16: 368.477 milliseconds (1100 allocations: 200 MB, 2.42% gc time)
UTF-8 convert to UTF-32: 237.586 milliseconds (300 allocations: 100 MB, 2.09% gc time)
UTF-16 convert to UTF-8: 1.069 seconds (1200 allocations: 84842 KB, 0.61% gc time)
UTF-16 convert to UTF-32: 173.152 milliseconds (300 allocations: 100 MB, 3.06% gc time)
UTF-32 convert to UTF-8: 587.919 milliseconds (700 allocations: 84825 KB, 1.12% gc time)
UTF-32 convert to UTF-16: 205.181 milliseconds (1100 allocations: 200 MB, 4.94% gc time)
2-byte:: Looping 100 times, length=262144
UTF-8: 344064, UTF-16: 524288, UTF-32: 1048576
UTF-8 length: 12.370 milliseconds (100 allocations: 1600 bytes)
UTF-16 length: 8.064 milliseconds (100 allocations: 1600 bytes)
UTF-32 length: 1.683 microseconds (100 allocations: 1600 bytes)
UTF-8 valid: 39.851 milliseconds (5600 allocations: 62722 KB, 3.27% gc time)
UTF-16 valid: 37.867 milliseconds (5600 allocations: 62722 KB, 2.42% gc time)
UTF-32 valid: 24.769 milliseconds (5700 allocations: 62723 KB, 3.12% gc time)
UTF-8 convert to UTF-16: 389.453 milliseconds (1100 allocations: 200 MB, 2.33% gc time)
UTF-8 convert to UTF-32: 232.537 milliseconds (300 allocations: 100 MB, 2.13% gc time)
UTF-16 convert to UTF-8: 1.036 seconds (3278 k allocations: 133 MB, 0.88% gc time)
UTF-16 convert to UTF-32: 164.918 milliseconds (300 allocations: 100 MB, 2.69% gc time)
UTF-32 convert to UTF-8: 559.398 milliseconds (700 allocations: 84825 KB, 1.22% gc time)
UTF-32 convert to UTF-16: 206.567 milliseconds (1100 allocations: 200 MB, 5.07% gc time)
3-byte:: Looping 100 times, length=262144
UTF-8: 376832, UTF-16: 524288, UTF-32: 1048576
UTF-8 length: 13.205 milliseconds (100 allocations: 1600 bytes)
UTF-16 length: 8.130 milliseconds (100 allocations: 1600 bytes)
UTF-32 length: 1.599 microseconds (100 allocations: 1600 bytes)
UTF-8 valid: 40.097 milliseconds (5600 allocations: 62722 KB, 4.70% gc time)
UTF-16 valid: 44.249 milliseconds (5600 allocations: 62722 KB, 2.82% gc time)
UTF-32 valid: 25.694 milliseconds (5700 allocations: 62723 KB, 2.91% gc time)
UTF-8 convert to UTF-16: 476.545 milliseconds (1100 allocations: 200 MB, 2.32% gc time)
UTF-8 convert to UTF-32: 322.263 milliseconds (300 allocations: 100 MB, 1.74% gc time)
UTF-16 convert to UTF-8: 1.073 seconds (3278 k allocations: 136 MB, 0.79% gc time)
UTF-16 convert to UTF-32: 166.943 milliseconds (300 allocations: 100 MB, 3.22% gc time)
UTF-32 convert to UTF-8: 618.426 milliseconds (700 allocations: 88025 KB, 1.18% gc time)
UTF-32 convert to UTF-16: 211.899 milliseconds (1100 allocations: 200 MB, 4.96% gc time)
4-byte:: Looping 100 times, length=262144
UTF-8: 425984, UTF-16: 589824, UTF-32: 1048576
UTF-8 length: 16.400 milliseconds (100 allocations: 1600 bytes)
UTF-16 length: 11.306 milliseconds (100 allocations: 1600 bytes)
UTF-32 length: 1.705 microseconds (100 allocations: 1600 bytes)
UTF-8 valid: 46.597 milliseconds (5600 allocations: 62722 KB, 2.71% gc time)
UTF-16 valid: 58.856 milliseconds (5600 allocations: 62722 KB, 2.68% gc time)
UTF-32 valid: 27.107 milliseconds (5700 allocations: 62723 KB, 4.40% gc time)
UTF-8 convert to UTF-16: 424.880 milliseconds (1100 allocations: 200 MB, 2.35% gc time)
UTF-8 convert to UTF-32: 293.696 milliseconds (300 allocations: 100 MB, 1.78% gc time)
UTF-16 convert to UTF-8: 1.083 seconds (6555 k allocations: 197 MB, 1.04% gc time)
UTF-16 convert to UTF-32: 182.139 milliseconds (300 allocations: 100 MB, 2.64% gc time)
UTF-32 convert to UTF-8: 708.061 milliseconds (700 allocations: 92825 KB, 0.95% gc time)
UTF-32 convert to UTF-16: 265.964 milliseconds (1100 allocations: 200 MB, 4.61% gc time)
Surrogates:: Looping 100 times, length=294912
UTF-8: 491520, UTF-16: 589824, UTF-32: 1179648
UTF-8 length: 18.896 milliseconds (100 allocations: 1600 bytes)
UTF-16 length: 9.894 milliseconds (100 allocations: 1600 bytes)
UTF-32 length: 1.856 microseconds (100 allocations: 1600 bytes)
UTF-8 valid: 19.464 milliseconds (5600 allocations: 62722 KB, 14.08% gc time)
UTF-16 valid: 60.047 milliseconds (5600 allocations: 62722 KB, 2.14% gc time)
UTF-32 valid: 16.780 milliseconds (5700 allocations: 62723 KB, 6.93% gc time)
UTF-8 convert to UTF-16: 515.748 milliseconds (1100 allocations: 200 MB, 2.17% gc time)
UTF-8 convert to UTF-32: 333.786 milliseconds (300 allocations: 113 MB, 1.79% gc time)
UTF-16 convert to UTF-8: 1.121 seconds (6555 k allocations: 197 MB, 1.09% gc time)
UTF-16 convert to UTF-32: 187.338 milliseconds (300 allocations: 100 MB, 2.27% gc time)
UTF-32 convert to UTF-8: 756.639 milliseconds (700 allocations: 103 MB, 1.09% gc time)
UTF-32 convert to UTF-16: 234.552 milliseconds (1100 allocations: 200 MB, 4.66% gc time)
ASCII: Looping 100 times, length=1048576
length: 1.551 microseconds (100 allocations: 1600 bytes)
is_valid_ascii: 76.794 milliseconds (5600 allocations: 62722 KB, 26.80% gc time)
Convert to UTF-8: 1.109 microseconds (100 allocations: 1600 bytes)
Convert to UTF-16: 876.224 milliseconds (1300 allocations: 500 MB, 2.57% gc time)
Convert to UTF-32: 315.250 milliseconds (300 allocations: 400 MB, 10.36% gc time)
ASCII:: Looping 100 times, length=1048576
UTF-8: 1048576, UTF-16: 2097152, UTF-32: 4194304
UTF-8 length: 48.603 milliseconds (100 allocations: 1600 bytes)
UTF-16 length: 43.320 milliseconds (100 allocations: 1600 bytes)
UTF-32 length: 2.609 microseconds (100 allocations: 1600 bytes)
UTF-8 valid: 67.819 milliseconds (5600 allocations: 62722 KB, 5.89% gc time)
UTF-16 valid: 144.419 milliseconds (5600 allocations: 62722 KB, 0.66% gc time)
UTF-32 valid: 65.333 milliseconds (5700 allocations: 62723 KB, 1.29% gc time)
UTF-8 convert to UTF-16: 1.431 seconds (1300 allocations: 500 MB, 1.76% gc time)
UTF-8 convert to UTF-32: 852.850 milliseconds (300 allocations: 400 MB, 3.68% gc time)
UTF-16 convert to UTF-8: 3.354 seconds (1100 allocations: 200 MB, 0.38% gc time)
UTF-16 convert to UTF-32: 720.948 milliseconds (300 allocations: 400 MB, 4.70% gc time)
UTF-32 convert to UTF-8: 1.604 seconds (700 allocations: 200 MB, 0.74% gc time)
UTF-32 convert to UTF-16: 779.238 milliseconds (1300 allocations: 500 MB, 3.31% gc time)
Latin1:: Looping 100 times, length=1048576
UTF-8: 1376256, UTF-16: 2097152, UTF-32: 4194304
UTF-8 length: 48.971 milliseconds (100 allocations: 1600 bytes)
UTF-16 length: 33.119 milliseconds (100 allocations: 1600 bytes)
UTF-32 length: 2.079 microseconds (100 allocations: 1600 bytes)
UTF-8 valid: 94.046 milliseconds (5600 allocations: 62722 KB, 2.22% gc time)
UTF-16 valid: 111.272 milliseconds (5600 allocations: 62722 KB, 0.55% gc time)
UTF-32 valid: 57.509 milliseconds (5700 allocations: 62723 KB, 1.43% gc time)
UTF-8 convert to UTF-16: 1.423 seconds (1300 allocations: 500 MB, 1.69% gc time)
UTF-8 convert to UTF-32: 893.683 milliseconds (300 allocations: 400 MB, 2.68% gc time)
UTF-16 convert to UTF-8: 3.865 seconds (1200 allocations: 331 MB, 0.54% gc time)
UTF-16 convert to UTF-32: 676.080 milliseconds (300 allocations: 400 MB, 6.24% gc time)
UTF-32 convert to UTF-8: 2.109 seconds (700 allocations: 331 MB, 0.90% gc time)
UTF-32 convert to UTF-16: 775.676 milliseconds (1300 allocations: 500 MB, 3.23% gc time)
2-byte:: Looping 100 times, length=1048576
UTF-8: 1376256, UTF-16: 2097152, UTF-32: 4194304
UTF-8 length: 48.953 milliseconds (100 allocations: 1600 bytes)
UTF-16 length: 32.845 milliseconds (100 allocations: 1600 bytes)
UTF-32 length: 2.070 microseconds (100 allocations: 1600 bytes)
UTF-8 valid: 94.330 milliseconds (5600 allocations: 62722 KB, 2.34% gc time)
UTF-16 valid: 109.757 milliseconds (5600 allocations: 62722 KB, 0.80% gc time)
UTF-32 valid: 59.285 milliseconds (5700 allocations: 62723 KB, 1.08% gc time)
UTF-8 convert to UTF-16: 1.408 seconds (1300 allocations: 500 MB, 2.19% gc time)
UTF-8 convert to UTF-32: 913.104 milliseconds (300 allocations: 400 MB, 2.54% gc time)
UTF-16 convert to UTF-8: 4.023 seconds (13108 k allocations: 531 MB, 0.89% gc time)
UTF-16 convert to UTF-32: 659.592 milliseconds (300 allocations: 400 MB, 5.66% gc time)
UTF-32 convert to UTF-8: 2.115 seconds (700 allocations: 331 MB, 1.00% gc time)
UTF-32 convert to UTF-16: 737.232 milliseconds (1300 allocations: 500 MB, 4.35% gc time)
3-byte:: Looping 100 times, length=1048576
UTF-8: 1507328, UTF-16: 2097152, UTF-32: 4194304
UTF-8 length: 53.617 milliseconds (100 allocations: 1600 bytes)
UTF-16 length: 33.158 milliseconds (100 allocations: 1600 bytes)
UTF-32 length: 1.849 microseconds (100 allocations: 1600 bytes)
UTF-8 valid: 103.170 milliseconds (5600 allocations: 62722 KB, 2.86% gc time)
UTF-16 valid: 112.281 milliseconds (5600 allocations: 62722 KB, 0.97% gc time)
UTF-32 valid: 58.544 milliseconds (5700 allocations: 62723 KB, 1.15% gc time)
UTF-8 convert to UTF-16: 1.530 seconds (1300 allocations: 500 MB, 1.79% gc time)
UTF-8 convert to UTF-32: 1.097 seconds (300 allocations: 400 MB, 2.28% gc time)
UTF-16 convert to UTF-8: 4.155 seconds (13108 k allocations: 544 MB, 0.81% gc time)
UTF-16 convert to UTF-32: 663.953 milliseconds (300 allocations: 400 MB, 5.77% gc time)
UTF-32 convert to UTF-8: 2.192 seconds (700 allocations: 344 MB, 0.91% gc time)
UTF-32 convert to UTF-16: 781.082 milliseconds (1300 allocations: 500 MB, 3.27% gc time)
4-byte:: Looping 100 times, length=1048576
UTF-8: 1703936, UTF-16: 2359296, UTF-32: 4194304
UTF-8 length: 60.950 milliseconds (100 allocations: 1600 bytes)
UTF-16 length: 37.367 milliseconds (100 allocations: 1600 bytes)
UTF-32 length: 1.764 microseconds (100 allocations: 1600 bytes)
UTF-8 valid: 116.878 milliseconds (5600 allocations: 62722 KB, 2.42% gc time)
UTF-16 valid: 168.201 milliseconds (5600 allocations: 62722 KB, 0.73% gc time)
UTF-32 valid: 60.024 milliseconds (5700 allocations: 62723 KB, 1.98% gc time)
UTF-8 convert to UTF-16: 1.629 seconds (1300 allocations: 500 MB, 1.67% gc time)
UTF-8 convert to UTF-32: 1.127 seconds (300 allocations: 400 MB, 3.02% gc time)
UTF-16 convert to UTF-8: 4.433 seconds (26216 k allocations: 788 MB, 0.99% gc time)
UTF-16 convert to UTF-32: 716.938 milliseconds (300 allocations: 400 MB, 5.70% gc time)
UTF-32 convert to UTF-8: 2.608 seconds (700 allocations: 363 MB, 0.89% gc time)
UTF-32 convert to UTF-16: 930.839 milliseconds (1300 allocations: 500 MB, 3.01% gc time)
Surrogates:: Looping 100 times, length=1179648
UTF-8: 1966080, UTF-16: 2359296, UTF-32: 4718592
UTF-8 length: 71.558 milliseconds (100 allocations: 1600 bytes)
UTF-16 length: 36.886 milliseconds (100 allocations: 1600 bytes)
UTF-32 length: 1.747 microseconds (100 allocations: 1600 bytes)
UTF-8 valid: 15.134 milliseconds (5600 allocations: 62722 KB, 13.23% gc time)
UTF-16 valid: 165.644 milliseconds (5600 allocations: 62722 KB, 0.49% gc time)
UTF-32 valid: 13.895 milliseconds (5700 allocations: 62723 KB, 8.18% gc time)
UTF-8 convert to UTF-16: 1.787 seconds (1300 allocations: 500 MB, 1.54% gc time)
UTF-8 convert to UTF-32: 1.293 seconds (300 allocations: 450 MB, 2.77% gc time)
UTF-16 convert to UTF-8: 4.379 seconds (26216 k allocations: 788 MB, 0.97% gc time)
UTF-16 convert to UTF-32: 726.071 milliseconds (300 allocations: 400 MB, 5.73% gc time)
UTF-32 convert to UTF-8: 2.798 seconds (700 allocations: 413 MB, 1.10% gc time)
UTF-32 convert to UTF-16: 864.675 milliseconds (1300 allocations: 500 MB, 3.30% gc time)
ASCII: Looping 100 times, length=4194304
length: 1.452 microseconds (100 allocations: 1600 bytes)
is_valid_ascii: 212.444 milliseconds (5600 allocations: 62722 KB, 8.32% gc time)
Convert to UTF-8: 1.547 microseconds (100 allocations: 1600 bytes)
Convert to UTF-16: 3.439 seconds (1500 allocations: 1700 MB, 3.02% gc time)
Convert to UTF-32: 1.226 seconds (300 allocations: 1600 MB, 13.22% gc time)
ASCII:: Looping 100 times, length=4194304
UTF-8: 4194304, UTF-16: 8388608, UTF-32: 16777216
UTF-8 length: 148.164 milliseconds (100 allocations: 1600 bytes)
UTF-16 length: 133.881 milliseconds (100 allocations: 1600 bytes)
UTF-32 length: 1.871 microseconds (100 allocations: 1600 bytes)
UTF-8 valid: 206.567 milliseconds (5600 allocations: 62722 KB, 6.01% gc time)
UTF-16 valid: 415.878 milliseconds (5600 allocations: 62722 KB, 0.21% gc time)
UTF-32 valid: 190.518 milliseconds (5700 allocations: 62723 KB, 0.38% gc time)
UTF-8 convert to UTF-16: 5.161 seconds (1500 allocations: 1700 MB, 1.68% gc time)
UTF-8 convert to UTF-32: 3.261 seconds (300 allocations: 1600 MB, 5.08% gc time)
UTF-16 convert to UTF-8: 12.243 seconds (1100 allocations: 800 MB, 0.45% gc time)
UTF-16 convert to UTF-32: 2.696 seconds (300 allocations: 1600 MB, 6.49% gc time)
UTF-32 convert to UTF-8: 5.474 seconds (700 allocations: 800 MB, 0.95% gc time)
UTF-32 convert to UTF-16: 3.169 seconds (1500 allocations: 1700 MB, 3.35% gc time)
Latin1:: Looping 100 times, length=4194304
UTF-8: 5505024, UTF-16: 8388608, UTF-32: 16777216
UTF-8 length: 202.002 milliseconds (100 allocations: 1600 bytes)
UTF-16 length: 142.508 milliseconds (100 allocations: 1600 bytes)
UTF-32 length: 1.905 microseconds (100 allocations: 1600 bytes)
UTF-8 valid: 342.948 milliseconds (5600 allocations: 62722 KB, 2.05% gc time)
UTF-16 valid: 403.266 milliseconds (5600 allocations: 62722 KB, 0.20% gc time)
UTF-32 valid: 187.542 milliseconds (5700 allocations: 62723 KB, 0.38% gc time)
UTF-8 convert to UTF-16: 5.846 seconds (1500 allocations: 1700 MB, 1.57% gc time)
UTF-8 convert to UTF-32: 3.770 seconds (300 allocations: 1600 MB, 4.33% gc time)
UTF-16 convert to UTF-8: 15.351 seconds (1200 allocations: 1325 MB, 0.65% gc time)
UTF-16 convert to UTF-32: 2.718 seconds (300 allocations: 1600 MB, 6.44% gc time)
UTF-32 convert to UTF-8: 8.287 seconds (700 allocations: 1325 MB, 1.22% gc time)
UTF-32 convert to UTF-16: 3.155 seconds (1500 allocations: 1700 MB, 2.77% gc time)
2-byte:: Looping 100 times, length=4194304
UTF-8: 5505024, UTF-16: 8388608, UTF-32: 16777216
UTF-8 length: 203.337 milliseconds (100 allocations: 1600 bytes)
UTF-16 length: 138.414 milliseconds (100 allocations: 1600 bytes)
UTF-32 length: 2.486 microseconds (100 allocations: 1600 bytes)
UTF-8 valid: 360.775 milliseconds (5600 allocations: 62722 KB, 1.98% gc time)
UTF-16 valid: 403.815 milliseconds (5600 allocations: 62722 KB, 0.20% gc time)
UTF-32 valid: 196.557 milliseconds (5700 allocations: 62723 KB, 0.36% gc time)
UTF-8 convert to UTF-16: 5.761 seconds (1500 allocations: 1700 MB, 1.44% gc time)
UTF-8 convert to UTF-32: 3.749 seconds (300 allocations: 1600 MB, 4.51% gc time)
UTF-16 convert to UTF-8: 15.998 seconds (52430 k allocations: 2125 MB, 1.19% gc time)
UTF-16 convert to UTF-32: 2.783 seconds (300 allocations: 1600 MB, 6.54% gc time)
UTF-32 convert to UTF-8: 10.555 seconds (700 allocations: 1325 MB, 1.28% gc time)
UTF-32 convert to UTF-16: 3.224 seconds (1500 allocations: 1700 MB, 3.87% gc time)
3-byte:: Looping 100 times, length=4194304
UTF-8: 6029312, UTF-16: 8388608, UTF-32: 16777216
UTF-8 length: 224.406 milliseconds (100 allocations: 1600 bytes)
UTF-16 length: 132.228 milliseconds (100 allocations: 1600 bytes)
UTF-32 length: 1.873 microseconds (100 allocations: 1600 bytes)
UTF-8 valid: 385.447 milliseconds (5600 allocations: 62722 KB, 2.27% gc time)
UTF-16 valid: 427.182 milliseconds (5600 allocations: 62722 KB, 0.24% gc time)
UTF-32 valid: 213.072 milliseconds (5700 allocations: 62723 KB, 0.46% gc time)
UTF-8 convert to UTF-16: 6.153 seconds (1500 allocations: 1700 MB, 1.41% gc time)
UTF-8 convert to UTF-32: 4.605 seconds (300 allocations: 1600 MB, 3.73% gc time)
UTF-16 convert to UTF-8: 16.649 seconds (52430 k allocations: 2175 MB, 0.85% gc time)
UTF-16 convert to UTF-32: 2.734 seconds (300 allocations: 1600 MB, 6.44% gc time)
UTF-32 convert to UTF-8: 8.727 seconds (700 allocations: 1375 MB, 1.43% gc time)
UTF-32 convert to UTF-16: 3.228 seconds (1500 allocations: 1700 MB, 3.49% gc time)
4-byte:: Looping 100 times, length=4194304
UTF-8: 6815744, UTF-16: 9437184, UTF-32: 16777216
UTF-8 length: 248.506 milliseconds (100 allocations: 1600 bytes)
UTF-16 length: 156.810 milliseconds (100 allocations: 1600 bytes)
UTF-32 length: 1.788 microseconds (100 allocations: 1600 bytes)
UTF-8 valid: 439.040 milliseconds (5600 allocations: 62722 KB, 1.86% gc time)
UTF-16 valid: 584.323 milliseconds (5600 allocations: 62722 KB, 0.20% gc time)
UTF-32 valid: 188.432 milliseconds (5700 allocations: 62723 KB, 0.50% gc time)
UTF-8 convert to UTF-16: 6.671 seconds (1500 allocations: 1700 MB, 1.56% gc time)
UTF-8 convert to UTF-32: 4.612 seconds (300 allocations: 1600 MB, 3.77% gc time)
UTF-16 convert to UTF-8: 16.979 seconds (105 M allocations: 3150 MB, 1.12% gc time)
UTF-16 convert to UTF-32: 2.866 seconds (300 allocations: 1600 MB, 6.49% gc time)
UTF-32 convert to UTF-8: 10.167 seconds (700 allocations: 1450 MB, 1.07% gc time)
UTF-32 convert to UTF-16: 3.791 seconds (1500 allocations: 1700 MB, 2.39% gc time)
Surrogates:: Looping 100 times, length=4718592
UTF-8: 7864320, UTF-16: 9437184, UTF-32: 18874368
UTF-8 length: 291.729 milliseconds (100 allocations: 1600 bytes)
UTF-16 length: 152.061 milliseconds (100 allocations: 1600 bytes)
UTF-32 length: 1.769 microseconds (100 allocations: 1600 bytes)
UTF-8 valid: 20.555 milliseconds (5600 allocations: 62722 KB, 36.09% gc time)
UTF-16 valid: 602.166 milliseconds (5600 allocations: 62722 KB, 0.24% gc time)
UTF-32 valid: 13.444 milliseconds (5700 allocations: 62723 KB, 5.49% gc time)
UTF-8 convert to UTF-16: 7.193 seconds (1500 allocations: 1700 MB, 1.50% gc time)
UTF-8 convert to UTF-32: 5.162 seconds (300 allocations: 1800 MB, 3.71% gc time)
UTF-16 convert to UTF-8: 17.261 seconds (105 M allocations: 3150 MB, 1.08% gc time)
UTF-16 convert to UTF-32: 2.917 seconds (300 allocations: 1600 MB, 6.33% gc time)
UTF-32 convert to UTF-8: 11.077 seconds (700 allocations: 1650 MB, 1.54% gc time)
UTF-32 convert to UTF-16: 3.605 seconds (1500 allocations: 1700 MB, 3.39% gc time)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment