({ n, script, nFiles, prefixPath })
| 46 | } |
| 47 | |
| 48 | function main({ n, script, nFiles, prefixPath }) { |
| 49 | script = path.resolve(__dirname, '../../', `${script}.js`); |
| 50 | const optionsWithScript = [ |
| 51 | '--permission', |
| 52 | `--allow-fs-read=${script}`, |
| 53 | ...mockFiles(nFiles, prefixPath).map((file) => '--allow-fs-read=' + file), |
| 54 | script, |
| 55 | ]; |
| 56 | const warmup = 3; |
| 57 | const state = { n, finished: -warmup }; |
| 58 | spawnProcess(optionsWithScript, bench, state); |
| 59 | } |
nothing calls this directly
no test coverage detected
searching dependent graphs…