diff options
author | coryan <coryan@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1999-08-23 21:59:22 +0000 |
---|---|---|
committer | coryan <coryan@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1999-08-23 21:59:22 +0000 |
commit | f047fabb7c4c8d077d2156a6f6d0f960c1e2c397 (patch) | |
tree | 5f5639b184c76f7353ef18ebc10b5adfd02a2602 /performance-tests | |
parent | 3d9ac42b87a7b0b4aa14cfd18cbbd87e811c80dd (diff) | |
download | ATCD-f047fabb7c4c8d077d2156a6f6d0f960c1e2c397.tar.gz |
ChangeLogTag:Mon Aug 23 16:57:13 1999 Carlos O'Ryan <coryan@cs.wustl.edu>
Diffstat (limited to 'performance-tests')
-rw-r--r-- | performance-tests/RPC/README | 6 | ||||
-rw-r--r-- | performance-tests/RPC/client.cpp | 26 |
2 files changed, 19 insertions, 13 deletions
diff --git a/performance-tests/RPC/README b/performance-tests/RPC/README new file mode 100644 index 00000000000..49b9131733e --- /dev/null +++ b/performance-tests/RPC/README @@ -0,0 +1,6 @@ +# $Id$ + + Measure latency over RPC, run as: + +$ server +$ client -n <samples> -k host diff --git a/performance-tests/RPC/client.cpp b/performance-tests/RPC/client.cpp index 183c974b828..440b623470e 100644 --- a/performance-tests/RPC/client.cpp +++ b/performance-tests/RPC/client.cpp @@ -9,34 +9,34 @@ int main (int argc, char* argv[]) { - const char* key = 0; + const char* host = 0; int nsamples = 10000; int c; - - ACE_Get_Opt getopt (argc, argv, "k:n:"); + + ACE_Get_Opt getopt (argc, argv, "h:i:"); while ((c = getopt ()) != -1) { switch ((char) c) { - case 'k': - key = getopt.optarg; + case 'h': + host = getopt.optarg; break; - case 'n': + case 'i': nsamples = ACE_OS::atoi (getopt.optarg); break; } } - if (key == 0) + if (host == 0) { - ACE_DEBUG ((LM_DEBUG, "Usage: client <server key>\n")); + ACE_DEBUG ((LM_DEBUG, "Usage: client -h host -i iterations\n")); return 1; } CLIENT *cl = - clnt_create (key, PINGPROG, PINGVERS, "tcp"); + clnt_create (host, PINGPROG, PINGVERS, "tcp"); if (cl == 0) { @@ -44,10 +44,6 @@ int main (int argc, char* argv[]) return 1; } - ACE_DEBUG ((LM_DEBUG, "Calibrating high resolution timer . . .")); - ACE_UINT32 gsf = ACE_High_Res_Timer::global_scale_factor (); - ACE_DEBUG ((LM_DEBUG, " done\n")); - ACE_Throughput_Stats throughput; ACE_hrtime_t test_start = ACE_OS::gethrtime (); @@ -65,6 +61,10 @@ int main (int argc, char* argv[]) } + ACE_DEBUG ((LM_DEBUG, "Calibrating high resolution timer . . .")); + ACE_UINT32 gsf = ACE_High_Res_Timer::global_scale_factor (); + ACE_DEBUG ((LM_DEBUG, " done\n")); + throughput.dump_results ("Client", gsf); |