r-experiments speed-tests Comparing efficiency looping through dataframe rows when vectorizing is not a good option