I need to compare two functions in terms of elapsed time. At the moment I am using the following code:
system.time(f1())
system.time(f2())
And if I want to run the same functions multiple times I use:
system.time(replicate(10, f1()))
system.time(replicate(10, f2()))
The information that I get from system.time
is user, system and elapsed time.
The point is that I would know, if I replicate the function, also the min and max elapsed time of the single call.
How can I do?