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

Function BenchmarkFunction

be/src/benchmarks/scheduler-benchmark.cc:123–130  ·  view source on GitHub ↗

This function is passed to the test framework and executes the scheduling method repeatedly.

Source from the content-addressed store, hash-verified

121/// This function is passed to the test framework and executes the scheduling method
122/// repeatedly.
123void BenchmarkFunction(int num_iterations, void* data) {
124 TestCtx* test_ctx = static_cast<TestCtx*>(data);
125 for (int i = 0; i < num_iterations; ++i) {
126 test_ctx->result->Reset();
127 Status status = test_ctx->scheduler_wrapper->Compute(test_ctx->result.get());
128 if (!status.ok()) LOG(FATAL) << status.GetDetail();
129 }
130}
131
132/// Build and run a benchmark suite for various cluster sizes with the default number of
133/// blocks. Scheduling will be done according to the parameter 'replica_preference'.

Callers

nothing calls this directly

Calls 5

GetDetailMethod · 0.80
getMethod · 0.65
ResetMethod · 0.45
ComputeMethod · 0.45
okMethod · 0.45

Tested by

no test coverage detected