9 ms·
Can you suggest any resources for learning about profiling in python? I'm just getting into scientific computing with numpy,scipy,etc. and I'd be interested to
by thronemonkey 14y ago
Can you suggest any resources for learning about profiling in python? I'm just getting into scientific computing with numpy,scipy,etc. and I'd be interested to learn more.
- blaze33 14y agoI used timeit (http://docs.python.org/2/library/timeit.html http://docs.python.org/2/library/timeit.html), cProfile (http://docs.python.org/2/library/profile.html http://docs.python.org/2/library/profile.html) and pycallgraph. There is a nice Q&A on this subject: http://stackoverflow.com/q/582336/343834 http://stackoverflow.com/q/582336/343834.
- Thrymr 14y agoIan Ozsvald has a nice tutorial on high performance python, from profiling through cython and some multiprocessing and parallel techniques. You can find video and other materials here: http://ianozsvald.com/2012/03/18/high-performance-python-1-from-pycon-2012-slides-video-src/ http://ianozsvald.com/2012/03/18/high-performance-python-1-f...