nx/tools/benchmark/benchmark.js

7 lines
175 B
JavaScript

const { exec } = require('child_process');
for (let i = 0; i < 3; i++) {
const cp = exec(`node ./tools/benchmark/worker.js test_${i}`);
cp.stdout.pipe(process.stdout);
}