Definition at line 28 of file benchClient.cxx.
References dic_get_id(), DimBrowser::getNextService(), DimBrowser::getServices(), i, MsgSize, NReceived, ServerName, and TEST_TIME.
34 char *name, *format, *cltptr, *srvptr, clientName[128];
44 services =
new Service*[nServices];
48 services[i++] =
new Service(name);
51 if((cltptr = strchr(clientName,
'@')))
61 cout <<
"Benchmark from "<< srvptr <<
" to " << cltptr <<
" :" << endl;
62 cout <<
"Server publishes " << nServices <<
" services of " <<
MsgSize <<
" bytes each"<< endl;
63 cout <<
"Result :" << endl;
64 cout <<
"\tMessages/s = " << mps << endl;
65 tpm = 1/(float)mps*1000;
66 cout <<
"\tTime(ms)/message = " << tpm << endl;
67 cout <<
"\tThroughput (Kb/s) = " << mps*
MsgSize/1024 << endl;
int dic_get_id(char *name)
int getServices(const char *serviceName)
int getNextService(char *&service, char *&format)