Some time ago, Darryl Okahata wrote...
|+
| "Kirill M. Katsnelson" <kkm(a)kis.ru> wrote:
|
| > Ok, I wrote a simple statometer. On my system (P133 64MB NT 4.0 SP3) it
| > averages to around 800 us per stat call.
|
| The cost is related to the number of files in the directory, at
| least under Win95. On my system (non-MMX P166, 512KB L2 cache, 64MB
| RAM), the program gives:
|
| 435 stats in 1590 ms, 3655 us per call
| 1215 stats in 9156 ms, 7536 us per call
|-
I see this growth on FAT volumes and cd roms, but not on NTFS volumes:
NTFS drive:
8 stats in 7 ms, 897 us per call
398 stats in 318 ms, 799 us per call
2481 stats in 2041 ms, 822 us per call
FAT drive:
9 stats in 8 ms, 922 us per call
54 stats in 43 ms, 802 us per call
679 stats in 678 ms, 999 us per call
1291 stats in 1595 ms, 1235 us per call
CD rom:
42 stats in 132 ms, 3154 us per call
789 stats in 5917 ms, 7500 us per call
Kirill