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

Function main

benchmark/vm/create-context.js:16–24  ·  view source on GitHub ↗
({ n })

Source from the content-addressed store, hash-verified

14`);
15
16function main({ n }) {
17 bench.start();
18 let context;
19 for (let i = 0; i < n; i++) {
20 context = vm.createContext({ a: 'a' });
21 }
22 bench.end(n);
23 ctxFn.runInContext(context);
24}

Callers

nothing calls this directly

Calls 4

runInContextMethod · 0.80
startMethod · 0.45
createContextMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…