Changeset 14936 for trunk/FACT++/dim/src/benchmark
- Timestamp:
- 02/21/13 13:07:34 (12 years ago)
- Location:
- trunk/FACT++/dim/src/benchmark
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/FACT++/dim/src/benchmark/benchClient.cxx
r11071 r14936 23 23 } 24 24 public : 25 Service(char *name) : DimInfo(name, "--") {/*nReceived = 0;*/}25 Service(char *name) : DimInfo(name,(char *)"--") {/*nReceived = 0;*/} 26 26 }; 27 27 … … 34 34 char *name, *format, *cltptr, *srvptr, clientName[128]; 35 35 36 if(argc){} 37 if(argc){} 36 38 br.getServices("BENCH_SERVICE_*"); 37 39 … … 47 49 } 48 50 dic_get_id(clientName); 49 if( cltptr = strchr(clientName,'@'))51 if((cltptr = strchr(clientName,'@'))) 50 52 cltptr++; 51 53 sleep(5); … … 55 57 56 58 mps = NReceived/TEST_TIME; 57 if( srvptr = strchr(ServerName,'@'))59 if((srvptr = strchr(ServerName,'@'))) 58 60 srvptr++; 59 61 cout << "Benchmark from "<< srvptr << " to " << cltptr << " :" << endl; -
trunk/FACT++/dim/src/benchmark/benchServer.cxx
r11071 r14936 4 4 #include <process.h> 5 5 #endif 6 #include <stdio.h> 6 7 7 8 int main(int argc, char *argv[]) … … 11 12 DimService **services; 12 13 14 if(argc){} 13 15 sscanf(argv[1],"%d",&msgSize); 14 16 sscanf(argv[2],"%d",&nServices);
Note:
See TracChangeset
for help on using the changeset viewer.