Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/wvanlit/memkv

An in-memory key-value store, following the Redis protocol, built on F#
https://github.com/wvanlit/memkv

fsharp kv-store redis

Last synced: 13 days ago
JSON representation

An in-memory key-value store, following the Redis protocol, built on F#

Awesome Lists containing this project

README

        

# MemKV

_An in-memory key-value store, following the Redis protocol, built on F#._

Inspired by [Build Your Own Redis Server](https://codingchallenges.fyi/challenges/challenge-redis) by [Coding Challenges](https://codingchallenges.fyi/).

## Release Mode Benchmark

MemKV can run about 100.000+ operations per second when running locally.

```shell
redis-benchmark -t SET,GET,INCR -n 100000 -c 10
```

Output:

```
====== SET ======
100000 requests completed in 0.59 seconds
10 parallel clients
3 bytes payload
keep alive: 1
multi-thread: no

99.62% <= 0.1 milliseconds
99.70% <= 0.2 milliseconds
99.72% <= 0.3 milliseconds
99.83% <= 0.4 milliseconds
99.89% <= 0.5 milliseconds
99.92% <= 0.6 milliseconds
99.93% <= 0.7 milliseconds
99.94% <= 0.8 milliseconds
99.95% <= 0.9 milliseconds
99.96% <= 1.3 milliseconds
99.96% <= 1.4 milliseconds
99.97% <= 1.9 milliseconds
99.98% <= 2 milliseconds
99.99% <= 4 milliseconds
99.99% <= 5 milliseconds
100.00% <= 7 milliseconds
100.00% <= 8 milliseconds
100.00% <= 13 milliseconds
170357.75 requests per second

====== GET ======
100000 requests completed in 0.53 seconds
10 parallel clients
3 bytes payload
keep alive: 1
multi-thread: no

99.97% <= 1 milliseconds
100.00% <= 1 milliseconds
188323.91 requests per second

====== INCR ======
100000 requests completed in 0.54 seconds
10 parallel clients
3 bytes payload
keep alive: 1
multi-thread: no

100.00% <= 1 milliseconds
186915.88 requests per second
```