summaryrefslogtreecommitdiff
path: root/test/benchmark/test-benchmark-buffer.js
diff options
context:
space:
mode:
authorRich Trott <rtrott@gmail.com>2018-11-08 16:33:42 -0800
committerRich Trott <rtrott@gmail.com>2018-11-10 22:44:26 -0800
commitb5420c9577be1f07da8c6ca8b46bb38195ba2529 (patch)
treecc8b1ac4d310dd998433a78bac8f900ee65b251d /test/benchmark/test-benchmark-buffer.js
parent1e0005eac91a9f1a14089d13109f0628ea29fa09 (diff)
downloadnode-new-b5420c9577be1f07da8c6ca8b46bb38195ba2529.tar.gz
test: move benchmark tests out of main test suite
Move benchmark tests (which are slow) out of the main test suite. We can hopefully add them to node-daily-master so that they are still run daily on CI. PR-URL: https://github.com/nodejs/node/pull/24265 Reviewed-By: Richard Lau <riclau@uk.ibm.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Michaƫl Zasso <targos@protonmail.com> Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com> Reviewed-By: Refael Ackermann <refack@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
Diffstat (limited to 'test/benchmark/test-benchmark-buffer.js')
-rw-r--r--test/benchmark/test-benchmark-buffer.js29
1 files changed, 29 insertions, 0 deletions
diff --git a/test/benchmark/test-benchmark-buffer.js b/test/benchmark/test-benchmark-buffer.js
new file mode 100644
index 0000000000..171f755647
--- /dev/null
+++ b/test/benchmark/test-benchmark-buffer.js
@@ -0,0 +1,29 @@
+'use strict';
+
+require('../common');
+
+const runBenchmark = require('../common/benchmark');
+
+runBenchmark('buffers',
+ [
+ 'aligned=true',
+ 'args=1',
+ 'buffer=fast',
+ 'byteLength=1',
+ 'charsPerLine=6',
+ 'encoding=utf8',
+ 'endian=BE',
+ 'len=2',
+ 'linesCount=1',
+ 'method=',
+ 'n=1',
+ 'pieces=1',
+ 'pieceSize=1',
+ 'search=@',
+ 'size=1',
+ 'source=array',
+ 'type=',
+ 'value=0',
+ 'withTotalLength=0'
+ ],
+ { NODEJS_BENCHMARK_ZERO_ALLOWED: 1 });