
25 May
2011
25 May
'11
4:19 p.m.
On 5/25/2011 5:10 AM, Mathias Gaunard wrote:
This is a fairly bad way to write a benchmark, and is likely to yield somewhat incorrect results.
It is based on a fixed amount of work and returns an estimate of time.
You should bench based on an external condition, such as time, rather than making a fixed number of iterations.
You mean: it should return the amount of iterations based on a fixed interval of time. I don't think it'll be as precise. -Phil