child_process takes ~20ms to run a script with execSync. If this can be optimized further, that would be great.
Use case
I have ported some bash scripts to Node.js to make them more easily cross-platform. But sometimes that means using child_process to call out to other programs (e.g. git). These calls can add up and make me think twice about the performance tradeoff.
Benchmark
Here's a benchmark: https://github.com/mehulkar/bench-childprocess
Ref
child_process takes ~20ms to run a script with
execSync. If this can be optimized further, that would be great.Use case
I have ported some bash scripts to Node.js to make them more easily cross-platform. But sometimes that means using child_process to call out to other programs (e.g.
git). These calls can add up and make me think twice about the performance tradeoff.Benchmark
Here's a benchmark: https://github.com/mehulkar/bench-childprocess
Ref