summaryrefslogtreecommitdiff
path: root/tests/Timer_Queue_Test.cpp
diff options
context:
space:
mode:
authorschmidt <douglascraigschmidt@users.noreply.github.com>1997-02-11 05:57:18 +0000
committerschmidt <douglascraigschmidt@users.noreply.github.com>1997-02-11 05:57:18 +0000
commit3fb008b1b50c5e9f581fa2f8a711820b9dca1121 (patch)
tree39972ead8362aa485203e0f337ced9af943e1fbc /tests/Timer_Queue_Test.cpp
parent60f625d6fc0110cc501eb17036a4c7d7eb13ddf8 (diff)
downloadATCD-3fb008b1b50c5e9f581fa2f8a711820b9dca1121.tar.gz
foo
Diffstat (limited to 'tests/Timer_Queue_Test.cpp')
-rw-r--r--tests/Timer_Queue_Test.cpp14
1 files changed, 8 insertions, 6 deletions
diff --git a/tests/Timer_Queue_Test.cpp b/tests/Timer_Queue_Test.cpp
index ce58a98aa76..5509d3bb46b 100644
--- a/tests/Timer_Queue_Test.cpp
+++ b/tests/Timer_Queue_Test.cpp
@@ -26,7 +26,7 @@
#include "test_config.h"
// Number of iterations for the performance tests.
-static int max_iterations = ACE_DEFAULT_TIMERS;
+static int max_iterations = ACE_DEFAULT_TIMERS * 100 ;
// Keep track of the timer ids that were assigned to us.
static int *timer_ids = 0;
@@ -106,7 +106,7 @@ test_performance (ACE_Timer_Queue *tq,
ACE_DEBUG ((LM_DEBUG, "real time = %f secs, user time = %f secs, system time = %f secs\n",
et.real_time, et.user_time, et.system_time));
ACE_DEBUG ((LM_DEBUG, "time per call = %f usecs\n",
- (et.real_time / double (max_iterations)) * 1000000));
+ (et.user_time / double (max_iterations)) * 1000000));
// Test the amount of time required to cancel all the timers. We
// start from the "back" in order to measure the worst case
@@ -128,7 +128,7 @@ test_performance (ACE_Timer_Queue *tq,
ACE_DEBUG ((LM_DEBUG, "real time = %f secs, user time = %f secs, system time = %f secs\n",
et.real_time, et.user_time, et.system_time));
ACE_DEBUG ((LM_DEBUG, "time per call = %f usecs\n",
- (et.real_time / double (max_iterations)) * 1000000));
+ (et.user_time / double (max_iterations)) * 1000000));
// Test the amount of time required to schedule and expire all the
// timers.
@@ -152,7 +152,7 @@ test_performance (ACE_Timer_Queue *tq,
ACE_DEBUG ((LM_DEBUG, "real time = %f secs, user time = %f secs, system time = %f secs\n",
et.real_time, et.user_time, et.system_time));
ACE_DEBUG ((LM_DEBUG, "time per call = %f usecs\n",
- (et.real_time / double (max_iterations)) * 1000000));
+ (et.user_time / double (max_iterations)) * 1000000));
}
struct Timer_Queues
@@ -182,12 +182,14 @@ main (int argc, char *argv[])
// Preallocate memory.
ACE_NEW_RETURN (timer_queues[0].queue_,
- ACE_Timer_Heap (max_iterations, 1),
+ ACE_Timer_Heap (ACE_DEFAULT_TIMERS, 1),
+// ACE_Timer_Heap (max_iterations, 1),
-1);
// Don't preallocate memory.
ACE_NEW_RETURN (timer_queues[1].queue_,
- ACE_Timer_Heap (max_iterations),
+ ACE_Timer_Heap,
+// ACE_Timer_Heap (max_iterations),
-1);
ACE_NEW_RETURN (timer_ids,