From 862a22ab490818909f5dc448e1805bc846c8c6d0 Mon Sep 17 00:00:00 2001 From: Rich Trott Date: Wed, 30 May 2018 08:39:25 +0000 Subject: [PATCH] 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 Reviewed-By: Anatoli Papirovski --- test/parallel/test-benchmark-timers.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/parallel/test-benchmark-timers.js b/test/parallel/test-benchmark-timers.js index 433a12e8258..af3c49bd714 100644 --- a/test/parallel/test-benchmark-timers.js +++ b/test/parallel/test-benchmark-timers.js @@ -6,7 +6,8 @@ const runBenchmark = require('../common/benchmark'); runBenchmark('timers', [ + 'direction=start', + 'n=1', 'type=depth', - 'n=1' ], { NODEJS_BENCHMARK_ZERO_ALLOWED: 1 });