Modify help msg PING_BULK to PING_MBULK in benchmark (#8109)
As described in redis-benchamrk help message 'The test names are the same as the ones produced as output.', In redis-benchmark output, we can only see PING_BULK, but the cmd `redis-benchmark -t ping_bulk` is not supported. We have to run it with ping_mbulk which is not user friendly.
This commit is contained in:
parent
69b7113bb5
commit
7885faf18b
@ -1829,7 +1829,7 @@ int main(int argc, const char **argv) {
|
||||
|
||||
if (test_is_selected("ping_mbulk") || test_is_selected("ping")) {
|
||||
len = redisFormatCommand(&cmd,"PING");
|
||||
benchmark("PING_BULK",cmd,len);
|
||||
benchmark("PING_MBULK",cmd,len);
|
||||
free(cmd);
|
||||
}
|
||||
|
||||
|
@ -33,7 +33,7 @@ start_server {tags {"benchmark"}} {
|
||||
puts [colorstr red "redis-benchmark non zero code. first line: $first_line"]
|
||||
fail "redis-benchmark non zero code. first line: $first_line"
|
||||
}
|
||||
# ping total calls are 2*issued commands per test due to PING_INLINE and PING_BULK
|
||||
# ping total calls are 2*issued commands per test due to PING_INLINE and PING_MBULK
|
||||
assert_match {*calls=200,*} [cmdstat ping]
|
||||
assert_match {*calls=100,*} [cmdstat set]
|
||||
assert_match {*calls=100,*} [cmdstat get]
|
||||
|
Loading…
x
Reference in New Issue
Block a user