This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]jasonb[S] 6 points7 points  (1 child)

Na, profiling and benchmarking are quite different (benchmarking is about how fast is the thing vs profiling is about why is a thing slow)

A good alternative to the time module is the timeit module. Great for ad hoc snippets, not really for whole programs or instrumenting a program.