4 ms·
This guide is a nice start, but it misses the easiest way to analyze Python performance -- using the %time, %timeit and %prun magic commands in IPython, the bet
by shoyer 13y ago
This guide is a nice start, but it misses the easiest way to analyze Python performance -- using the %time, %timeit and %prun magic commands in IPython, the better python command line interface (and which also has a killer web notebook interface).
The line and memory profiler modules he mentions can be installed as IPython extensions, too, and you don't even have to modify your code with decorators to make them work.