node/test/parallel/test-benchmark-timers.js
Rich Trott 862a22ab49 test: add option to test-benchmark-timers
Add option to test-benchmark-timers such that all benchmark files return
only a single set of results. (This helps prevent benchmark tests from
taking a long time to run.)

Alphabetize options in the file.

PR-URL: https://github.com/nodejs/node/pull/21032
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Anatoli Papirovski <apapirovski@mac.com>
2018-06-02 04:42:06 +02:00

14 lines
283 B
JavaScript

'use strict';
require('../common');
const runBenchmark = require('../common/benchmark');
runBenchmark('timers',
[
'direction=start',
'n=1',
'type=depth',
],
{ NODEJS_BENCHMARK_ZERO_ALLOWED: 1 });