mirror of
https://github.com/nodejs/node.git
synced 2024-12-01 16:10:02 +01:00
b3e53673b9
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>
10 lines
214 B
JavaScript
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 });
|