Update of /cvsroot/boost/boost/libs/fusion/example/performance
In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv968

Modified Files:
        sequence_efficiency.cpp 
Log Message:
added code to peek into assembler

Index: sequence_efficiency.cpp
===================================================================
RCS file: 
/cvsroot/boost/boost/libs/fusion/example/performance/sequence_efficiency.cpp,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- sequence_efficiency.cpp     19 Nov 2006 14:17:29 -0000      1.2
+++ sequence_efficiency.cpp     19 Nov 2006 16:06:02 -0000      1.3
@@ -75,6 +75,12 @@
             << test::measure<accumulator<int> >(seq, repeats)
             << std::endl;
     }
+
+    template <typename T>
+    void test_assembler(T const& seq)
+    {
+        test::live_code = boost::fusion::accumulate(seq, 0, poly_add());
+    }
 }
 
 // We'll initialize the sequences from numeric strings that
@@ -155,6 +161,9 @@
     measure(lmedium,    "medium list time:                   ", repeats);
     measure(vbig,       "big vector time:                    ", repeats);
     measure(lbig,       "big list time:                      ", repeats);
+    
+    // Let's see how this looks in assembler
+    test_assembler(vmedium);
 
     // This is ultimately responsible for preventing all the test code
     // from being optimized away.  Change this to return 0 and you


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Boost-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/boost-cvs

Reply via email to