Hacker News new | ask | show | jobs
by acdha 579 days ago
You don’t “always” or even “often” have to make decisions like that unless all you’re writing are loops which run very simple computations a large number of times. Bubble sort is good for measuring the innate operation dispatch efficiency but it’s somewhat uncommon to have that many iterations doing so many simple operations so many times outside of the domains where people typically use things like numpy. If these benchmarks were doing more substantial operations the gap shrinks dramatically because more time is being spent in CPython’s native code or things like I/O.