I have 3 functions that do the same thing but with a different implementation and I want to check which of them is faster.
I know that there is a timer library, but my concern is that if one of them is linear and the other one is exponential I have to make a few tests with different inputs to find the answer. For instance, if the input is a list, maybe the function A will be faster for list with length 20, but function B for length 1000.
So, I was wondering if there is any way to do this automatically. I could create a script to do this and maybe with a few plots with the time in base of the inputs length, but I don't want to invent the wheel again, if there is a library that can do this for me.