FlashKV is a fast, memcached-compatible key-value store.
go install github.com/aethiopicuschan/flashkv@latest
Persistence of the store is possible with the following command.
save {path}
load {path}
To compare memcached and DragonFly, I ran a benchmark with the following command. Each application is executed using Docker on a MacBook Pro equipped with an M3 Max and 32GB of memory.
memtier_benchmark -s 127.0.0.1 -p 11211 --protocol=memcache_text -c 50 -n 100000 --threads=4
Application | QPS | Latency 99% | Latency 99.9% |
---|---|---|---|
FlashKV | 9173.54 | 4.447ms | 6.943ms |
Memcached | 9101.54 | 4.575ms | 8.031ms |
Dragonfly | 8164.26 | 5.023ms | 7.999ms |
Application | QPS | Latency 99% | Latency 99.9% |
---|---|---|---|
FlashKV | 91734.42 | 4.447ms | 6.847ms |
Memcached | 91014.43 | 4.543ms | 7.647ms |
Dragonfly | 81641.65 | 4.991ms | 7.871ms |
In every category, FlashKV achieved outstanding results.