summaryrefslogtreecommitdiff
path: root/benchmark/buffers/buffer-base64-encode.js
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/buffers/buffer-base64-encode.js
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/buffers/buffer-base64-encode.js')
-rw-r--r--benchmark/buffers/buffer-base64-encode.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/benchmark/buffers/buffer-base64-encode.js b/benchmark/buffers/buffer-base64-encode.js
index d8b601bbd1..9837828a35 100644
--- a/benchmark/buffers/buffer-base64-encode.js
+++ b/benchmark/buffers/buffer-base64-encode.js
@@ -25,6 +25,8 @@ const common = require('../common.js');
const bench = common.createBenchmark(main, {
len: [64 * 1024 * 1024],
n: [32]
+}, {
+ test: { len: 256 }
});
function main({ n, len }) {