Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r60058 - in sandbox/statistics/detail/assign/libs/assign: doc test
From: erwann.rogard_at_[hidden]
Date: 2010-03-01 16:31:49


Author: e_r
Date: 2010-03-01 16:31:48 EST (Mon, 01 Mar 2010)
New Revision: 60058
URL: http://svn.boost.org/trac/boost/changeset/60058

Log:
m
Text files modified:
   sandbox/statistics/detail/assign/libs/assign/doc/speed2.txt | 175 ++++++++++++++++-----------------------
   sandbox/statistics/detail/assign/libs/assign/test/speed_common.cpp | 4
   sandbox/statistics/detail/assign/libs/assign/test/speed_common.h | 4
   3 files changed, 77 insertions(+), 106 deletions(-)

Modified: sandbox/statistics/detail/assign/libs/assign/doc/speed2.txt
==============================================================================
--- sandbox/statistics/detail/assign/libs/assign/doc/speed2.txt (original)
+++ sandbox/statistics/detail/assign/libs/assign/doc/speed2.txt 2010-03-01 16:31:48 EST (Mon, 01 Mar 2010)
@@ -3,31 +3,30 @@
 Number of repeated function calls : 100000000
 
 2.4 GHz Intel Core 2 Duo - Mac OS Leopard 10.6 - x86_64 - Release mode - gcc 4.2
-
-cref_list_of(1) => 0.15 s
-cref_list_of_csv(1) => 0.33 s
-cref_list_of<>(1) => 0.00 s
-list_of(1) => 131.03 s
-
-cref_list_of(3) => 0.54 s
-cref_list_of_csv(3) => 1.45 s
-cref_list_of<>(3) => 0.37 s
-list_of(3) => 342.12 s
-
-cref_list_of(10) => 2.01 s
-cref_list_of_csv(10) => 3.53 s
-cref_list_of<>(10) => 1.05 s
-list_of(10) => 878.79 s
-
-cref_list_of(30) => 7.15 s
-cref_list_of_csv(30) => 9.63 s
-cref_list_of<>(30) => 4.16 s
-list_of(30) =>2475.13 s
-
-cref_list_of(90) => 25.68 s
-cref_list_of_csv(90) => 28.22 s
-cref_list_of<>(90) => 7.19 s
-list_of(90) =>7284.27 s
+cref_list_of(1) => 0.15 s
+cref_list_of_csv(1) => 0.33 s
+cref_list_of<>(1) => 0.00 s
+list_of(1) => 131.03 s
+
+cref_list_of(3) => 0.54 s
+cref_list_of_csv(3) => 1.45 s
+cref_list_of<>(3) => 0.37 s
+list_of(3) => 342.12 s
+
+cref_list_of(10) => 2.01 s
+cref_list_of_csv(10) => 3.53 s
+cref_list_of<>(10) => 1.05 s
+list_of(10) => 878.79 s
+
+cref_list_of(30) => 7.15 s
+cref_list_of_csv(30) => 9.63 s
+cref_list_of<>(30) => 4.16 s
+list_of(30) => 2475.13 s
+
+cref_list_of(90) => 25.68 s
+cref_list_of_csv(90) => 28.22 s
+cref_list_of<>(90) => 7.19 s
+list_of(90) => 7284.27 s
 
 Warning :
 For both compilers tested under Win7-32 below, a virtual machine was used so
@@ -35,84 +34,56 @@
 however, may be somewhat more reliable.
 
 Win7-32 V6.1.7100 Dev-C++ 5.0 beta 9.2 - Mingw/GCC 3.4.2
-
-cref_list_of(1) => 1.18 s
-
-cref_list_of_csv(1) => 1.91 s
-
-cref_list_of<>(1) => 0.37 s
-
-list_of(1) => NA s
-
-
-cref_list_of(3) => 2.73 s
-
-cref_list_of_csv(3) => 4.09 s
-
-cref_list_of<>(3) => 1.02 s
-
-
-cref_list_of(10) => 7.04 s
-
-cref_list_of_csv(10) => 11.80 s
-
-cref_list_of<>(10) => 3.79 s
-
-
-cref_list_of(30) => 20.07 s
-
-cref_list_of_csv(30) => 44.59 s
-
-cref_list_of<>(30) => 9.47 s
-
-
-cref_list_of(90) => 57.47 s
-
-cref_list_of_csv(90) => 152.51 s
-
-cref_list_of<>(90) => 76.80 s
-
+
+cref_list_of(1) => 0.80 s
+cref_list_of_csv(1) => 1.97 s
+cref_list_of<>(1) => 0.42 s
+list_of(1) => 371.00 s
+
+cref_list_of(3) => 2.21 s
+cref_list_of_csv(3) => 4.25 s
+cref_list_of<>(3) => 0.99 s
+list_of(3) => 852.00 s
+
+cref_list_of(10) => 6.51 s
+cref_list_of_csv(10) => 11.90 s
+cref_list_of<>(10) => 3.92 s
+list_of(10) => 931.79 s
+
+cref_list_of(30) => 19.53 s
+cref_list_of_csv(30) => 46.90 s
+cref_list_of<>(30) => 10.63 s
+list_of(30) => 2504.00 s
+
+cref_list_of(90) => 58.01 s
+cref_list_of_csv(90) => 161.99 s
+cref_list_of<>(90) => 34.38 s
+list_of(90) => 8372.00 s
 
 Win7-32 V6.1.7100 - Visual Studio 2010 - Release mode -
 
-Warning :
-The greater time of cref_list_of vs cref_list_of<> with this particular
-compiler was confirmed separately under a fully Windows OS, albeit not as
-drastic (x30, on average).
-
-cref_list_of(1) => 0.72 s
-
-cref_list_of_csv(1) => 0.00 s
-
-cref_list_of<>(1) => 0.00 s
-
-list_of(1) => NA s
-
-
-cref_list_of(3) => 1.34 s
-
-cref_list_of_csv(3) => 0.00 s
-
-cref_list_of<>(3) => 0.04 s
-
-
-cref_list_of(10) => 3.83 s
-
-cref_list_of_csv(10) => 0.00 s
-
-cref_list_of<>(10) => 0.04 s
-
-
-cref_list_of(30) => 10.72 s
-
-cref_list_of_csv(30) => 9.86 s
-
-cref_list_of<>(30) => 0.05 s
-
-
-cref_list_of(90) => 34.39 s
-
-cref_list_of_csv(90) => 29.93 s
-
-cref_list_of<>(90) => 0.07 s
+cref_list_of(1) => 0.59 s
+cref_list_of_csv(1) => 0.04 s
+cref_list_of<>(1) => 0.00 s
+list_of(1) => 2964.00 s
+
+cref_list_of(3) => 1.27 s
+cref_list_of_csv(3) => 0.05 s
+cref_list_of<>(3) => 0.21 s
+list_of(3) => 5158.00 s
+
+cref_list_of(10) => 3.80 s
+cref_list_of_csv(10) => 0.04 s
+cref_list_of<>(10) => 0.50 s
+list_of(10) => 16914.79 s
+
+cref_list_of(30) => 11.28 s
+cref_list_of_csv(30) => 9.41 s
+cref_list_of<>(30) => 1.45 s
+list_of(30) => 57972.00 s
+
+cref_list_of(90) => 33.97 s
+cref_list_of_csv(90) => 31.40 s
+cref_list_of<>(90) => 4.16 s
+list_of(90) =>242709.00 s
 

Modified: sandbox/statistics/detail/assign/libs/assign/test/speed_common.cpp
==============================================================================
--- sandbox/statistics/detail/assign/libs/assign/test/speed_common.cpp (original)
+++ sandbox/statistics/detail/assign/libs/assign/test/speed_common.cpp 2010-03-01 16:31:48 EST (Mon, 01 Mar 2010)
@@ -68,7 +68,7 @@
         }
 
         template<class Proc>
- double time_it_impl(Proc proc, int N=1) // returns time in microseconds
+ double time_it_impl(Proc proc, int N) // returns time in microseconds
         {
             std::clock_t const start = std::clock();
             for(int i = 0; i < N; ++i)
@@ -80,7 +80,7 @@
         }
         
         template<class Proc, class Result>
- double time_it_impl(Proc proc, Result & result, int N=1) // returns time in microseconds
+ double time_it_impl(Proc proc, Result & result, int N) // returns time in microseconds
         {
             std::clock_t const start = std::clock();
             for(int i = 0; i < N; ++i)

Modified: sandbox/statistics/detail/assign/libs/assign/test/speed_common.h
==============================================================================
--- sandbox/statistics/detail/assign/libs/assign/test/speed_common.h (original)
+++ sandbox/statistics/detail/assign/libs/assign/test/speed_common.h 2010-03-01 16:31:48 EST (Mon, 01 Mar 2010)
@@ -8,8 +8,8 @@
 // accompanying file LICENSE_1_0.txt or copy at
 // http://www.boost.org/LICENSE_1_0.txt)
 ///////////////////////////////////////////////////////////////////////////////
-#ifndef LIBS_ASSIGN_TEST_SPEED_COMMON_ER_2010_H
-#define LIBS_ASSIGN_TEST_SPEED_COMMON_ER_2010_H
+#ifndef LIBS_ASSIGN_TEST_SPEED_COMMON_MPG_2010_H
+#define LIBS_ASSIGN_TEST_SPEED_COMMON_MPG_2010_H
 #include <vector>
 #include <string>
 


Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk