Re: How to get time (milisecond) of a python IO execution

2013-09-15 Thread Dave Angel
On 14/9/2013 22:59, Tal Bar-Or wrote: > Hi All > > i am trying to test measure some IO execution in milliseconds , but bit > confuse about best method achive that under windows 7 Measuring any performance can be tricky, and I/O in particular. Windows will cache the recently used file informatio

Re: How to get time (milisecond) of a python IO execution

2013-09-15 Thread Skip Montanaro
I'm not familiar with how Windows works, but I wouldn't be surprised if it caches directory information. (Unix systems certainly would.) You probably aren't really doing much actual I/O to get the size of a file after the first run. Also, you probably want to subtract the time it takes to execute a