4 ms·
> shows you how fast your code is usually going to run Why would you think that? Maybe the "naive" implementation just shows how fast the easily removed hotsp
by igouy 3y ago
> shows you how fast your code is usually going to run
Why would you think that?
Maybe the "naive" implementation just shows how fast the easily removed hotspot in your code is going to run.
"Swap the order of two statements and see the Java code slow down … Swap globals for local variables in a function and see the Python code speed up. Swap language implementations and see the C code speed up."
https://benchmarksgame-team.pages.debian.net/benchmarksgame/performance/toosimple.html https://benchmarksgame-team.pages.debian.net/benchmarksgame/...