2014年10月10日 星期五

012 python cProfile (part 1)


Using tool cProfile to take a look: how to measure and judge performance.

More detail reference: https://docs.python.org/2/library/profile.html
Example: https://github.com/vash-hsu/python/blob/master/python_test/brute_force.py