summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRich Trott <rtrott@gmail.com>2019-04-16 08:26:39 -0700
committerRich Trott <rtrott@gmail.com>2019-04-18 10:25:59 -0700
commitd5bb500d0f21997c1b7a658c06f7f437be29fa78 (patch)
tree4c728f15ce0cddd0feec8649cb4c9790e9827ffd
parent3973354951007e352052d4d57989cf6c212d43d3 (diff)
downloadnode-new-d5bb500d0f21997c1b7a658c06f7f437be29fa78.tar.gz
test: fix test-benchmark-buffer
Using `len=2` in test-benchmark-buffer was resulting in a `RangeError` in buffer-base64-encode.js. Change to `len=256` which works in all buffer benchmarks. PR-URL: https://github.com/nodejs/node/pull/27260 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Refael Ackermann <refack@gmail.com>
-rw-r--r--test/benchmark/test-benchmark-buffer.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/benchmark/test-benchmark-buffer.js b/test/benchmark/test-benchmark-buffer.js
index 171f755647..d3085796e1 100644
--- a/test/benchmark/test-benchmark-buffer.js
+++ b/test/benchmark/test-benchmark-buffer.js
@@ -13,7 +13,7 @@ runBenchmark('buffers',
'charsPerLine=6',
'encoding=utf8',
'endian=BE',
- 'len=2',
+ 'len=256',
'linesCount=1',
'method=',
'n=1',