Impala
Impalaistheopensource,nativeanalyticdatabaseforApacheHadoop.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
expr-benchmark.cc File Reference
#include <stdio.h>
#include <iostream>
#include <jni.h>
#include <thrift/Thrift.h>
#include <thrift/protocol/TDebugProtocol.h>
#include "exprs/expr.h"
#include "exprs/expr-context.h"
#include "util/benchmark.h"
#include "util/cpu-info.h"
#include "util/debug-util.h"
#include "rpc/jni-thrift-util.h"
#include "gen-cpp/Types_types.h"
#include "gen-cpp/ImpalaService.h"
#include "gen-cpp/DataSinks_types.h"
#include "gen-cpp/ImpalaService_types.h"
#include "gen-cpp/ImpalaInternalService.h"
#include "gen-cpp/Frontend_types.h"
#include "rpc/thrift-server.h"
#include "common/object-pool.h"
#include "common/status.h"
#include "service/impala-server.h"
#include "common/names.h"
Include dependency graph for expr-benchmark.cc:

Go to the source code of this file.

Classes

class  Planner
 
struct  TestData< Decimal >
 

Macros

#define BENCHMARK(name, stmt)   suite->AddBenchmark(name, BenchmarkQueryFn, GenerateBenchmarkExprs(stmt, false))
 

Functions

static Status PrepareSelectList (const TExecRequest &request, ExprContext **ctx)
 
static TestDataGenerateBenchmarkExprs (const string &query, bool codegen)
 
void BenchmarkQueryFn (int batch_size, void *d)
 
BenchmarkBenchmarkLiterals ()
 
BenchmarkBenchmarkArithmetic ()
 
BenchmarkBenchmarkLike ()
 
BenchmarkBenchmarkCast ()
 
BenchmarkBenchmarkConditionalFunctions ()
 
BenchmarkBenchmarkStringFunctions ()
 
BenchmarkBenchmarkUrlFunctions ()
 
BenchmarkBenchmarkMathFunctions ()
 
BenchmarkBenchmarkTimestampFunctions ()
 
int main (int argc, char **argv)
 

Variables

Planner planner
 
ObjectPool pool
 
MemTracker tracker
 
const int ITERATIONS = 256
 

Macro Definition Documentation

Function Documentation

Benchmark* BenchmarkArithmetic ( )

Definition at line 150 of file expr-benchmark.cc.

References BENCHMARK.

Referenced by main().

Benchmark* BenchmarkCast ( )

Definition at line 191 of file expr-benchmark.cc.

References BENCHMARK.

Referenced by main().

Benchmark* BenchmarkConditionalFunctions ( )

Definition at line 224 of file expr-benchmark.cc.

References BENCHMARK.

Referenced by main().

Benchmark* BenchmarkLike ( )

Definition at line 167 of file expr-benchmark.cc.

References BENCHMARK.

Referenced by main().

Benchmark* BenchmarkLiterals ( )

Definition at line 137 of file expr-benchmark.cc.

References BENCHMARK.

Referenced by main().

Benchmark* BenchmarkMathFunctions ( )

Definition at line 377 of file expr-benchmark.cc.

References BENCHMARK.

Referenced by main().

void BenchmarkQueryFn ( int  batch_size,
void *  d 
)
Benchmark* BenchmarkStringFunctions ( )

Definition at line 281 of file expr-benchmark.cc.

References BENCHMARK.

Referenced by main().

Benchmark* BenchmarkTimestampFunctions ( )

Definition at line 443 of file expr-benchmark.cc.

References BENCHMARK.

Referenced by main().

Benchmark* BenchmarkUrlFunctions ( )

Definition at line 322 of file expr-benchmark.cc.

References BENCHMARK.

Referenced by main().

static TestData* GenerateBenchmarkExprs ( const string &  query,
bool  codegen 
)
static
static Status PrepareSelectList ( const TExecRequest &  request,
ExprContext **  ctx 
)
static

Definition at line 94 of file expr-benchmark.cc.

References impala::OK, pool, RETURN_IF_ERROR, and tracker.

Referenced by GenerateBenchmarkExprs().

Variable Documentation

const int ITERATIONS = 256

Definition at line 114 of file expr-benchmark.cc.

Referenced by BenchmarkQueryFn(), and impala::TEST_F().

ObjectPool pool

Definition at line 89 of file expr-benchmark.cc.

Referenced by impala::HdfsParquetScanner::AssembleRows(), impala::JvmMetric::CalculateValue(), com.cloudera.impala.util.TestRequestPoolService::checkPoolConfigResult(), impala::PartitionedAggregationNode::ConstructIntermediateTuple(), DataPartitioner::DataPartitioner(), impala::TupleRow::DeepCopy(), impala::AggregationNode::FinalizeTuple(), impala::HdfsTextScanner::FinishScanRange(), impala::LibCache::GetCacheEntryInternal(), com.cloudera.impala.catalog.CatalogServiceCatalog::getCatalogObjects(), com.cloudera.impala.util.RequestPoolService::getLlamaPoolConfigValue(), impala::PartitionedAggregationNode::GetOutputTuple(), com.cloudera.impala.util.RequestPoolService::getPoolConfig(), com.cloudera.impala.catalog.Catalog::getTCatalogObject(), impala::HashTableTest::GrowTableTest(), com.cloudera.impala.util.RequestPoolService::hasAccess(), impala::HashTableTest::InsertFullTest(), impala::LlvmCodeGenTest::LifetimeTest(), main(), impala::Tuple::MaterializeExprs(), impala::HdfsAvroScanner::MaterializeTuple(), impala::QuerySchedule::PrepareReservationRequest(), PrepareSelectList(), impala::HdfsSequenceScanner::ProcessDecompressedBlock(), impala::HdfsParquetScanner::ProcessFooter(), impala::HdfsTextScanner::ProcessRange(), impala::HdfsAvroScanner::ProcessRange(), impala::HdfsSequenceScanner::ProcessRange(), impala::HdfsRCFileScanner::ProcessRange(), impala::HdfsParquetScanner::BaseColumnReader::ReadValue(), impala::ThreadResourceMgr::RegisterPool(), com.cloudera.impala.util.RequestPoolService::resolveRequestPool(), impala::HdfsAvroScanner::ResolveSchemas(), impala::SimpleScheduler::Schedule(), impala::TEST(), impala::TEST_F(), impala::TestSingleLiteralConstruction(), impala::ThreadResourceMgr::UpdatePoolQuotas(), impala::ValidateDict(), and impala::RawValue::Write().