node/benchmark/child_process
Yagiz Nizipli c7eb83b46a
benchmark: add child_process async path baselines
Add micro-benchmarks that isolate the hot paths targeted by the
JavaScript-to-C++ migration of child_process:

- child-process-spawn-options.js scales the env vars and args that
  ProcessWrap::Spawn must marshal across the JS/C++ boundary.
- child-process-ipc-roundtrip.js measures IPC throughput for both the
  json and advanced serializers across a range of payload sizes.
- child-process-exec-maxbuffer.js measures stdout accumulation and
  maxBuffer handling in execFile().

These establish the baseline that later migration PRs are compared
against. There is no runtime behavior change.

Signed-off-by: Yagiz Nizipli <yagiz@nizipli.com>
PR-URL: https://github.com/nodejs/node/pull/63929
Reviewed-By: Filip Skokan <panva.ip@gmail.com>
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
2026-06-18 10:11:24 +02:00
..
child-process-exec-maxbuffer.js benchmark: add child_process async path baselines 2026-06-18 10:11:24 +02:00
child-process-exec-stdout.js
child-process-ipc-roundtrip.js benchmark: add child_process async path baselines 2026-06-18 10:11:24 +02:00
child-process-params.js
child-process-read-ipc.js
child-process-read.js
child-process-spawn-options.js benchmark: add child_process async path baselines 2026-06-18 10:11:24 +02:00
spawn-echo.js