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

Function RunBenchmark

be/src/benchmarks/process-wide-locks-benchmark.cc:127–136  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

125}
126
127void RunBenchmark(int num_queries, int num_accesses) {
128 StopWatch total_time;
129 total_time.Start();
130 ImpalaThreadStarter(CreateAndAccessQueryStates, num_queries, num_accesses);
131 total_time.Stop();
132
133 cout << "Total Time " << "(#Queries: " << num_queries << " #Accesses: "
134 << num_accesses << ") : "
135 << PrettyPrinter::Print(total_time.ElapsedTime(), TUnit::CPU_TICKS) << endl;
136}
137
138// Create and store 'num_queries' Query IDs into 'query_ids'.
139void CreateQueryIds(int num_queries) {

Callers 1

mainFunction · 0.85

Calls 4

ImpalaThreadStarterFunction · 0.70
StartMethod · 0.45
StopMethod · 0.45
ElapsedTimeMethod · 0.45

Tested by

no test coverage detected