measuring the time it takes for each read line operation to execute with time.time(), code example
Example: python calculate time taken
import time
start = time.process_time()
# your code here
print(time.process_time() - start)
import time
start = time.process_time()
# your code here
print(time.process_time() - start)