
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.
for some reason Visual studio has displayed to me full optimizations.....but it was not in reality. I had to change it and change it back and then I head it really... min_element,max_element:238 minVal=0,maxVal=99999999 min_max: accumulator:149 minVal=0,maxVal=99999999 min_max: minmax_element:144 minVal=0,maxVal=99999999 min/max handcoded:228 minVal=0,maxVal=99999999 now much more as expected... Regards Hansjörg