Putting KeyDB to the Test!
KeyDB is multithreaded on several levels and seeing the differences becomes apparent when using a multithreaded benchmarking tool. When you use memtier the differences between Redis and KeyDB's performance starts to become very apparent.
You can visit memtiers github rep or follow these quick steps to get up and running on typical Ubuntu/Debian:
Specify # of threads when you run keydb-server with "server-threads"
keydb-server --server-threads 4
You can also specify memtiers threads (default=4)
--threads=NUMBER. Ensure your benchmarking setup (keydb threads + memtier threads) is reflective of your hardware.
memtier_benchmark --help to see options for your testing such as pipelining, data size, etc. for example
memtier_benchmark -s 172.31.38.149 -p 6379 --hide-histogram --requests=20000 --clients=100 --pipeline=20 --data-size=128
Memtier has a lot of options you can configure to hopefully predict what your application might experience at high loads. If you are comparing with Redis, make sure you use the same machines, and same benchmark setup.
This is to get you started for connecting. Once you're able to run it, start tuning settings. Ideally you run memtier on a different machine to go through NICs and see more realistic behavior. Below case running through loopback adapter after programs installed:
If you have questions regarding testing, or if you would like to share your results, we would be happy to hear from you. Please reach out to firstname.lastname@example.org