Skip to content

cdbtest.1

Manvendra Bhangui edited this page Feb 25, 2024 · 4 revisions

NAME

cdbstats - read cdb on stdin and print statistics

cdbtest - read cdb on stdin and test it.

DESCRIPTION

cdbstats reads a (seekable) constant database from its standard input and prints a few statistics:

  • records is the number of records in the database,

  • d0 is the number of records at distance 0 from their hash,

  • d1 is the number of records at distance 1 from their hash, etc.

cdbtest reads a (seekable) constant database from its standard input. For each record in the database, it double-checks that the record can be found by its key. It prints tallies in several categories:

  • found is the number of records found correctly by their keys.

  • different record is the number of records where a different record was found with the same key. This should not happen unless the database has multiple records with the same key.

  • bad length is the number of records found but with the wrong data length. This should never happen.

  • not found is the number of records not found. This should never happen.

  • untested is the number of records with keys longer than 1024 bytes. cdbtest doesn't bother testing these records.

SEE ALSO

cdbmake(1), cdbdump(1), cdbget(1),

Clone this wiki locally