Skip to content

Commit 77609be

Browse files
authored
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 <rafael.nunu@hotmail.com> PR-URL: #66724 Reviewed-By: Gürgün Dayıoğlu <hey@gurgun.day> Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
1 parent 4096767 commit 77609be

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎benchmark/run.js‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ function runBenchmark(filename) {
5656
const cpuCore = cli.getCpuCoreSetting();
5757
let child;
5858
if (cpuCore !== null) {
59-
child = spawn('taskset', ['-c', cpuCore, 'node', scriptPath, ...args], {
59+
child = spawn('taskset', ['-c', cpuCore, process.execPath, scriptPath, ...args], {
6060
stdio: ['inherit', 'inherit', 'inherit', 'ipc'],
6161
});
6262
} else {

0 commit comments

Comments
 (0)