Boost logo

Boost :

Subject: Re: [boost] [accumulator][minmax_element] Perfomance comparsion different min max algorithm
From: Daniel Hulme (st_at_[hidden])
Date: 2009-02-17 09:18:30


On Tue, Feb 17, 2009 at 08:17:59AM +0100, Hansi wrote:
>> Nevertheless, it's clearly very different from your results, in that we
>> have opposite fastest and slowest methods. I suspect you're missing
>> some crucial optimization (probably the inlining of a function somewhere
>> in accumulator).

> May be it helps when I post the command line parameters:
> Compiler settings:
> /GL /D "WIN32" /D "_CONSOLE" /D "_SECURE_SCL=0" /D "NDEBUG=1" /D
> "_UNICODE" /D "UNICODE" /FD /EHsc /MD /Yu"stdafx.h"
> /Fp"Release\Statistic.pch" /Fo"Release\\" /Fd"Release\vc90.pdb" /W3
> /nologo /c /Zi /TP /errorReport:prompt

You seem to be missing any optimization options. I suggest turning on
/O2, which should make a huge difference to your results.

-- 
Pray remember that Bacchus was a warrior, and that his armies had little
fighting to do, because  wherever he appeared  he taught the cultivation
of the vine  to the grateful and  submissive natives.    --  J.B. Morton
http://surreal.istic.org/                             God save the King!



Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk