Home | History | Annotate | Download | only in tests

Lines Matching refs:Arg

57 Benchmark* Benchmark::Arg(int arg) {
58 args_.push_back(arg);
114 void Benchmark::RunRepeatedlyWithArg(int iterations, int arg) {
121 fn_range_(iterations, arg);
128 void Benchmark::RunWithArg(int arg) {
131 RunRepeatedlyWithArg(iterations, arg);
141 RunRepeatedlyWithArg(iterations, arg);
154 if (arg >= (1<<20)) {
155 snprintf(full_name, sizeof(full_name), "%s/%dM", name_, arg/(1<<20));
156 } else if (arg >= (1<<10)) {
157 snprintf(full_name, sizeof(full_name), "%s/%dK", name_, arg/(1<<10));
159 snprintf(full_name, sizeof(full_name), "%s/%d", name_, arg);