KDB is a fast key-value storage library built upon the LSM tree architecture.
- Keys and values are byte arrays of arbitrary size (utilizing ByteBuffers for manipulation).
- Data is stored in sorted order, by key.
- Basic Operations include
Get(key),Put(key), andRemove(key). Putrequests can be batched into single, atomic operations.
git clone https://github.com/ukpabik/kdb.gitKDB uses Apache Maven as its build system.
mvn clean
mvn testTo run benchmarks on your local machine, use this command below:
mvn exec:java- Key Size: 16 bytes each
- Value Size: 100 bytes each
- Total Operations: 1,000,000 unique records
| Operation | Latency | Throughput |
|---|---|---|
fillrandom |
9.000 micros/op | 27.0 MB/s |
overwrite |
9.800 micros/op | 26.2 MB/s |
readrandom |
25.400 micros/op | 11.4 MB/s |