Unverified Commit 3b260149 authored by vanguard_space's avatar vanguard_space Committed by GitHub
Browse files

adding the ability to add streams to the pre-defined redis-benchmark tests (#11762)

Added standard way to support xadd as one of the commands that can be run via redis-benchmarking tool
parent fd397568
......@@ -2030,6 +2030,12 @@ int main(int argc, char **argv) {
sdsfree(key_placeholder);
}
if (test_is_selected("xadd")) {
len = redisFormatCommand(&cmd,"XADD mystream%s * myfield %s", tag, data);
benchmark("XADD",cmd,len);
free(cmd);
}
if (!config.csv) printf("\n");
} while(config.loop);
......
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