1 Aug
2012
1 Aug
'12
11:43 a.m.
on Sat Jul 07 2012, "MM"
Now I tried to find 2 comparables ways of calculating the mean on a large number of doubles and time them
Is this a fair comparison?
Nope. The version using Boost.Accumulators has to count the number of samples, whereas the hand-coded version has the number of samples encoded as a constant. A fair comparison would use the "sum" accumulator and then divide by 134217728u. -- Dave Abrahams BoostPro Computing Software Development Training http://www.boostpro.com Clang/LLVM/EDG Compilers C++ Boost