54int main(
int argc,
char** argv) {
56 printf(
"<test/loop> <value> \n");
59 std::string command = argv[1];
60 std::string value = argv[2];
61 std::string output =
"";
64 if (command ==
"test") {
65 for (
int i = 0; i < std::stoi(value); i++) {
68 "/home/jyu25/nexres/bazel-bin/example/kv_server_tools "
69 "/home/jyu25/nexres/example/kv_client_config.config set " +
70 std::to_string(std::rand() % 500) +
" " +
71 std::to_string(std::rand() % 500);
72 output =
Exec(test.c_str());
73 std::cout << i <<
" " << output << std::endl;
75 }
else if (command ==
"loop") {
78 "/home/jyu25/nexres/bazel-bin/example/kv_server_tools "
79 "/home/jyu25/nexres/example/kv_client_config.config set " +
80 std::to_string(std::rand() % 500) +
" " +
81 std::to_string(std::rand() % 500);
82 output =
Exec(test.c_str());
83 std::cout << ++count <<
" " << output << std::endl;