Fix the printf problem -- use std::cout :)
parent
54f346f981
commit
92ec61e4b8
|
@ -133,7 +133,7 @@ void BenchmarkRun::Reset() {
|
||||||
void BenchmarkRun::Run() {
|
void BenchmarkRun::Run() {
|
||||||
assert(current_benchmark == NULL);
|
assert(current_benchmark == NULL);
|
||||||
current_benchmark = this;
|
current_benchmark = this;
|
||||||
int64_t iters = FLAGS_benchmark_min_iters;
|
int iters = FLAGS_benchmark_min_iters;
|
||||||
for (;;) {
|
for (;;) {
|
||||||
Reset();
|
Reset();
|
||||||
Start();
|
Start();
|
||||||
|
@ -150,10 +150,9 @@ void BenchmarkRun::Run() {
|
||||||
}
|
}
|
||||||
iters = min(iters, FLAGS_benchmark_max_iters);
|
iters = min(iters, FLAGS_benchmark_max_iters);
|
||||||
}
|
}
|
||||||
fprintf(stdout, "%s\t%qu\t%qu\n",
|
std::cout << benchmark_name << "\t"
|
||||||
benchmark_name,
|
<< accum_micros * 1000 / iters << "\t"
|
||||||
accum_micros * 1000ULL / iters,
|
<< iters;
|
||||||
iters);
|
|
||||||
current_benchmark = NULL;
|
current_benchmark = NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue