Benchmarks: Linux Registry (from the author)
Avi Alkalay
avi at alkalay.net
Sat Apr 17 02:16:32 EEST 2004
Oh, and I forgot to tell you:
The default behavior of the 'rg ls -R' command is to qsort() the keys,
which is a pretty heavy task for +1000 entries.
I guess that when you don't ask it to sort them (a simple switch when
using the API), "user" times bellow will be better.
Regards,
Avi
On Fri, 16 Apr 2004 20:00:13 -0300, "Avi Alkalay" <avi at unix.sh> said:
> Ok, so I runned some benchmarks tests.
> I loaded my registry using all conversion scripts provided in the
> registry package. They'll convert users, groups, passwords, fstab,
> inittab, XF8Config, kudzu's hwconf.
>
> I got 1010 keys.
>
>
>
>
>
> # will list all keys under 'system' namespace
> bash#
> bash# rg ls -R system | wc -l
> 1010
>
>
>
>
>
>
>
> # Will list (stat()) all keys under 'system' namespace
> bash#
> bash# time rg ls -R system > /dev/null
>
> real 0m0.088s
> user 0m0.050s
> sys 0m0.020s
>
>
>
>
>
>
>
> # Will list, read (open()) and parse all comments and
> # values for keys under 'system' namespace (1010 keys)
> bash#
> bash# time rg ls -Rv system > /dev/null
>
> real 0m0.211s
> user 0m0.140s
> sys 0m0.070s
>
>
>
> I made the tests in my old home system: Athlon 700MHz, 128MB RAM, ext3,
> Fedora Core 1, KDE 3.2 up and running and eating my memory, 1405
> bogomips, with my girldfriend using it simultaneously to hotmail her
> friends.
>
> Letting ext3's cache work more will improve this times.
>
> Regards,
> Avi
>
> --
> http://www.fastmail.fm - Access your email from home and the web
>
>
> -------------------------------------------------------
> This SF.Net email is sponsored by: IBM Linux Tutorials
> Free Linux tutorial presented by Daniel Robbins, President and CEO of
> GenToo technologies. Learn everything from fundamentals to system
> administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
> _______________________________________________
> Registry-list mailing list
> Registry-list at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/registry-list
--
http://www.fastmail.fm - IMAP accessible web-mail
More information about the xdg
mailing list