Skip to content

Instantly share code, notes, and snippets.

@durzo
Created April 4, 2020 11:07
Show Gist options
  • Save durzo/3511aaa274e35187a0e0584a32d60b72 to your computer and use it in GitHub Desktop.
Save durzo/3511aaa274e35187a0e0584a32d60b72 to your computer and use it in GitHub Desktop.
KeyDB vs Amazon Elasticache Redis
Elasticache node is a single r5.large in non-clustered mode
KeyDB node is a single r5.large using 2 server-threads with saves disabled
Memtier test node is a single c5n.4xlarge
r5.large has 16GB memory and 2 vCPU
c5n.4xlarge 42GB memory and 16 vCPU
KeyDB is 10.1.8.245
Elasticache is devredis.larpr9.0001.use2.cache.amazonaws.com
# using 2 threads
root@ip-10-1-12-175:~# memtier_benchmark -s 10.1.8.245 --threads=2 --ratio=1:0 --hide-histogram
[RUN #1] Preparing benchmark client...
[RUN #1] Launching threads now...
[RUN #1 100%, 7 secs] 0 threads: 1000000 ops, 139705 (avg: 137005) ops/sec, 10.51MB/sec (avg: 10.31MB/sec), 0.71 (avg: 0.73) msec latency
2 Threads
50 Connections per thread
10000 Requests per client
ALL STATS
=========================================================================
Type Ops/sec Hits/sec Misses/sec Latency KB/sec
-------------------------------------------------------------------------
Sets 137309.00 --- --- 0.72800 10578.04
Gets 0.00 0.00 0.00 0.00000 0.00
Waits 0.00 --- --- 0.00000 ---
Totals 137309.00 0.00 0.00 0.72800 10578.04
root@ip-10-1-12-175:~# memtier_benchmark -s devredis.larpr9.0001.use2.cache.amazonaws.com --threads=2 --ratio=1:0 --hide-histogram
[RUN #1] Preparing benchmark client...
[RUN #1] Launching threads now...
[RUN #1 100%, 5 secs] 0 threads: 1000000 ops, 182461 (avg: 187395) ops/sec, 13.73MB/sec (avg: 14.10MB/sec), 0.55 (avg: 0.53) msec latency
2 Threads
50 Connections per thread
10000 Requests per client
ALL STATS
=========================================================================
Type Ops/sec Hits/sec Misses/sec Latency KB/sec
-------------------------------------------------------------------------
Sets 187633.00 --- --- 0.53200 14454.91
Gets 0.00 0.00 0.00 0.00000 0.00
Waits 0.00 --- --- 0.00000 ---
Totals 187633.00 0.00 0.00 0.53200 14454.91
# using 16 threads
root@ip-10-1-12-175:~# memtier_benchmark -s 10.1.8.245 --threads=16 --ratio=1:0 --hide-histogram
[RUN #1] Preparing benchmark client...
[RUN #1] Launching threads now...
[RUN #1 100%, 60 secs] 0 threads: 8000000 ops, 136519 (avg: 132737) ops/sec, 10.27MB/sec (avg: 9.99MB/sec), 5.86 (avg: 6.03) msec latency
16 Threads
50 Connections per thread
10000 Requests per client
ALL STATS
=========================================================================
Type Ops/sec Hits/sec Misses/sec Latency KB/sec
-------------------------------------------------------------------------
Sets 132748.44 --- --- 6.02500 10226.70
Gets 0.00 0.00 0.00 0.00000 0.00
Waits 0.00 --- --- 0.00000 ---
Totals 132748.44 0.00 0.00 6.02500 10226.70
root@ip-10-1-12-175:~# memtier_benchmark -s devredis.larpr9.0001.use2.cache.amazonaws.com --threads=16 --ratio=1:0 --hide-histogram
[RUN #1] Preparing benchmark client...
[RUN #1] Launching threads now...
[RUN #1 100%, 34 secs] 0 threads: 8000000 ops, 231930 (avg: 233034) ops/sec, 17.45MB/sec (avg: 17.53MB/sec), 3.46 (avg: 3.43) msec latency
16 Threads
50 Connections per thread
10000 Requests per client
ALL STATS
=========================================================================
Type Ops/sec Hits/sec Misses/sec Latency KB/sec
-------------------------------------------------------------------------
Sets 233027.45 --- --- 3.43100 17952.01
Gets 0.00 0.00 0.00 0.00000 0.00
Waits 0.00 --- --- 0.00000 ---
Totals 233027.45 0.00 0.00 3.43100 17952.01
# Mix of set/get with 2 threads
root@ip-10-1-12-175:~# memtier_benchmark -s 10.1.8.245 --threads=2 --hide-histogram
[RUN #1] Preparing benchmark client...
[RUN #1] Launching threads now...
[RUN #1 100%, 7 secs] 0 threads: 1000000 ops, 137207 (avg: 135088) ops/sec, 9.73MB/sec (avg: 9.58MB/sec), 0.73 (avg: 0.74) msec latency
2 Threads
50 Connections per thread
10000 Requests per client
ALL STATS
=========================================================================
Type Ops/sec Hits/sec Misses/sec Latency KB/sec
-------------------------------------------------------------------------
Sets 12311.91 --- --- 0.73900 948.23
Gets 122983.82 122983.82 0.00 0.73900 8874.20
Waits 0.00 --- --- 0.00000 ---
Totals 135295.73 122983.82 0.00 0.73900 9822.43
root@ip-10-1-12-175:~# memtier_benchmark -s devredis.larpr9.0001.use2.cache.amazonaws.com --threads=2 --hide-histogram
[RUN #1] Preparing benchmark client...
[RUN #1] Launching threads now...
[RUN #1 100%, 5 secs] 0 threads: 1000000 ops, 191072 (avg: 194850) ops/sec, 13.55MB/sec (avg: 13.81MB/sec), 0.52 (avg: 0.51) msec latency
2 Threads
50 Connections per thread
10000 Requests per client
ALL STATS
=========================================================================
Type Ops/sec Hits/sec Misses/sec Latency KB/sec
-------------------------------------------------------------------------
Sets 17537.95 --- --- 0.51200 1350.73
Gets 175186.74 175186.74 0.00 0.51200 12641.03
Waits 0.00 --- --- 0.00000 ---
Totals 192724.68 175186.74 0.00 0.51200 13991.76
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment