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

Function main

benchmark/async_hooks/async-resource-vs-destroy.js:171–186  ·  view source on GitHub ↗
({ type, asyncMethod, connections, duration, path })

Source from the content-addressed store, hash-verified

169};
170
171function main({ type, asyncMethod, connections, duration, path }) {
172 const { server, close } = types[type](asyncMethods[asyncMethod]);
173
174 server
175 .listen(common.PORT)
176 .on('listening', () => {
177
178 bench.http({
179 path,
180 connections,
181 duration,
182 }, () => {
183 close();
184 });
185 });
186}

Callers

nothing calls this directly

Calls 4

listenMethod · 0.80
httpMethod · 0.80
closeFunction · 0.70
onMethod · 0.45

Tested by

no test coverage detected