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

Function main

benchmark/vm/context-global-proxy.js:15–21  ·  view source on GitHub ↗
({ n })

Source from the content-addressed store, hash-verified

13const context = vm.createContext({ foo: 1 });
14
15function main({ n }) {
16 bench.start();
17 for (let i = 0; i < n; i++) {
18 script.runInContext(context);
19 }
20 bench.end(n);
21}

Callers

nothing calls this directly

Calls 3

runInContextMethod · 0.80
startMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…