Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #54186
| References | <8baf5318-f82c-417d-9a1d-956bf9cb3856@googlegroups.com> |
|---|---|
| Date | 2013-09-15 05:52 -0500 |
| Subject | Re: How to get time (milisecond) of a python IO execution |
| From | Skip Montanaro <skip@pobox.com> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.386.1379242355.5461.python-list@python.org> (permalink) |
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 no-op function:
def noop(): pass
to eliminate the overhead of calling your main function.
Skip
Back to comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
How to get time (milisecond) of a python IO execution Tal Bar-Or <tbaror@gmail.com> - 2013-09-14 19:59 -0700 Re: How to get time (milisecond) of a python IO execution Skip Montanaro <skip@pobox.com> - 2013-09-15 05:52 -0500 Re: How to get time (milisecond) of a python IO execution Dave Angel <davea@davea.name> - 2013-09-15 11:31 +0000
csiph-web