Skip to content

Conversation

@mertcanaltin
Copy link
Member

@mertcanaltin mertcanaltin commented Jan 31, 2026

I used stringView in simdutf for large strings, small strings continue as they are

The benchmark result for buffers is very long, so I created a gist for this benchmark result
all results:

➜  node git:(mert/stringView/buffer) ✗ node-benchmark-compare ./result.csv
                                                                                                                                                confidence improvement accuracy (*)   (**)  (***)
buffers/buffer-atob.js n=1000000 size=128                                                                                                                *     -0.82 %       ±0.78% ±1.04% ±1.35%
buffers/buffer-atob.js n=1000000 size=16                                                                                                                       -0.64 %       ±1.10% ±1.47% ±1.93%
buffers/buffer-atob.js n=1000000 size=32                                                                                                                 *     -0.69 %       ±0.60% ±0.80% ±1.04%
buffers/buffer-atob.js n=1000000 size=64                                                                                                                       -0.38 %       ±0.62% ±0.82% ±1.07%
buffers/buffer-base64-decode-wrapped.js n=32 linesCount=524288 charsPerLine=76                                                                                  0.15 %       ±0.62% ±0.82% ±1.07%
buffers/buffer-base64-decode.js size=8388608 n=32                                                                                                              -0.34 %       ±0.85% ±1.13% ±1.48%
buffers/buffer-base64-encode.js n=32 len=67108864                                                                                                               0.77 %       ±2.04% ±2.71% ±3.53%
buffers/buffer-base64url-decode.js size=8388608 n=32                                                                                                           -0.32 %       ±0.45% ±0.60% ±0.78%
buffers/buffer-base64url-encode.js n=32 len=67108864                                                                                                           -0.78 %       ±1.41% ±1.87% ±2.44%
buffers/buffer-btoa.js n=1000000 size=1024                                                                                                                     -0.06 %       ±0.53% ±0.70% ±0.91%
buffers/buffer-btoa.js n=1000000 size=128                                                                                                              ***     -1.67 %       ±0.74% ±0.98% ±1.27%
buffers/buffer-btoa.js n=1000000 size=16                                                                                                               ***     -2.77 %       ±0.74% ±0.99% ±1.28%
buffers/buffer-btoa.js n=1000000 size=256                                                                                                              ***     -1.56 %       ±0.76% ±1.01% ±1.32%
buffers/buffer-btoa.js n=1000000 size=32                                                                                                               ***     -2.05 %       ±0.63% ±0.84% ±1.09%
buffers/buffer-btoa.js n=1000000 size=64                                                                                                                       -3.18 %       ±3.71% ±5.00% ±6.62%
buffers/buffer-bytelength-buffer.js n=4000000 len=16                                                                                                            0.34 %       ±1.44% ±1.91% ±2.49%
buffers/buffer-bytelength-buffer.js n=4000000 len=2                                                                                                            -0.13 %       ±1.51% ±2.01% ±2.62%
buffers/buffer-bytelength-buffer.js n=4000000 len=256                                                                                                           1.15 %       ±1.71% ±2.27% ±2.96%
buffers/buffer-bytelength-string.js n=4000000 repeat=1 encoding='base64' type='four_bytes'                                                                      0.88 %       ±1.17% ±1.56% ±2.03%
buffers/buffer-bytelength-string.js n=4000000 repeat=1 encoding='base64' type='latin1'                                                                         -0.10 %       ±1.23% ±1.64% ±2.15%
buffers/buffer-bytelength-string.js n=4000000 repeat=1 encoding='base64' type='one_byte'                                                                        0.56 %       ±1.83% ±2.44% ±3.20%
buffers/buffer-bytelength-string.js n=4000000 repeat=1 encoding='base64' type='three_bytes'                                                                     0.53 %       ±1.31% ±1.74% ±2.27%
buffers/buffer-bytelength-string.js n=4000000 repeat=1 encoding='base64' type='two_bytes'                                                                      -0.23 %       ±1.39% ±1.84% ±2.40%
buffers/buffer-bytelength-string.js n=4000000 repeat=1 encoding='utf8' type='four_bytes'                                                               ***      1.89 %       ±0.58% ±0.77% ±1.01%
buffers/buffer-bytelength-string.js n=4000000 repeat=1 encoding='utf8' type='latin1'                                                                   ***     -3.89 %       ±0.77% ±1.02% ±1.33%
buffers/buffer-bytelength-string.js n=4000000 repeat=1 encoding='utf8' type='one_byte'                                                                 ***     10.51 %       ±1.04% ±1.39% ±1.80%
buffers/buffer-bytelength-string.js n=4000000 repeat=1 encoding='utf8' type='three_bytes'                                                              ***      3.51 %       ±0.69% ±0.92% ±1.20%
buffers/buffer-bytelength-string.js n=4000000 repeat=1 encoding='utf8' type='two_bytes'                                                                ***      4.05 %       ±0.72% ±0.96% ±1.25%
buffers/buffer-bytelength-string.js n=4000000 repeat=16 encoding='base64' type='four_bytes'                                                                     0.31 %       ±1.23% ±1.63% ±2.13%
buffers/buffer-bytelength-string.js n=4000000 repeat=16 encoding='base64' type='latin1'                                                                        -0.68 %       ±1.08% ±1.44% ±1.87%
buffers/buffer-bytelength-string.js n=4000000 repeat=16 encoding='base64' type='one_byte'                                                                       0.57 %       ±1.24% ±1.65% ±2.16%
buffers/buffer-bytelength-string.js n=4000000 repeat=16 encoding='base64' type='three_bytes'                                                                   -0.95 %       ±1.17% ±1.56% ±2.03%
buffers/buffer-bytelength-string.js n=4000000 repeat=16 encoding='base64' type='two_bytes'                                                                     -0.19 %       ±0.95% ±1.27% ±1.66%
buffers/buffer-bytelength-string.js n=4000000 repeat=16 encoding='utf8' type='four_bytes'                                                              ***    199.86 %       ±2.60% ±3.50% ±4.64%
buffers/buffer-bytelength-string.js n=4000000 repeat=16 encoding='utf8' type='latin1'                                                                  ***     -8.20 %       ±0.47% ±0.63% ±0.82%
buffers/buffer-bytelength-string.js n=4000000 repeat=16 encoding='utf8' type='one_byte'                                                                        -0.66 %       ±0.85% ±1.14% ±1.48%
buffers/buffer-bytelength-string.js n=4000000 repeat=16 encoding='utf8' type='three_bytes'                                                             ***    222.18 %       ±4.00% ±5.39% ±7.15%
buffers/buffer-bytelength-string.js n=4000000 repeat=16 encoding='utf8' type='two_bytes'                                                               ***    225.80 %       ±2.61% ±3.51% ±4.66%
buffers/buffer-bytelength-string.js n=4000000 repeat=2 encoding='base64' type='four_bytes'                                                                     -0.67 %       ±1.04% ±1.38% ±1.80%
buffers/buffer-bytelength-string.js n=4000000 repeat=2 encoding='base64' type='latin1'                                                                         -0.12 %       ±1.10% ±1.47% ±1.91%
buffers/buffer-bytelength-string.js n=4000000 repeat=2 encoding='base64' type='one_byte'                                                                        0.84 %       ±1.00% ±1.33% ±1.73%
buffers/buffer-bytelength-string.js n=4000000 repeat=2 encoding='base64' type='three_bytes'                                                                    -0.10 %       ±1.29% ±1.72% ±2.25%
buffers/buffer-bytelength-string.js n=4000000 repeat=2 encoding='base64' type='two_bytes'                                                                      -0.93 %       ±1.33% ±1.77% ±2.30%
buffers/buffer-bytelength-string.js n=4000000 repeat=2 encoding='utf8' type='four_bytes'                                                               ***     -1.08 %       ±0.50% ±0.67% ±0.87%
buffers/buffer-bytelength-string.js n=4000000 repeat=2 encoding='utf8' type='latin1'                                                                    **     -1.28 %       ±0.83% ±1.10% ±1.44%
buffers/buffer-bytelength-string.js n=4000000 repeat=2 encoding='utf8' type='one_byte'                                                                 ***     11.73 %       ±0.99% ±1.32% ±1.72%
buffers/buffer-bytelength-string.js n=4000000 repeat=2 encoding='utf8' type='three_bytes'                                                               **      0.94 %       ±0.68% ±0.91% ±1.19%
buffers/buffer-bytelength-string.js n=4000000 repeat=2 encoding='utf8' type='two_bytes'                                                                 **      0.97 %       ±0.67% ±0.90% ±1.17%
buffers/buffer-bytelength-string.js n=4000000 repeat=256 encoding='base64' type='four_bytes'                                                                    0.70 %       ±0.84% ±1.12% ±1.45%
buffers/buffer-bytelength-string.js n=4000000 repeat=256 encoding='base64' type='latin1'                                                                       -0.17 %       ±1.14% ±1.52% ±1.99%
buffers/buffer-bytelength-string.js n=4000000 repeat=256 encoding='base64' type='one_byte'                                                                      0.51 %       ±1.12% ±1.49% ±1.94%
buffers/buffer-bytelength-string.js n=4000000 repeat=256 encoding='base64' type='three_bytes'                                                                  -0.60 %       ±1.20% ±1.59% ±2.07%
buffers/buffer-bytelength-string.js n=4000000 repeat=256 encoding='base64' type='two_bytes'                                                                     0.32 %       ±1.04% ±1.38% ±1.80%
buffers/buffer-bytelength-string.js n=4000000 repeat=256 encoding='utf8' type='four_bytes'                                                             ***    219.17 %       ±3.40% ±4.58% ±6.08%
buffers/buffer-bytelength-string.js n=4000000 repeat=256 encoding='utf8' type='latin1'                                                                 ***     -1.16 %       ±0.24% ±0.31% ±0.41%
buffers/buffer-bytelength-string.js n=4000000 repeat=256 encoding='utf8' type='one_byte'                                                               ***     -5.61 %       ±0.45% ±0.60% ±0.78%
buffers/buffer-bytelength-string.js n=4000000 repeat=256 encoding='utf8' type='three_bytes'                                                            ***    301.57 %       ±5.12% ±6.90% ±9.17%
buffers/buffer-bytelength-string.js n=4000000 repeat=256 encoding='utf8' type='two_bytes'                                                              ***    300.71 %       ±5.34% ±7.19% ±9.55%
buffers/buffer-compare-instance-method.js n=1000000 args=1 size=16                                                                                             -0.73 %       ±0.80% ±1.06% ±1.39%
buffers/buffer-compare-instance-method.js n=1000000 args=1 size=16386                                                                                          -0.18 %       ±0.37% ±0.50% ±0.65%
buffers/buffer-compare-instance-method.js n=1000000 args=1 size=4096                                                                                     *      0.70 %       ±0.59% ±0.79% ±1.03%
buffers/buffer-compare-instance-method.js n=1000000 args=1 size=512                                                                                             0.71 %       ±0.74% ±0.99% ±1.29%
buffers/buffer-compare-instance-method.js n=1000000 args=2 size=16                                                                                             -0.22 %       ±0.80% ±1.06% ±1.39%
buffers/buffer-compare-instance-method.js n=1000000 args=2 size=16386                                                                                           0.32 %       ±0.40% ±0.53% ±0.68%
buffers/buffer-compare-instance-method.js n=1000000 args=2 size=4096                                                                                            0.45 %       ±0.46% ±0.61% ±0.80%
buffers/buffer-compare-instance-method.js n=1000000 args=2 size=512                                                                                             2.06 %       ±3.77% ±5.07% ±6.72%
buffers/buffer-compare-instance-method.js n=1000000 args=5 size=16                                                                                             -0.76 %       ±4.45% ±5.92% ±7.71%
buffers/buffer-compare-instance-method.js n=1000000 args=5 size=16386                                                                                    *     -0.30 %       ±0.29% ±0.39% ±0.51%
buffers/buffer-compare-instance-method.js n=1000000 args=5 size=4096                                                                                     *      0.57 %       ±0.57% ±0.75% ±0.98%
buffers/buffer-compare-instance-method.js n=1000000 args=5 size=512                                                                                            -0.72 %       ±2.96% ±3.95% ±5.14%
buffers/buffer-compare-offset.js n=1000000 size=16 method='offset'                                                                                             -0.18 %       ±2.28% ±3.04% ±3.96%
buffers/buffer-compare-offset.js n=1000000 size=16 method='slice'                                                                                              -0.43 %       ±0.44% ±0.59% ±0.77%
buffers/buffer-compare-offset.js n=1000000 size=16386 method='offset'                                                                                    *      1.62 %       ±1.33% ±1.77% ±2.30%
buffers/buffer-compare-offset.js n=1000000 size=16386 method='slice'                                                                                    **     -0.66 %       ±0.49% ±0.66% ±0.86%
buffers/buffer-compare-offset.js n=1000000 size=4096 method='offset'                                                                                            0.46 %       ±1.27% ±1.69% ±2.20%
buffers/buffer-compare-offset.js n=1000000 size=4096 method='slice'                                                                                     **     -0.73 %       ±0.43% ±0.58% ±0.75%
buffers/buffer-compare-offset.js n=1000000 size=512 method='offset'                                                                                             0.36 %       ±1.24% ±1.65% ±2.15%
buffers/buffer-compare-offset.js n=1000000 size=512 method='slice'                                                                                             -0.46 %       ±0.48% ±0.64% ±0.84%
buffers/buffer-compare.js n=1000000 size=16                                                                                                            ***     -2.55 %       ±0.99% ±1.32% ±1.73%
buffers/buffer-compare.js n=1000000 size=16386                                                                                                                 -0.37 %       ±0.90% ±1.22% ±1.61%
buffers/buffer-compare.js n=1000000 size=4096                                                                                                            *      0.55 %       ±0.46% ±0.62% ±0.81%
buffers/buffer-compare.js n=1000000 size=512                                                                                                                    0.10 %       ±0.93% ±1.23% ±1.60%
buffers/buffer-concat-fill.js n=800000 extraSize=1                                                                                                              0.02 %       ±0.72% ±0.95% ±1.24%
buffers/buffer-concat-fill.js n=800000 extraSize=1024                                                                                                  ***     -3.20 %       ±0.94% ±1.26% ±1.66%
buffers/buffer-concat-fill.js n=800000 extraSize=256                                                                                                           -0.19 %       ±0.53% ±0.71% ±0.92%
buffers/buffer-concat.js n=800000 withTotalLength=0 pieceSize=1 pieces=16                                                                                       0.44 %       ±0.48% ±0.64% ±0.83%
buffers/buffer-concat.js n=800000 withTotalLength=0 pieceSize=1 pieces=4                                                                                        1.33 %       ±2.60% ±3.50% ±4.64%
buffers/buffer-concat.js n=800000 withTotalLength=0 pieceSize=16 pieces=16                                                                                      0.30 %       ±0.42% ±0.55% ±0.72%
buffers/buffer-concat.js n=800000 withTotalLength=0 pieceSize=16 pieces=4                                                                                       0.00 %       ±0.39% ±0.52% ±0.67%
buffers/buffer-concat.js n=800000 withTotalLength=0 pieceSize=256 pieces=16                                                                                     0.21 %       ±0.51% ±0.68% ±0.88%
buffers/buffer-concat.js n=800000 withTotalLength=0 pieceSize=256 pieces=4                                                                               *      0.46 %       ±0.37% ±0.49% ±0.64%
buffers/buffer-concat.js n=800000 withTotalLength=1 pieceSize=1 pieces=16                                                                                       0.24 %       ±0.48% ±0.64% ±0.83%
buffers/buffer-concat.js n=800000 withTotalLength=1 pieceSize=1 pieces=4                                                                                        0.63 %       ±0.68% ±0.91% ±1.19%
buffers/buffer-concat.js n=800000 withTotalLength=1 pieceSize=16 pieces=16                                                                                      0.11 %       ±0.46% ±0.61% ±0.79%
buffers/buffer-concat.js n=800000 withTotalLength=1 pieceSize=16 pieces=4                                                                                       0.02 %       ±0.41% ±0.55% ±0.71%
buffers/buffer-concat.js n=800000 withTotalLength=1 pieceSize=256 pieces=16                                                                                    -0.07 %       ±0.49% ±0.65% ±0.85%
buffers/buffer-concat.js n=800000 withTotalLength=1 pieceSize=256 pieces=4                                                                                      0.12 %       ±0.47% ±0.62% ±0.81%
buffers/buffer-copy.js n=6000000 partial='false' bytes=1024                                                                                                    -0.05 %       ±0.47% ±0.63% ±0.82%
buffers/buffer-copy.js n=6000000 partial='false' bytes=128                                                                                                     -0.40 %       ±0.69% ±0.92% ±1.20%
buffers/buffer-copy.js n=6000000 partial='false' bytes=8                                                                                                       -1.80 %       ±3.87% ±5.21% ±6.90%
buffers/buffer-copy.js n=6000000 partial='true' bytes=1024                                                                                             ***     -1.03 %       ±0.34% ±0.45% ±0.58%
buffers/buffer-copy.js n=6000000 partial='true' bytes=128                                                                                              ***      1.08 %       ±0.48% ±0.64% ±0.84%
buffers/buffer-copy.js n=6000000 partial='true' bytes=8                                                                                                        -2.00 %       ±2.62% ±3.53% ±4.69%
buffers/buffer-creation.js n=600000 len=10 type='fast-alloc-fill'                                                                                               0.13 %       ±0.82% ±1.09% ±1.42%
buffers/buffer-creation.js n=600000 len=10 type='fast-alloc'                                                                                                   -0.27 %       ±0.96% ±1.27% ±1.66%
buffers/buffer-creation.js n=600000 len=10 type='fast-allocUnsafe'                                                                                              0.58 %       ±2.88% ±3.83% ±4.99%
buffers/buffer-creation.js n=600000 len=10 type='slow-allocUnsafe'                                                                                             -0.28 %       ±0.87% ±1.16% ±1.51%
buffers/buffer-creation.js n=600000 len=1024 type='fast-alloc-fill'                                                                                            -0.17 %       ±0.55% ±0.73% ±0.96%
buffers/buffer-creation.js n=600000 len=1024 type='fast-alloc'                                                                                                 -0.13 %       ±0.55% ±0.73% ±0.95%
buffers/buffer-creation.js n=600000 len=1024 type='fast-allocUnsafe'                                                                                           -0.52 %       ±3.74% ±5.04% ±6.67%
buffers/buffer-creation.js n=600000 len=1024 type='slow-allocUnsafe'                                                                                            0.23 %       ±0.67% ±0.89% ±1.16%
buffers/buffer-creation.js n=600000 len=4096 type='fast-alloc-fill'                                                                                            -0.13 %       ±0.93% ±1.24% ±1.61%
buffers/buffer-creation.js n=600000 len=4096 type='fast-alloc'                                                                                                  0.16 %       ±1.33% ±1.76% ±2.29%
buffers/buffer-creation.js n=600000 len=4096 type='fast-allocUnsafe'                                                                                           -0.01 %       ±0.75% ±1.00% ±1.30%
buffers/buffer-creation.js n=600000 len=4096 type='slow-allocUnsafe'                                                                                            0.17 %       ±0.52% ±0.69% ±0.89%
buffers/buffer-creation.js n=600000 len=8192 type='fast-alloc-fill'                                                                                            -0.01 %       ±0.99% ±1.33% ±1.73%
buffers/buffer-creation.js n=600000 len=8192 type='fast-alloc'                                                                                                  0.25 %       ±1.16% ±1.55% ±2.02%
buffers/buffer-creation.js n=600000 len=8192 type='fast-allocUnsafe'                                                                                            0.14 %       ±1.35% ±1.80% ±2.35%
buffers/buffer-creation.js n=600000 len=8192 type='slow-allocUnsafe'                                                                                            0.34 %       ±0.95% ±1.26% ±1.64%
buffers/buffer-equals.js n=1000000 difflen='false' size=0                                                                                               **     -5.77 %       ±3.99% ±5.36% ±7.09%
buffers/buffer-equals.js n=1000000 difflen='false' size=16386                                                                                                  -0.05 %       ±0.29% ±0.38% ±0.50%
buffers/buffer-equals.js n=1000000 difflen='false' size=512                                                                                            ***      2.29 %       ±0.79% ±1.05% ±1.37%
buffers/buffer-equals.js n=1000000 difflen='true' size=0                                                                                                       -0.16 %       ±0.54% ±0.72% ±0.94%
buffers/buffer-equals.js n=1000000 difflen='true' size=16386                                                                                                    0.17 %       ±0.68% ±0.90% ±1.17%
buffers/buffer-equals.js n=1000000 difflen='true' size=512                                                                                               *      0.78 %       ±0.62% ±0.83% ±1.08%
buffers/buffer-fill.js n=20000 size=65536 type='fill()'                                                                                                        -0.41 %       ±0.86% ±1.15% ±1.50%
buffers/buffer-fill.js n=20000 size=65536 type='fill(0)'                                                                                                       -0.40 %       ±0.88% ±1.18% ±1.53%
buffers/buffer-fill.js n=20000 size=65536 type='fill(100)'                                                                                                      0.31 %       ±0.63% ±0.84% ±1.09%
buffers/buffer-fill.js n=20000 size=65536 type='fill(400)'                                                                                                      0.60 %       ±0.69% ±0.92% ±1.20%
buffers/buffer-fill.js n=20000 size=65536 type='fill(Buffer.alloc(1), 0)'                                                                                       0.08 %       ±0.81% ±1.08% ±1.40%
buffers/buffer-fill.js n=20000 size=65536 type='fill(t, 0, utf8)'                                                                                               2.22 %       ±4.57% ±6.15% ±8.16%
buffers/buffer-fill.js n=20000 size=65536 type='fill(t, 0)'                                                                                                     0.01 %       ±0.82% ±1.09% ±1.42%
buffers/buffer-fill.js n=20000 size=65536 type='fill(t, utf8)'                                                                                                 -0.33 %       ±0.82% ±1.09% ±1.42%
buffers/buffer-fill.js n=20000 size=65536 type='fill(t)'                                                                                                        0.56 %       ±0.75% ±0.99% ±1.29%
buffers/buffer-fill.js n=20000 size=65536 type='fill(test)'                                                                                                     0.59 %       ±1.36% ±1.81% ±2.37%
buffers/buffer-fill.js n=20000 size=8192 type='fill()'                                                                                                          1.26 %       ±2.32% ±3.09% ±4.04%
buffers/buffer-fill.js n=20000 size=8192 type='fill(0)'                                                                                                         2.99 %       ±3.88% ±5.16% ±6.72%
buffers/buffer-fill.js n=20000 size=8192 type='fill(100)'                                                                                                       1.42 %       ±2.65% ±3.53% ±4.59%
buffers/buffer-fill.js n=20000 size=8192 type='fill(400)'                                                                                                       0.96 %       ±3.12% ±4.15% ±5.41%
buffers/buffer-fill.js n=20000 size=8192 type='fill(Buffer.alloc(1), 0)'                                                                                       -0.52 %       ±1.47% ±1.96% ±2.55%
buffers/buffer-fill.js n=20000 size=8192 type='fill(t, 0, utf8)'                                                                                                0.44 %       ±2.35% ±3.12% ±4.07%
buffers/buffer-fill.js n=20000 size=8192 type='fill(t, 0)'                                                                                                     -0.27 %       ±2.32% ±3.09% ±4.03%
buffers/buffer-fill.js n=20000 size=8192 type='fill(t, utf8)'                                                                                                  -0.98 %       ±2.16% ±2.88% ±3.76%
buffers/buffer-fill.js n=20000 size=8192 type='fill(t)'                                                                                                         0.54 %       ±2.59% ±3.45% ±4.49%
buffers/buffer-fill.js n=20000 size=8192 type='fill(test)'                                                                                                     -1.14 %       ±2.61% ±3.48% ±4.54%
buffers/buffer-from.js n=800000 len=100 source='array'                                                                                                         -0.21 %       ±0.45% ±0.61% ±0.79%
buffers/buffer-from.js n=800000 len=100 source='arraybuffer-middle'                                                                                            -0.93 %       ±0.99% ±1.32% ±1.71%
buffers/buffer-from.js n=800000 len=100 source='arraybuffer'                                                                                                    0.43 %       ±0.85% ±1.13% ±1.47%
buffers/buffer-from.js n=800000 len=100 source='buffer'                                                                                                        -0.10 %       ±0.72% ±0.96% ±1.25%
buffers/buffer-from.js n=800000 len=100 source='object'                                                                                                         0.15 %       ±0.76% ±1.02% ±1.32%
buffers/buffer-from.js n=800000 len=100 source='string-base64'                                                                                         ***      1.10 %       ±0.50% ±0.67% ±0.87%
buffers/buffer-from.js n=800000 len=100 source='string-utf8'                                                                                                   -1.66 %       ±3.37% ±4.54% ±6.01%
buffers/buffer-from.js n=800000 len=100 source='string'                                                                                                        -0.21 %       ±0.77% ±1.03% ±1.34%
buffers/buffer-from.js n=800000 len=100 source='uint16array'                                                                                                    0.10 %       ±0.90% ±1.20% ±1.57%
buffers/buffer-from.js n=800000 len=100 source='uint8array'                                                                                                    -0.26 %       ±0.79% ±1.05% ±1.36%
buffers/buffer-from.js n=800000 len=2048 source='array'                                                                                                         0.10 %       ±0.18% ±0.24% ±0.32%
buffers/buffer-from.js n=800000 len=2048 source='arraybuffer-middle'                                                                                            1.30 %       ±1.40% ±1.86% ±2.43%
buffers/buffer-from.js n=800000 len=2048 source='arraybuffer'                                                                                            *      0.99 %       ±0.81% ±1.08% ±1.41%
buffers/buffer-from.js n=800000 len=2048 source='buffer'                                                                                                 *     -0.60 %       ±0.48% ±0.64% ±0.83%
buffers/buffer-from.js n=800000 len=2048 source='object'                                                                                                        0.81 %       ±0.88% ±1.17% ±1.53%
buffers/buffer-from.js n=800000 len=2048 source='string-base64'                                                                                                -0.75 %       ±1.69% ±2.28% ±3.03%
buffers/buffer-from.js n=800000 len=2048 source='string-utf8'                                                                                          ***     -2.63 %       ±0.42% ±0.56% ±0.72%
buffers/buffer-from.js n=800000 len=2048 source='string'                                                                                               ***     -2.07 %       ±0.55% ±0.73% ±0.96%
buffers/buffer-from.js n=800000 len=2048 source='uint16array'                                                                                            *     -0.46 %       ±0.40% ±0.53% ±0.69%
buffers/buffer-from.js n=800000 len=2048 source='uint8array'                                                                                                   -0.28 %       ±0.47% ±0.62% ±0.81%
buffers/buffer-hex-decode.js n=1000000 len=1024                                                                                                                -0.17 %       ±0.29% ±0.38% ±0.50%
buffers/buffer-hex-decode.js n=1000000 len=64                                                                                                                  -0.21 %       ±0.77% ±1.02% ±1.33%
buffers/buffer-hex-encode.js n=1000000 len=1024                                                                                                        ***    -19.63 %       ±0.26% ±0.35% ±0.46%
buffers/buffer-hex-encode.js n=1000000 len=64                                                                                                          ***     -8.31 %       ±0.59% ±0.78% ±1.02%
buffers/buffer-indexof-number.js n=1000000 value=64                                                                                                            -1.35 %       ±2.59% ±3.48% ±4.62%
buffers/buffer-indexof.js n=50000 type='buffer' encoding='undefined' search='--l'                                                                               0.30 %       ±0.38% ±0.51% ±0.66%
buffers/buffer-indexof.js n=50000 type='buffer' encoding='undefined' search='@'                                                                        ***      1.95 %       ±1.10% ±1.47% ±1.92%
buffers/buffer-indexof.js n=50000 type='buffer' encoding='undefined' search='</i> to the Caterpillar'                                                          -0.15 %       ±0.20% ±0.27% ±0.35%
buffers/buffer-indexof.js n=50000 type='buffer' encoding='undefined' search='aaaaaaaaaaaaaaaaa'                                                                -0.91 %       ±0.98% ±1.31% ±1.70%
buffers/buffer-indexof.js n=50000 type='buffer' encoding='undefined' search='Alice'                                                                             0.23 %       ±1.32% ±1.76% ±2.29%
buffers/buffer-indexof.js n=50000 type='buffer' encoding='undefined' search='found it very'                                                                     0.03 %       ±0.19% ±0.26% ±0.34%
buffers/buffer-indexof.js n=50000 type='buffer' encoding='undefined' search='Gryphon'                                                                           0.05 %       ±0.90% ±1.20% ±1.57%
buffers/buffer-indexof.js n=50000 type='buffer' encoding='undefined' search='neighbouring pool'                                                                -0.24 %       ±0.30% ±0.39% ±0.52%
buffers/buffer-indexof.js n=50000 type='buffer' encoding='undefined' search='Ou est ma chatte?'                                                                 0.64 %       ±1.04% ±1.40% ±1.86%
buffers/buffer-indexof.js n=50000 type='buffer' encoding='undefined' search='SQ'                                                                                0.21 %       ±0.56% ±0.74% ±0.97%
buffers/buffer-indexof.js n=50000 type='buffer' encoding='undefined' search='venture to go near the house till she had brought herself down to'                 0.04 %       ±0.20% ±0.27% ±0.35%
buffers/buffer-indexof.js n=50000 type='string' encoding='ucs2' search='--l'                                                                            **      0.95 %       ±0.61% ±0.81% ±1.05%
buffers/buffer-indexof.js n=50000 type='string' encoding='ucs2' search='@'                                                                               *     -1.10 %       ±0.89% ±1.18% ±1.53%
buffers/buffer-indexof.js n=50000 type='string' encoding='ucs2' search='</i> to the Caterpillar'                                                               -0.08 %       ±0.08% ±0.10% ±0.14%
buffers/buffer-indexof.js n=50000 type='string' encoding='ucs2' search='aaaaaaaaaaaaaaaaa'                                                             ***      4.86 %       ±1.17% ±1.56% ±2.03%
buffers/buffer-indexof.js n=50000 type='string' encoding='ucs2' search='Alice'                                                                                  0.43 %       ±1.41% ±1.88% ±2.44%
buffers/buffer-indexof.js n=50000 type='string' encoding='ucs2' search='found it very'                                                                          0.01 %       ±0.06% ±0.08% ±0.10%
buffers/buffer-indexof.js n=50000 type='string' encoding='ucs2' search='Gryphon'                                                                                0.05 %       ±0.79% ±1.05% ±1.36%
buffers/buffer-indexof.js n=50000 type='string' encoding='ucs2' search='neighbouring pool'                                                               *     -0.17 %       ±0.14% ±0.18% ±0.24%
buffers/buffer-indexof.js n=50000 type='string' encoding='ucs2' search='Ou est ma chatte?'                                                                      0.02 %       ±0.12% ±0.17% ±0.21%
buffers/buffer-indexof.js n=50000 type='string' encoding='ucs2' search='SQ'                                                                                    -0.11 %       ±0.58% ±0.77% ±1.01%
buffers/buffer-indexof.js n=50000 type='string' encoding='ucs2' search='venture to go near the house till she had brought herself down to'                      0.10 %       ±0.23% ±0.31% ±0.40%
buffers/buffer-indexof.js n=50000 type='string' encoding='utf8' search='--l'                                                                                   -0.11 %       ±0.49% ±0.65% ±0.85%
buffers/buffer-indexof.js n=50000 type='string' encoding='utf8' search='@'                                                                               *     -1.10 %       ±0.92% ±1.23% ±1.59%
buffers/buffer-indexof.js n=50000 type='string' encoding='utf8' search='</i> to the Caterpillar'                                                               -0.08 %       ±0.18% ±0.24% ±0.31%
buffers/buffer-indexof.js n=50000 type='string' encoding='utf8' search='aaaaaaaaaaaaaaaaa'                                                               *     -0.87 %       ±0.68% ±0.90% ±1.17%
buffers/buffer-indexof.js n=50000 type='string' encoding='utf8' search='Alice'                                                                                 -1.25 %       ±1.29% ±1.72% ±2.24%
buffers/buffer-indexof.js n=50000 type='string' encoding='utf8' search='found it very'                                                                         -0.00 %       ±0.09% ±0.12% ±0.16%
buffers/buffer-indexof.js n=50000 type='string' encoding='utf8' search='Gryphon'                                                                                0.08 %       ±0.77% ±1.03% ±1.34%
buffers/buffer-indexof.js n=50000 type='string' encoding='utf8' search='neighbouring pool'                                                             ***     -0.29 %       ±0.08% ±0.11% ±0.14%
buffers/buffer-indexof.js n=50000 type='string' encoding='utf8' search='Ou est ma chatte?'                                                                      0.04 %       ±0.17% ±0.22% ±0.29%
buffers/buffer-indexof.js n=50000 type='string' encoding='utf8' search='SQ'                                                                                     0.11 %       ±0.71% ±0.95% ±1.24%
buffers/buffer-indexof.js n=50000 type='string' encoding='utf8' search='venture to go near the house till she had brought herself down to'                     -0.03 %       ±0.15% ±0.20% ±0.26%
buffers/buffer-isascii.js input='hello world' length='long' n=20000000                                                                                          0.34 %       ±1.28% ±1.72% ±2.27%
buffers/buffer-isascii.js input='hello world' length='short' n=20000000                                                                                         0.41 %       ±1.29% ±1.73% ±2.28%
buffers/buffer-isutf8.js input='∀x∈ℝ: ⌈x⌉ = −⌊−x⌋' length='long' n=20000000                                                                                    -0.02 %       ±0.20% ±0.27% ±0.35%
buffers/buffer-isutf8.js input='∀x∈ℝ: ⌈x⌉ = −⌊−x⌋' length='short' n=20000000                                                                                   -0.18 %       ±0.43% ±0.57% ±0.74%
buffers/buffer-isutf8.js input='regular string' length='long' n=20000000                                                                                       -0.02 %       ±0.64% ±0.86% ±1.12%
buffers/buffer-isutf8.js input='regular string' length='short' n=20000000                                                                                       0.36 %       ±0.64% ±0.86% ±1.12%
buffers/buffer-iterate.js n=1000 method='for' type='fast' size=16386                                                                                            0.92 %       ±5.35% ±7.12% ±9.28%
buffers/buffer-iterate.js n=1000 method='for' type='fast' size=4096                                                                                            -0.66 %       ±3.96% ±5.27% ±6.86%
buffers/buffer-iterate.js n=1000 method='for' type='fast' size=512                                                                                              0.54 %       ±2.54% ±3.38% ±4.42%
buffers/buffer-iterate.js n=1000 method='forOf' type='fast' size=16386                                                                                         -0.24 %       ±0.25% ±0.34% ±0.44%
buffers/buffer-iterate.js n=1000 method='forOf' type='fast' size=4096                                                                                          -1.19 %       ±2.08% ±2.81% ±3.73%
buffers/buffer-iterate.js n=1000 method='forOf' type='fast' size=512                                                                                           -0.14 %       ±1.54% ±2.06% ±2.70%
buffers/buffer-iterate.js n=1000 method='iterator' type='fast' size=16386                                                                                      -0.48 %       ±3.48% ±4.64% ±6.04%
buffers/buffer-iterate.js n=1000 method='iterator' type='fast' size=4096                                                                                       -0.43 %       ±2.48% ±3.29% ±4.29%
buffers/buffer-iterate.js n=1000 method='iterator' type='fast' size=512                                                                                         0.71 %       ±1.87% ±2.49% ±3.24%
buffers/buffer-normalize-encoding.js n=1000000 encoding='ascii'                                                                                                 0.44 %       ±2.99% ±3.97% ±5.18%
buffers/buffer-normalize-encoding.js n=1000000 encoding='base64'                                                                                                2.11 %       ±2.42% ±3.22% ±4.19%
buffers/buffer-normalize-encoding.js n=1000000 encoding='BASE64'                                                                                                0.37 %       ±2.03% ±2.70% ±3.51%
buffers/buffer-normalize-encoding.js n=1000000 encoding='binary'                                                                                         *      1.86 %       ±1.74% ±2.32% ±3.04%
buffers/buffer-normalize-encoding.js n=1000000 encoding='hex'                                                                                                  -1.50 %       ±2.38% ±3.17% ±4.14%
buffers/buffer-normalize-encoding.js n=1000000 encoding='HEX'                                                                                                  -0.71 %       ±1.26% ±1.68% ±2.19%
buffers/buffer-normalize-encoding.js n=1000000 encoding='latin1'                                                                                               -0.28 %       ±1.79% ±2.38% ±3.10%
buffers/buffer-normalize-encoding.js n=1000000 encoding='LATIN1'                                                                                                1.06 %       ±2.21% ±2.94% ±3.83%
buffers/buffer-normalize-encoding.js n=1000000 encoding='UCS-2'                                                                                                -0.64 %       ±1.56% ±2.07% ±2.70%
buffers/buffer-normalize-encoding.js n=1000000 encoding='UCS2'                                                                                                 -0.18 %       ±1.76% ±2.34% ±3.05%
buffers/buffer-normalize-encoding.js n=1000000 encoding='utf-16le'                                                                                              0.61 %       ±2.33% ±3.10% ±4.04%
buffers/buffer-normalize-encoding.js n=1000000 encoding='UTF-16LE'                                                                                              1.22 %       ±1.74% ±2.32% ±3.04%
buffers/buffer-normalize-encoding.js n=1000000 encoding='utf-8'                                                                                                -0.88 %       ±1.79% ±2.39% ±3.11%
buffers/buffer-normalize-encoding.js n=1000000 encoding='utf16le'                                                                                              -0.19 %       ±2.65% ±3.54% ±4.61%
buffers/buffer-normalize-encoding.js n=1000000 encoding='UTF16LE'                                                                                              -3.21 %       ±3.25% ±4.34% ±5.71%
buffers/buffer-normalize-encoding.js n=1000000 encoding='utf8'                                                                                                 -0.59 %       ±2.23% ±2.97% ±3.88%
buffers/buffer-normalize-encoding.js n=1000000 encoding='UTF8'                                                                                                  1.74 %       ±2.57% ±3.42% ±4.45%
buffers/buffer-read-float.js n=1000000 value='big' endian='LE' type='Double'                                                                             *     -1.74 %       ±1.72% ±2.29% ±2.99%
buffers/buffer-read-float.js n=1000000 value='big' endian='LE' type='Float'                                                                                    -0.78 %       ±1.82% ±2.42% ±3.15%
buffers/buffer-read-float.js n=1000000 value='inf' endian='LE' type='Double'                                                                                    0.88 %       ±1.73% ±2.30% ±2.99%
buffers/buffer-read-float.js n=1000000 value='inf' endian='LE' type='Float'                                                                                     1.41 %       ±2.21% ±2.94% ±3.83%
buffers/buffer-read-float.js n=1000000 value='nan' endian='LE' type='Double'                                                                                   -0.23 %       ±1.96% ±2.62% ±3.41%
buffers/buffer-read-float.js n=1000000 value='nan' endian='LE' type='Float'                                                                                     1.88 %       ±1.99% ±2.66% ±3.47%
buffers/buffer-read-float.js n=1000000 value='small' endian='LE' type='Double'                                                                                 -0.52 %       ±1.98% ±2.63% ±3.42%
buffers/buffer-read-float.js n=1000000 value='small' endian='LE' type='Float'                                                                                  -0.40 %       ±2.12% ±2.82% ±3.68%
buffers/buffer-read-float.js n=1000000 value='zero' endian='LE' type='Double'                                                                                  -0.02 %       ±1.91% ±2.55% ±3.32%
buffers/buffer-read-float.js n=1000000 value='zero' endian='LE' type='Float'                                                                                    0.10 %       ±2.12% ±2.82% ±3.68%
buffers/buffer-read-with-byteLength.js byteLength=1 n=1000000 type='IntBE' buffer='fast'                                                                        0.03 %       ±4.09% ±5.44% ±7.09%
buffers/buffer-read-with-byteLength.js byteLength=1 n=1000000 type='IntLE' buffer='fast'                                                                       -1.09 %       ±3.29% ±4.37% ±5.69%
buffers/buffer-read-with-byteLength.js byteLength=1 n=1000000 type='UIntBE' buffer='fast'                                                                      -1.83 %       ±3.92% ±5.22% ±6.79%
buffers/buffer-read-with-byteLength.js byteLength=1 n=1000000 type='UIntLE' buffer='fast'                                                                      -0.59 %       ±3.36% ±4.46% ±5.81%
buffers/buffer-read-with-byteLength.js byteLength=2 n=1000000 type='IntBE' buffer='fast'                                                                        0.38 %       ±3.27% ±4.35% ±5.66%
buffers/buffer-read-with-byteLength.js byteLength=2 n=1000000 type='IntLE' buffer='fast'                                                                        0.95 %       ±3.99% ±5.30% ±6.90%
buffers/buffer-read-with-byteLength.js byteLength=2 n=1000000 type='UIntBE' buffer='fast'                                                                       3.40 %       ±5.49% ±7.32% ±9.55%
buffers/buffer-read-with-byteLength.js byteLength=2 n=1000000 type='UIntLE' buffer='fast'                                                                       3.99 %       ±4.12% ±5.49% ±7.14%
buffers/buffer-read-with-byteLength.js byteLength=3 n=1000000 type='IntBE' buffer='fast'                                                                        1.48 %       ±3.47% ±4.62% ±6.02%
buffers/buffer-read-with-byteLength.js byteLength=3 n=1000000 type='IntLE' buffer='fast'                                                                        1.69 %       ±3.14% ±4.18% ±5.44%
buffers/buffer-read-with-byteLength.js byteLength=3 n=1000000 type='UIntBE' buffer='fast'                                                                       2.09 %       ±5.40% ±7.21% ±9.45%
buffers/buffer-read-with-byteLength.js byteLength=3 n=1000000 type='UIntLE' buffer='fast'                                                                      -0.61 %       ±3.66% ±4.88% ±6.35%
buffers/buffer-read-with-byteLength.js byteLength=4 n=1000000 type='IntBE' buffer='fast'                                                                       -1.05 %       ±3.73% ±4.97% ±6.48%
buffers/buffer-read-with-byteLength.js byteLength=4 n=1000000 type='IntLE' buffer='fast'                                                                       -0.42 %       ±4.02% ±5.36% ±6.98%
buffers/buffer-read-with-byteLength.js byteLength=4 n=1000000 type='UIntBE' buffer='fast'                                                                      -0.10 %       ±3.47% ±4.62% ±6.01%
buffers/buffer-read-with-byteLength.js byteLength=4 n=1000000 type='UIntLE' buffer='fast'                                                                      -0.14 %       ±3.72% ±4.95% ±6.44%
buffers/buffer-read-with-byteLength.js byteLength=5 n=1000000 type='IntBE' buffer='fast'                                                                        0.30 %       ±3.04% ±4.05% ±5.27%
buffers/buffer-read-with-byteLength.js byteLength=5 n=1000000 type='IntLE' buffer='fast'                                                                       -0.20 %       ±2.86% ±3.80% ±4.94%
buffers/buffer-read-with-byteLength.js byteLength=5 n=1000000 type='UIntBE' buffer='fast'                                                                      -1.22 %       ±3.39% ±4.51% ±5.86%
buffers/buffer-read-with-byteLength.js byteLength=5 n=1000000 type='UIntLE' buffer='fast'                                                                       0.57 %       ±4.02% ±5.35% ±6.97%
buffers/buffer-read-with-byteLength.js byteLength=6 n=1000000 type='IntBE' buffer='fast'                                                                 *      2.62 %       ±2.38% ±3.16% ±4.12%
buffers/buffer-read-with-byteLength.js byteLength=6 n=1000000 type='IntLE' buffer='fast'                                                                        1.43 %       ±2.26% ±3.01% ±3.91%
buffers/buffer-read-with-byteLength.js byteLength=6 n=1000000 type='UIntBE' buffer='fast'                                                                       1.00 %       ±3.38% ±4.50% ±5.86%
buffers/buffer-read-with-byteLength.js byteLength=6 n=1000000 type='UIntLE' buffer='fast'                                                                       1.22 %       ±3.51% ±4.67% ±6.08%
buffers/buffer-read.js n=1000000 type='BigInt64BE' buffer='fast'                                                                                               -2.41 %       ±4.10% ±5.52% ±7.33%
buffers/buffer-read.js n=1000000 type='BigInt64LE' buffer='fast'                                                                                                0.75 %       ±0.79% ±1.05% ±1.37%
buffers/buffer-read.js n=1000000 type='BigUInt64BE' buffer='fast'                                                                                               0.07 %       ±2.31% ±3.08% ±4.03%
buffers/buffer-read.js n=1000000 type='BigUInt64LE' buffer='fast'                                                                                              -1.32 %       ±2.32% ±3.09% ±4.02%
buffers/buffer-read.js n=1000000 type='Int16BE' buffer='fast'                                                                                                   1.13 %       ±3.37% ±4.49% ±5.86%
buffers/buffer-read.js n=1000000 type='Int16LE' buffer='fast'                                                                                                   2.28 %       ±2.54% ±3.38% ±4.40%
buffers/buffer-read.js n=1000000 type='Int32BE' buffer='fast'                                                                                                   0.65 %       ±2.81% ±3.74% ±4.88%
buffers/buffer-read.js n=1000000 type='Int32LE' buffer='fast'                                                                                                   1.85 %       ±2.39% ±3.19% ±4.15%
buffers/buffer-read.js n=1000000 type='Int8' buffer='fast'                                                                                                     -1.68 %       ±3.44% ±4.57% ±5.95%
buffers/buffer-read.js n=1000000 type='UInt16BE' buffer='fast'                                                                                                  0.32 %       ±4.04% ±5.38% ±7.00%
buffers/buffer-read.js n=1000000 type='UInt16LE' buffer='fast'                                                                                                  3.47 %       ±3.74% ±4.99% ±6.50%
buffers/buffer-read.js n=1000000 type='UInt32BE' buffer='fast'                                                                                                 -0.68 %       ±2.98% ±3.96% ±5.16%
buffers/buffer-read.js n=1000000 type='UInt32LE' buffer='fast'                                                                                                  1.46 %       ±2.45% ±3.25% ±4.24%
buffers/buffer-read.js n=1000000 type='UInt8' buffer='fast'                                                                                                    -1.87 %       ±3.19% ±4.25% ±5.53%
buffers/buffer-slice.js n=1000000 type='fast'                                                                                                            *     -1.99 %       ±1.92% ±2.56% ±3.34%
buffers/buffer-slice.js n=1000000 type='slow'                                                                                                          ***     -3.11 %       ±1.57% ±2.09% ±2.72%
buffers/buffer-slice.js n=1000000 type='subarray'                                                                                                      ***     -2.54 %       ±1.07% ±1.43% ±1.86%
buffers/buffer-swap.js n=1000000 len=1024 method='swap16' aligned='false'                                                                                *      0.73 %       ±0.69% ±0.92% ±1.20%
buffers/buffer-swap.js n=1000000 len=1024 method='swap16' aligned='true'                                                                                 *      0.78 %       ±0.73% ±0.98% ±1.27%
buffers/buffer-swap.js n=1000000 len=1024 method='swap32' aligned='false'                                                                               **      0.78 %       ±0.57% ±0.76% ±0.99%
buffers/buffer-swap.js n=1000000 len=1024 method='swap32' aligned='true'                                                                                 *      0.82 %       ±0.65% ±0.86% ±1.13%
buffers/buffer-swap.js n=1000000 len=1024 method='swap64' aligned='false'                                                                                *      0.73 %       ±0.62% ±0.83% ±1.08%
buffers/buffer-swap.js n=1000000 len=1024 method='swap64' aligned='true'                                                                                **      0.92 %       ±0.63% ±0.84% ±1.09%
buffers/buffer-swap.js n=1000000 len=2056 method='swap16' aligned='false'                                                                                       0.12 %       ±0.59% ±0.78% ±1.02%
buffers/buffer-swap.js n=1000000 len=2056 method='swap16' aligned='true'                                                                                       -0.35 %       ±0.46% ±0.61% ±0.79%
buffers/buffer-swap.js n=1000000 len=2056 method='swap32' aligned='false'                                                                                       0.03 %       ±0.61% ±0.81% ±1.05%
buffers/buffer-swap.js n=1000000 len=2056 method='swap32' aligned='true'                                                                                        0.38 %       ±0.44% ±0.58% ±0.76%
buffers/buffer-swap.js n=1000000 len=2056 method='swap64' aligned='false'                                                                                       0.14 %       ±0.41% ±0.54% ±0.71%
buffers/buffer-swap.js n=1000000 len=2056 method='swap64' aligned='true'                                                                                        0.18 %       ±0.42% ±0.56% ±0.73%
buffers/buffer-swap.js n=1000000 len=256 method='swap16' aligned='false'                                                                                 *      1.07 %       ±0.96% ±1.27% ±1.66%
buffers/buffer-swap.js n=1000000 len=256 method='swap16' aligned='true'                                                                                         0.25 %       ±0.98% ±1.30% ±1.70%
buffers/buffer-swap.js n=1000000 len=256 method='swap32' aligned='false'                                                                                **      1.44 %       ±0.83% ±1.11% ±1.45%
buffers/buffer-swap.js n=1000000 len=256 method='swap32' aligned='true'                                                                                  *      1.41 %       ±1.10% ±1.47% ±1.91%
buffers/buffer-swap.js n=1000000 len=256 method='swap64' aligned='false'                                                                                        0.42 %       ±0.77% ±1.03% ±1.34%
buffers/buffer-swap.js n=1000000 len=256 method='swap64' aligned='true'                                                                                         0.92 %       ±1.01% ±1.35% ±1.77%
buffers/buffer-swap.js n=1000000 len=64 method='swap16' aligned='false'                                                                                        -2.44 %       ±3.11% ±4.15% ±5.42%
buffers/buffer-swap.js n=1000000 len=64 method='swap16' aligned='true'                                                                                         -1.50 %       ±2.22% ±2.96% ±3.86%
buffers/buffer-swap.js n=1000000 len=64 method='swap32' aligned='false'                                                                                         0.70 %       ±1.69% ±2.25% ±2.94%
buffers/buffer-swap.js n=1000000 len=64 method='swap32' aligned='true'                                                                                          0.36 %       ±1.99% ±2.64% ±3.44%
buffers/buffer-swap.js n=1000000 len=64 method='swap64' aligned='false'                                                                                        -2.92 %       ±4.34% ±5.83% ±7.71%
buffers/buffer-swap.js n=1000000 len=64 method='swap64' aligned='true'                                                                                          0.16 %       ±0.96% ±1.28% ±1.67%
buffers/buffer-swap.js n=1000000 len=768 method='swap16' aligned='false'                                                                                 *      0.64 %       ±0.55% ±0.73% ±0.95%
buffers/buffer-swap.js n=1000000 len=768 method='swap16' aligned='true'                                                                                         0.07 %       ±1.22% ±1.64% ±2.16%
buffers/buffer-swap.js n=1000000 len=768 method='swap32' aligned='false'                                                                               ***      1.13 %       ±0.47% ±0.63% ±0.82%
buffers/buffer-swap.js n=1000000 len=768 method='swap32' aligned='true'                                                                                         0.22 %       ±0.75% ±1.00% ±1.30%
buffers/buffer-swap.js n=1000000 len=768 method='swap64' aligned='false'                                                                                 *      0.72 %       ±0.58% ±0.77% ±1.00%
buffers/buffer-swap.js n=1000000 len=768 method='swap64' aligned='true'                                                                                         0.71 %       ±0.83% ±1.10% ±1.44%
buffers/buffer-swap.js n=1000000 len=8192 method='swap16' aligned='false'                                                                              ***      9.66 %       ±2.34% ±3.13% ±4.11%
buffers/buffer-swap.js n=1000000 len=8192 method='swap16' aligned='true'                                                                                        0.41 %       ±0.42% ±0.56% ±0.72%
buffers/buffer-swap.js n=1000000 len=8192 method='swap32' aligned='false'                                                                              ***     13.27 %       ±1.28% ±1.72% ±2.27%
buffers/buffer-swap.js n=1000000 len=8192 method='swap32' aligned='true'                                                                               ***      0.89 %       ±0.51% ±0.68% ±0.88%
buffers/buffer-swap.js n=1000000 len=8192 method='swap64' aligned='false'                                                                              ***      9.21 %       ±2.48% ±3.31% ±4.31%
buffers/buffer-swap.js n=1000000 len=8192 method='swap64' aligned='true'                                                                                 *      0.47 %       ±0.38% ±0.50% ±0.66%
buffers/buffer-tojson.js len=0 n=10000                                                                                                                         -2.13 %       ±4.91% ±6.53% ±8.51%
buffers/buffer-tojson.js len=256 n=10000                                                                                                                        1.26 %       ±3.40% ±4.55% ±5.99%
buffers/buffer-tojson.js len=4096 n=10000                                                                                                                      -0.48 %       ±0.81% ±1.08% ±1.40%
buffers/buffer-tostring.js n=1000000 len=1 args=0 encoding=''                                                                                          ***     -3.28 %       ±0.68% ±0.91% ±1.19%
buffers/buffer-tostring.js n=1000000 len=1 args=1 encoding='ascii'                                                                                     ***     -1.86 %       ±0.76% ±1.02% ±1.32%
buffers/buffer-tostring.js n=1000000 len=1 args=1 encoding='hex'                                                                                               -0.49 %       ±0.92% ±1.23% ±1.60%
buffers/buffer-tostring.js n=1000000 len=1 args=1 encoding='latin1'                                                                                    ***     -1.33 %       ±0.75% ±1.00% ±1.31%
buffers/buffer-tostring.js n=1000000 len=1 args=1 encoding='UCS-2'                                                                                      **     -1.15 %       ±0.72% ±0.96% ±1.25%
buffers/buffer-tostring.js n=1000000 len=1 args=1 encoding='utf8'                                                                                       **     -1.12 %       ±0.79% ±1.05% ±1.37%
buffers/buffer-tostring.js n=1000000 len=1 args=3 encoding='ascii'                                                                                     ***     -2.46 %       ±0.89% ±1.18% ±1.55%
buffers/buffer-tostring.js n=1000000 len=1 args=3 encoding='hex'                                                                                               -0.93 %       ±1.25% ±1.67% ±2.20%
buffers/buffer-tostring.js n=1000000 len=1 args=3 encoding='latin1'                                                                                    ***     -1.87 %       ±0.61% ±0.81% ±1.06%
buffers/buffer-tostring.js n=1000000 len=1 args=3 encoding='UCS-2'                                                                                             -0.68 %       ±0.83% ±1.11% ±1.44%
buffers/buffer-tostring.js n=1000000 len=1 args=3 encoding='utf8'                                                                                              -2.52 %       ±4.51% ±6.00% ±7.80%
buffers/buffer-tostring.js n=1000000 len=1024 args=0 encoding=''                                                                                                1.64 %       ±3.02% ±4.06% ±5.38%
buffers/buffer-tostring.js n=1000000 len=1024 args=1 encoding='ascii'                                                                                           0.27 %       ±0.64% ±0.85% ±1.11%
buffers/buffer-tostring.js n=1000000 len=1024 args=1 encoding='hex'                                                                                             0.00 %       ±0.44% ±0.59% ±0.77%
buffers/buffer-tostring.js n=1000000 len=1024 args=1 encoding='latin1'                                                                                          0.19 %       ±0.76% ±1.01% ±1.32%
buffers/buffer-tostring.js n=1000000 len=1024 args=1 encoding='UCS-2'                                                                                           0.95 %       ±1.09% ±1.44% ±1.88%
buffers/buffer-tostring.js n=1000000 len=1024 args=1 encoding='utf8'                                                                                            0.01 %       ±0.66% ±0.88% ±1.14%
buffers/buffer-tostring.js n=1000000 len=1024 args=3 encoding='ascii'                                                                                          -0.16 %       ±0.66% ±0.88% ±1.14%
buffers/buffer-tostring.js n=1000000 len=1024 args=3 encoding='hex'                                                                                            -0.36 %       ±0.43% ±0.57% ±0.74%
buffers/buffer-tostring.js n=1000000 len=1024 args=3 encoding='latin1'                                                                                          0.42 %       ±0.66% ±0.88% ±1.15%
buffers/buffer-tostring.js n=1000000 len=1024 args=3 encoding='UCS-2'                                                                                    *     -1.23 %       ±1.01% ±1.34% ±1.75%
buffers/buffer-tostring.js n=1000000 len=1024 args=3 encoding='utf8'                                                                                           -0.04 %       ±0.72% ±0.95% ±1.24%
buffers/buffer-tostring.js n=1000000 len=64 args=0 encoding=''                                                                                          **     -0.78 %       ±0.50% ±0.66% ±0.87%
buffers/buffer-tostring.js n=1000000 len=64 args=1 encoding='ascii'                                                                                             0.28 %       ±0.54% ±0.72% ±0.94%
buffers/buffer-tostring.js n=1000000 len=64 args=1 encoding='hex'                                                                                              -0.59 %       ±0.63% ±0.84% ±1.10%
buffers/buffer-tostring.js n=1000000 len=64 args=1 encoding='latin1'                                                                                    **      0.97 %       ±0.58% ±0.78% ±1.01%
buffers/buffer-tostring.js n=1000000 len=64 args=1 encoding='UCS-2'                                                                                             1.25 %       ±1.62% ±2.16% ±2.81%
buffers/buffer-tostring.js n=1000000 len=64 args=1 encoding='utf8'                                                                                             -0.14 %       ±0.72% ±0.96% ±1.25%
buffers/buffer-tostring.js n=1000000 len=64 args=3 encoding='ascii'                                                                                             0.21 %       ±0.62% ±0.83% ±1.08%
buffers/buffer-tostring.js n=1000000 len=64 args=3 encoding='hex'                                                                                              -0.70 %       ±0.71% ±0.94% ±1.24%
buffers/buffer-tostring.js n=1000000 len=64 args=3 encoding='latin1'                                                                                    **      1.11 %       ±0.66% ±0.88% ±1.14%
buffers/buffer-tostring.js n=1000000 len=64 args=3 encoding='UCS-2'                                                                                             1.26 %       ±1.91% ±2.54% ±3.31%
buffers/buffer-tostring.js n=1000000 len=64 args=3 encoding='utf8'                                                                                             -0.16 %       ±0.74% ±0.99% ±1.29%
buffers/buffer-transcode.js n=100000 length=1 toEncoding='ascii' fromEncoding='ascii'                                                                          -0.26 %       ±0.72% ±0.95% ±1.24%
buffers/buffer-transcode.js n=100000 length=1 toEncoding='ascii' fromEncoding='latin1'                                                                         -0.23 %       ±0.92% ±1.23% ±1.60%
buffers/buffer-transcode.js n=100000 length=1 toEncoding='ascii' fromEncoding='ucs2'                                                                           -0.27 %       ±0.61% ±0.81% ±1.05%
buffers/buffer-transcode.js n=100000 length=1 toEncoding='ascii' fromEncoding='utf8'                                                                           -0.24 %       ±1.03% ±1.38% ±1.79%
buffers/buffer-transcode.js n=100000 length=1 toEncoding='latin1' fromEncoding='ascii'                                                                          0.23 %       ±0.74% ±0.99% ±1.29%
buffers/buffer-transcode.js n=100000 length=1 toEncoding='latin1' fromEncoding='latin1'                                                                        -0.11 %       ±0.76% ±1.02% ±1.33%
buffers/buffer-transcode.js n=100000 length=1 toEncoding='latin1' fromEncoding='ucs2'                                                                           0.14 %       ±0.68% ±0.91% ±1.19%
buffers/buffer-transcode.js n=100000 length=1 toEncoding='latin1' fromEncoding='utf8'                                                                          -0.13 %       ±0.60% ±0.80% ±1.04%
buffers/buffer-transcode.js n=100000 length=1 toEncoding='ucs2' fromEncoding='ascii'                                                                           -1.66 %       ±4.11% ±5.53% ±7.33%
buffers/buffer-transcode.js n=100000 length=1 toEncoding='ucs2' fromEncoding='latin1'                                                                          -0.16 %       ±0.63% ±0.84% ±1.10%
buffers/buffer-transcode.js n=100000 length=1 toEncoding='ucs2' fromEncoding='ucs2'                                                                            -0.37 %       ±0.72% ±0.95% ±1.24%
buffers/buffer-transcode.js n=100000 length=1 toEncoding='ucs2' fromEncoding='utf8'                                                                             0.46 %       ±0.60% ±0.80% ±1.05%
buffers/buffer-transcode.js n=100000 length=1 toEncoding='utf8' fromEncoding='ascii'                                                                           -0.46 %       ±0.88% ±1.17% ±1.53%
buffers/buffer-transcode.js n=100000 length=1 toEncoding='utf8' fromEncoding='latin1'                                                                          -0.58 %       ±0.69% ±0.92% ±1.20%
buffers/buffer-transcode.js n=100000 length=1 toEncoding='utf8' fromEncoding='utf8'                                                                     **     -0.77 %       ±0.55% ±0.73% ±0.95%
buffers/buffer-transcode.js n=100000 length=10 toEncoding='ascii' fromEncoding='ascii'                                                                         -0.48 %       ±1.00% ±1.33% ±1.75%
buffers/buffer-transcode.js n=100000 length=10 toEncoding='ascii' fromEncoding='latin1'                                                                         0.01 %       ±0.91% ±1.22% ±1.60%
buffers/buffer-transcode.js n=100000 length=10 toEncoding='ascii' fromEncoding='ucs2'                                                                          -0.21 %       ±0.76% ±1.01% ±1.32%
buffers/buffer-transcode.js n=100000 length=10 toEncoding='ascii' fromEncoding='utf8'                                                                          -0.10 %       ±0.62% ±0.83% ±1.08%
buffers/buffer-transcode.js n=100000 length=10 toEncoding='latin1' fromEncoding='ascii'                                                                        -2.19 %       ±3.94% ±5.30% ±7.01%
buffers/buffer-transcode.js n=100000 length=10 toEncoding='latin1' fromEncoding='latin1'                                                                       -0.71 %       ±1.14% ±1.51% ±1.98%
buffers/buffer-transcode.js n=100000 length=10 toEncoding='latin1' fromEncoding='ucs2'                                                                         -0.34 %       ±0.76% ±1.01% ±1.32%
buffers/buffer-transcode.js n=100000 length=10 toEncoding='latin1' fromEncoding='utf8'                                                                   *     -0.69 %       ±0.58% ±0.77% ±1.01%
buffers/buffer-transcode.js n=100000 length=10 toEncoding='ucs2' fromEncoding='ascii'                                                                          -0.25 %       ±0.86% ±1.14% ±1.49%
buffers/buffer-transcode.js n=100000 length=10 toEncoding='ucs2' fromEncoding='latin1'                                                                          0.21 %       ±0.63% ±0.84% ±1.09%
buffers/buffer-transcode.js n=100000 length=10 toEncoding='ucs2' fromEncoding='ucs2'                                                                           -0.12 %       ±0.88% ±1.18% ±1.55%
buffers/buffer-transcode.js n=100000 length=10 toEncoding='ucs2' fromEncoding='utf8'                                                                           -0.03 %       ±0.58% ±0.77% ±1.01%
buffers/buffer-transcode.js n=100000 length=10 toEncoding='utf8' fromEncoding='ascii'                                                                    *     -0.92 %       ±0.89% ±1.18% ±1.55%
buffers/buffer-transcode.js n=100000 length=10 toEncoding='utf8' fromEncoding='latin1'                                                                         -0.17 %       ±0.67% ±0.89% ±1.16%
buffers/buffer-transcode.js n=100000 length=10 toEncoding='utf8' fromEncoding='utf8'                                                                           -0.37 %       ±0.58% ±0.77% ±1.01%
buffers/buffer-transcode.js n=100000 length=1000 toEncoding='ascii' fromEncoding='ascii'                                                                        0.41 %       ±0.68% ±0.91% ±1.18%
buffers/buffer-transcode.js n=100000 length=1000 toEncoding='ascii' fromEncoding='latin1'                                                                       0.28 %       ±0.49% ±0.65% ±0.85%
buffers/buffer-transcode.js n=100000 length=1000 toEncoding='ascii' fromEncoding='ucs2'                                                                  *      0.71 %       ±0.57% ±0.76% ±0.99%
buffers/buffer-transcode.js n=100000 length=1000 toEncoding='ascii' fromEncoding='utf8'                                                                         0.53 %       ±0.56% ±0.75% ±0.98%
buffers/buffer-transcode.js n=100000 length=1000 toEncoding='latin1' fromEncoding='ascii'                                                                       0.02 %       ±0.45% ±0.60% ±0.78%
buffers/buffer-transcode.js n=100000 length=1000 toEncoding='latin1' fromEncoding='latin1'                                                                     -0.07 %       ±0.82% ±1.10% ±1.43%
buffers/buffer-transcode.js n=100000 length=1000 toEncoding='latin1' fromEncoding='ucs2'                                                                 *     -0.73 %       ±0.65% ±0.87% ±1.13%
buffers/buffer-transcode.js n=100000 length=1000 toEncoding='latin1' fromEncoding='utf8'                                                                        0.32 %       ±0.39% ±0.52% ±0.68%
buffers/buffer-transcode.js n=100000 length=1000 toEncoding='ucs2' fromEncoding='ascii'                                                                         1.70 %       ±4.09% ±5.50% ±7.29%
buffers/buffer-transcode.js n=100000 length=1000 toEncoding='ucs2' fromEncoding='latin1'                                                                        0.68 %       ±0.79% ±1.05% ±1.37%
buffers/buffer-transcode.js n=100000 length=1000 toEncoding='ucs2' fromEncoding='ucs2'                                                                         -0.21 %       ±0.43% ±0.57% ±0.74%
buffers/buffer-transcode.js n=100000 length=1000 toEncoding='ucs2' fromEncoding='utf8'                                                                          0.12 %       ±0.72% ±0.96% ±1.25%
buffers/buffer-transcode.js n=100000 length=1000 toEncoding='utf8' fromEncoding='ascii'                                                                        -0.06 %       ±1.52% ±2.02% ±2.63%
buffers/buffer-transcode.js n=100000 length=1000 toEncoding='utf8' fromEncoding='latin1'                                                                       -0.02 %       ±1.55% ±2.06% ±2.69%
buffers/buffer-transcode.js n=100000 length=1000 toEncoding='utf8' fromEncoding='utf8'                                                                         -0.12 %       ±0.47% ±0.63% ±0.82%
buffers/buffer-write-string-short.js n=1000000 len=1 encoding='ascii'                                                                                           0.37 %       ±0.78% ±1.03% ±1.35%
buffers/buffer-write-string-short.js n=1000000 len=1 encoding='latin1'                                                                                         -1.46 %       ±3.82% ±5.14% ±6.81%
buffers/buffer-write-string-short.js n=1000000 len=1 encoding='utf8'                                                                                     *      0.69 %       ±0.65% ±0.86% ±1.12%
buffers/buffer-write-string-short.js n=1000000 len=16 encoding='ascii'                                                                                          0.72 %       ±0.78% ±1.04% ±1.35%
buffers/buffer-write-string-short.js n=1000000 len=16 encoding='latin1'                                                                                         0.09 %       ±0.83% ±1.10% ±1.44%
buffers/buffer-write-string-short.js n=1000000 len=16 encoding='utf8'                                                                                    *      0.82 %       ±0.75% ±1.00% ±1.31%
buffers/buffer-write-string-short.js n=1000000 len=32 encoding='ascii'                                                                                          0.67 %       ±0.70% ±0.93% ±1.22%
buffers/buffer-write-string-short.js n=1000000 len=32 encoding='latin1'                                                                                  *      1.16 %       ±0.90% ±1.19% ±1.55%
buffers/buffer-write-string-short.js n=1000000 len=32 encoding='utf8'                                                                                           0.61 %       ±0.86% ±1.14% ±1.48%
buffers/buffer-write-string-short.js n=1000000 len=8 encoding='ascii'                                                                                    *      0.85 %       ±0.67% ±0.89% ±1.16%
buffers/buffer-write-string-short.js n=1000000 len=8 encoding='latin1'                                                                                          0.29 %       ±1.35% ±1.80% ±2.35%
buffers/buffer-write-string-short.js n=1000000 len=8 encoding='utf8'                                                                                            0.77 %       ±1.86% ±2.47% ±3.22%
buffers/buffer-write-string.js n=1000000 len=2048 args='' encoding=''                                                                                          -0.32 %       ±0.76% ±1.02% ±1.35%
buffers/buffer-write-string.js n=1000000 len=2048 args='' encoding='ascii'                                                                               *      0.68 %       ±0.52% ±0.69% ±0.90%
buffers/buffer-write-string.js n=1000000 len=2048 args='' encoding='hex'                                                                               ***    -20.43 %       ±0.76% ±1.02% ±1.35%
buffers/buffer-write-string.js n=1000000 len=2048 args='' encoding='latin1'                                                                                     0.48 %       ±0.65% ±0.87% ±1.14%
buffers/buffer-write-string.js n=1000000 len=2048 args='' encoding='utf16le'                                                                                    0.18 %       ±0.57% ±0.76% ±1.00%
buffers/buffer-write-string.js n=1000000 len=2048 args='' encoding='utf8'                                                                                      -0.29 %       ±0.84% ±1.13% ±1.48%
buffers/buffer-write-string.js n=1000000 len=2048 args='offset' encoding=''                                                                                     0.69 %       ±0.79% ±1.05% ±1.36%
buffers/buffer-write-string.js n=1000000 len=2048 args='offset' encoding='ascii'                                                                         *      0.63 %       ±0.57% ±0.75% ±0.98%
buffers/buffer-write-string.js n=1000000 len=2048 args='offset' encoding='hex'                                                                         ***    -19.29 %       ±0.84% ±1.12% ±1.48%
buffers/buffer-write-string.js n=1000000 len=2048 args='offset' encoding='latin1'                                                                        *     -0.86 %       ±0.67% ±0.90% ±1.17%
buffers/buffer-write-string.js n=1000000 len=2048 args='offset' encoding='utf16le'                                                                              0.10 %       ±0.60% ±0.81% ±1.06%
buffers/buffer-write-string.js n=1000000 len=2048 args='offset' encoding='utf8'                                                                        ***     -2.47 %       ±0.82% ±1.09% ±1.42%
buffers/buffer-write-string.js n=1000000 len=2048 args='offset+length' encoding=''                                                                       *      0.66 %       ±0.62% ±0.83% ±1.08%
buffers/buffer-write-string.js n=1000000 len=2048 args='offset+length' encoding='ascii'                                                                ***     -0.97 %       ±0.33% ±0.44% ±0.58%
buffers/buffer-write-string.js n=1000000 len=2048 args='offset+length' encoding='hex'                                                                  ***    -20.93 %       ±0.85% ±1.14% ±1.51%
buffers/buffer-write-string.js n=1000000 len=2048 args='offset+length' encoding='latin1'                                                                        0.26 %       ±0.35% ±0.46% ±0.60%
buffers/buffer-write-string.js n=1000000 len=2048 args='offset+length' encoding='utf16le'                                                                       0.05 %       ±0.60% ±0.80% ±1.05%
buffers/buffer-write-string.js n=1000000 len=2048 args='offset+length' encoding='utf8'                                                                 ***     -1.99 %       ±0.89% ±1.18% ±1.54%
buffers/buffer-write.js n=1000000 type='BigInt64BE' buffer='fast'                                                                                              -0.10 %       ±0.56% ±0.74% ±0.97%
buffers/buffer-write.js n=1000000 type='BigInt64LE' buffer='fast'                                                                                       **     -1.17 %       ±0.82% ±1.09% ±1.44%
buffers/buffer-write.js n=1000000 type='BigUInt64BE' buffer='fast'                                                                                             -0.49 %       ±0.83% ±1.11% ±1.45%
buffers/buffer-write.js n=1000000 type='BigUInt64LE' buffer='fast'                                                                                             -0.07 %       ±1.64% ±2.19% ±2.86%
buffers/buffer-write.js n=1000000 type='DoubleBE' buffer='fast'                                                                                                -0.04 %       ±1.91% ±2.55% ±3.32%
buffers/buffer-write.js n=1000000 type='DoubleLE' buffer='fast'                                                                                         **      2.10 %       ±1.44% ±1.92% ±2.52%
buffers/buffer-write.js n=1000000 type='FloatBE' buffer='fast'                                                                                                  1.35 %       ±2.28% ±3.03% ±3.95%
buffers/buffer-write.js n=1000000 type='FloatLE' buffer='fast'                                                                                                  1.09 %       ±2.30% ±3.06% ±3.99%
buffers/buffer-write.js n=1000000 type='Int16BE' buffer='fast'                                                                                                  1.10 %       ±3.20% ±4.25% ±5.54%
buffers/buffer-write.js n=1000000 type='Int16LE' buffer='fast'                                                                                                  3.99 %       ±4.03% ±5.37% ±6.98%
buffers/buffer-write.js n=1000000 type='Int32BE' buffer='fast'                                                                                                  1.92 %       ±3.17% ±4.22% ±5.50%
buffers/buffer-write.js n=1000000 type='Int32LE' buffer='fast'                                                                                                 -1.94 %       ±2.21% ±2.94% ±3.85%
buffers/buffer-write.js n=1000000 type='Int8' buffer='fast'                                                                                                     1.23 %       ±3.75% ±4.99% ±6.49%
buffers/buffer-write.js n=1000000 type='IntBE' buffer='fast'                                                                                                    0.18 %       ±1.14% ±1.51% ±1.97%
buffers/buffer-write.js n=1000000 type='IntLE' buffer='fast'                                                                                                    1.22 %       ±1.50% ±1.99% ±2.60%
buffers/buffer-write.js n=1000000 type='UInt16BE' buffer='fast'                                                                                                 3.24 %       ±4.02% ±5.35% ±6.97%
buffers/buffer-write.js n=1000000 type='UInt16LE' buffer='fast'                                                                                                -1.35 %       ±3.27% ±4.35% ±5.66%
buffers/buffer-write.js n=1000000 type='UInt32BE' buffer='fast'                                                                                                 1.61 %       ±4.79% ±6.41% ±8.44%
buffers/buffer-write.js n=1000000 type='UInt32LE' buffer='fast'                                                                                                 1.74 %       ±4.48% ±6.00% ±7.88%
buffers/buffer-write.js n=1000000 type='UInt8' buffer='fast'                                                                                                    0.25 %       ±3.62% ±4.82% ±6.27%
buffers/buffer-write.js n=1000000 type='UIntBE' buffer='fast'                                                                                                  -0.01 %       ±3.43% ±4.57% ±5.95%
buffers/buffer-write.js n=1000000 type='UIntLE' buffer='fast'                                                                                                   1.42 %       ±3.73% ±4.97% ±6.47%
buffers/buffer-zero.js type='buffer' n=1000000                                                                                                           *      0.78 %       ±0.76% ±1.02% ±1.32%
buffers/buffer-zero.js type='string' n=1000000                                                                                                                 -0.74 %       ±1.02% ±1.36% ±1.77%
buffers/dataview-set.js n=1000000 type='Float32BE'                                                                                                       *      0.85 %       ±0.64% ±0.86% ±1.12%
buffers/dataview-set.js n=1000000 type='Float32LE'                                                                                                              2.55 %       ±4.47% ±6.02% ±7.98%
buffers/dataview-set.js n=1000000 type='Float64BE'                                                                                                              0.40 %       ±0.58% ±0.77% ±1.01%
buffers/dataview-set.js n=1000000 type='Float64LE'                                                                                                              0.24 %       ±0.58% ±0.78% ±1.01%
buffers/dataview-set.js n=1000000 type='Int16BE'                                                                                                               -0.36 %       ±1.15% ±1.53% ±2.00%
buffers/dataview-set.js n=1000000 type='Int16LE'                                                                                                                0.40 %       ±0.61% ±0.81% ±1.05%
buffers/dataview-set.js n=1000000 type='Int32BE'                                                                                                                1.29 %       ±2.46% ±3.31% ±4.38%
buffers/dataview-set.js n=1000000 type='Int32LE'                                                                                                                0.44 %       ±0.64% ±0.85% ±1.11%
buffers/dataview-set.js n=1000000 type='Int8'                                                                                                            *      0.83 %       ±0.72% ±0.96% ±1.25%
buffers/dataview-set.js n=1000000 type='Uint16BE'                                                                                                              -0.04 %       ±0.80% ±1.07% ±1.39%
buffers/dataview-set.js n=1000000 type='Uint16LE'                                                                                                               0.08 %       ±0.86% ±1.15% ±1.50%
buffers/dataview-set.js n=1000000 type='Uint32BE'                                                                                                               0.08 %       ±0.98% ±1.30% ±1.70%
buffers/dataview-set.js n=1000000 type='Uint32LE'                                                                                                               0.37 %       ±0.69% ±0.93% ±1.21%
buffers/dataview-set.js n=1000000 type='Uint8'                                                                                                                  0.06 %       ±0.70% ±0.93% ±1.21%

Be aware that when doing many comparisons the risk of a false-positive result increases.
In this case, there are 471 comparisons, you can thus expect the following amount of false-positive results:
  23.55 false positives, when considering a   5% risk acceptance (*, **, ***),
  4.71 false positives, when considering a   1% risk acceptance (**, ***),
  0.47 false positives, when considering a 0.1% risk acceptance (***)
➜  node git:(mert/stringView/buffer) ✗ 

@nodejs-github-bot nodejs-github-bot added buffer Issues and PRs related to the buffer subsystem. c++ Issues and PRs that require attention from people who are familiar with C++. needs-ci PRs that need a full CI run. labels Jan 31, 2026
@mertcanaltin mertcanaltin changed the title src: optimize utf-8 length calculation for small and large strings src: optimize utf-8 byte length calculation using simdutf Jan 31, 2026
Copy link
Member

@BridgeAR BridgeAR left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The benchmarks show mostly regressions, no?

@mertcanaltin
Copy link
Member Author

The benchmarks show mostly regressions, no?

I only changed the UTF-8 calculation for Buffer.byteLength(). The regression results you see may be due to the local environment. Could you run benchmark-ci for me? That way we can be more certain.

@ChALkeR ChALkeR added the performance Issues and PRs related to the performance of Node.js. label Jan 31, 2026
@mertcanaltin mertcanaltin force-pushed the mert/stringView/buffer branch from a92f8f1 to 97a81a8 Compare January 31, 2026 22:37
@mertcanaltin mertcanaltin force-pushed the mert/stringView/buffer branch from 97a81a8 to c63b474 Compare January 31, 2026 22:37
@codecov
Copy link

codecov bot commented Feb 1, 2026

Codecov Report

❌ Patch coverage is 47.36842% with 20 lines in your changes missing coverage. Please review.
✅ Project coverage is 89.75%. Comparing base (f6464c5) to head (a9817fc).
⚠️ Report is 11 commits behind head on main.

Files with missing lines Patch % Lines
src/node_buffer.cc 47.36% 19 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main   #61601      +/-   ##
==========================================
- Coverage   89.76%   89.75%   -0.02%     
==========================================
  Files         673      673              
  Lines      203944   203952       +8     
  Branches    39191    39194       +3     
==========================================
- Hits       183080   183052      -28     
- Misses      13194    13226      +32     
- Partials     7670     7674       +4     
Files with missing lines Coverage Δ
src/node_buffer.cc 69.08% <47.36%> (+1.10%) ⬆️

... and 26 files with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@mertcanaltin
Copy link
Member Author

mertcanaltin commented Feb 1, 2026

Thanks for the review @BridgeAR Pushed a fix for the regressions and updated results

issue was String::ValueView overhead eating simdutf gains on one-byte strings. Now I grab external one-byte pointers directly (zero-copy), skip simdutf for small one-byte strings (≤1024) using V8's native path, and apply full simdutf for two-byte strings after 128 bytes.

Results:
https://gist.github.com/mertcanaltin/816fdb8bb6e20d5e4f97e308db0263e9

@mertcanaltin mertcanaltin requested a review from BridgeAR February 1, 2026 14:41
@anonrig
Copy link
Member

anonrig commented Feb 2, 2026

The benchmarks show mostly regressions, no?

@BridgeAR can you rereview? the benchmarks seems to be unstable enough to show differences in untriggered paths

@anonrig anonrig added the request-ci Add this label to start a Jenkins CI on a PR. label Feb 2, 2026
@github-actions github-actions bot removed the request-ci Add this label to start a Jenkins CI on a PR. label Feb 2, 2026
@nodejs-github-bot
Copy link
Collaborator

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

buffer Issues and PRs related to the buffer subsystem. c++ Issues and PRs that require attention from people who are familiar with C++. needs-ci PRs that need a full CI run. performance Issues and PRs related to the performance of Node.js.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants