Open
Description
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
Metadata
Metadata
Assignees
Labels
No labels