(cmd, argsTemplate, prec)
| 38 | ]; |
| 39 | |
| 40 | function runCell(cmd, argsTemplate, prec) { |
| 41 | const args = argsTemplate.map((a) => (a === null ? String(prec) : a)); |
| 42 | const bin = cmd === 'node' ? process.execPath : cmd; |
| 43 | const out = execFileSync(bin, args, { encoding: 'utf8', maxBuffer: 1 << 24 }); |
| 44 | return JSON.parse(out.trim().split('\n').pop()); |
| 45 | } |
| 46 | |
| 47 | // results[col][prec][op] = perOp ns |
| 48 | // |
no test coverage detected