node/test/parallel/test-benchmark-util.js
Rich Trott 6c0c60c1f1 test: fix flaky test-benchmark-util
Allow for zero iterations on benchmarks with a short duration.

PR-URL: https://github.com/nodejs/node/pull/17473
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Evan Lucas <evanlucas@me.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com>
Reviewed-By: Khaidi Chu <i@2333.moe>
2017-12-06 20:09:51 -08:00

16 lines
357 B
JavaScript

'use strict';
require('../common');
const runBenchmark = require('../common/benchmark');
runBenchmark('util',
['argument=false',
'input=',
'method=Array',
'n=1',
'option=none',
'type=',
'version=native'],
{ NODEJS_BENCHMARK_ZERO_ALLOWED: 1 });