summaryrefslogtreecommitdiff
path: root/test/benchmark/test-benchmark-net.js
blob: f51c615b5df4f0ada47b6397ea13419e8dec65f0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
'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',
               'recvbufgenfn=false',
               'recvbuflen=0',
               'sendchunklen=256',
               'type=buf'
             ],
             { NODEJS_BENCHMARK_ZERO_ALLOWED: 1 });