mirror of
https://github.com/nodejs/node.git
synced 2024-12-01 16:10:02 +01:00
640b20616d
Mostly shared/duplicated logic between all benchmark test files, so creating a new common module to store it. PR-URL: https://github.com/nodejs/node/pull/15004 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com> Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: Refael Ackermann <refack@gmail.com>
18 lines
461 B
JavaScript
18 lines
461 B
JavaScript
'use strict';
|
|
|
|
require('../common');
|
|
|
|
// Because the net benchmarks use hardcoded ports, this should be in sequential
|
|
// rather than parallel to make sure it does not conflict with tests that choose
|
|
// random available ports.
|
|
|
|
const runBenchmark = require('../common/benchmark');
|
|
|
|
runBenchmark('net',
|
|
[
|
|
'dur=0',
|
|
'len=1024',
|
|
'type=buf'
|
|
],
|
|
{ NODEJS_BENCHMARK_ZERO_ALLOWED: 1 });
|