Skip to content

in redis-benchmark with each request an AUTH command is sent. Thereby affecting throughput #2150

Closed

Description

@deepakverma

For example,
redis-benchmark -a test -n 10000000 -t set -d 1024 would start with a higher throughput and throughput numbers would start dropping thereafter.

here's the output from monitor:
​1416263718.077019 [0 127.0.0.1:57023] "SET" "key:rand_int" "xxx"
1416263718.077019 [0 127.0.0.1:57023] "AUTH" "test"
1416263718.077019 [0 127.0.0.1:57023] "SET" "key:rand_int" "xxx"
1416263718.077019 [0 127.0.0.1:57023] "AUTH" "test"
1416263718.077019 [0 127.0.0.1:57023] "SET" "key:rand_int" "xxx"
1416263718.077019 [0 127.0.0.1:57023] "AUTH" "test"
1416263718.077019 [0 127.0.0.1:57023] "SET" "key:rand_int" "xxx"
1416263718.077019 [0 127.0.0.1:57023] "AUTH" "test"
1416263718.077019 [0 127.0.0.1:57023] "SET" "key:rand_int" "xxx"
1416263718.077019 [0 127.0.0.1:57023] "AUTH" "test"
1416263718.077019 [0 127.0.0.1:57023] "SET" "key:rand_int" "xxx"

 Proposal:
 To change benchmark to what we had earlier, where AUTH command is  discarded after the first send. I am sending a pull request for review.

 redis-benchmark.exe --dbnum 1  -t get -d 1024 -n 10 -c 1 -a test

 ​Monitor output:
 1416266483.678809 [0 127.0.0.1:23778] "AUTH" "test"
  1416266483.678809 [0 127.0.0.1:23778] "SELECT" "1"
  1416266483.678809 [1 127.0.0.1:23778] "GET" "key:__rand_int__"
  1416266483.678809 [1 127.0.0.1:23778] "GET" "key:__rand_int__"
  1416266483.678809 [1 127.0.0.1:23778] "GET" "key:__rand_int__"
  1416266483.678809 [1 127.0.0.1:23778] "GET" "key:__rand_int__"
  1416266483.678809 [1 127.0.0.1:23778] "GET" "key:__rand_int__"
  1416266483.678809 [1 127.0.0.1:23778] "GET" "key:__rand_int__"
  1416266483.678809 [1 127.0.0.1:23778] "GET" "key:__rand_int__"
  1416266483.678809 [1 127.0.0.1:23778] "GET" "key:__rand_int__"
  1416266483.678809 [1 127.0.0.1:23778] "GET" "key:__rand_int__"
  1416266483.679809 [1 127.0.0.1:23778] "GET" "key:__rand_int__"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions