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

Function main

benchmark/http/simple.js:14–29  ·  view source on GitHub ↗
({ type, len, chunks, c, chunkedEnc, duration })

Source from the content-addressed store, hash-verified

12});
13
14function main({ type, len, chunks, c, chunkedEnc, duration }) {
15 const server = require('../fixtures/simple-http-server.js')
16 .listen(0)
17 .on('listening', () => {
18 const path = `/${type}/${len}/${chunks}/normal/${chunkedEnc}`;
19
20 bench.http({
21 path,
22 connections: c,
23 duration,
24 port: server.address().port,
25 }, () => {
26 server.close();
27 });
28 });
29}

Callers

nothing calls this directly

Calls 6

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

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…