MCPcopy Create free account
hub / github.com/cortex-js/compute-engine / runCell

Function runCell

benchmarks/big-decimal/run-ops.mjs:40–45  ·  view source on GitHub ↗
(cmd, argsTemplate, prec)

Source from the content-addressed store, hash-verified

38];
39
40function 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//

Callers 1

run-ops.mjsFile · 0.85

Calls 2

mapMethod · 0.65
parseMethod · 0.65

Tested by

no test coverage detected