16 #ifndef IMPALA_UTIL_BENCHMARK_H
17 #define IMPALA_UTIL_BENCHMARK_H
47 int baseline_idx = 0);
65 int max_time = 1000,
int initial_batch_size = 1000);
int AddBenchmark(const std::string &name, BenchmarkFunction fn, void *args, int baseline_idx=0)
static std::string GetMachineInfo()
Output machine/build configuration as a string.
std::string Measure()
Runs all the benchmarks and returns the result in a formatted string.
void(* BenchmarkFunction)(int iters, void *)
std::vector< BenchmarkResult > benchmarks_
Benchmark(const std::string &name)
Name of the microbenchmark. This is outputted in the result.