Skip to content

Support starting benchmark tasks using taskset on LinuxΒ #52233

@mcollina

Description

@mcollina

Our benchmark tasks must be modified to add a taskset command to pin the CPU the benchmark will run on. This is needed because now CPUs come with performance cores and energy efficient cores, making it harder to have reliable results otherwise.

It's also needed by nodejs/build#3657.

const child = fork(path.resolve(__dirname, job.filename), cli.optional.set, {
execPath: cli.optional[job.binary],
});

https://github.com/nodejs/node/blob/main/benchmark/run.js#L43-L46

cc @nodejs/performance

Metadata

Metadata

Assignees

No one assigned

    Labels

    good first issueIssues that are suitable for first-time contributors.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions