MCPcopy Create free account
hub / github.com/nodejs/node / main

Function main

benchmark/async_hooks/async-local-storage-run.js:15–21  ·  view source on GitHub ↗
({ n })

Source from the content-addressed store, hash-verified

13}
14
15function main({ n }) {
16 const store = new AsyncLocalStorage();
17 bench.start();
18 run(store, n).then(() => {
19 bench.end(n);
20 });
21}

Callers

nothing calls this directly

Calls 4

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

Tested by

no test coverage detected