Impala
Impalaistheopensource,nativeanalyticdatabaseforApacheHadoop.
|
#include <stdlib.h>
#include <stdio.h>
#include <iostream>
#include <vector>
#include <sstream>
#include "runtime/string-value.h"
#include "util/benchmark.h"
#include "util/cpu-info.h"
#include "util/string-parser.h"
#include "common/names.h"
Go to the source code of this file.
Classes | |
struct | TestData< Decimal > |
Functions | |
double | Rand () |
template<typename Decimal > | |
void | AddTestData (TestData< Decimal > *data, const string &input) |
template<typename Decimal > | |
void | AddTestData (TestData< Decimal > *data, int n) |
template<typename Decimal , typename Storage > | |
void | TestImpala (int batch_size, void *d) |
int | main (int argc, char **argv) |
void AddTestData | ( | TestData< Decimal > * | data, |
const string & | input | ||
) |
Definition at line 51 of file atod-benchmark.cc.
References TestData< Decimal >::data, and TestData< Decimal >::memory.
Referenced by AddTestData(), and main().
void AddTestData | ( | TestData< Decimal > * | data, |
int | n | ||
) |
Definition at line 58 of file atod-benchmark.cc.
References AddTestData(), TestData< Decimal >::precision, TestData< Decimal >::probability_negative, Rand(), and TestData< Decimal >::scale.
int main | ( | int | argc, |
char ** | argv | ||
) |
Definition at line 89 of file atod-benchmark.cc.
References impala::Benchmark::AddBenchmark(), AddTestData(), TestData< Decimal >::data, impala::Benchmark::GetMachineInfo(), impala::CpuInfo::Init(), impala::ColumnType::MAX_DECIMAL4_PRECISION, impala::ColumnType::MAX_DECIMAL8_PRECISION, impala::ColumnType::MAX_PRECISION, impala::Benchmark::Measure(), TestData< Decimal >::precision, TestData< Decimal >::probability_negative, TestData< Decimal >::result, and TestData< Decimal >::scale.
double Rand | ( | ) |
Definition at line 46 of file atod-benchmark.cc.
Referenced by AddTestData().
void TestImpala | ( | int | batch_size, |
void * | d | ||
) |
Definition at line 73 of file atod-benchmark.cc.
References impala::ColumnType::CreateDecimalType(), TestData< Decimal >::data, impala::StringValue::len, TestData< Decimal >::precision, impala::StringValue::ptr, TestData< Decimal >::result, and TestData< Decimal >::scale.