From fa265a2ccad5016476fd83fa05a0380208969c02 Mon Sep 17 00:00:00 2001 From: Rich Trott Date: Mon, 9 Oct 2017 23:21:41 -0700 Subject: [PATCH] test: reduce run time for string_decoder benchmark test-benchmark-string_decoder was timing out in CI. Reduce the run time by sending appropriate options such that each benchmark file only runs one combination of options. PR-URL: https://github.com/nodejs/node/pull/16118 Reviewed-By: Refael Ackermann --- test/parallel/test-benchmark-string_decoder.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/test/parallel/test-benchmark-string_decoder.js b/test/parallel/test-benchmark-string_decoder.js index a7329cc44f..a78390e03d 100644 --- a/test/parallel/test-benchmark-string_decoder.js +++ b/test/parallel/test-benchmark-string_decoder.js @@ -4,4 +4,7 @@ require('../common'); const runBenchmark = require('../common/benchmark'); -runBenchmark('string_decoder', ['n=1']); +runBenchmark('string_decoder', ['chunk=16', + 'encoding=utf8', + 'inlen=32', + 'n=1']);