| Operation | CDB 2.5 | CDB 2.6 final | GDBM 1.23 | LevelDB (read only) | |-----------|---------|---------------|-----------|---------------------| | Sequential write (build) | 11.2 sec | 10.8 sec | 18.4 sec | 24.1 sec | | Random lookup (cache cold) | 0.8 µs | 0.8 µs | 2.3 µs | 1.9 µs | | Random lookup (hot cache) | 0.12 µs | 0.12 µs | 0.45 µs | 0.3 µs | | Memory footprint (idle) | ~8 KB | ~8 KB | 2.1 MB | 15 MB |
git clone https://github.com/mjt/cdb-library cd cdb-library git checkout v2.6-final make sudo make install Or, if you use CMake: cdb-library version 2.6 final
The cdb-library (often referred to as libcdb ) is the reference implementation, written in portable C. For over two decades, it has been the gold standard for reading and writing CDB files. | Operation | CDB 2