redis-benchmark: add tests, --version, a minor bug fixes#7947
redis-benchmark: add tests, --version, a minor bug fixes#7947oranagra merged 4 commits intoredis:unstablefrom
Conversation
…rsion flag on redis-benchmark
|
@filipecosta90 thank you for this. sine the test names on success / error are printed without context, i think it would be better to add a it's nice that we now have coverage to make sure redis benchmark doesn't crash, but i think we may want to do a bit more to validate that the output on success seems correct. |
|
Tks for the initial review Oran. Will proceed with the changes and report back 👍 |
… not being ensured
|
@oranagra I've changed the naming and added further clauses as per the above comment. |
oranagra
left a comment
There was a problem hiding this comment.
@filipecosta90 i see the test still takes some 25 seconds.
please try to shave it down further.
i see most tests only run some 1000 commands, so maybe it's the keyspace length test that's taking most time.
Thank you for the quick review @oranagra. I've tried to nail down further the tests duration and now running solely the redis-benchmark locally it's showming 1 sec duration: Can you check on your side if it also takes only that? |
oranagra
left a comment
There was a problem hiding this comment.
ohh, so it's probably just the slowness of the github actions.
up to 5 or 10 seconds on your local computers seems fine (if you feel you rather roll some of these changes back that's ok with me.)
…arbitrary command
|
@filipecosta90 looks like this test it failing when the tests are executed with |
@oranagra yes here. |
|
@filipecosta90 how can that fix the failing tests? (without adding TLS to redis-benchmark, or skipping the tests in that mode). |
- add test suite coverage for redis-benchmark - add --version (similar to what redis-cli has) - fix bug sending more requests than intended when pipeline > 1. - when done sending requests, avoid freeing client in the write handler, in theory before responses are received (probably dead code since the read handler will call clientDone first) Co-authored-by: Oran Agra <[email protected]>
added tests
This PR is a maintenance one for redis-benchmark, adding the following tests for standalone redis:
added --version
Apart from it, and to make it easier to reference redis-benchmark version it applies the same version format as seen on redis-cli.