benchmark: improve cpu.sh for safety and usability · nodejs/node@bb27766 · GitHub
Skip to content

Commit bb27766

Browse files
meteorqz6aduh95
authored andcommitted
benchmark: improve cpu.sh for safety and usability
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. PR-URL: #60162 Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
1 parent 2e55c6a commit bb27766

1 file changed

Lines changed: 54 additions & 2 deletions

File tree

benchmark/cpu.sh

Lines changed: 54 additions & 2 deletions

0 commit comments

Comments
 (0)