DEV Community

Discussion on: How to Performance Test Python Code: timeit, cProfile, and More

Collapse
 
j_mplourde profile image
Jean-Michel Plourde

You could make your timing fuction a decorator and wrap any function by adding the @my_decorator tag on top of the signature.

Collapse
 
ryanermita profile image
Ryan Ermita

this is a good idea. we did the same implementation in my previous work.