I am running a function which has a lot of for-loop iterations. The function can not unfortunately be shared since it contains Intellectual Properties. Let me know if any specific programming nature of the code information can help! However, during the testing, the time measured by line_profiler seems to be twice when measured by time.time(). Are there cases where line profiler is not a good fit for measurement?
Line profiler adds some overhead to be able to measure the time for each line. The relative time are still correct, but it's up to you to know what you want to measure.
Hi,
I am running a function which has a lot of for-loop iterations. The function can not unfortunately be shared since it contains Intellectual Properties. Let me know if any specific programming nature of the code information can help! However, during the testing, the time measured by line_profiler seems to be twice when measured by time.time(). Are there cases where line profiler is not a good fit for measurement?
Thanks.