Skip to content

Conversation

meteorqz6
Copy link
Contributor

The previous cpu.sh script was minimal. This change makes it a more robust and safe utility for managing CPU governors during benchmarks.

The script now includes:

  • Checks to ensure it only runs on Linux with root privileges.
  • A reset command to restore the CPU governor to a dynamically detected system default.
  • A get command to check the current governor for all cores.
  • An improved usage guide and clearer feedback messages.

The previous cpu.sh script was minimal. This change makes it a more
robust and safe utility for managing CPU governors during benchmarks.

The script now includes:
- Checks to ensure it only runs on Linux with root privileges.
- A `reset` command to restore the CPU governor to a dynamically
  detected system default.
- A `get` command to check the current governor for all cores.
- An improved usage guide and clearer feedback messages.
@nodejs-github-bot
Copy link
Collaborator

Review requested:

  • @nodejs/performance

@nodejs-github-bot nodejs-github-bot added benchmark Issues and PRs related to the benchmark subsystem. performance Issues and PRs related to the performance of Node.js. labels Oct 8, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
benchmark Issues and PRs related to the benchmark subsystem. performance Issues and PRs related to the performance of Node.js.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants