Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
umvi
on Jan 18, 2020
|
parent
|
context
|
favorite
| on:
Measure code execution time accurately in Python
Isn't there a performance penalty when measuring with perf_counter for anything other than really short snippets of code?
pjc50
on Jan 18, 2020
[–]
Don't think so; at least on Windows it uses the optimal QueryPerformanceCounter API.
https://github.com/python/cpython/blob/master/Python/pytime....
Join us for
AI Startup School
this June 16-17 in San Francisco!
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: