Skip to content

Instantly share code, notes, and snippets.

@toritori0318
Last active January 9, 2018 16:05
Show Gist options
  • Save toritori0318/857375912eb052edd210e3a678cf7573 to your computer and use it in GitHub Desktop.
Save toritori0318/857375912eb052edd210e3a678cf7573 to your computer and use it in GitHub Desktop.
redis-benchmark: 4.9.75-25.55.amzn1.x86_64: c4.large: redis-2.8.24
$ redis-cli flushall
OK
##############################################################################################
$ redis-benchmark
====== PING_INLINE ======
100000 requests completed in 0.93 seconds
50 parallel clients
3 bytes payload
keep alive: 1
100.00% <= 0 milliseconds
107991.36 requests per second
====== PING_BULK ======
100000 requests completed in 0.93 seconds
50 parallel clients
3 bytes payload
keep alive: 1
100.00% <= 0 milliseconds
107642.62 requests per second
====== SET ======
100000 requests completed in 0.94 seconds
50 parallel clients
3 bytes payload
keep alive: 1
100.00% <= 0 milliseconds
106951.88 requests per second
====== GET ======
100000 requests completed in 0.94 seconds
50 parallel clients
3 bytes payload
keep alive: 1
100.00% <= 0 milliseconds
106269.93 requests per second
====== INCR ======
100000 requests completed in 0.94 seconds
50 parallel clients
3 bytes payload
keep alive: 1
100.00% <= 0 milliseconds
106269.93 requests per second
====== LPUSH ======
100000 requests completed in 0.94 seconds
50 parallel clients
3 bytes payload
keep alive: 1
100.00% <= 0 milliseconds
106044.54 requests per second
====== LPOP ======
100000 requests completed in 0.94 seconds
50 parallel clients
3 bytes payload
keep alive: 1
100.00% <= 0 milliseconds
106496.27 requests per second
====== SADD ======
100000 requests completed in 0.94 seconds
50 parallel clients
3 bytes payload
keep alive: 1
100.00% <= 0 milliseconds
106609.80 requests per second
====== SPOP ======
100000 requests completed in 0.92 seconds
50 parallel clients
3 bytes payload
keep alive: 1
100.00% <= 0 milliseconds
108225.10 requests per second
====== LPUSH (needed to benchmark LRANGE) ======
100000 requests completed in 0.94 seconds
50 parallel clients
3 bytes payload
keep alive: 1
100.00% <= 0 milliseconds
106609.80 requests per second
====== LRANGE_100 (first 100 elements) ======
100000 requests completed in 2.92 seconds
50 parallel clients
3 bytes payload
keep alive: 1
99.79% <= 1 milliseconds
100.00% <= 1 milliseconds
34188.04 requests per second
====== LRANGE_300 (first 300 elements) ======
100000 requests completed in 7.43 seconds
50 parallel clients
3 bytes payload
keep alive: 1
0.04% <= 1 milliseconds
87.34% <= 2 milliseconds
100.00% <= 2 milliseconds
13462.57 requests per second
====== LRANGE_500 (first 450 elements) ======
100000 requests completed in 9.43 seconds
50 parallel clients
3 bytes payload
keep alive: 1
0.01% <= 1 milliseconds
2.83% <= 2 milliseconds
99.98% <= 3 milliseconds
100.00% <= 3 milliseconds
10604.45 requests per second
====== LRANGE_600 (first 600 elements) ======
100000 requests completed in 11.24 seconds
50 parallel clients
3 bytes payload
keep alive: 1
0.01% <= 1 milliseconds
0.11% <= 2 milliseconds
91.07% <= 3 milliseconds
100.00% <= 4 milliseconds
100.00% <= 4 milliseconds
8892.84 requests per second
====== MSET (10 keys) ======
100000 requests completed in 1.39 seconds
50 parallel clients
3 bytes payload
keep alive: 1
97.33% <= 1 milliseconds
100.00% <= 1 milliseconds
71736.01 requests per second
##############################################################################################
$ redis-benchmark -t set -n 1000000 -r 100000000
====== SET ======
1000000 requests completed in 9.88 seconds
50 parallel clients
3 bytes payload
keep alive: 1
99.86% <= 1 milliseconds
99.90% <= 2 milliseconds
100.00% <= 2 milliseconds
101214.57 requests per second
##############################################################################################
$ redis-benchmark -r 1000000 -n 1000000 lpush mylist __rand_int__
====== lpush mylist __rand_int__ ======
1000000 requests completed in 9.34 seconds
50 parallel clients
3 bytes payload
keep alive: 1
100.00% <= 0 milliseconds
107123.73 requests per second
##############################################################################################
$ redis-benchmark -d 1024 -n 30000 -r 30000 -c 100 -q
PING_INLINE: 103092.78 requests per second
PING_BULK: 101694.92 requests per second
SET: 98039.22 requests per second
GET: 97402.60 requests per second
INCR: 103448.28 requests per second
LPUSH: 100334.45 requests per second
LPOP: 97087.38 requests per second
SADD: 102739.73 requests per second
SPOP: 101351.35 requests per second
LPUSH (needed to benchmark LRANGE): 100671.14 requests per second
LRANGE_100 (first 100 elements): 8949.88 requests per second
LRANGE_300 (first 300 elements): 2767.02 requests per second
LRANGE_500 (first 450 elements): 1395.22 requests per second
LRANGE_600 (first 600 elements): 1064.43 requests per second
MSET (10 keys): 38022.82 requests per second
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment