diff options
author | Ruben Bridgewater <ruben@bridgewater.de> | 2020-02-12 21:02:35 +0100 |
---|---|---|
committer | Ruben Bridgewater <ruben@bridgewater.de> | 2020-03-09 22:35:54 +0100 |
commit | bb6125bac7f7f5ea28c15b3edf0c98901bcc9ada (patch) | |
tree | 382397743a4ddfab8e97c7e8eb1982b3a236022b /benchmark/util | |
parent | 9e40df763bce46ee835231d899ef3db242bcb669 (diff) | |
download | node-new-bb6125bac7f7f5ea28c15b3edf0c98901bcc9ada.tar.gz |
benchmark: remove special test entries
This reverts commit 7cfbc9f90f3109feaeb9db5df9d4d692a62178ef.
PR-URL: https://github.com/nodejs/node/pull/31755
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Vladimir de Turckheim <vlad2t@hotmail.com>
Reviewed-By: Rich Trott <rtrott@gmail.com>
Diffstat (limited to 'benchmark/util')
-rw-r--r-- | benchmark/util/format.js | 3 | ||||
-rw-r--r-- | benchmark/util/inspect-array.js | 2 | ||||
-rw-r--r-- | benchmark/util/type-check.js | 3 |
3 files changed, 1 insertions, 7 deletions
diff --git a/benchmark/util/format.js b/benchmark/util/format.js index 976e0f4e65..f7a6caa81c 100644 --- a/benchmark/util/format.js +++ b/benchmark/util/format.js @@ -23,8 +23,7 @@ const bench = common.createBenchmark(main, { }); function main({ n, type }) { - // For testing, if supplied with an empty type, default to string. - const [first, second] = inputs[type || 'string']; + const [first, second] = inputs[type]; bench.start(); for (let i = 0; i < n; i++) { diff --git a/benchmark/util/inspect-array.js b/benchmark/util/inspect-array.js index 4fd73785f7..987b404791 100644 --- a/benchmark/util/inspect-array.js +++ b/benchmark/util/inspect-array.js @@ -23,8 +23,6 @@ function main({ n, len, type }) { opts = { showHidden: true }; arr = arr.fill('denseArray'); break; - // For testing, if supplied with an empty type, default to denseArray. - case '': case 'denseArray': arr = arr.fill('denseArray'); break; diff --git a/benchmark/util/type-check.js b/benchmark/util/type-check.js index 8d57bc000a..792f61cf6f 100644 --- a/benchmark/util/type-check.js +++ b/benchmark/util/type-check.js @@ -35,9 +35,6 @@ const bench = common.createBenchmark(main, { }); function main({ type, argument, version, n }) { - // For testing, if supplied with an empty type, default to ArrayBufferView. - type = type || 'ArrayBufferView'; - const util = common.binding('util'); const types = require('internal/util/types'); |