Boost logo

Boost-Commit :

From: mconsoni_at_[hidden]
Date: 2007-07-02 15:36:36


Author: mconsoni
Date: 2007-07-02 15:36:35 EDT (Mon, 02 Jul 2007)
New Revision: 7340
URL: http://svn.boost.org/trac/boost/changeset/7340

Log:

- plain_old_approach_bf.cpp: included plain_old_approach.cpp with the BOOST_EXTENSION_USE_BOOST_FUNCTION set
  so boost::function is used.
- Jamfile.v2: added the new benchmark.

Added:
   sandbox/libs/extension/benchmarks/plain_old_approach_bf.cpp
Text files modified:
   sandbox/libs/extension/benchmarks/Jamfile.v2 | 1 +
   1 files changed, 1 insertions(+), 0 deletions(-)

Modified: sandbox/libs/extension/benchmarks/Jamfile.v2
==============================================================================
--- sandbox/libs/extension/benchmarks/Jamfile.v2 (original)
+++ sandbox/libs/extension/benchmarks/Jamfile.v2 2007-07-02 15:36:35 EDT (Mon, 02 Jul 2007)
@@ -25,6 +25,7 @@
     ;
 
 exe PlainOldApproach : plain_old_approach.cpp ;
+exe PlainOldApproachBF : plain_old_approach_bf.cpp ;
 exe MultipleCalls : multiple_calls.cpp ;
 exe MultipleLibraries : multiple_libraries.cpp ;
 lib PlainOldHelloWorldLib : hello_world_plain_old.cpp : <link>shared ;

Added: sandbox/libs/extension/benchmarks/plain_old_approach_bf.cpp
==============================================================================
--- (empty file)
+++ sandbox/libs/extension/benchmarks/plain_old_approach_bf.cpp 2007-07-02 15:36:35 EDT (Mon, 02 Jul 2007)
@@ -0,0 +1,18 @@
+/*
+ * Boost.Extension / dl* / extensions compare benchmark (with boost::function)
+ *
+ * (C) Copyright Mariano G. Consoni 2007
+ * Distributed under 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)
+ *
+ * See http://www.boost.org/ for latest version.
+ */
+
+#define BOOST_EXTENSION_USE_BOOST_FUNCTION 1
+
+// We include here a .cpp to be able to compile it with
+// the BOOST_EXTENSION_USE_BOOST_FUNCTION variable defined.
+// In this way we can compare Boost.Extension with and
+// without boost::function.
+#include "plain_old_approach.cpp"


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