trying some refactoring of maxrows
convert ts.value to number typed array
timetrials function