You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@activemq.apache.org by ta...@apache.org on 2007/07/10 18:48:34 UTC

svn commit: r555000 - /activemq/activemq-cpp/trunk/src/test-benchmarks/activemq/util/MapBenchmark.cpp

Author: tabish
Date: Tue Jul 10 09:48:32 2007
New Revision: 555000

URL: http://svn.apache.org/viewvc?view=rev&rev=555000
Log:
http://issues.apache.org/activemq/browse/AMQCPP-128

Adding some new tests

Modified:
    activemq/activemq-cpp/trunk/src/test-benchmarks/activemq/util/MapBenchmark.cpp

Modified: activemq/activemq-cpp/trunk/src/test-benchmarks/activemq/util/MapBenchmark.cpp
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/src/test-benchmarks/activemq/util/MapBenchmark.cpp?view=diff&rev=555000&r1=554999&r2=555000
==============================================================================
--- activemq/activemq-cpp/trunk/src/test-benchmarks/activemq/util/MapBenchmark.cpp (original)
+++ activemq/activemq-cpp/trunk/src/test-benchmarks/activemq/util/MapBenchmark.cpp Tue Jul 10 09:48:32 2007
@@ -58,14 +58,14 @@
     std::vector<std::string> stringVec;
     std::vector<int> intVec;
 
-    for( int i = 0; i < numRuns; ++i ) {
+    for( int i = 0; i < numRuns / 2; ++i ) {
         stringVec = stringMap.getKeys();
         stringVec = stringMap.getValues();
         intVec = intMap.getKeys();
         intVec = intMap.getValues();
     }
 
-    for( int i = 0; i < numRuns; ++i ) {
+    for( int i = 0; i < numRuns / 2; ++i ) {
         stringCopy.copy( stringMap );
         stringCopy.clear();
         intCopy.copy( intMap );