cppalliance / NuDB

NuDB: A fast key/value insert-only database for SSD drives in C++11
Boost Software License 1.0
384 stars 59 forks source link

any info on tps for NuDB? #64

Open Outstep opened 6 years ago

Outstep commented 6 years ago

Hello,

I am new to NuDB and am research super high-performance key-value db for a blockchain project.

I would like to get some information on the TPS speeds that NuDB is capable of handling, if possible.

Thanks and have a great day

vinniefalco commented 6 years ago

The performance greatly depends on the workload and hardware. That said, NuDB reaches the theoretical maximum of performance for a given SSD drive. It is simply not possible to perform significantly better. Looking up a key is O(1) and retrieving a value is O(N) where N is the size of the value. Memory usage is constant, and these performance numbers are independent of the size of the database. In order to get the best performance you have to make sure that the block size matches the block size of the underlying device.

I suggest you run your own benchmarks for your use-case.