Lines Matching refs:iterations
141 void Benchmark::RunRepeatedlyWithArg(int iterations, int arg) { in RunRepeatedlyWithArg() argument
146 fn_(iterations); in RunRepeatedlyWithArg()
148 fn_range_(iterations, arg); in RunRepeatedlyWithArg()
156 int iterations = 1; in RunWithArg() local
157 RunRepeatedlyWithArg(iterations, arg); in RunWithArg()
158 while (g_benchmark_total_time_ns < 1e9 && iterations < 1e9) { in RunWithArg()
159 int last = iterations; in RunWithArg()
160 if (g_benchmark_total_time_ns/iterations == 0) { in RunWithArg()
161 iterations = 1e9; in RunWithArg()
163 iterations = 1e9 / (g_benchmark_total_time_ns/iterations); in RunWithArg()
165 iterations = std::max(last + 1, std::min(iterations + iterations/2, 100*last)); in RunWithArg()
166 iterations = Round(iterations); in RunWithArg()
167 RunRepeatedlyWithArg(iterations, arg); in RunWithArg()
189 iterations, g_benchmark_total_time_ns/iterations, throughput); in RunWithArg()