3 ms·
That won't work. When we say "constant-time code" what we really mean is "code whose running time is independent of its input". It won't really be constant due
by dfranke 8y ago
That won't work. When we say "constant-time code" what we really mean is "code whose running time is independent of its input". It won't really be constant due to factors like the OS scheduler and the initial state of the CPU's instruction cache.
What you really want is https://github.com/agl/ctgrind https://github.com/agl/ctgrind or something similar.