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

Function doBench

benchmark/http/upgrade.js:38–51  ·  view source on GitHub ↗
(address, count, done)

Source from the content-addressed store, hash-verified

36}
37
38function doBench(address, count, done) {
39 if (count === 0) {
40 done();
41 return;
42 }
43
44 const conn = net.createConnection(address.port);
45 conn.write(reqData);
46 conn.resume();
47
48 conn.on('end', () => {
49 doBench(address, count - 1, done);
50 });
51}

Callers 1

mainFunction · 0.85

Calls 5

doneFunction · 0.70
resumeMethod · 0.65
createConnectionMethod · 0.45
writeMethod · 0.45
onMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…