Skip to content

redis-benchmark AUTH command to be discarded after the first send #2150 - #2176

Merged
antirez merged 2 commits into
redis:unstablefrom
deepakverma:redis_bench_authfix
Dec 9, 2014
Merged

antirez merged 2 commits into
redis:unstablefrom
deepakverma:redis_bench_authfix

Conversation

@deepakverma

Copy link
Copy Markdown

Before change:
​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"

After the change:

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"

@mattsta

mattsta commented Dec 1, 2014

Copy link
Copy Markdown
Contributor

@deepakverma

Copy link
Copy Markdown
Author

Thanks, I have replaced the comment. Comparing with #2147 it looks similar, but with #2176 I feel it would be easier to add any other prefix command in future.

@antirez

antirez commented Dec 9, 2014

Copy link
Copy Markdown
Contributor

@deepakverma @mattsta thanks for the patches, #2176 is a bit better IMHO since it adds 2 lines of code instead of 24, and is a bit more future-proof, since we'll be able to add more things easily. Reviewing & merging.

antirez added a commit that referenced this pull request Dec 9, 2014
redis-benchmark AUTH command to be discarded after the first send #2150
@antirez
antirez merged commit 562e729 into redis:unstable Dec 9, 2014
@antirez

antirez commented Dec 9, 2014

Copy link
Copy Markdown
Contributor

Thanks, merged.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants