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>
This commit is contained in:
Rich Trott 2018-05-30 08:39:25 +00:00
parent 77d3f141cf
commit 862a22ab49

View File

@ -6,7 +6,8 @@ const runBenchmark = require('../common/benchmark');
runBenchmark('timers',
[
'direction=start',
'n=1',
'type=depth',
'n=1'
],
{ NODEJS_BENCHMARK_ZERO_ALLOWED: 1 });