From 1e7deb72d24e8a571adafd27accac2799bf53929 Mon Sep 17 00:00:00 2001 From: Denys Otrishko Date: Wed, 15 Aug 2018 17:31:14 +0300 Subject: [PATCH] test: add streams benchmark test Refs: https://github.com/nodejs/node/issues/12068 PR-URL: https://github.com/nodejs/node/pull/22335 Reviewed-By: Rich Trott Reviewed-By: James M Snell Reviewed-By: Anna Henningsen --- test/parallel/test-benchmark-streams.js | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 test/parallel/test-benchmark-streams.js diff --git a/test/parallel/test-benchmark-streams.js b/test/parallel/test-benchmark-streams.js new file mode 100644 index 00000000000000..f90838794cdf2a --- /dev/null +++ b/test/parallel/test-benchmark-streams.js @@ -0,0 +1,13 @@ +'use strict'; + +require('../common'); + +const runBenchmark = require('../common/benchmark'); + +runBenchmark('streams', + [ + 'kind=duplex', + 'type=buffer', + 'n=1' + ], + { NODEJS_BENCHMARK_ZERO_ALLOWED: 1 });