[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Python-Dev] Micro-benchmarks for function calls (PEP 576/579/580)

2018-07-11 9:19 GMT+02:00 Andrea Griffini <agriff at tin.it>:
> May be is something obvious but I find myself forgetting often about
> the fact that most modern CPUs can change speed (and energy consumption)
> depending on a moving average of CPU load.
> If you don't disable this "green" feature and the benchmarks are quick then
> the
> result can have huge variations depending on exactly when and if the CPU
> switches to fast mode.

If you use "sudo python3 -m perf system tune": Turbo Boost is disabled
and the CPU frequency is fixed.

More into at: