0
0
mirror of https://github.com/nodejs/node.git synced 2024-12-01 16:10:02 +01:00
nodejs/test/parallel/test-benchmark-events.js
Rich Trott b3e53673b9 test: fix flaky test-benchmark-events
Make sure each benchmark file only runs one combination of options.
Allow for zero iterations for short benchmark.

PR-URL: https://github.com/nodejs/node/pull/17472
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
2017-12-05 17:10:06 -08:00

10 lines
214 B
JavaScript

'use strict';
require('../common');
const runBenchmark = require('../common/benchmark');
runBenchmark('events',
['argc=0', 'listeners=1', 'n=1'],
{ NODEJS_BENCHMARK_ZERO_ALLOWED: 1 });