window redis 文件夹文件说明 (一 )


一、window redis文件夹列表

redis-window-filelist
各文件功能说明
redis-benchmark.exe 测试redis性能的程序,可以同时模拟N多客户端查询和赋值
redis-check-aof.exe 更新日志检查–修复日志
redis-check-dump.exe 本地数据库检查
redis.conf redis配置文件
redis-cli.exe 客户端连接 redis服务器工具
redis-server.exe redis服务器启动程序


二、window redis-benchmark.exe 使用说明

语法简介:
在CMD中输入
redis-benchmark [-h 地址 ] [-p 端口 ] [-c 多个个客户端链接] [-n 请求数] 中括号 表示参数可选

参数说明:
-h 服务器 主机地址 (默认/缺省值 127.0.0.1)
-p 服务端口 (默认/缺省值 6379)
-s 服务器对外开放的socket端口
-c 客户端并发数 (默认/缺省值 50)
-n 总共请求数 (默认/缺省值 10000)
-d set或get每次data尺寸(字节) (默认/缺省值 2)
-k 1=keep alive 0=reconnect (默认/缺省值 1)
-r 使用随机键设置/获取/增加,随机值
-P 管道请求数。 默认值 1 (不使用管道).
-q 只显示查询和秒值。
–csv 输出CSV格式
-l 循环 运行测试
-t 指定测试列表
-I 空闲模式,打开空闲连接并等待

举例说明:

 //向redis发送 5个客户端  100请求 并且每次请求大小为10字节
D:\redis\Redis-3.2.100-Windows-32\Redis>redis-benchmark -h 127.0.0.1 -c 5 -n 100
 -d 10
 
运行结果: ====== PING_INLINE ====== 100 requests completed in 0.01 seconds 5 parallel clients 10 bytes payload keep alive: 1 100.00% <= 0 milliseconds 9090.91 requests per second ====== PING_BULK ====== 100 requests completed in 0.01 seconds 5 parallel clients 10 bytes payload keep alive: 1 100.00% <= 0 milliseconds 10000.00 requests per second ====== SET ====== 100 requests completed in 0.01 seconds 5 parallel clients 10 bytes payload keep alive: 1 100.00% <= 0 milliseconds 10000.00 requests per second ====== GET ====== 100 requests completed in 0.01 seconds 5 parallel clients 10 bytes payload keep alive: 1 100.00% <= 0 milliseconds 10000.00 requests per second ====== INCR ====== 100 requests completed in 0.01 seconds 5 parallel clients 10 bytes payload keep alive: 1 100.00% <= 1 milliseconds 8333.33 requests per second ====== LPUSH ====== 100 requests completed in 0.01 seconds 5 parallel clients 10 bytes payload keep alive: 1 96.00% <= 1 milliseconds 100.00% <= 1 milliseconds 10000.00 requests per second ====== LPOP ====== 100 requests completed in 0.00 seconds 5 parallel clients 10 bytes payload keep alive: 1 100.00% <= 0 milliseconds 20000.00 requests per second ====== SADD ====== 100 requests completed in 0.01 seconds 5 parallel clients 10 bytes payload keep alive: 1 100.00% <= 0 milliseconds 11111.11 requests per second ====== SPOP ====== 100 requests completed in 0.00 seconds 5 parallel clients 10 bytes payload keep alive: 1 100.00% <= 0 milliseconds 25000.00 requests per second ====== LPUSH (needed to benchmark LRANGE) ====== 100 requests completed in 0.01 seconds 5 parallel clients 10 bytes payload keep alive: 1 91.00% <= 1 milliseconds 100.00% <= 1 milliseconds 10000.00 requests per second ====== LRANGE_100 (first 100 elements) ====== 100 requests completed in 0.01 seconds 5 parallel clients 10 bytes payload keep alive: 1 96.00% <= 1 milliseconds 100.00% <= 1 milliseconds 11111.11 requests per second ====== LRANGE_300 (first 300 elements) ====== 100 requests completed in 0.03 seconds 5 parallel clients 10 bytes payload keep alive: 1 65.00% <= 1 milliseconds 91.00% <= 2 milliseconds 100.00% <= 2 milliseconds 3448.28 requests per second ====== LRANGE_500 (first 450 elements) ====== 100 requests completed in 0.03 seconds 5 parallel clients 10 bytes payload keep alive: 1 50.00% <= 1 milliseconds 99.00% <= 2 milliseconds 100.00% <= 2 milliseconds 3125.00 requests per second ====== LRANGE_600 (first 600 elements) ====== 100 requests completed in 0.04 seconds 5 parallel clients 10 bytes payload keep alive: 1 9.00% <= 1 milliseconds 90.00% <= 2 milliseconds 100.00% <= 2 milliseconds 2380.95 requests per second ====== MSET (10 keys) ====== 100 requests completed in 0.01 seconds 5 parallel clients 10 bytes payload keep alive: 1 95.00% <= 1 milliseconds 100.00% <= 1 milliseconds 7692.31 requests per second

window redis 文件夹文件说明 (一 )》上有3条评论

  1. Pingback引用通告: window redis 文件夹文件说明 (二) —[ redis-cli] | 猫猫小屋

  2. Pingback引用通告: redis rename key 命令 | 猫猫小屋

  3. Pingback引用通告: redis renamenx key命令简介 | 猫猫小屋

评论已关闭。