Function profiling should use time.time_ns
instead of time.time
#1246
Labels
enhancement
New feature or request
good first issue
Good for newcomers
help wanted
Extra attention is needed
refactor
This issue involves refactoring
Milestone
Description of your problem or feature request
The function profiling in
aesara/aesara/compile/function/types.py
Line 827 in 2dc0af2
time.time()
which has varying precision on different platforms.time.time_ns()
ortime.time_ns() / (10 ** 9)
for float seconds should be used for high-precision performance measurement.Further reading: https://stackoverflow.com/a/1938096
Versions and main components
The text was updated successfully, but these errors were encountered: