Add a description for CPU scaling in doc. PiperOrigin-RevId: 314596626
diff --git a/docs/benchmarking.md b/docs/benchmarking.md index 7037e45..1712fae 100644 --- a/docs/benchmarking.md +++ b/docs/benchmarking.md
@@ -98,7 +98,7 @@ BM_RunModule/process_time/real_time 11416 ns 14202 ns 61654 ``` -Remember to [restore cpu scaling](#cpu-configuration) when you're done. +Remember to [restore CPU scaling](#cpu-configuration) when you're done. ## Microbenchmarks @@ -129,12 +129,14 @@ Google benchmark provides some [instructions](https://github.com/google/benchmark#disabling-cpu-frequency-scaling): -Before benchmarking: +Turn off CPU scaling before benchmarking: ```shell $ sudo cpupower frequency-set --governor performance ``` +Restore CPU scaling after benchmarking: + ```shell $ sudo cpupower frequency-set --governor powersave ```