Boost logo

Boost-Commit :

From: john_at_[hidden]
Date: 2007-08-29 14:30:06


Author: johnmaddock
Date: 2007-08-29 14:30:05 EDT (Wed, 29 Aug 2007)
New Revision: 39058
URL: http://svn.boost.org/trac/boost/changeset/39058

Log:
Added short section on performance test app.
Added copyright info to performance test app, plus needed build macros.
Added:
   sandbox/math_toolkit/libs/math/performance/required_defines.hpp (contents, props changed)
Text files modified:
   sandbox/math_toolkit/libs/math/doc/performance.qbk | 20 ++++++++++++++++++++
   sandbox/math_toolkit/libs/math/performance/distributions.cpp | 6 ++++++
   sandbox/math_toolkit/libs/math/performance/main.cpp | 10 ++++++++--
   sandbox/math_toolkit/libs/math/performance/performance_measure.hpp | 5 +++++
   sandbox/math_toolkit/libs/math/performance/test_erf.cpp | 5 +++++
   sandbox/math_toolkit/libs/math/performance/test_gamma.cpp | 6 ++++++
   sandbox/math_toolkit/libs/math/performance/test_ibeta.cpp | 6 ++++++
   sandbox/math_toolkit/libs/math/performance/test_igamma.cpp | 6 ++++++
   sandbox/math_toolkit/libs/math/performance/test_polynomial.cpp | 6 ++++++
   sandbox/math_toolkit/libs/math/performance/test_reference.cpp | 6 ++++++
   10 files changed, 74 insertions(+), 2 deletions(-)

Modified: sandbox/math_toolkit/libs/math/doc/performance.qbk
==============================================================================
--- sandbox/math_toolkit/libs/math/doc/performance.qbk (original)
+++ sandbox/math_toolkit/libs/math/doc/performance.qbk 2007-08-29 14:30:05 EDT (Wed, 29 Aug 2007)
@@ -339,6 +339,26 @@
 ]
 
 [endsect]
+
+[section:perf_test_app The Performance Test Application]
+
+Under ['boost-path]\/libs\/math\/performance you will find a
+(fairly rudimentary) performance test application for this library.
+
+To run this application yourself, build the all the .cpp files in
+['boost-path]\/libs\/math\/performance into an application using
+your usual release-build settings. Run the application with --help
+to see a full list of options, or with --all to test everything
+(which takes quite a while), or with --tune to test the
+[link math_toolkit.perf.tuning available performance tuning options].
+
+If you want to use this application to test the effect of changing
+any of the __policy_section, then you will need to build and run it twice:
+once with the default __policy_section, and then a second time with the
+__policy_section you want to test set as the default.
+
+[endsect]
+
 [endsect]
 
 

Modified: sandbox/math_toolkit/libs/math/performance/distributions.cpp
==============================================================================
--- sandbox/math_toolkit/libs/math/performance/distributions.cpp (original)
+++ sandbox/math_toolkit/libs/math/performance/distributions.cpp 2007-08-29 14:30:05 EDT (Wed, 29 Aug 2007)
@@ -1,3 +1,9 @@
+// Copyright John Maddock 2007.
+// Use, modification and distribution are subject to the
+// Boost Software License, Version 1.0. (See accompanying file
+// LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
+
+#include "required_defines.hpp"
 
 #include "performance_measure.hpp"
 

Modified: sandbox/math_toolkit/libs/math/performance/main.cpp
==============================================================================
--- sandbox/math_toolkit/libs/math/performance/main.cpp (original)
+++ sandbox/math_toolkit/libs/math/performance/main.cpp 2007-08-29 14:30:05 EDT (Wed, 29 Aug 2007)
@@ -1,3 +1,9 @@
+// Copyright John Maddock 2007.
+// Use, modification and distribution are subject to the
+// Boost Software License, Version 1.0. (See accompanying file
+// LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
+
+#include "required_defines.hpp"
 
 #include <map>
 #include <set>
@@ -110,8 +116,8 @@
    std::cout << "BOOST_MATH_PROMOTE_DOUBLE_POLICY " << BOOST_STRINGIZE(BOOST_MATH_PROMOTE_DOUBLE_POLICY) << std::endl;
    std::cout << "BOOST_MATH_DISCRETE_QUANTILE_POLICY " << BOOST_STRINGIZE(BOOST_MATH_DISCRETE_QUANTILE_POLICY) << std::endl;
    std::cout << "BOOST_MATH_ASSERT_UNDEFINED_POLICY " << BOOST_STRINGIZE(BOOST_MATH_ASSERT_UNDEFINED_POLICY) << std::endl;
- std::cout << "BOOST_MATH_MAX_ITER " << BOOST_STRINGIZE(BOOST_MATH_MAX_ITER) << std::endl;
-
+ std::cout << "BOOST_MATH_MAX_SERIES_ITERATION_POLICY " << BOOST_STRINGIZE(BOOST_MATH_MAX_SERIES_ITERATION_POLICY) << std::endl;
+ std::cout << "BOOST_MATH_MAX_ROOT_ITERATION_POLICY " << BOOST_STRINGIZE(BOOST_MATH_MAX_ROOT_ITERATION_POLICY) << std::endl;
 }
 
 int main(int argc, const char** argv)

Modified: sandbox/math_toolkit/libs/math/performance/performance_measure.hpp
==============================================================================
--- sandbox/math_toolkit/libs/math/performance/performance_measure.hpp (original)
+++ sandbox/math_toolkit/libs/math/performance/performance_measure.hpp 2007-08-29 14:30:05 EDT (Wed, 29 Aug 2007)
@@ -1,3 +1,7 @@
+// Copyright John Maddock 2007.
+// Use, modification and distribution are subject to the
+// Boost Software License, Version 1.0. (See accompanying file
+// LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
 
 #ifndef BOOST_MATH_PERFORMANCE_MEASURE_HPP
 #define BOOST_MATH_PERFORMANCE_MEASURE_HPP
@@ -79,3 +83,4 @@
 
 
 #endif // BOOST_MATH_PERFORMANCE_MEASURE_HPP
+

Added: sandbox/math_toolkit/libs/math/performance/required_defines.hpp
==============================================================================
--- (empty file)
+++ sandbox/math_toolkit/libs/math/performance/required_defines.hpp 2007-08-29 14:30:05 EDT (Wed, 29 Aug 2007)
@@ -0,0 +1,9 @@
+// Copyright John Maddock 2007.
+// Use, modification and distribution are subject to the
+// Boost Software License, Version 1.0. (See accompanying file
+// LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
+
+#define BOOST_MATH_DOMAIN_ERROR_POLICY errno_on_error
+#define BOOST_MATH_POLE_ERROR_POLICY errno_on_error
+#define BOOST_MATH_OVERFLOW_ERROR_POLICY errno_on_error
+

Modified: sandbox/math_toolkit/libs/math/performance/test_erf.cpp
==============================================================================
--- sandbox/math_toolkit/libs/math/performance/test_erf.cpp (original)
+++ sandbox/math_toolkit/libs/math/performance/test_erf.cpp 2007-08-29 14:30:05 EDT (Wed, 29 Aug 2007)
@@ -1,4 +1,9 @@
+// Copyright John Maddock 2007.
+// Use, modification and distribution are subject to the
+// Boost Software License, Version 1.0. (See accompanying file
+// LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
 
+#include "required_defines.hpp"
 #include "performance_measure.hpp"
 
 #include <boost/math/special_functions/gamma.hpp>

Modified: sandbox/math_toolkit/libs/math/performance/test_gamma.cpp
==============================================================================
--- sandbox/math_toolkit/libs/math/performance/test_gamma.cpp (original)
+++ sandbox/math_toolkit/libs/math/performance/test_gamma.cpp 2007-08-29 14:30:05 EDT (Wed, 29 Aug 2007)
@@ -1,3 +1,9 @@
+// Copyright John Maddock 2007.
+// Use, modification and distribution are subject to the
+// Boost Software License, Version 1.0. (See accompanying file
+// LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
+
+#include "required_defines.hpp"
 
 #include "performance_measure.hpp"
 

Modified: sandbox/math_toolkit/libs/math/performance/test_ibeta.cpp
==============================================================================
--- sandbox/math_toolkit/libs/math/performance/test_ibeta.cpp (original)
+++ sandbox/math_toolkit/libs/math/performance/test_ibeta.cpp 2007-08-29 14:30:05 EDT (Wed, 29 Aug 2007)
@@ -1,3 +1,9 @@
+// Copyright John Maddock 2007.
+// Use, modification and distribution are subject to the
+// Boost Software License, Version 1.0. (See accompanying file
+// LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
+
+#include "required_defines.hpp"
 
 #include "performance_measure.hpp"
 

Modified: sandbox/math_toolkit/libs/math/performance/test_igamma.cpp
==============================================================================
--- sandbox/math_toolkit/libs/math/performance/test_igamma.cpp (original)
+++ sandbox/math_toolkit/libs/math/performance/test_igamma.cpp 2007-08-29 14:30:05 EDT (Wed, 29 Aug 2007)
@@ -1,3 +1,9 @@
+// Copyright John Maddock 2007.
+// Use, modification and distribution are subject to the
+// Boost Software License, Version 1.0. (See accompanying file
+// LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
+
+#include "required_defines.hpp"
 
 #include "performance_measure.hpp"
 

Modified: sandbox/math_toolkit/libs/math/performance/test_polynomial.cpp
==============================================================================
--- sandbox/math_toolkit/libs/math/performance/test_polynomial.cpp (original)
+++ sandbox/math_toolkit/libs/math/performance/test_polynomial.cpp 2007-08-29 14:30:05 EDT (Wed, 29 Aug 2007)
@@ -1,3 +1,9 @@
+// Copyright John Maddock 2007.
+// Use, modification and distribution are subject to the
+// Boost Software License, Version 1.0. (See accompanying file
+// LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
+
+#include "required_defines.hpp"
 
 #include "performance_measure.hpp"
 

Modified: sandbox/math_toolkit/libs/math/performance/test_reference.cpp
==============================================================================
--- sandbox/math_toolkit/libs/math/performance/test_reference.cpp (original)
+++ sandbox/math_toolkit/libs/math/performance/test_reference.cpp 2007-08-29 14:30:05 EDT (Wed, 29 Aug 2007)
@@ -1,3 +1,9 @@
+// Copyright John Maddock 2007.
+// Use, modification and distribution are subject to the
+// Boost Software License, Version 1.0. (See accompanying file
+// LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
+
+#include "required_defines.hpp"
 
 #include "performance_measure.hpp"
 


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