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 > |
Macros | |
#define | VALIDATE 0 |
#define | VALIDATE_RESULT(actual, expected, str) |
Functions | |
void | AddTestData (TestData *data, const string &input) |
void | AddTestData (TestData *data, int n, double min=-10, double max=10) |
void | TestAtof (int batch_size, void *d) |
void | TestImpala (int batch_size, void *d) |
void | TestStrtod (int batch_size, void *d) |
int | main (int argc, char **argv) |
#define VALIDATE 0 |
Definition at line 41 of file atof-benchmark.cc.
#define VALIDATE_RESULT | ( | actual, | |
expected, | |||
str | |||
) |
Definition at line 53 of file atof-benchmark.cc.
Referenced by TestImpala().
void AddTestData | ( | TestData * | data, |
const string & | input | ||
) |
Definition at line 62 of file atof-benchmark.cc.
References TestData< Decimal >::data, and TestData< Decimal >::memory.
Referenced by AddTestData(), and main().
void AddTestData | ( | TestData * | data, |
int | n, | ||
double | min = -10 , |
||
double | max = 10 |
||
) |
Definition at line 68 of file atof-benchmark.cc.
References AddTestData().
int main | ( | int | argc, |
char ** | argv | ||
) |
Definition at line 113 of file atof-benchmark.cc.
References impala::Benchmark::AddBenchmark(), AddTestData(), TestData< Decimal >::data, impala::Benchmark::GetMachineInfo(), impala::CpuInfo::Init(), impala::Benchmark::Measure(), TestData< Decimal >::result, TestAtof(), TestImpala(), and TestStrtod().
void TestAtof | ( | int | batch_size, |
void * | d | ||
) |
Definition at line 79 of file atof-benchmark.cc.
References TestData< Decimal >::data, and TestData< Decimal >::result.
Referenced by main().
void TestImpala | ( | int | batch_size, |
void * | d | ||
) |
Definition at line 89 of file atof-benchmark.cc.
References TestData< Decimal >::data, impala::StringValue::len, impala::StringValue::ptr, TestData< Decimal >::result, and VALIDATE_RESULT.
Referenced by main().
void TestStrtod | ( | int | batch_size, |
void * | d | ||
) |
Definition at line 103 of file atof-benchmark.cc.
References TestData< Decimal >::data, and TestData< Decimal >::result.
Referenced by main().