Skip to content

Fix redis-benchmark with AUTH - #2147

Closed
mattsta wants to merge 1 commit into
redis:unstablefrom
mattsta:fix/bench-auth
Closed

mattsta wants to merge 1 commit into
redis:unstablefrom
mattsta:fix/bench-auth

Conversation

@mattsta

@mattsta mattsta commented Nov 19, 2014

Copy link
Copy Markdown
Contributor

Previous benchmark AUTH implementation had a bug due to how redis-benchmark
generates queries.

The same problem applies to SELECT, and there was already a fix
in place for SELECT, so this just copies the SELECT methodology and
uses it for AUTH too.

Problem first reported at
antirez@8fcce90#commitcomment-8606641

Output from % ./redis-benchmark -c 1 -a bob -n 3 -t set -r 99999999 is now:

1416415268.893890 [0 127.0.0.1:56169] "AUTH" "bob"
1416415268.893905 [0 127.0.0.1:56169] "SET" "key:000048417175" "xxx"
1416415268.894251 [0 127.0.0.1:56169] "SET" "key:000055642065" "xxx"
1416415268.894338 [0 127.0.0.1:56169] "SET" "key:000054091795" "xxx"

Prior to this commit, redis-benchmark would prepend AUTH to every command sent.

Previous benchmark AUTH implementation had a bug due to how redis-benchmark
generates queries.

The same problem applies to SELECT, and there was already a fix
in place for SELECT, so this just copies the SELECT methodology and
uses it for AUTH too.

Problem first reported at
antirez@8fcce90#commitcomment-8606641
@antirez

antirez commented Dec 9, 2014

Copy link
Copy Markdown
Contributor

Thanks, merged #2176 instead that provides a similar change which is a bit more generic.

@antirez antirez closed this Dec 9, 2014
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.

2 participants