Benchmark a function by measuring its execution time N consecutive times, where N is chosen apropiatily based on one execution of the function.
See Implementation