Re: [RFC/PATCH] Nonotify - A simplistic way to determine directory content changes



On Tue, 2004-06-01 at 22:52, nf wrote:
> Ok. Here is my nonotify benchmark:
> 
> first i created a list of all the directories in my /usr dir.
> 
> $ find /usr -type d > dirlist.txt
> 
> $ cat -n  tells me that it's 13625 directories.
> 
> then i run the attached program nonotify_bench.c with dirlist.txt. 
> The program calls stat() on every entry of dirlist.txt.
> 
> $ ./nonotify_bench dirlist.txt

After running find, all of these directories are cached. So again you
are only measuring system call time. Run this with a cold cache after a
reboot.

John



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]