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

Function go

benchmark/child_process/child-process-spawn-options.js:32–39  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

30
31 let left = n;
32 const go = () => {
33 if (--left < 0)
34 return bench.end(n);
35 const child = spawn(command, args, options);
36 // The exit code is intentionally ignored: the child only exercises the
37 // option-marshaling path, it is not expected to do any useful work.
38 child.on('exit', go);
39 };
40
41 bench.start();
42 go();

Callers 1

mainFunction · 0.70

Calls 3

spawnFunction · 0.50
endMethod · 0.45
onMethod · 0.45

Tested by

no test coverage detected