summaryrefslogtreecommitdiff
path: root/benchmark/util
diff options
context:
space:
mode:
authorRuben Bridgewater <ruben@bridgewater.de>2020-01-16 15:57:30 +0100
committerRuben Bridgewater <ruben@bridgewater.de>2020-02-09 13:31:45 +0100
commitdac579516ca662e731ac502c15e75009a2b9a8c9 (patch)
tree6e43173eab5da0563a5fbf39f5aa3bc64d47cbec /benchmark/util
parentb70741ea438b4df01cca416949a22e9350b58258 (diff)
downloadnode-new-dac579516ca662e731ac502c15e75009a2b9a8c9.tar.gz
benchmark: add `test` and `all` options and improve errors
This adds a new `test` option. Using it automatically uses a single minimal option matrix to verify the benchmark works as expected. Using the new `all` option makes sure all test suites are run. On top of that the benchmarks will from now on report properly what category might have a typo, if any. The http duration was also refactored to use a option instead of relying on a configuration setting. The fixture folder is ignored as test suite from now on. PR-URL: https://github.com/nodejs/node/pull/31396 Fixes: https://github.com/nodejs/node/issues/31083 Reviewed-By: Sam Roberts <vieuxtech@gmail.com> Reviewed-By: Rich Trott <rtrott@gmail.com>
Diffstat (limited to 'benchmark/util')
-rw-r--r--benchmark/util/type-check.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/benchmark/util/type-check.js b/benchmark/util/type-check.js
index 5b992e729e..8d57bc000a 100644
--- a/benchmark/util/type-check.js
+++ b/benchmark/util/type-check.js
@@ -31,7 +31,7 @@ const bench = common.createBenchmark(main, {
argument: ['true', 'false-primitive', 'false-object'],
n: [1e5]
}, {
- flags: ['--expose-internals']
+ flags: ['--expose-internals', '--no-warnings']
});
function main({ type, argument, version, n }) {