Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nodejs/node.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRich Trott <rtrott@gmail.com>2017-10-10 09:56:21 +0300
committerMichaƫl Zasso <targos@protonmail.com>2017-10-18 09:27:48 +0300
commit9808c59b4ed0072199475e7b477422a8bed845d1 (patch)
tree61d739c3123ff8139c5283946c6318026815acd8 /benchmark
parentb0b224c823d42c87f29473461cd32ed5c547ea06 (diff)
test: reduce run time for misc benchmark tests
Run only one benchmark for each benchmark file tested by test-benchmark-misc.js. PR-URL: https://github.com/nodejs/node/pull/16120 Reviewed-By: Daijiro Wachi <daijiro.wachi@gmail.com> Reviewed-By: Franziska Hinkelmann <franziska.hinkelmann@gmail.com>
Diffstat (limited to 'benchmark')
-rw-r--r--benchmark/misc/console.js2
-rw-r--r--benchmark/misc/object-property-bench.js2
-rw-r--r--benchmark/misc/punycode.js2
3 files changed, 6 insertions, 0 deletions
diff --git a/benchmark/misc/console.js b/benchmark/misc/console.js
index 8e9fbd8c543..ab938168ac3 100644
--- a/benchmark/misc/console.js
+++ b/benchmark/misc/console.js
@@ -93,6 +93,8 @@ function runUsingArgumentsAndApply(n, concat) {
function main(conf) {
const n = +conf.n;
switch (conf.method) {
+ // '' is a default case for tests
+ case '':
case 'restAndSpread':
runUsingRestAndSpread(n, conf.concat);
break;
diff --git a/benchmark/misc/object-property-bench.js b/benchmark/misc/object-property-bench.js
index 8ac7683cd54..d6afd4e9c0b 100644
--- a/benchmark/misc/object-property-bench.js
+++ b/benchmark/misc/object-property-bench.js
@@ -63,6 +63,8 @@ function main(conf) {
const n = +conf.millions * 1e6;
switch (conf.method) {
+ // '' is a default case for tests
+ case '':
case 'property':
runProperty(n);
break;
diff --git a/benchmark/misc/punycode.js b/benchmark/misc/punycode.js
index 74ddadbb9da..630aea3195f 100644
--- a/benchmark/misc/punycode.js
+++ b/benchmark/misc/punycode.js
@@ -63,6 +63,8 @@ function main(conf) {
const n = +conf.n;
const val = conf.val;
switch (conf.method) {
+ // '' is a default case for tests
+ case '':
case 'punycode':
runPunycode(n, val);
break;