()
| 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(); |