version 1.7.4.14, 2012/05/17 21:40:02
|
version 1.7.4.16, 2012/05/17 22:57:42
|
Line 28 int main()
|
Line 28 int main()
|
return 1; |
return 1; |
} |
} |
|
|
printf("\n\n>>> RPC ping without reply!!!\n\n"); | printf("\n\n1 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) { |
|
printf("error:: errno=%d %s\n", rpc_GetErrno(), rpc_GetError()); |
|
rpc_cli_closeBLOBClient(&cli2); |
|
rpc_cli_closeClient(&cli); |
|
free(blob43); |
|
return 127; |
|
} |
|
gettimeofday(&after, NULL); |
|
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); |
|
} |
|
printf("\n\n2 pass>>> RPC ping without reply!!!\n\n"); |
|
for (i = 0; i < 10000; i++) { |
|
gettimeofday(&before, NULL); |
if (rpc_cli_execCall(cli, RPC_NOREPLY, CALL_SRVPING, NULL, &arr)) { |
if (rpc_cli_execCall(cli, RPC_NOREPLY, CALL_SRVPING, NULL, &arr)) { |
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_closeBLOBClient(&cli2); |
Line 43 int main()
|
Line 57 int main()
|
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); |
} |
} |
printf("\n\n>>> 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:: errno=%d %s\n", rpc_GetErrno(), rpc_GetError()); | printf("error %d:: errno=%d %s\n", i, rpc_GetErrno(), rpc_GetError()); |
rpc_cli_closeBLOBClient(&cli2); |
rpc_cli_closeBLOBClient(&cli2); |
rpc_cli_closeClient(&cli); |
rpc_cli_closeClient(&cli); |
free(blob43); |
free(blob43); |