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

Function main

benchmark/misc/startup-core.js:62–72  ·  view source on GitHub ↗
({ n, script, mode })

Source from the content-addressed store, hash-verified

60}
61
62function main({ n, script, mode }) {
63 script = path.resolve(__dirname, '../../', `${script}`);
64 const warmup = 3;
65 const state = { n, finished: -warmup };
66 if (mode === 'worker') {
67 Worker = require('worker_threads').Worker;
68 spawnWorker(script, bench, state);
69 } else {
70 spawnProcess(script, bench, state);
71 }
72}

Callers

nothing calls this directly

Calls 4

spawnWorkerFunction · 0.70
spawnProcessFunction · 0.70
requireFunction · 0.50
resolveMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…