Unverified Commit 7885faf1 authored by luhuachao's avatar luhuachao Committed by GitHub
Browse files

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.
parent 69b7113b
......@@ -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]
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment