mirror of
https://github.com/astral-sh/ruff.git
synced 2025-10-02 22:54:42 +00:00
Don't forget to set your cpu to performance mode (#9700)
Since i just spent quite some time wondering why my benchmarks were the opposite of what they should be, a reminder to check your cpu governor. Setting mine to perf mode was crucial.
This commit is contained in:
parent
dd0ba16a79
commit
1ccd8354c1
1 changed files with 5 additions and 0 deletions
|
@ -387,6 +387,11 @@ We have several ways of benchmarking and profiling Ruff:
|
||||||
- Microbenchmarks which run the linter or the formatter on individual files. These run on pull requests.
|
- Microbenchmarks which run the linter or the formatter on individual files. These run on pull requests.
|
||||||
- Profiling the linter on either the microbenchmarks or entire projects
|
- Profiling the linter on either the microbenchmarks or entire projects
|
||||||
|
|
||||||
|
> \[!NOTE\]
|
||||||
|
> When running benchmarks, ensure that your CPU is otherwise idle (e.g., close any background
|
||||||
|
> applications, like web browsers). You may also want to switch your CPU to a "performance"
|
||||||
|
> mode, if it exists, especially when benchmarking short-lived processes.
|
||||||
|
|
||||||
### CPython Benchmark
|
### CPython Benchmark
|
||||||
|
|
||||||
First, clone [CPython](https://github.com/python/cpython). It's a large and diverse Python codebase,
|
First, clone [CPython](https://github.com/python/cpython). It's a large and diverse Python codebase,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue