4 ms·
Isn't there a performance penalty when measuring with perf_counter for anything other than really short snippets of code?
by umvi 7y ago
Isn't there a performance penalty when measuring with perf_counter for anything other than really short snippets of code?
- pjc50 7y agoDon't think so; at least on Windows it uses the optimal QueryPerformanceCounter API. https://github.com/python/cpython/blob/master/Python/pytime.c https://github.com/python/cpython/blob/master/Python/pytime....