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

Function pummel

benchmark/http/client-request-body.js:48–61  ·  view source on GitHub ↗
(port)

Source from the content-addressed store, hash-verified

46 });
47
48 function pummel(port) {
49 options.port = port;
50 const req = http.request(options, (res) => {
51 nreqs++;
52 pummel(port); // Line up next request.
53 res.resume();
54 });
55 if (method === 'write') {
56 req.write(chunk, encoding);
57 req.end();
58 } else {
59 req.end(chunk, encoding);
60 }
61 }
62
63 function done() {
64 bench.end(nreqs);

Callers 1

mainFunction · 0.70

Calls 4

requestMethod · 0.65
resumeMethod · 0.65
writeMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…