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

Function main

benchmark/async_hooks/promises.js:49–56  ·  view source on GitHub ↗
({ n, asyncHooks })

Source from the content-addressed store, hash-verified

47}
48
49function main({ n, asyncHooks }) {
50 if (hook) hook.disable();
51 tests[asyncHooks]();
52 bench.start();
53 run(n).then(() => {
54 bench.end(n);
55 });
56}

Callers

nothing calls this directly

Calls 5

runFunction · 0.70
disableMethod · 0.45
startMethod · 0.45
thenMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…