[issue45261] Unreliable (?) results from timeit (cache issue?)

2021-09-22 Thread Tim Holy
New submission from Tim Holy : This is a lightly-edited reposting of https://stackoverflow.com/questions/69164027/unreliable-results-from-timeit-cache-issue I am interested in timing certain operations in numpy and skimage, but I'm occasionally seeing surprising transitions (not ent

[issue45261] Unreliable (?) results from timeit (cache issue?)

2021-09-22 Thread Tim Holy
Tim Holy added the comment: To make sure it's clear, it's not 0.08ns/function call, it's a loop and it comes out to 0.08ns/element. The purpose of quoting that number was to compare to the CPU clock interval, which on my machine is ~0.4ns. Any operation that's less t

[issue45261] Unreliable (?) results from timeit (cache issue?)

2021-09-22 Thread Tim Holy
Tim Holy added the comment: > And I hope that Tim Holy is interested too :-) Sure, I'll bite :-). On the topic of which statistic to show, I am a real fan of the histogram. As has been pointed out, timing in the real world can be pretty complicated, and I don't think it does a

[issue45261] Unreliable (?) results from timeit (cache issue?)

2021-09-26 Thread Tim Holy
Change by Tim Holy : -- resolution: not a bug -> ___ Python tracker <https://bugs.python.org/issue45261> ___ ___ Python-bugs-list mailing list Unsubscrib