mirror of
https://github.com/nodejs/node.git
synced 2025-05-11 01:27:14 +00:00

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>
16 lines
357 B
JavaScript
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 });
|