I'd like to compare the execution speed of two different methods (say foo
and bar
in some language like Ruby). I wish I was more knowledgeable in stats to tackle this problem...
I am tempted to compare the means of the time taken by foo
and bar
over a number of samples, but I'm thinking it might be more appropriate to compare the minimum values measured.
I imagine we can assume that, for a given platform, there is an absolute minimum of time required for the execution of foo
and bar
(let's call them min(foo)
and min(bar)
) and that what I'm really after is their ratio. I should be getting values always which are min(foo) + ∆_i
, where ∆_i >= 0
and has some known distribution? What would this distribution be?