4 ms·
FWIW, you don't have to be faster than the bear. Strictly speaking, "CPU bound" is not an adjective that can be used to describe tasks. It's one that describes
by mumblemumble 6y ago
FWIW, you don't have to be faster than the bear.
Strictly speaking, "CPU bound" is not an adjective that can be used to describe tasks. It's one that describes a particular program solving a particular task under a particular configuration. I've done no analysis on this myself, but I would be more than willing to believe that a CPU-bound job might be only a CPython-to-MyPy's worth of speedup away from instead being memory- or disk-bound.
It can be hard to tell the difference, too, since being stalled out while waiting on the memory controller shows up as CPU activity in htop.
- muxator 6y agoThe Intel vtune profiler [0] bolts on linux's perf subsystem and offers a very nice way of assessing if the cpu is stalled on memory (or cache) or os spending its time computing. I guess is a nice GUI on (nowadays) standard Linux tracing interfaces, but I really did not dig enough. If you are after deep profiling, you should definitely give it a try. My recollection is totally positive. [0] https://software.intel.com/content/www/us/en/develop/tools/oneapi/components/vtune-profiler.html https://software.intel.com/content/www/us/en/develop/tools/o...