Home | History | Annotate | Download | only in programs

Lines Matching defs:nbLoops

101 /* initFn will be measured once, benchFn will be measured `nbLoops` times */
109 unsigned nbLoops)
111 nbLoops += !nbLoops; /* minimum nbLoops is 1 */
124 for (loopNb = 0; loopNb < nbLoops; loopNb++) {
138 } /* for (loopNb = 0; loopNb < nbLoops; loopNb++) */
142 rt.nanoSecPerRun = (double)totalTime / nbLoops;
156 unsigned nbLoops;
194 timedFnState->nbLoops = 1;
220 BMK_runOutcome_t const runResult = BMK_benchFunction(p, cont->nbLoops);
227 double const loopDuration_ns = newRunTime.nanoSecPerRun * cont->nbLoops;
231 /* estimate nbLoops for next run to last approximately 1 second */
234 cont->nbLoops = (unsigned)((double)runBudget_ns / fastestRun_ns) + 1;
238 assert(cont->nbLoops < ((unsigned)-1) / multiplier); /* avoid overflow */
239 cont->nbLoops *= multiplier;