redis介绍
Redis是一个Key-Value存储系统。和Memcached类似,它支持存储的value类型相对更多,包括string(字符串)、list(链表)、set(集合)和zset(有序集合)。这些数据类型都支持push/pop、add/remove及取交集并集和差集及更丰富的操作,而且这些操作都是原子性的。在此基础上,Redis支持各种不同方式的排序。与memcached一样,为了保证效率,数据都是缓存在内存中。区别的是Redis会周期性的把更新的数据写入磁盘或者把修改操作写入追加的记录文件,并且在此基础上实现了master-slave(主从)同步。
1、下载
下载地址
这个是稳定版的,也可以去官网下载最新的。
2、解压
进入压缩包所在的文件夹,解压。
tar -zxvf redis-stable.tar.gz
3、编译
cd redis-stable
make MALLOC=libc
cd src
make install
注意,编译是需要gcc的,如果没有需要安装gcc的
4、测试
make test
下面是部分测试结果
Execution time of different units:
0 seconds - unit/printver
0 seconds - unit/auth
1 seconds - unit/quit
1 seconds - unit/scan
1 seconds - unit/protocol
2 seconds - unit/multi
6 seconds - unit/type/list-2
8 seconds - unit/type/hash
10 seconds - unit/expire
2 seconds - integration/rdb
12 seconds - unit/other
4 seconds - integration/aof
0 seconds - integration/logging
1 seconds - unit/pubsub
1 seconds - integration/convert-zipmap-hash-on-load
1 seconds - unit/slowlog
1 seconds - unit/introspection
14 seconds - unit/type/list
15 seconds - unit/type/set
1 seconds - unit/limits
4 seconds - unit/scripting
18 seconds - unit/sort
18 seconds - unit/type/zset
6 seconds - unit/maxmemory
6 seconds - unit/bitops
21 seconds - unit/dump
22 seconds - integration/replication-2
24 seconds - unit/basic
26 seconds - unit/type/list-3
12 seconds - unit/memefficiency
16 seconds - unit/hyperloglog
33 seconds - integration/replication-3
34 seconds - integration/replication-4
44 seconds - unit/aofrw
35 seconds - unit/obuf-limits
43 seconds - integration/replication-psync
71 seconds - integration/replication
\o/ All tests passed without errors!
5、启动redis服务
redis-server –port 6397 &
结果见下
[root@localhost redis-stable]# redis-server --port 6397 &
[1] 25138
[root@localhost redis-stable]# [25138] 25 Jul 21:44:54.373 * Max number of open files set to 10032
_._
_.-``__ ''-._
_.-`` `. `_. ''-._ Redis 2.6.9 (00000000/0) 64 bit
.-`` .-```. ```\/ _.,_ ''-._
( ' , .-` | `, ) Running in stand alone mode
|`-._`-...-` __...-.``-._|'` _.-'| Port: 6397
| `-._ `._ / _.-' | PID: 25138
`-._ `-._ `-./ _.-' _.-'
|`-._`-._ `-.__.-' _.-'_.-'|
| `-._`-._ _.-'_.-' | http://redis.io
`-._ `-._`-.__.-'_.-' _.-'
|`-._`-._ `-.__.-' _.-'_.-'|
| `-._`-._ _.-'_.-' |
`-._ `-._`-.__.-'_.-' _.-'
`-._ `-.__.-' _.-'
`-._ _.-'
`-.__.-'
[25138] 25 Jul 21:44:54.381 # Server started, Redis version 2.6.9
[25138] 25 Jul 21:44:54.381 # WARNING overcommit_memory is set to 0! Background save may fail under low memory condition. To fix this issue add 'vm.overcommit_memory = 1' to /etc/sysctl.conf and then reboot or run the command 'sysctl vm.overcommit_memory=1' for this to take effect.
[25138] 25 Jul 21:44:54.381 * The server is now ready to accept connections on port 6397
6、
cd /usr/local/bin #查看是否有下面文件,如果没有,拷贝下面文件到/usr/local/bin目录
ln -s /usr/local/redis/redis.conf /etc/redis.conf #添加配置文件软连接
vi /etc/redis.conf #编辑
daemonize yes #设置后台启动redis
:wq! #保存退出
redis-server /etc/redis.conf #启动redis服务
redis-server /etc/redis.conf #启动redis服务
redis-cli shutdown #关闭redis
vi /etc/sysctl.conf #编辑,在最后一行添加下面代码
vm.overcommit_memory = 1
:wq! #保存退出
sysctl -p #使设置立即生效
7、设置redis开机启动
vi /etc/init.d/redis #编辑,添加以下代码
#!/bin/sh
# chkconfig: 2345 90 10
# description: Redis is a persistent key-value database
# redis Startup script for redis processes
# processname: redis
redis_path="/usr/local/bin/redis-server"
redis_conf="/etc/redis.conf"
redis_pid="/var/run/redis.pid"
# Source function library.
. /etc/rc.d/init.d/functions
[ -x $redis_path ] || exit 0
RETVAL=0
prog="redis"
# Start daemons.
start() {
if [ -e $redis_pid -a ! -z $redis_pid ];then
echo $prog" already running...."
exit 1
fi
echo -n $"Starting $prog "
# Single instance for all caches
$redis_path $redis_conf
RETVAL=$?
[ $RETVAL -eq 0 ] && {
touch /var/lock/subsys/$prog
success $"$prog"
}
echo
return $RETVAL
}
# Stop daemons.
stop() {
echo -n $"Stopping $prog "
killproc -d 10 $redis_path
echo
[ $RETVAL = 0 ] && rm -f $redis_pid /var/lock/subsys/$prog
RETVAL=$?
return $RETVAL
}
# See how we were called.
case "$1" in
start)
start;;
stop)
stop;;
status)
status $prog
RETVAL=$?;;
restart)
stop
start;;
condrestart)
if test "x`pidof redis`" != x; then
stop
start
fi;;
*)
echo $"Usage: $0 {start|stop|status|restart|condrestart}"
exit 1
esac
exit $RETVAL
:wq! #保存退出
chmod 755 /etc/init.d/redis #添加脚本执行权限
chkconfig –add redis #添加开启启动
chkconfig –level 2345 redis on #设置启动级别
chkconfig –list redis #查看启动级别
service redis restart #重新启动redis
8、设置redis配置文件参数
mkdir -p /usr/local/redis/var #创建redis数据库存放目录
vi /etc/redis.conf #编辑
daemonize yes #以后台daemon方式运行redis
pidfile "/var/run/redis.pid" #redis以后台运行,默认pid文件路径/var/run/redis.pid
port 6379 #默认端口
bind 127.0.0.1 #默认绑定本机所有ip地址,为了安全,可以只监听内网ip
timeout 300 #客户端超时设置,单位为秒
loglevel verbose #设置日志级别,支持四个级别:debug、notice、verbose、warning
logfile stdout #日志记录方式,默认为标准输出,logs不写文件,输出到空设备/deb/null
logfile "/usr/local/redis/var/redis.log" #可以指定日志文件路径
databases 16 #开启数据库的数量
save 900 1
save 300 10
save 60 10000
创建本地数据库快照,格式:save * *
900秒内,执行1次写操作
300秒内,执行10次写操作
60秒内,执行10000次写操作
rdbcompression yes #启用数据库lzf压缩,也可以设置为no
dbfilename dump.rdb #本地快照数据库名称
dir "/usr/local/redis/var/" #本地快照数据库存放目录
requirepass 123456 #设置redis数据库连接密码
maxclients 10000 #同一时间最大客户端连接数,0为无限制
maxmemory 1024MB #设定redis最大使用内存,值要小于物理内存,必须设置
appendonly yes #开启日志记录,相当于MySQL的binlog
appendfilename "appendonly.aof" #日志文件名,注意:不是目录路径
appendfsync everysec #每秒执行同步,还有两个参数always、no一般设置为everysec,相当于MySQL事物日志的写方式
:wq! #保存退出
service redis restart #重启
[root@localhost redis-stable]# service redis restart
Restarting redis (via systemctl): [ OK ]
[root@localhost sakila]# redis-cli -a 123456 # 连接数据库
redis 127.0.0.1:6379>
出现上面表示连接数据库成功
redis 127.0.0.1:6379> set name sakila
OK
redis 127.0.0.1:6379> get name
"sakila"
redis 127.0.0.1:6379>
redis 127.0.0.1:6379> exit #退出数据库控制台
redis-benchmark -h 127.0.0.1 -p 6379 -c 1000 -n 100000 #1000个并发连接,100000个请求,测试127.0.0.1端口为6379的redis服务器性能
下面是测试结果
[root@localhost sakila]# redis-benchmark -h 127.0.0.1 -p 6379 -c 1000 -n 100000
====== PING_INLINE ======
100000 requests completed in 1.10 seconds
1000 parallel clients
3 bytes payload
keep alive: 1
0.00% <= 4 milliseconds
30.41% <= 5 milliseconds
87.07% <= 6 milliseconds
95.53% <= 7 milliseconds
97.66% <= 8 milliseconds
98.76% <= 9 milliseconds
99.36% <= 10 milliseconds
99.47% <= 11 milliseconds
99.60% <= 12 milliseconds
99.71% <= 13 milliseconds
99.79% <= 14 milliseconds
99.88% <= 15 milliseconds
99.97% <= 16 milliseconds
100.00% <= 16 milliseconds
91157.70 requests per second
====== PING_BULK ======
100000 requests completed in 1.09 seconds
1000 parallel clients
3 bytes payload
keep alive: 1
0.00% <= 4 milliseconds
34.56% <= 5 milliseconds
81.39% <= 6 milliseconds
94.76% <= 7 milliseconds
97.76% <= 8 milliseconds
98.79% <= 9 milliseconds
99.30% <= 10 milliseconds
99.44% <= 11 milliseconds
99.56% <= 12 milliseconds
99.65% <= 13 milliseconds
99.73% <= 14 milliseconds
99.81% <= 15 milliseconds
99.89% <= 16 milliseconds
99.97% <= 17 milliseconds
100.00% <= 17 milliseconds
91575.09 requests per second
====== SET ======
100000 requests completed in 1.09 seconds
1000 parallel clients
3 bytes payload
keep alive: 1
0.00% <= 4 milliseconds
30.60% <= 5 milliseconds
87.98% <= 6 milliseconds
95.35% <= 7 milliseconds
97.64% <= 8 milliseconds
98.88% <= 9 milliseconds
99.31% <= 10 milliseconds
99.40% <= 11 milliseconds
99.54% <= 12 milliseconds
99.68% <= 13 milliseconds
99.80% <= 14 milliseconds
99.89% <= 15 milliseconds
99.97% <= 16 milliseconds
100.00% <= 16 milliseconds
91911.76 requests per second
====== GET ======
100000 requests completed in 1.08 seconds
1000 parallel clients
3 bytes payload
keep alive: 1
0.00% <= 4 milliseconds
24.10% <= 5 milliseconds
87.06% <= 6 milliseconds
95.76% <= 7 milliseconds
97.90% <= 8 milliseconds
99.00% <= 9 milliseconds
99.38% <= 10 milliseconds
99.53% <= 11 milliseconds
99.64% <= 12 milliseconds
99.73% <= 13 milliseconds
99.81% <= 14 milliseconds
99.90% <= 15 milliseconds
99.98% <= 16 milliseconds
100.00% <= 16 milliseconds
92421.44 requests per second
====== INCR ======
100000 requests completed in 1.05 seconds
1000 parallel clients
3 bytes payload
keep alive: 1
0.00% <= 4 milliseconds
39.05% <= 5 milliseconds
90.91% <= 6 milliseconds
98.21% <= 7 milliseconds
99.44% <= 8 milliseconds
99.55% <= 9 milliseconds
99.65% <= 10 milliseconds
99.75% <= 11 milliseconds
99.85% <= 12 milliseconds
99.96% <= 13 milliseconds
100.00% <= 13 milliseconds
94786.73 requests per second
====== LPUSH ======
100000 requests completed in 1.09 seconds
1000 parallel clients
3 bytes payload
keep alive: 1
0.00% <= 4 milliseconds
30.32% <= 5 milliseconds
89.40% <= 6 milliseconds
95.76% <= 7 milliseconds
97.69% <= 8 milliseconds
98.74% <= 9 milliseconds
99.23% <= 10 milliseconds
99.37% <= 11 milliseconds
99.49% <= 12 milliseconds
99.57% <= 13 milliseconds
99.73% <= 14 milliseconds
99.82% <= 15 milliseconds
99.90% <= 16 milliseconds
99.98% <= 17 milliseconds
100.00% <= 17 milliseconds
91575.09 requests per second
====== LPOP ======
100000 requests completed in 1.10 seconds
1000 parallel clients
3 bytes payload
keep alive: 1
0.00% <= 4 milliseconds
31.64% <= 5 milliseconds
85.99% <= 6 milliseconds
94.91% <= 7 milliseconds
97.26% <= 8 milliseconds
98.46% <= 9 milliseconds
99.29% <= 10 milliseconds
99.50% <= 11 milliseconds
99.60% <= 12 milliseconds
99.68% <= 13 milliseconds
99.76% <= 14 milliseconds
99.84% <= 15 milliseconds
99.92% <= 16 milliseconds
100.00% <= 17 milliseconds
100.00% <= 17 milliseconds
91324.20 requests per second
====== SADD ======
100000 requests completed in 1.09 seconds
1000 parallel clients
3 bytes payload
keep alive: 1
0.00% <= 4 milliseconds
26.64% <= 5 milliseconds
87.99% <= 6 milliseconds
95.69% <= 7 milliseconds
97.93% <= 8 milliseconds
98.72% <= 9 milliseconds
99.44% <= 10 milliseconds
99.52% <= 11 milliseconds
99.60% <= 12 milliseconds
99.68% <= 13 milliseconds
99.76% <= 14 milliseconds
99.84% <= 15 milliseconds
99.92% <= 16 milliseconds
100.00% <= 16 milliseconds
91491.30 requests per second
====== SPOP ======
100000 requests completed in 1.08 seconds
1000 parallel clients
3 bytes payload
keep alive: 1
0.00% <= 3 milliseconds
5.04% <= 4 milliseconds
37.43% <= 5 milliseconds
76.67% <= 6 milliseconds
93.92% <= 7 milliseconds
97.47% <= 8 milliseconds
98.67% <= 9 milliseconds
99.42% <= 10 milliseconds
99.51% <= 11 milliseconds
99.59% <= 12 milliseconds
99.67% <= 13 milliseconds
99.75% <= 14 milliseconds
99.83% <= 15 milliseconds
99.91% <= 16 milliseconds
99.99% <= 17 milliseconds
100.00% <= 17 milliseconds
92250.92 requests per second
====== LPUSH (needed to benchmark LRANGE) ======
100000 requests completed in 1.10 seconds
1000 parallel clients
3 bytes payload
keep alive: 1
0.00% <= 4 milliseconds
20.50% <= 5 milliseconds
85.95% <= 6 milliseconds
95.01% <= 7 milliseconds
97.89% <= 8 milliseconds
99.04% <= 9 milliseconds
99.46% <= 10 milliseconds
99.54% <= 11 milliseconds
99.63% <= 12 milliseconds
99.71% <= 13 milliseconds
99.80% <= 14 milliseconds
99.89% <= 15 milliseconds
99.98% <= 16 milliseconds
100.00% <= 16 milliseconds
90826.52 requests per second
====== LRANGE_100 (first 100 elements) ======
100000 requests completed in 1.99 seconds
1000 parallel clients
3 bytes payload
keep alive: 1
0.00% <= 8 milliseconds
0.22% <= 9 milliseconds
76.70% <= 10 milliseconds
94.24% <= 11 milliseconds
97.11% <= 12 milliseconds
98.07% <= 13 milliseconds
98.28% <= 14 milliseconds
98.39% <= 15 milliseconds
98.45% <= 16 milliseconds
98.60% <= 17 milliseconds
99.03% <= 18 milliseconds
99.33% <= 19 milliseconds
99.49% <= 20 milliseconds
99.59% <= 22 milliseconds
99.60% <= 23 milliseconds
99.68% <= 24 milliseconds
99.77% <= 25 milliseconds
99.89% <= 26 milliseconds
100.00% <= 27 milliseconds
100.00% <= 27 milliseconds
50276.52 requests per second
====== LRANGE_300 (first 300 elements) ======
100000 requests completed in 4.22 seconds
1000 parallel clients
3 bytes payload
keep alive: 1
0.00% <= 17 milliseconds
0.58% <= 18 milliseconds
12.72% <= 19 milliseconds
31.77% <= 20 milliseconds
51.16% <= 21 milliseconds
70.50% <= 22 milliseconds
90.09% <= 23 milliseconds
97.64% <= 24 milliseconds
98.10% <= 25 milliseconds
98.34% <= 26 milliseconds
98.46% <= 27 milliseconds
98.59% <= 28 milliseconds
98.62% <= 29 milliseconds
98.69% <= 30 milliseconds
98.78% <= 31 milliseconds
98.83% <= 32 milliseconds
98.87% <= 33 milliseconds
98.90% <= 34 milliseconds
98.91% <= 35 milliseconds
98.91% <= 36 milliseconds
98.92% <= 37 milliseconds
98.94% <= 38 milliseconds
99.00% <= 39 milliseconds
99.06% <= 40 milliseconds
99.11% <= 41 milliseconds
99.18% <= 42 milliseconds
99.21% <= 43 milliseconds
99.24% <= 44 milliseconds
99.27% <= 45 milliseconds
99.30% <= 46 milliseconds
99.33% <= 47 milliseconds
99.36% <= 48 milliseconds
99.39% <= 49 milliseconds
99.41% <= 50 milliseconds
99.44% <= 51 milliseconds
99.50% <= 52 milliseconds
99.56% <= 53 milliseconds
99.62% <= 54 milliseconds
99.66% <= 55 milliseconds
99.69% <= 56 milliseconds
99.74% <= 57 milliseconds
99.79% <= 58 milliseconds
99.85% <= 59 milliseconds
99.90% <= 66 milliseconds
99.91% <= 67 milliseconds
99.94% <= 68 milliseconds
99.97% <= 69 milliseconds
100.00% <= 70 milliseconds
100.00% <= 70 milliseconds
23668.64 requests per second
====== LRANGE_500 (first 450 elements) ======
100000 requests completed in 5.85 seconds
1000 parallel clients
3 bytes payload
keep alive: 1
0.00% <= 16 milliseconds
0.01% <= 17 milliseconds
0.05% <= 18 milliseconds
0.10% <= 19 milliseconds
0.14% <= 20 milliseconds
0.19% <= 21 milliseconds
0.24% <= 22 milliseconds
0.39% <= 23 milliseconds
1.32% <= 24 milliseconds
6.86% <= 25 milliseconds
18.89% <= 26 milliseconds
29.94% <= 27 milliseconds
39.44% <= 28 milliseconds
49.40% <= 29 milliseconds
59.42% <= 30 milliseconds
69.06% <= 31 milliseconds
79.71% <= 32 milliseconds
92.82% <= 33 milliseconds
97.52% <= 34 milliseconds
98.20% <= 35 milliseconds
98.35% <= 36 milliseconds
98.47% <= 37 milliseconds
98.56% <= 38 milliseconds
98.64% <= 39 milliseconds
98.70% <= 40 milliseconds
98.78% <= 41 milliseconds
98.83% <= 42 milliseconds
98.88% <= 43 milliseconds
98.93% <= 44 milliseconds
98.94% <= 45 milliseconds
98.95% <= 46 milliseconds
98.95% <= 47 milliseconds
98.95% <= 48 milliseconds
98.96% <= 49 milliseconds
98.96% <= 50 milliseconds
98.96% <= 51 milliseconds
98.97% <= 52 milliseconds
98.97% <= 53 milliseconds
98.97% <= 54 milliseconds
98.97% <= 55 milliseconds
98.98% <= 56 milliseconds
98.98% <= 57 milliseconds
98.98% <= 58 milliseconds
98.98% <= 59 milliseconds
99.00% <= 60 milliseconds
99.01% <= 61 milliseconds
99.04% <= 62 milliseconds
99.06% <= 63 milliseconds
99.07% <= 64 milliseconds
99.10% <= 65 milliseconds
99.11% <= 66 milliseconds
99.13% <= 67 milliseconds
99.15% <= 68 milliseconds
99.19% <= 69 milliseconds
99.23% <= 70 milliseconds
99.27% <= 71 milliseconds
99.30% <= 72 milliseconds
99.34% <= 73 milliseconds
99.38% <= 74 milliseconds
99.42% <= 75 milliseconds
99.46% <= 76 milliseconds
99.50% <= 77 milliseconds
99.54% <= 78 milliseconds
99.58% <= 79 milliseconds
99.61% <= 80 milliseconds
99.62% <= 81 milliseconds
99.64% <= 82 milliseconds
99.66% <= 83 milliseconds
99.68% <= 84 milliseconds
99.70% <= 85 milliseconds
99.72% <= 86 milliseconds
99.75% <= 87 milliseconds
99.78% <= 88 milliseconds
99.80% <= 89 milliseconds
99.82% <= 90 milliseconds
99.85% <= 91 milliseconds
99.87% <= 92 milliseconds
99.89% <= 93 milliseconds
99.91% <= 94 milliseconds
99.94% <= 95 milliseconds
99.95% <= 96 milliseconds
99.95% <= 97 milliseconds
99.95% <= 98 milliseconds
99.95% <= 99 milliseconds
99.96% <= 100 milliseconds
99.96% <= 101 milliseconds
99.96% <= 102 milliseconds
99.97% <= 103 milliseconds
100.00% <= 104 milliseconds
100.00% <= 104 milliseconds
17102.79 requests per second
====== LRANGE_600 (first 600 elements) ======
100000 requests completed in 7.45 seconds
1000 parallel clients
3 bytes payload
keep alive: 1
0.00% <= 16 milliseconds
0.01% <= 17 milliseconds
0.02% <= 18 milliseconds
0.03% <= 19 milliseconds
0.04% <= 20 milliseconds
0.05% <= 21 milliseconds
0.06% <= 22 milliseconds
0.09% <= 23 milliseconds
0.14% <= 24 milliseconds
0.18% <= 25 milliseconds
0.21% <= 26 milliseconds
0.25% <= 27 milliseconds
0.30% <= 28 milliseconds
0.40% <= 29 milliseconds
1.86% <= 30 milliseconds
4.31% <= 31 milliseconds
6.71% <= 32 milliseconds
9.45% <= 33 milliseconds
16.12% <= 34 milliseconds
29.12% <= 35 milliseconds
41.71% <= 36 milliseconds
49.27% <= 37 milliseconds
56.53% <= 38 milliseconds
68.77% <= 39 milliseconds
82.17% <= 40 milliseconds
89.23% <= 41 milliseconds
92.16% <= 42 milliseconds
94.82% <= 43 milliseconds
97.36% <= 44 milliseconds
98.04% <= 45 milliseconds
98.21% <= 46 milliseconds
98.30% <= 47 milliseconds
98.37% <= 48 milliseconds
98.48% <= 49 milliseconds
98.57% <= 50 milliseconds
98.63% <= 51 milliseconds
98.69% <= 52 milliseconds
98.74% <= 53 milliseconds
98.76% <= 54 milliseconds
98.79% <= 55 milliseconds
98.82% <= 56 milliseconds
98.86% <= 57 milliseconds
98.89% <= 58 milliseconds
98.93% <= 59 milliseconds
98.96% <= 60 milliseconds
99.00% <= 61 milliseconds
99.05% <= 62 milliseconds
99.10% <= 63 milliseconds
99.15% <= 64 milliseconds
99.22% <= 65 milliseconds
99.26% <= 66 milliseconds
99.29% <= 67 milliseconds
99.33% <= 68 milliseconds
99.36% <= 69 milliseconds
99.39% <= 70 milliseconds
99.42% <= 71 milliseconds
99.44% <= 72 milliseconds
99.45% <= 73 milliseconds
99.46% <= 74 milliseconds
99.48% <= 75 milliseconds
99.50% <= 76 milliseconds
99.50% <= 77 milliseconds
99.50% <= 78 milliseconds
99.50% <= 79 milliseconds
99.50% <= 80 milliseconds
99.50% <= 81 milliseconds
99.50% <= 82 milliseconds
99.51% <= 83 milliseconds
99.51% <= 84 milliseconds
99.51% <= 85 milliseconds
99.51% <= 86 milliseconds
99.51% <= 87 milliseconds
99.52% <= 88 milliseconds
99.54% <= 89 milliseconds
99.56% <= 90 milliseconds
99.57% <= 91 milliseconds
99.59% <= 92 milliseconds
99.60% <= 93 milliseconds
99.62% <= 94 milliseconds
99.63% <= 95 milliseconds
99.65% <= 96 milliseconds
99.66% <= 97 milliseconds
99.68% <= 98 milliseconds
99.69% <= 99 milliseconds
99.71% <= 100 milliseconds
99.72% <= 101 milliseconds
99.74% <= 102 milliseconds
99.75% <= 103 milliseconds
99.77% <= 104 milliseconds
99.81% <= 105 milliseconds
99.82% <= 106 milliseconds
99.84% <= 107 milliseconds
99.86% <= 108 milliseconds
99.87% <= 109 milliseconds
99.89% <= 110 milliseconds
99.90% <= 111 milliseconds
99.92% <= 112 milliseconds
99.94% <= 113 milliseconds
99.95% <= 114 milliseconds
99.97% <= 115 milliseconds
99.98% <= 116 milliseconds
100.00% <= 116 milliseconds
13431.83 requests per second
====== MSET (10 keys) ======
100000 requests completed in 1.24 seconds
1000 parallel clients
3 bytes payload
keep alive: 1
0.00% <= 4 milliseconds
0.00% <= 5 milliseconds
0.20% <= 6 milliseconds
0.37% <= 7 milliseconds
0.87% <= 8 milliseconds
2.16% <= 9 milliseconds
3.05% <= 10 milliseconds
20.64% <= 11 milliseconds
82.71% <= 12 milliseconds
89.68% <= 13 milliseconds
92.29% <= 14 milliseconds
94.59% <= 15 milliseconds
96.23% <= 16 milliseconds
98.07% <= 17 milliseconds
99.15% <= 18 milliseconds
99.42% <= 19 milliseconds
99.46% <= 20 milliseconds
99.76% <= 21 milliseconds
99.88% <= 22 milliseconds
100.00% <= 23 milliseconds
100.00% <= 23 milliseconds
80971.66 requests per second