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

2018-07-11 Thread Victor Stinner
2018-07-11 9:19 GMT+02:00 Andrea Griffini : > 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

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

2018-07-11 Thread Andrea Griffini
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 d

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

2018-07-10 Thread Victor Stinner
The pyperformance benchmark suite had micro benchmarks on function calls, but I removed them because they were sending the wrong signal. A function call by itself doesn't matter to compare two versions of CPython, or CPython to PyPy. It's also very hard to measure the cost of a function call when y

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

2018-07-09 Thread INADA Naoki
On Tue, Jul 10, 2018 at 7:23 AM Jeroen Demeyer wrote: > > Here is an initial version of a micro-benchmark for C function calling: > > https://github.com/jdemeyer/callbench > > I don't have results yet, since I'm struggling to find the right options > to "perf timeit" to get a stable result. If som