Tips¶
cProfile(implemented in C) is preferred overprofile(implemented in Python).The profiler modules (
cProfileandprofile) and tools based on them (e.g.,%prunand%%prunfor notebook) are designed to provide an execution profile for a given program, not for benchmarking purposes (for that, there istime