Boost logo

Boost :

Subject: Re: [boost] proposal - Statistically robust function timing for performance decisions.
From: Mathias Gaunard (mathias.gaunard_at_[hidden])
Date: 2009-07-19 17:15:04

Edward Grace wrote:

> I modified the example to force side-effects by making the variables in
> the loop global. Consequently it now doesn't get optimised away -
> compilers sure are clever these days.

Rather, I think you should use volatile or something, which is
guaranteed by the C++ standard not be optimized out.

Boost list run by bdawes at, gregod at, cpdaniel at, john at