summaryrefslogtreecommitdiff
path: root/ACE/performance-tests
diff options
context:
space:
mode:
authorJohnny Willemsen <jwillemsen@remedy.nl>2012-05-15 18:23:04 +0000
committerJohnny Willemsen <jwillemsen@remedy.nl>2012-05-15 18:23:04 +0000
commit38d791f18d8a67b8b9319f4b6a9579101628b28c (patch)
treebe35c69512246f58a303abc27e2028a848a78f8a /ACE/performance-tests
parent7d6ea0dc00c882c452db06f31af9acc17fc18046 (diff)
downloadATCD-38d791f18d8a67b8b9319f4b6a9579101628b28c.tar.gz
Tue May 15 18:16:09 UTC 2012 Johnny Willemsen <jwillemsen@remedy.nl>
* ace/ACE.inl: * ace/Atomic_Op_T.h: * ace/Basic_Types.h: * ace/Basic_Types.inl: * ace/Basic_Types.cpp: * ace/CDR_Base.h: * ace/Functor.h: * ace/Functor.inl: * ace/Handle_Set.cpp: * ace/High_Res_Timer.cpp: * ace/Log_Msg.cpp: * ace/Numeric_Limits.h: * ace/OS_NS_Thread.inl: * ace/OS_NS_Thread.cpp: * ace/OS_NS_stdlib.inl: * ace/OS_NS_sys_select.inl: * ace/OS_NS_sys_wait.inl: * ace/OS_NS_time.h: * ace/OS_NS_time.inl: * ace/OS_NS_unistd.inl: * ace/Profile_Timer.cpp: * ace/Sched_Params.cpp: * ace/Stats.cpp: * ace/Task.cpp: * ace/Throughput_Stats.cpp: * ace/Time_Value.h: * ace/Time_Value.inl: * ace/Truncate.h: * ace/UUID.cpp: * ace/os_include/os_pthread.h: * performance-tests/Server_Concurrency/Latency_Stats.h: * performance-tests/Server_Concurrency/Leader_Follower/leader_follower.cpp: * performance-tests/Server_Concurrency/Queue_Based_Workers/workers.cpp: * performance-tests/UDP/udp_test.cpp: * tests/Atomic_Op_Test.cpp: * tests/Basic_Types_Test.cpp: * tests/CDR_Array_Test.cpp: Removed support for Tandem NSK. That was the last platform that needed the emulated versions of ACE_INT64 and ACE_UINT64, that emulation has now been removed * ace/config-tandem-nsk-mips-v2.h: * ace/config-tandem-nsk-mips-v3.h: Removed these files.
Diffstat (limited to 'ACE/performance-tests')
-rw-r--r--ACE/performance-tests/Server_Concurrency/Latency_Stats.h10
-rw-r--r--ACE/performance-tests/Server_Concurrency/Leader_Follower/leader_follower.cpp6
-rw-r--r--ACE/performance-tests/Server_Concurrency/Queue_Based_Workers/workers.cpp6
-rw-r--r--ACE/performance-tests/UDP/udp_test.cpp6
4 files changed, 0 insertions, 28 deletions
diff --git a/ACE/performance-tests/Server_Concurrency/Latency_Stats.h b/ACE/performance-tests/Server_Concurrency/Latency_Stats.h
index e8b14caac73..12d5fe02f53 100644
--- a/ACE/performance-tests/Server_Concurrency/Latency_Stats.h
+++ b/ACE/performance-tests/Server_Concurrency/Latency_Stats.h
@@ -35,12 +35,7 @@ inline void
Latency_Stats::sample (ACE_hrtime_t sample)
{
this->sum_ += sample;
-#ifndef ACE_LACKS_LONGLONG_T
this->sum2_ += sample * sample;
-#else
- // possible loss of precision here due to lack of 64bit support
- this->sum2_ += sample * sample.lo();
-#endif
if (this->n_ == 0)
{
this->min_ = sample;
@@ -61,13 +56,8 @@ Latency_Stats::dump_results (const ACE_TCHAR *test_name,
return;
ACE_hrtime_t avg = this->sum_ / this->n_;
-#ifndef ACE_LACKS_LONGLONG_T
ACE_hrtime_t dev =
this->sum2_ / this->n_ - avg*avg;
-#else
- ACE_hrtime_t dev =
- this->sum2_ / this->n_ - avg.lo()*avg.lo();
-#endif
ACE_High_Res_Timer::global_scale_factor_type gsf =
ACE_High_Res_Timer::global_scale_factor ();
diff --git a/ACE/performance-tests/Server_Concurrency/Leader_Follower/leader_follower.cpp b/ACE/performance-tests/Server_Concurrency/Leader_Follower/leader_follower.cpp
index 5703ff2a1af..866e6416571 100644
--- a/ACE/performance-tests/Server_Concurrency/Leader_Follower/leader_follower.cpp
+++ b/ACE/performance-tests/Server_Concurrency/Leader_Follower/leader_follower.cpp
@@ -173,15 +173,9 @@ Leader_Follower_Task::svc (void)
if (debug >= PRINT_INDIVIDUAL_LATENCY)
{
-#ifndef ACE_LACKS_LONGLONG_T
ACE_DEBUG ((LM_DEBUG,
"(%t) latency from start of burst: %Q\n",
latency_from_start_of_burst));
-#else
- ACE_DEBUG ((LM_DEBUG,
- "(%t) latency from start of burst: %u\n",
- latency_from_start_of_burst.lo()));
-#endif
}
}
}
diff --git a/ACE/performance-tests/Server_Concurrency/Queue_Based_Workers/workers.cpp b/ACE/performance-tests/Server_Concurrency/Queue_Based_Workers/workers.cpp
index 5bb58d42397..8ef203c69e0 100644
--- a/ACE/performance-tests/Server_Concurrency/Queue_Based_Workers/workers.cpp
+++ b/ACE/performance-tests/Server_Concurrency/Queue_Based_Workers/workers.cpp
@@ -144,15 +144,9 @@ Worker_Task::svc (void)
if (debug >= PRINT_INDIVIDUAL_LATENCY)
{
-#ifndef ACE_LACKS_LONGLONG_T
ACE_DEBUG ((LM_DEBUG,
"(%t) latency from start of burst: %Q\n",
latency_from_start_of_burst));
-#else
- ACE_DEBUG ((LM_DEBUG,
- "(%t) latency from start of burst: %u\n",
- latency_from_start_of_burst.lo()));
-#endif
}
}
diff --git a/ACE/performance-tests/UDP/udp_test.cpp b/ACE/performance-tests/UDP/udp_test.cpp
index c03937ca6a0..0da5570decf 100644
--- a/ACE/performance-tests/UDP/udp_test.cpp
+++ b/ACE/performance-tests/UDP/udp_test.cpp
@@ -261,15 +261,9 @@ Client::run (void)
if (i < 0 )
{
-#ifndef ACE_LACKS_LONGLONG_T
ACE_DEBUG ((LM_DEBUG,
"Ignoring first sample of %u usecs\n",
(ACE_UINT32) (sample)));
-#else
- ACE_DEBUG ((LM_DEBUG,
- "Ignoring first sample of %u usecs\n",
- (ACE_UINT32) (sample.lo())));
-#endif
continue;
}
else if (max_allow > 0 && sample > max_allow)