How to get the stats comparing the performance of cdbhash against sfhash?

1 view
Skip to first unread message

KnowNothing

unread,
Mar 16, 2010, 8:28:12 PM3/16/10
to geoipdns-users
Hi everyone,

There is a stats comparing the performance of cdbhash against sfhash
in http://pub.mud.ro/wiki/Geoipdns and a message subjected with "IPMAP
bugs?" in this group. I'm wondering how to get this. Is there anyone
would like to tell me?

Thank you very much. :D

----------
Here are some stats comparing the performance of cdbhash against
sfhash:

cdbhash:

number of records: 310391
key min/avg/max length: 8/21/78
val min/avg/max length: 2/38/202
hash tables/entries/collisions: 256/620782/229865
hash table min/avg/max length: 2082/2425/2842
hash table distances:

d0: 80526 25%
d1: 40543 13%
d2: 39038 12%
d3: 38963 12%
d4: 38627 12%
d5: 13787 4%
d6: 8423 2%
d7: 7491 2%
d8: 6897 2%
d9: 6772 2%
>9: 29324 9%

sfhash:

number of records: 310391
key min/avg/max length: 8/21/78
val min/avg/max length: 2/38/202
hash tables/entries/collisions: 256/620782/229648
hash table min/avg/max length: 2084/2425/2920
hash table distances:

d0: 80743 26%
d1: 40509 13%
d2: 39108 12%
d3: 39001 12%
d4: 38871 12%
d5: 13825 4%
d6: 8562 2%
d7: 7507 2%
d8: 6871 2%
d9: 6734 2%
>9: 28660 9%
----------

cia

unread,
Mar 17, 2010, 5:48:45 AM3/17/10
to geoipdns-users
use tinycdb package, command cdb -s
with geoipdns you can select at compile time the type of hashfunc,
after building some data with the choosen hashfunc use cdb -s on the
cdb file and you can see the stats.
ofcourse you will have to build geo twice :)


On Mar 17, 2:28 am, KnowNothing <changtaili...@gmail.com> wrote:
> Hi everyone,
>
> There is a stats comparing the performance of cdbhash against sfhash

> inhttp://pub.mud.ro/wiki/Geoipdnsand a message subjected with "IPMAP

KnowNothing

unread,
Mar 19, 2010, 9:39:41 AM3/19/10
to geoipdns-users
I got it!

Thank you very much. And I'll do some stats and post it here
someday. :D

Reply all
Reply to author
Forward
0 new messages