version 1.1.2.3, 2014/12/11 00:12:54
|
version 1.1.2.4, 2014/12/18 00:52:41
|
Line 23 int main(int argc, char **argv)
|
Line 23 int main(int argc, char **argv)
|
return 1; |
return 1; |
} |
} |
|
|
#if 0 | //#if 0 |
printf("\n\n1 pass>>> RPC ping\n\n"); |
printf("\n\n1 pass>>> RPC ping\n\n"); |
for (i = 0; i < 1000; i++) { |
for (i = 0; i < 1000; i++) { |
gettimeofday(&before, NULL); |
gettimeofday(&before, NULL); |
if ((ret = rpc_cli_ping(cli)) == -1) { |
if ((ret = rpc_cli_ping(cli)) == -1) { |
printf("error:: errno=%d %s\n", rpc_GetErrno(), rpc_GetError()); |
printf("error:: errno=%d %s\n", rpc_GetErrno(), rpc_GetError()); |
rpc_cli_closeBLOBClient(&cli2); |
|
rpc_cli_closeClient(&cli); |
rpc_cli_closeClient(&cli); |
e_free(blob43); |
|
return 127; |
return 127; |
} |
} |
gettimeofday(&after, NULL); |
gettimeofday(&after, NULL); |
printf("RPC ping seq[0x%04x] #%d --- %f\n", ret, i, |
printf("RPC ping seq[0x%04x] #%d --- %f\n", ret, i, |
(after.tv_sec - before.tv_sec) + (after.tv_usec - before.tv_usec) / 1.e6); |
(after.tv_sec - before.tv_sec) + (after.tv_usec - before.tv_usec) / 1.e6); |
} |
} |
#endif | //#endif |
//#if 0 |
//#if 0 |
printf("\n\n2 pass>>> RPC ping without reply!!!\n\n"); |
printf("\n\n2 pass>>> RPC ping without reply!!!\n\n"); |
for (i = 0; i < 10; i++) { |
for (i = 0; i < 10; i++) { |
Line 53 int main(int argc, char **argv)
|
Line 51 int main(int argc, char **argv)
|
printf("RPC ping #%d --- %f\n", i, (after.tv_sec - before.tv_sec) + |
printf("RPC ping #%d --- %f\n", i, (after.tv_sec - before.tv_sec) + |
(after.tv_usec - before.tv_usec) / 1.e6); |
(after.tv_usec - before.tv_usec) / 1.e6); |
} |
} |
#if 0 | //#if 0 |
printf("\n\n3 pass>>> RPC ping\n\n"); |
printf("\n\n3 pass>>> RPC ping\n\n"); |
for (i = 0; i < 10000; i++) { |
for (i = 0; i < 10000; i++) { |
gettimeofday(&before, NULL); |
gettimeofday(&before, NULL); |
if ((ret = rpc_cli_ping(cli)) == -1) { |
if ((ret = rpc_cli_ping(cli)) == -1) { |
printf("error %d:: errno=%d %s\n", i, rpc_GetErrno(), rpc_GetError()); |
printf("error %d:: errno=%d %s\n", i, rpc_GetErrno(), rpc_GetError()); |
rpc_cli_closeBLOBClient(&cli2); |
|
rpc_cli_closeClient(&cli); |
rpc_cli_closeClient(&cli); |
e_free(blob43); |
|
return 127; |
return 127; |
} |
} |
gettimeofday(&after, NULL); |
gettimeofday(&after, NULL); |
Line 71 int main(int argc, char **argv)
|
Line 67 int main(int argc, char **argv)
|
//#endif |
//#endif |
//#endif |
//#endif |
|
|
|
#if 0 |
valz = ait_allocVars(3); |
valz = ait_allocVars(3); |
v = array(valz, 0, ait_val_t*); |
v = array(valz, 0, ait_val_t*); |
AIT_SET_I32(v, 12345678); |
AIT_SET_I32(v, 12345678); |