Hey, ADF by default takes some time to create the dataflow cluster at run time. So that would be same irrespective of the number of rows in your file.
This might be the case why it took 5 mins.
similar thread:
https://stackoverflow.com/questions/63933355/azure-data-factory-transformation-pipeline-take-more-than-5-minutes-to-execute-w