MCPcopy Create free account
hub / github.com/apache/impala / AddBenchmark

Method AddBenchmark

be/src/util/benchmark.cc:126–137  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

124}
125
126int Benchmark::AddBenchmark(const string& name, BenchmarkFunction fn, void* args,
127 int baseline_idx) {
128 if (baseline_idx == -1) baseline_idx = benchmarks_.size();
129 CHECK_LE(baseline_idx, benchmarks_.size());
130 BenchmarkResult benchmark;
131 benchmark.name = name;
132 benchmark.fn = fn;
133 benchmark.args = args;
134 benchmark.baseline_idx = baseline_idx;
135 benchmarks_.push_back(benchmark);
136 return benchmarks_.size() - 1;
137}
138
139string Benchmark::Measure(
140 int max_time, int initial_batch_size, BenchmarkSetupFunction fn) {

Callers 15

RunBenchmarksFunction · 0.80
mainFunction · 0.80
mainFunction · 0.80
mainFunction · 0.80
mainFunction · 0.80
RunMethod · 0.80
RunClusterSizeBenchmarkFunction · 0.80
RunNumBlocksBenchmarkFunction · 0.80
mainFunction · 0.80
mainFunction · 0.80
CompileVSRuntimeFunction · 0.80
TypeComparisonFunction · 0.80

Calls 2

push_backMethod · 0.80
sizeMethod · 0.45

Tested by

no test coverage detected