MCPcopy Index your code
hub / github.com/nodejs/node / main

Function main

benchmark/diagnostics_channel/http.js:17–33  ·  view source on GitHub ↗
({ apm, connections, duration, type, len, chunks, chunkedEnc })

Source from the content-addressed store, hash-verified

15});
16
17function main({ apm, connections, duration, type, len, chunks, chunkedEnc }) {
18 const done = { none, patch, diagnostics_channel }[apm]();
19
20 const server = require('../fixtures/simple-http-server.js')
21 .listen(common.PORT)
22 .on('listening', () => {
23 const path = `/${type}/${len}/${chunks}/normal/${chunkedEnc}`;
24 bench.http({
25 path,
26 connections,
27 duration,
28 }, () => {
29 server.close();
30 if (done) done();
31 });
32 });
33}
34
35function none() {}
36

Callers

nothing calls this directly

Calls 6

listenMethod · 0.80
httpMethod · 0.80
closeMethod · 0.65
requireFunction · 0.50
doneFunction · 0.50
onMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…