diff options
author | Ruben Bridgewater <ruben@bridgewater.de> | 2020-01-20 09:21:56 +0100 |
---|---|---|
committer | Ruben Bridgewater <ruben@bridgewater.de> | 2020-02-09 13:32:12 +0100 |
commit | 357230f4b7174380467edfb0a65a00b65b0af66c (patch) | |
tree | 200be2a6aa65d5f7636dc9ec6abd1b84708d64b1 /benchmark/util | |
parent | 78aa348f4e0c504cf949aea73a8e1bdcedc7f8b0 (diff) | |
download | node-new-357230f4b7174380467edfb0a65a00b65b0af66c.tar.gz |
benchmark: remove special test entries
It was necessary to have fallbacks to run the original tests. This
is obsolete with the new test mode.
PR-URL: https://github.com/nodejs/node/pull/31396
Reviewed-By: Sam Roberts <vieuxtech@gmail.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'); |