Learning to benchmark and find the best function to select a subset of a dataframe

fun1 is the best because there is a little overhead in the DataFrames.subset function that @subset calls. This overhead matters because your data frame is so small. Try doing with a million observations and see what happens.

1 Like