|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r51608 - sandbox/reference_closure
From: dave_at_[hidden]
Date: 2009-03-04 10:38:04
Author: dave
Date: 2009-03-04 10:38:03 EST (Wed, 04 Mar 2009)
New Revision: 51608
URL: http://svn.boost.org/trac/boost/changeset/51608
Log:
Clarify timings by eliminating any with work in the callback or with
less than a billion iterations
Text files modified:
sandbox/reference_closure/timings.txt | 98 ----------------------------------------
1 files changed, 0 insertions(+), 98 deletions(-)
Modified: sandbox/reference_closure/timings.txt
==============================================================================
--- sandbox/reference_closure/timings.txt (original)
+++ sandbox/reference_closure/timings.txt 2009-03-04 10:38:03 EST (Wed, 04 Mar 2009)
@@ -12,20 +12,6 @@
t(std::function<>) / t(reference_closure): 25.9
-=== Original Result (10x fewer loops) ===
-
-execute trivial_nested
-real 0m1.167s
-user 0m1.156s
-sys 0m0.004s
-
-execute trivial_function
-real 0m26.411s
-user 0m26.292s
-sys 0m0.056s
-
-t(std::function<>) / t(reference_closure): 22.7
-
=== Removed unrealistic indirection from lambda case ===
execute trivial_nested
@@ -54,20 +40,6 @@
t(std::function<>) / t(reference_closure): 3.7
-=== Lambdas would be known to be trivially copiable ===
-
-execute trivial_nested
-real 0m1.175s
-user 0m1.166s
-sys 0m0.004s
-
-execute trivial_function
-real 0m4.871s
-user 0m4.836s
-sys 0m0.013s
-
-t(std::function<>) / t(reference_closure): 4.1
-
=== Separate Translation Unit for Parallel Lib (full loops) ===
execute refclosure
@@ -82,48 +54,6 @@
t(std::function<>) / t(reference_closure): 3.5
-=== Separate Translation Unit for Parallel Lib ===
-
-execute refclosure
-real 0m1.267s
-user 0m1.243s
-sys 0m0.005s
-
-execute stdfunction
-real 0m5.153s
-user 0m5.103s
-sys 0m0.014s
-
-t(std::function<>) / t(reference_closure): 4.1
-
-=== Do Some Work in the Callback ===
-
-execute refclosure
-real 0m1.467s
-user 0m1.463s
-sys 0m0.003s
-
-execute stdfunction
-real 0m4.710s
-user 0m4.700s
-sys 0m0.008s
-
-t(std::function<>) / t(reference_closure): 3.2
-
-=== Multiply Iterations by 10 Again ===
-
-execute refclosure
-real 0m16.620s
-user 0m16.489s
-sys 0m0.053s
-
-execute stdfunction
-real 0m51.779s
-user 0m51.640s
-sys 0m0.059s
-
-t(std::function<>) / t(reference_closure): 3.1
-
=== Eliminate Indirect Call in copy c'tor of std::function<...> (no work) ===
execute refclosure
@@ -138,37 +68,9 @@
t(std::function<>) / t(reference_closure): 2.3
-=== Eliminate Indirect Call in copy c'tor of std::function<...> ===
-
-execute refclosure
-real 0m16.174s
-user 0m16.034s
-sys 0m0.044s
-
-execute stdfunction
-real 0m33.195s
-user 0m33.047s
-sys 0m0.052s
-
-t(std::function<>) / t(reference_closure): 2.1
-
=== Add move semantics for std::function ===
execute refclosure
-real 0m15.236s
-user 0m14.778s
-sys 0m0.033s
-
-execute stdfunction
-real 0m29.287s
-user 0m28.277s
-sys 0m0.066s
-
-t(std::function<>) / t(reference_closure): 1.9
-
-=== Same thing with no work: measures only overhead ===
-
-execute refclosure
real 0m12.445s
user 0m12.399s
sys 0m0.022s
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