zoukankan      html  css  js  c++  java
  • redis测试100万并发请求 redis-benchmark -h localhost -p 6379 -c 100 -n 10000

    [root@localhost bin]# redis-benchmark -h localhost -p 6379 -c 100 -n 10000 
    ====== PING_INLINE ======
      10000 requests completed in 0.12 seconds
      100 parallel clients
      3 bytes payload
      keep alive: 1
      host configuration "save": 900 1 300 10 60 10000
      host configuration "appendonly": no
      multi-thread: no
    
    0.01% <= 0.3 milliseconds
    0.79% <= 0.4 milliseconds
    7.48% <= 0.5 milliseconds
    17.75% <= 0.6 milliseconds
    30.92% <= 0.7 milliseconds
    47.60% <= 0.8 milliseconds
    61.53% <= 0.9 milliseconds
    72.61% <= 1.0 milliseconds
    79.83% <= 1.1 milliseconds
    85.97% <= 1.2 milliseconds
    92.15% <= 1.3 milliseconds
    95.87% <= 1.4 milliseconds
    97.09% <= 1.5 milliseconds
    97.98% <= 1.6 milliseconds
    98.52% <= 1.7 milliseconds
    98.80% <= 1.8 milliseconds
    99.01% <= 6 milliseconds
    99.39% <= 7 milliseconds
    100.00% <= 7 milliseconds
    81300.81 requests per second
    
    ====== PING_BULK ======
      10000 requests completed in 0.12 seconds
      100 parallel clients
      3 bytes payload
      keep alive: 1
      host configuration "save": 900 1 300 10 60 10000
      host configuration "appendonly": no
      multi-thread: no
    
    70.41% <= 1 milliseconds
    99.67% <= 2 milliseconds
    100.00% <= 2 milliseconds
    86206.90 requests per second
    
    ====== SET ======
      10000 requests completed in 0.19 seconds
      100 parallel clients
      3 bytes payload
      keep alive: 1
      host configuration "save": 900 1 300 10 60 10000
      host configuration "appendonly": no
      multi-thread: no
    
    57.25% <= 1 milliseconds
    96.92% <= 2 milliseconds
    97.28% <= 3 milliseconds
    97.95% <= 4 milliseconds
    98.01% <= 10 milliseconds
    98.51% <= 22 milliseconds
    99.01% <= 35 milliseconds
    99.51% <= 48 milliseconds
    100.00% <= 48 milliseconds
    53763.44 requests per second
    
    ====== GET ======
      10000 requests completed in 0.13 seconds
      100 parallel clients
      3 bytes payload
      keep alive: 1
      host configuration "save": 900 1 300 10 60 10000
      host configuration "appendonly": no
      multi-thread: no
    
    57.17% <= 1 milliseconds
    99.78% <= 2 milliseconds
    100.00% <= 2 milliseconds
    75757.58 requests per second
    
    ====== INCR ======
      10000 requests completed in 0.14 seconds
      100 parallel clients
      3 bytes payload
      keep alive: 1
      host configuration "save": 900 1 300 10 60 10000
      host configuration "appendonly": no
      multi-thread: no
    
    46.37% <= 1 milliseconds
    99.01% <= 2 milliseconds
    100.00% <= 2 milliseconds
    71428.57 requests per second
    
    ====== LPUSH ======
      10000 requests completed in 0.16 seconds
      100 parallel clients
      3 bytes payload
      keep alive: 1
      host configuration "save": 900 1 300 10 60 10000
      host configuration "appendonly": no
      multi-thread: no
    
    34.47% <= 1 milliseconds
    97.10% <= 2 milliseconds
    100.00% <= 2 milliseconds
    64516.13 requests per second
    
    ====== RPUSH ======
      10000 requests completed in 0.14 seconds
      100 parallel clients
      3 bytes payload
      keep alive: 1
      host configuration "save": 900 1 300 10 60 10000
      host configuration "appendonly": no
      multi-thread: no
    
    43.22% <= 1 milliseconds
    99.01% <= 2 milliseconds
    99.79% <= 3 milliseconds
    100.00% <= 3 milliseconds
    69930.07 requests per second
    
    ====== LPOP ======
      10000 requests completed in 0.14 seconds
      100 parallel clients
      3 bytes payload
      keep alive: 1
      host configuration "save": 900 1 300 10 60 10000
      host configuration "appendonly": no
      multi-thread: no
    
    41.47% <= 1 milliseconds
    99.74% <= 2 milliseconds
    100.00% <= 2 milliseconds
    69930.07 requests per second
    
    ====== RPOP ======
      10000 requests completed in 0.12 seconds
      100 parallel clients
      3 bytes payload
      keep alive: 1
      host configuration "save": 900 1 300 10 60 10000
      host configuration "appendonly": no
      multi-thread: no
    
    62.06% <= 1 milliseconds
    99.80% <= 2 milliseconds
    100.00% <= 2 milliseconds
    80000.00 requests per second
    
    ====== SADD ======
      10000 requests completed in 0.14 seconds
      100 parallel clients
      3 bytes payload
      keep alive: 1
      host configuration "save": 900 1 300 10 60 10000
      host configuration "appendonly": no
      multi-thread: no
    
    47.28% <= 1 milliseconds
    99.61% <= 2 milliseconds
    100.00% <= 2 milliseconds
    71428.57 requests per second
    
    ====== HSET ======
      10000 requests completed in 0.12 seconds
      100 parallel clients
      3 bytes payload
      keep alive: 1
      host configuration "save": 900 1 300 10 60 10000
      host configuration "appendonly": no
      multi-thread: no
    
    60.43% <= 1 milliseconds
    99.58% <= 2 milliseconds
    100.00% <= 2 milliseconds
    80645.16 requests per second
    
    ====== SPOP ======
      10000 requests completed in 0.13 seconds
      100 parallel clients
      3 bytes payload
      keep alive: 1
      host configuration "save": 900 1 300 10 60 10000
      host configuration "appendonly": no
      multi-thread: no
    
    54.43% <= 1 milliseconds
    99.74% <= 2 milliseconds
    100.00% <= 2 milliseconds
    75187.97 requests per second
    
    ====== ZADD ======
      10000 requests completed in 0.14 seconds
      100 parallel clients
      3 bytes payload
      keep alive: 1
      host configuration "save": 900 1 300 10 60 10000
      host configuration "appendonly": no
      multi-thread: no
    
    38.93% <= 1 milliseconds
    99.69% <= 2 milliseconds
    100.00% <= 2 milliseconds
    68965.52 requests per second
    
    ====== ZPOPMIN ======
      10000 requests completed in 0.13 seconds
      100 parallel clients
      3 bytes payload
      keep alive: 1
      host configuration "save": 900 1 300 10 60 10000
      host configuration "appendonly": no
      multi-thread: no
    
    60.78% <= 1 milliseconds
    99.61% <= 2 milliseconds
    100.00% <= 2 milliseconds
    79365.08 requests per second
    
    ====== LPUSH (needed to benchmark LRANGE) ======
      10000 requests completed in 0.14 seconds
      100 parallel clients
      3 bytes payload
      keep alive: 1
      host configuration "save": 900 1 300 10 60 10000
      host configuration "appendonly": no
      multi-thread: no
    
    48.03% <= 1 milliseconds
    99.69% <= 2 milliseconds
    100.00% <= 2 milliseconds
    72992.70 requests per second
    
    ====== LRANGE_100 (first 100 elements) ======
      10000 requests completed in 0.37 seconds
      100 parallel clients
      3 bytes payload
      keep alive: 1
      host configuration "save": 900 1 300 10 60 10000
      host configuration "appendonly": no
      multi-thread: no
    
    0.01% <= 1 milliseconds
    17.63% <= 2 milliseconds
    64.69% <= 3 milliseconds
    89.80% <= 4 milliseconds
    99.76% <= 5 milliseconds
    100.00% <= 5 milliseconds
    26954.18 requests per second
    
    ====== LRANGE_300 (first 300 elements) ======
      10000 requests completed in 0.92 seconds
      100 parallel clients
      3 bytes payload
      keep alive: 1
      host configuration "save": 900 1 300 10 60 10000
      host configuration "appendonly": no
      multi-thread: no
    
    0.01% <= 1 milliseconds
    4.12% <= 2 milliseconds
    14.90% <= 3 milliseconds
    25.64% <= 4 milliseconds
    28.79% <= 5 milliseconds
    34.80% <= 6 milliseconds
    47.51% <= 7 milliseconds
    60.35% <= 8 milliseconds
    73.11% <= 9 milliseconds
    86.06% <= 10 milliseconds
    98.02% <= 11 milliseconds
    99.50% <= 12 milliseconds
    99.78% <= 13 milliseconds
    99.94% <= 14 milliseconds
    100.00% <= 14 milliseconds
    10905.12 requests per second
    
    ====== LRANGE_500 (first 450 elements) ======
      10000 requests completed in 1.02 seconds
      100 parallel clients
      3 bytes payload
      keep alive: 1
      host configuration "save": 900 1 300 10 60 10000
      host configuration "appendonly": no
      multi-thread: no
    
    0.01% <= 2 milliseconds
    10.85% <= 3 milliseconds
    24.83% <= 4 milliseconds
    38.99% <= 5 milliseconds
    52.85% <= 6 milliseconds
    55.19% <= 7 milliseconds
    58.03% <= 8 milliseconds
    64.12% <= 9 milliseconds
    70.34% <= 10 milliseconds
    76.15% <= 11 milliseconds
    81.45% <= 12 milliseconds
    86.53% <= 13 milliseconds
    91.50% <= 14 milliseconds
    96.24% <= 15 milliseconds
    99.37% <= 16 milliseconds
    99.85% <= 17 milliseconds
    100.00% <= 17 milliseconds
    9765.62 requests per second
    
    ====== LRANGE_600 (first 600 elements) ======
      10000 requests completed in 1.64 seconds
      100 parallel clients
      3 bytes payload
      keep alive: 1
      host configuration "save": 900 1 300 10 60 10000
      host configuration "appendonly": no
      multi-thread: no
    
    0.01% <= 1 milliseconds
    0.03% <= 2 milliseconds
    1.13% <= 3 milliseconds
    7.28% <= 4 milliseconds
    13.69% <= 5 milliseconds
    20.16% <= 6 milliseconds
    26.79% <= 7 milliseconds
    31.80% <= 8 milliseconds
    33.07% <= 9 milliseconds
    33.94% <= 10 milliseconds
    38.39% <= 11 milliseconds
    44.81% <= 12 milliseconds
    51.39% <= 13 milliseconds
    57.87% <= 14 milliseconds
    64.31% <= 15 milliseconds
    70.70% <= 16 milliseconds
    77.09% <= 17 milliseconds
    83.40% <= 18 milliseconds
    89.85% <= 19 milliseconds
    96.15% <= 20 milliseconds
    99.50% <= 21 milliseconds
    99.84% <= 22 milliseconds
    99.95% <= 28 milliseconds
    99.97% <= 29 milliseconds
    100.00% <= 33 milliseconds
    6082.73 requests per second
    
    ====== MSET (10 keys) ======
      10000 requests completed in 0.17 seconds
      100 parallel clients
      3 bytes payload
      keep alive: 1
      host configuration "save": 900 1 300 10 60 10000
      host configuration "appendonly": no
      multi-thread: no
    
    31.44% <= 1 milliseconds
    98.26% <= 2 milliseconds
    100.00% <= 2 milliseconds
    60606.06 requests per second
    

      

  • 相关阅读:
    【bzoj2561】最小生成树 网络流最小割
    【bzoj4407】于神之怒加强版 莫比乌斯反演+线性筛
    【bzoj4816】[Sdoi2017]数字表格 莫比乌斯反演
    【bzoj3252】攻略 贪心+DFS序+线段树
    【bzoj1690】[Usaco2007 Dec]奶牛的旅行 分数规划+Spfa
    【bzoj3291】Alice与能源计划 模拟费用流+二分图最大匹配
    【bzoj2752】[HAOI2012]高速公路(road) 线段树
    wpf--- TextBlock文字设置属性
    无边框WPF窗体——允许拖动
    C# 枚举、字符串、值的相互转换
  • 原文地址:https://www.cnblogs.com/dongyaotou/p/13660342.html
Copyright © 2011-2022 走看看