adding the ability to add streams to the pre-defined redis-benchmark tests
Added standard way to support xadd as one of the commands that can be run via redis-benchmarking tool
@@ -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);
