当前位置:   article > 正文

通过docker运行vire-benchmark压测镜像_docker pull benchmark

docker pull benchmark

原文地址:https://www.putianhui.cn/posts/d4ffdafb91fc/

# 搜索 vire-benchmark 镜像
~ % docker search vire-benchmark
NAME                       DESCRIPTION   STARS     OFFICIAL   AUTOMATED
putianhui/vire-benchmark                 0

# 下载镜像
~ % docker pull putianhui/vire-benchmark
Using default tag: latest
latest: Pulling from putianhui/vire-benchmark
284055322776: Pull complete
da8424d6ea80: Pull complete
eddcec7e0bf0: Pull complete
Digest: sha256:def2915a9ce4647fcf9817e71b9499c4bed65622b968399cd0b1116139d7631a
Status: Downloaded newer image for putianhui/vire-benchmark:latest
docker.io/putianhui/vire-benchmark:latest

# 查看镜像
~ % docker images
REPOSITORY                            TAG       IMAGE ID       CREATED         SIZE
putianhui/vire-benchmark              latest    c117f38c9c30   4 months ago    68.9MB

# 启动容器
~ % docker run -d --name vire-benchmark putianhui/vire-benchmark
813e5be9bd1521d56fd917eb0fafadf80c05439123ebcc802928ca64a296a308

# 进入容器
~ % docker exec -it vire-benchmark /bin/bash

# 执行压测
root@813e5be9bd15:/# vire-benchmark -h 10.4.7.57 -p 9008 -n 1000 -c 100 --dbnum 1  -d 20480 -q
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30

参数介绍:

-h :指定redis连接地址
-p :指定redis连接端口号
-a :指定redis连接密码
-n :指定redis压测请求key数量
-c :指定并发连接客户端数量
-t :指定要测试的命令类型,不加-t为测试全部
–dbnum :指定测试数据存放的数据库编号
-d :指定测试单个key的大小
-q :静默模式,只输出测试结果
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9

压测结果

root@813e5be9bd15:/# vire-benchmark -h 10.4.7.57 -p 9008 -n 1000 -c 100 --dbnum 1  -d 20480 -q
PING_INLINE: 4424.78 requests per second
PING_BULK: 5154.64 requests per second
SET: 788.64 requests per second
GET: 4901.96 requests per second
INCR: 6211.18 requests per second
MSET (10 keys): 149.43 requests per second
MGET (10 keys): 212.40 requests per second
MGET (100 keys): 29.89 requests per second
MGET (200 keys): 11.56 requests per second
LPUSH: 1064.96 requests per second
RPUSH: 1030.93 requests per second
LPOP: 4132.23 requests per second
RPOP: 4716.98 requests per second
LPUSH (needed to benchmark LRANGE): 696.92 requests per second
LRANGE_10 (first 10 elements): 5917.16 requests per second
LRANGE_100 (first 100 elements): 5050.50 requests per second
LRANGE_300 (first 300 elements): 5102.04 requests per second
LRANGE_450 (first 450 elements): 5434.78 requests per second
LRANGE_600 (first 600 elements): 4901.96 requests per second
SADD: 1234.57 requests per second
SPOP: 5586.59 requests per second
HSET: 1308.90 requests per second
HINCRBY: 5681.82 requests per second
HINCRBYFLOAT: 5376.34 requests per second
HGET: 5347.59 requests per second
HMSET (10 fields): 121.92 requests per second
HMGET (10 fields): 5813.95 requests per second
HGETALL: 4484.30 requests per second
ZADD: 1183.43 requests per second
ZREM: 1305.48 requests per second
PFADD: 1290.32 requests per second
PFCOUNT: 5813.95 requests per second
PFADD (needed to benchmark PFMERGE): 1293.66 requests per second
PFMERGE: 5952.38 requests per second
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  • 32
  • 33
  • 34
  • 35
声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/你好赵伟/article/detail/168923?site
推荐阅读
相关标签
  

闽ICP备14008679号