From 9b903683d5b7bc037de42479f3353b239000758e Mon Sep 17 00:00:00 2001 From: RafaelGSS Date: Wed, 14 Oct 2026 06:12:39 -0300 Subject: [PATCH] benchmark: use process.execPath when pinning CPUs in run.js The taskset path used the node from PATH, not the running binary. Signed-off-by: RafaelGSS --- benchmark/run.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/benchmark/run.js b/benchmark/run.js index 4948292437fd..455ddc4f2dfc 100644 --- a/benchmark/run.js +++ b/benchmark/run.js @@ -56,7 +56,7 @@ function runBenchmark(filename) { const cpuCore = cli.getCpuCoreSetting(); let child; if (cpuCore !== null) { - child = spawn('taskset', ['-c', cpuCore, 'node', scriptPath, ...args], { + child = spawn('taskset', ['-c', cpuCore, process.execPath, scriptPath, ...args], { stdio: ['inherit', 'inherit', 'inherit', 'ipc'], }); } else {