pandas dataframe: loc vs query performance

I have 2 dataframes in python that I would like to query for data. DF1: 4M records x 3 columns. The query function seems more efficient than the loc function. DF2: 2K records x 6 columns. The loc