I have an application that executes my foo()
function several times for each user session. There are 2 alternate algorithms that I can implement as foo()
function and my goal is to evaluate them based on execution delay.
The number of times foo()
is called per user session is variable but will not exceed 10000. Say delay values are:
Algo1: [ [12, 30, 20, 40, 24, 280], [13, 14, 15, 100], [20, 40] ]
Algo2: [ [1, 10, 5, 4, 150, 20], [14, 10, 20], [21, 33, 41, 79] ]
I'm contemplating the following options to pick the best algorithm.
- average from each session, and then evaluate cdf
- median from each session and then evaluate cdf
Which one is the best metric to pick the winner? Or is there another method that is better than both?